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
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Rapidata.Dataset
4
+ Rapidata Asset API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ The API for the Rapidata Asset service
7
7
 
8
8
  The version of the OpenAPI document: v1
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -16,15 +16,17 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictBytes, StrictStr
20
- from typing import List, Optional, Tuple, Union
19
+ from pydantic import Field, StrictStr
20
+ from typing import Optional
21
21
  from typing_extensions import Annotated
22
- from rapidata.api_client.models.datapoint_metadata_model import DatapointMetadataModel
22
+ from rapidata.api_client.models.create_datapoint_model import CreateDatapointModel
23
+ from rapidata.api_client.models.create_datapoint_result import CreateDatapointResult
23
24
  from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
24
- from rapidata.api_client.models.import_from_file_result import ImportFromFileResult
25
- from rapidata.api_client.models.upload_datapoints_result import UploadDatapointsResult
26
- from rapidata.api_client.models.upload_files_from_s3_bucket_model import UploadFilesFromS3BucketModel
27
- from rapidata.api_client.models.upload_text_sources_to_dataset_model import UploadTextSourcesToDatasetModel
25
+ from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
26
+ from rapidata.api_client.models.get_failed_datapoints_result import GetFailedDatapointsResult
27
+ from rapidata.api_client.models.paged_result_of_query_datapoints_by_dataset_id_result import PagedResultOfQueryDatapointsByDatasetIdResult
28
+ from rapidata.api_client.models.query_model import QueryModel
29
+ from rapidata.api_client.models.update_dataset_name_model import UpdateDatasetNameModel
28
30
 
29
31
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
30
32
  from rapidata.api_client.api_response import ApiResponse
@@ -45,9 +47,10 @@ class DatasetApi:
45
47
 
46
48
 
47
49
  @validate_call
48
- def dataset_creat_text_datapoint_post(
50
+ def dataset_dataset_id_datapoint_post(
49
51
  self,
50
- upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
52
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
53
+ create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
51
54
  _request_timeout: Union[
52
55
  None,
53
56
  Annotated[StrictFloat, Field(gt=0)],
@@ -60,13 +63,14 @@ class DatasetApi:
60
63
  _content_type: Optional[StrictStr] = None,
61
64
  _headers: Optional[Dict[StrictStr, Any]] = None,
62
65
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
63
- ) -> UploadDatapointsResult:
64
- """Creates new datapoints from text sources.
66
+ ) -> CreateDatapointResult:
67
+ """Creates a datapoint with JSON body.
65
68
 
66
- If multiple text sources are uploaded, a new datapoint will be created for each text source.
67
69
 
68
- :param upload_text_sources_to_dataset_model: The body of the request.
69
- :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
70
+ :param dataset_id: The id of the dataset to create the datapoint in. (required)
71
+ :type dataset_id: str
72
+ :param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
73
+ :type create_datapoint_model: CreateDatapointModel
70
74
  :param _request_timeout: timeout setting for this request. If one
71
75
  number provided, it will be total request
72
76
  timeout. It can also be a pair (tuple) of
@@ -89,8 +93,9 @@ class DatasetApi:
89
93
  :return: Returns the result object.
90
94
  """ # noqa: E501
91
95
 
92
- _param = self._dataset_creat_text_datapoint_post_serialize(
93
- upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
96
+ _param = self._dataset_dataset_id_datapoint_post_serialize(
97
+ dataset_id=dataset_id,
98
+ create_datapoint_model=create_datapoint_model,
94
99
  _request_auth=_request_auth,
95
100
  _content_type=_content_type,
96
101
  _headers=_headers,
@@ -98,7 +103,7 @@ class DatasetApi:
98
103
  )
99
104
 
100
105
  _response_types_map: Dict[str, Optional[str]] = {
101
- '200': "UploadDatapointsResult",
106
+ '200': "CreateDatapointResult",
102
107
  }
103
108
  response_data = self.api_client.call_api(
104
109
  *_param,
@@ -112,9 +117,10 @@ class DatasetApi:
112
117
 
113
118
 
114
119
  @validate_call
115
- def dataset_creat_text_datapoint_post_with_http_info(
120
+ def dataset_dataset_id_datapoint_post_with_http_info(
116
121
  self,
117
- upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
122
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
123
+ create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
118
124
  _request_timeout: Union[
119
125
  None,
120
126
  Annotated[StrictFloat, Field(gt=0)],
@@ -127,13 +133,14 @@ class DatasetApi:
127
133
  _content_type: Optional[StrictStr] = None,
128
134
  _headers: Optional[Dict[StrictStr, Any]] = None,
129
135
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
130
- ) -> ApiResponse[UploadDatapointsResult]:
131
- """Creates new datapoints from text sources.
136
+ ) -> ApiResponse[CreateDatapointResult]:
137
+ """Creates a datapoint with JSON body.
132
138
 
133
- If multiple text sources are uploaded, a new datapoint will be created for each text source.
134
139
 
135
- :param upload_text_sources_to_dataset_model: The body of the request.
136
- :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
140
+ :param dataset_id: The id of the dataset to create the datapoint in. (required)
141
+ :type dataset_id: str
142
+ :param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
143
+ :type create_datapoint_model: CreateDatapointModel
137
144
  :param _request_timeout: timeout setting for this request. If one
138
145
  number provided, it will be total request
139
146
  timeout. It can also be a pair (tuple) of
@@ -156,8 +163,9 @@ class DatasetApi:
156
163
  :return: Returns the result object.
157
164
  """ # noqa: E501
158
165
 
159
- _param = self._dataset_creat_text_datapoint_post_serialize(
160
- upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
166
+ _param = self._dataset_dataset_id_datapoint_post_serialize(
167
+ dataset_id=dataset_id,
168
+ create_datapoint_model=create_datapoint_model,
161
169
  _request_auth=_request_auth,
162
170
  _content_type=_content_type,
163
171
  _headers=_headers,
@@ -165,7 +173,7 @@ class DatasetApi:
165
173
  )
166
174
 
167
175
  _response_types_map: Dict[str, Optional[str]] = {
168
- '200': "UploadDatapointsResult",
176
+ '200': "CreateDatapointResult",
169
177
  }
170
178
  response_data = self.api_client.call_api(
171
179
  *_param,
@@ -179,9 +187,10 @@ class DatasetApi:
179
187
 
180
188
 
181
189
  @validate_call
182
- def dataset_creat_text_datapoint_post_without_preload_content(
190
+ def dataset_dataset_id_datapoint_post_without_preload_content(
183
191
  self,
184
- upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
192
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
193
+ create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
185
194
  _request_timeout: Union[
186
195
  None,
187
196
  Annotated[StrictFloat, Field(gt=0)],
@@ -195,12 +204,13 @@ class DatasetApi:
195
204
  _headers: Optional[Dict[StrictStr, Any]] = None,
196
205
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
197
206
  ) -> RESTResponseType:
198
- """Creates new datapoints from text sources.
207
+ """Creates a datapoint with JSON body.
199
208
 
200
- If multiple text sources are uploaded, a new datapoint will be created for each text source.
201
209
 
202
- :param upload_text_sources_to_dataset_model: The body of the request.
203
- :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
210
+ :param dataset_id: The id of the dataset to create the datapoint in. (required)
211
+ :type dataset_id: str
212
+ :param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
213
+ :type create_datapoint_model: CreateDatapointModel
204
214
  :param _request_timeout: timeout setting for this request. If one
205
215
  number provided, it will be total request
206
216
  timeout. It can also be a pair (tuple) of
@@ -223,8 +233,9 @@ class DatasetApi:
223
233
  :return: Returns the result object.
224
234
  """ # noqa: E501
225
235
 
226
- _param = self._dataset_creat_text_datapoint_post_serialize(
227
- upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
236
+ _param = self._dataset_dataset_id_datapoint_post_serialize(
237
+ dataset_id=dataset_id,
238
+ create_datapoint_model=create_datapoint_model,
228
239
  _request_auth=_request_auth,
229
240
  _content_type=_content_type,
230
241
  _headers=_headers,
@@ -232,7 +243,7 @@ class DatasetApi:
232
243
  )
233
244
 
234
245
  _response_types_map: Dict[str, Optional[str]] = {
235
- '200': "UploadDatapointsResult",
246
+ '200': "CreateDatapointResult",
236
247
  }
237
248
  response_data = self.api_client.call_api(
238
249
  *_param,
@@ -241,9 +252,10 @@ class DatasetApi:
241
252
  return response_data.response
242
253
 
243
254
 
244
- def _dataset_creat_text_datapoint_post_serialize(
255
+ def _dataset_dataset_id_datapoint_post_serialize(
245
256
  self,
246
- upload_text_sources_to_dataset_model,
257
+ dataset_id,
258
+ create_datapoint_model,
247
259
  _request_auth,
248
260
  _content_type,
249
261
  _headers,
@@ -265,12 +277,14 @@ class DatasetApi:
265
277
  _body_params: Optional[bytes] = None
266
278
 
267
279
  # process the path parameters
280
+ if dataset_id is not None:
281
+ _path_params['datasetId'] = dataset_id
268
282
  # process the query parameters
269
283
  # process the header parameters
270
284
  # process the form parameters
271
285
  # process the body parameter
272
- if upload_text_sources_to_dataset_model is not None:
273
- _body_params = upload_text_sources_to_dataset_model
286
+ if create_datapoint_model is not None:
287
+ _body_params = create_datapoint_model
274
288
 
275
289
 
276
290
  # set the HTTP header `Accept`
@@ -301,13 +315,14 @@ class DatasetApi:
301
315
 
302
316
  # authentication setting
303
317
  _auth_settings: List[str] = [
304
- 'bearer',
305
- 'oauth2'
318
+ 'OAuth2',
319
+ 'OpenIdConnect',
320
+ 'Bearer'
306
321
  ]
307
322
 
308
323
  return self.api_client.param_serialize(
309
324
  method='POST',
310
- resource_path='/Dataset/CreatTextDatapoint',
325
+ resource_path='/dataset/{datasetId}/datapoint',
311
326
  path_params=_path_params,
312
327
  query_params=_query_params,
313
328
  header_params=_header_params,
@@ -324,10 +339,9 @@ class DatasetApi:
324
339
 
325
340
 
326
341
  @validate_call
327
- def dataset_create_datapoint_post(
342
+ def dataset_dataset_id_datapoints_failed_get(
328
343
  self,
329
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
330
- model: Optional[DatapointMetadataModel] = None,
344
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
331
345
  _request_timeout: Union[
332
346
  None,
333
347
  Annotated[StrictFloat, Field(gt=0)],
@@ -340,15 +354,13 @@ class DatasetApi:
340
354
  _content_type: Optional[StrictStr] = None,
341
355
  _headers: Optional[Dict[StrictStr, Any]] = None,
342
356
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
343
- ) -> UploadDatapointsResult:
344
- """Creates a single datapoint.
357
+ ) -> GetFailedDatapointsResult:
358
+ """Gets a list of all datapoints that failed to upload.
345
359
 
346
- If multiple files are uploaded, a multi asset datapoint will be created.
360
+ A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
347
361
 
348
- :param files: The image files to upload.
349
- :type files: List[bytearray]
350
- :param model:
351
- :type model: DatapointMetadataModel
362
+ :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
363
+ :type dataset_id: str
352
364
  :param _request_timeout: timeout setting for this request. If one
353
365
  number provided, it will be total request
354
366
  timeout. It can also be a pair (tuple) of
@@ -371,9 +383,8 @@ class DatasetApi:
371
383
  :return: Returns the result object.
372
384
  """ # noqa: E501
373
385
 
374
- _param = self._dataset_create_datapoint_post_serialize(
375
- files=files,
376
- model=model,
386
+ _param = self._dataset_dataset_id_datapoints_failed_get_serialize(
387
+ dataset_id=dataset_id,
377
388
  _request_auth=_request_auth,
378
389
  _content_type=_content_type,
379
390
  _headers=_headers,
@@ -381,7 +392,7 @@ class DatasetApi:
381
392
  )
382
393
 
383
394
  _response_types_map: Dict[str, Optional[str]] = {
384
- '200': "UploadDatapointsResult",
395
+ '200': "GetFailedDatapointsResult",
385
396
  }
386
397
  response_data = self.api_client.call_api(
387
398
  *_param,
@@ -395,10 +406,9 @@ class DatasetApi:
395
406
 
396
407
 
397
408
  @validate_call
398
- def dataset_create_datapoint_post_with_http_info(
409
+ def dataset_dataset_id_datapoints_failed_get_with_http_info(
399
410
  self,
400
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
401
- model: Optional[DatapointMetadataModel] = None,
411
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
402
412
  _request_timeout: Union[
403
413
  None,
404
414
  Annotated[StrictFloat, Field(gt=0)],
@@ -411,15 +421,13 @@ class DatasetApi:
411
421
  _content_type: Optional[StrictStr] = None,
412
422
  _headers: Optional[Dict[StrictStr, Any]] = None,
413
423
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
414
- ) -> ApiResponse[UploadDatapointsResult]:
415
- """Creates a single datapoint.
424
+ ) -> ApiResponse[GetFailedDatapointsResult]:
425
+ """Gets a list of all datapoints that failed to upload.
416
426
 
417
- If multiple files are uploaded, a multi asset datapoint will be created.
427
+ A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
418
428
 
419
- :param files: The image files to upload.
420
- :type files: List[bytearray]
421
- :param model:
422
- :type model: DatapointMetadataModel
429
+ :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
430
+ :type dataset_id: str
423
431
  :param _request_timeout: timeout setting for this request. If one
424
432
  number provided, it will be total request
425
433
  timeout. It can also be a pair (tuple) of
@@ -442,9 +450,8 @@ class DatasetApi:
442
450
  :return: Returns the result object.
443
451
  """ # noqa: E501
444
452
 
445
- _param = self._dataset_create_datapoint_post_serialize(
446
- files=files,
447
- model=model,
453
+ _param = self._dataset_dataset_id_datapoints_failed_get_serialize(
454
+ dataset_id=dataset_id,
448
455
  _request_auth=_request_auth,
449
456
  _content_type=_content_type,
450
457
  _headers=_headers,
@@ -452,7 +459,7 @@ class DatasetApi:
452
459
  )
453
460
 
454
461
  _response_types_map: Dict[str, Optional[str]] = {
455
- '200': "UploadDatapointsResult",
462
+ '200': "GetFailedDatapointsResult",
456
463
  }
457
464
  response_data = self.api_client.call_api(
458
465
  *_param,
@@ -466,10 +473,9 @@ class DatasetApi:
466
473
 
467
474
 
468
475
  @validate_call
469
- def dataset_create_datapoint_post_without_preload_content(
476
+ def dataset_dataset_id_datapoints_failed_get_without_preload_content(
470
477
  self,
471
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
472
- model: Optional[DatapointMetadataModel] = None,
478
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
473
479
  _request_timeout: Union[
474
480
  None,
475
481
  Annotated[StrictFloat, Field(gt=0)],
@@ -483,14 +489,12 @@ class DatasetApi:
483
489
  _headers: Optional[Dict[StrictStr, Any]] = None,
484
490
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
485
491
  ) -> RESTResponseType:
486
- """Creates a single datapoint.
492
+ """Gets a list of all datapoints that failed to upload.
487
493
 
488
- If multiple files are uploaded, a multi asset datapoint will be created.
494
+ A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
489
495
 
490
- :param files: The image files to upload.
491
- :type files: List[bytearray]
492
- :param model:
493
- :type model: DatapointMetadataModel
496
+ :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
497
+ :type dataset_id: str
494
498
  :param _request_timeout: timeout setting for this request. If one
495
499
  number provided, it will be total request
496
500
  timeout. It can also be a pair (tuple) of
@@ -513,9 +517,8 @@ class DatasetApi:
513
517
  :return: Returns the result object.
514
518
  """ # noqa: E501
515
519
 
516
- _param = self._dataset_create_datapoint_post_serialize(
517
- files=files,
518
- model=model,
520
+ _param = self._dataset_dataset_id_datapoints_failed_get_serialize(
521
+ dataset_id=dataset_id,
519
522
  _request_auth=_request_auth,
520
523
  _content_type=_content_type,
521
524
  _headers=_headers,
@@ -523,7 +526,7 @@ class DatasetApi:
523
526
  )
524
527
 
525
528
  _response_types_map: Dict[str, Optional[str]] = {
526
- '200': "UploadDatapointsResult",
529
+ '200': "GetFailedDatapointsResult",
527
530
  }
528
531
  response_data = self.api_client.call_api(
529
532
  *_param,
@@ -532,10 +535,9 @@ class DatasetApi:
532
535
  return response_data.response
533
536
 
534
537
 
535
- def _dataset_create_datapoint_post_serialize(
538
+ def _dataset_dataset_id_datapoints_failed_get_serialize(
536
539
  self,
537
- files,
538
- model,
540
+ dataset_id,
539
541
  _request_auth,
540
542
  _content_type,
541
543
  _headers,
@@ -545,7 +547,6 @@ class DatasetApi:
545
547
  _host = None
546
548
 
547
549
  _collection_formats: Dict[str, str] = {
548
- 'files': 'multi',
549
550
  }
550
551
 
551
552
  _path_params: Dict[str, str] = {}
@@ -558,13 +559,11 @@ class DatasetApi:
558
559
  _body_params: Optional[bytes] = None
559
560
 
560
561
  # process the path parameters
562
+ if dataset_id is not None:
563
+ _path_params['datasetId'] = dataset_id
561
564
  # process the query parameters
562
565
  # process the header parameters
563
566
  # process the form parameters
564
- if files is not None:
565
- _files['files'] = files
566
- if model is not None:
567
- _form_params.append(('model', model))
568
567
  # process the body parameter
569
568
 
570
569
 
@@ -578,29 +577,17 @@ class DatasetApi:
578
577
  ]
579
578
  )
580
579
 
581
- # set the HTTP header `Content-Type`
582
- if _content_type:
583
- _header_params['Content-Type'] = _content_type
584
- else:
585
- _default_content_type = (
586
- self.api_client.select_header_content_type(
587
- [
588
- 'multipart/form-data'
589
- ]
590
- )
591
- )
592
- if _default_content_type is not None:
593
- _header_params['Content-Type'] = _default_content_type
594
580
 
595
581
  # authentication setting
596
582
  _auth_settings: List[str] = [
597
- 'bearer',
598
- 'oauth2'
583
+ 'OAuth2',
584
+ 'OpenIdConnect',
585
+ 'Bearer'
599
586
  ]
600
587
 
601
588
  return self.api_client.param_serialize(
602
- method='POST',
603
- resource_path='/Dataset/CreateDatapoint',
589
+ method='GET',
590
+ resource_path='/dataset/{datasetId}/datapoints/failed',
604
591
  path_params=_path_params,
605
592
  query_params=_query_params,
606
593
  header_params=_header_params,
@@ -617,9 +604,10 @@ class DatasetApi:
617
604
 
618
605
 
619
606
  @validate_call
620
- def dataset_get_by_id_get(
607
+ def dataset_dataset_id_datapoints_get(
621
608
  self,
622
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
609
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
610
+ request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
623
611
  _request_timeout: Union[
624
612
  None,
625
613
  Annotated[StrictFloat, Field(gt=0)],
@@ -632,12 +620,14 @@ class DatasetApi:
632
620
  _content_type: Optional[StrictStr] = None,
633
621
  _headers: Optional[Dict[StrictStr, Any]] = None,
634
622
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
635
- ) -> GetDatasetByIdResult:
636
- """Gets a dataset by its id.
623
+ ) -> PagedResultOfQueryDatapointsByDatasetIdResult:
624
+ """Gets all datapoints of a dataset.
637
625
 
638
626
 
639
- :param id: The id of the dataset to get.
640
- :type id: str
627
+ :param dataset_id: The id of the dataset to get the datapoints of. (required)
628
+ :type dataset_id: str
629
+ :param request: The query model to filter, sort, and paginate the results.
630
+ :type request: QueryModel
641
631
  :param _request_timeout: timeout setting for this request. If one
642
632
  number provided, it will be total request
643
633
  timeout. It can also be a pair (tuple) of
@@ -660,8 +650,9 @@ class DatasetApi:
660
650
  :return: Returns the result object.
661
651
  """ # noqa: E501
662
652
 
663
- _param = self._dataset_get_by_id_get_serialize(
664
- id=id,
653
+ _param = self._dataset_dataset_id_datapoints_get_serialize(
654
+ dataset_id=dataset_id,
655
+ request=request,
665
656
  _request_auth=_request_auth,
666
657
  _content_type=_content_type,
667
658
  _headers=_headers,
@@ -669,7 +660,7 @@ class DatasetApi:
669
660
  )
670
661
 
671
662
  _response_types_map: Dict[str, Optional[str]] = {
672
- '200': "GetDatasetByIdResult",
663
+ '200': "PagedResultOfQueryDatapointsByDatasetIdResult",
673
664
  }
674
665
  response_data = self.api_client.call_api(
675
666
  *_param,
@@ -683,9 +674,10 @@ class DatasetApi:
683
674
 
684
675
 
685
676
  @validate_call
686
- def dataset_get_by_id_get_with_http_info(
677
+ def dataset_dataset_id_datapoints_get_with_http_info(
687
678
  self,
688
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
679
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
680
+ request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
689
681
  _request_timeout: Union[
690
682
  None,
691
683
  Annotated[StrictFloat, Field(gt=0)],
@@ -698,12 +690,14 @@ class DatasetApi:
698
690
  _content_type: Optional[StrictStr] = None,
699
691
  _headers: Optional[Dict[StrictStr, Any]] = None,
700
692
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
701
- ) -> ApiResponse[GetDatasetByIdResult]:
702
- """Gets a dataset by its id.
693
+ ) -> ApiResponse[PagedResultOfQueryDatapointsByDatasetIdResult]:
694
+ """Gets all datapoints of a dataset.
703
695
 
704
696
 
705
- :param id: The id of the dataset to get.
706
- :type id: str
697
+ :param dataset_id: The id of the dataset to get the datapoints of. (required)
698
+ :type dataset_id: str
699
+ :param request: The query model to filter, sort, and paginate the results.
700
+ :type request: QueryModel
707
701
  :param _request_timeout: timeout setting for this request. If one
708
702
  number provided, it will be total request
709
703
  timeout. It can also be a pair (tuple) of
@@ -726,8 +720,9 @@ class DatasetApi:
726
720
  :return: Returns the result object.
727
721
  """ # noqa: E501
728
722
 
729
- _param = self._dataset_get_by_id_get_serialize(
730
- id=id,
723
+ _param = self._dataset_dataset_id_datapoints_get_serialize(
724
+ dataset_id=dataset_id,
725
+ request=request,
731
726
  _request_auth=_request_auth,
732
727
  _content_type=_content_type,
733
728
  _headers=_headers,
@@ -735,7 +730,7 @@ class DatasetApi:
735
730
  )
736
731
 
737
732
  _response_types_map: Dict[str, Optional[str]] = {
738
- '200': "GetDatasetByIdResult",
733
+ '200': "PagedResultOfQueryDatapointsByDatasetIdResult",
739
734
  }
740
735
  response_data = self.api_client.call_api(
741
736
  *_param,
@@ -749,9 +744,10 @@ class DatasetApi:
749
744
 
750
745
 
751
746
  @validate_call
752
- def dataset_get_by_id_get_without_preload_content(
747
+ def dataset_dataset_id_datapoints_get_without_preload_content(
753
748
  self,
754
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
749
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
750
+ request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
755
751
  _request_timeout: Union[
756
752
  None,
757
753
  Annotated[StrictFloat, Field(gt=0)],
@@ -765,11 +761,13 @@ class DatasetApi:
765
761
  _headers: Optional[Dict[StrictStr, Any]] = None,
766
762
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
767
763
  ) -> RESTResponseType:
768
- """Gets a dataset by its id.
764
+ """Gets all datapoints of a dataset.
769
765
 
770
766
 
771
- :param id: The id of the dataset to get.
772
- :type id: str
767
+ :param dataset_id: The id of the dataset to get the datapoints of. (required)
768
+ :type dataset_id: str
769
+ :param request: The query model to filter, sort, and paginate the results.
770
+ :type request: QueryModel
773
771
  :param _request_timeout: timeout setting for this request. If one
774
772
  number provided, it will be total request
775
773
  timeout. It can also be a pair (tuple) of
@@ -792,8 +790,9 @@ class DatasetApi:
792
790
  :return: Returns the result object.
793
791
  """ # noqa: E501
794
792
 
795
- _param = self._dataset_get_by_id_get_serialize(
796
- id=id,
793
+ _param = self._dataset_dataset_id_datapoints_get_serialize(
794
+ dataset_id=dataset_id,
795
+ request=request,
797
796
  _request_auth=_request_auth,
798
797
  _content_type=_content_type,
799
798
  _headers=_headers,
@@ -801,7 +800,7 @@ class DatasetApi:
801
800
  )
802
801
 
803
802
  _response_types_map: Dict[str, Optional[str]] = {
804
- '200': "GetDatasetByIdResult",
803
+ '200': "PagedResultOfQueryDatapointsByDatasetIdResult",
805
804
  }
806
805
  response_data = self.api_client.call_api(
807
806
  *_param,
@@ -810,9 +809,10 @@ class DatasetApi:
810
809
  return response_data.response
811
810
 
812
811
 
813
- def _dataset_get_by_id_get_serialize(
812
+ def _dataset_dataset_id_datapoints_get_serialize(
814
813
  self,
815
- id,
814
+ dataset_id,
815
+ request,
816
816
  _request_auth,
817
817
  _content_type,
818
818
  _headers,
@@ -834,10 +834,12 @@ class DatasetApi:
834
834
  _body_params: Optional[bytes] = None
835
835
 
836
836
  # process the path parameters
837
+ if dataset_id is not None:
838
+ _path_params['datasetId'] = dataset_id
837
839
  # process the query parameters
838
- if id is not None:
840
+ if request is not None:
839
841
 
840
- _query_params.append(('id', id))
842
+ _query_params.append(('request', request))
841
843
 
842
844
  # process the header parameters
843
845
  # process the form parameters
@@ -857,13 +859,14 @@ class DatasetApi:
857
859
 
858
860
  # authentication setting
859
861
  _auth_settings: List[str] = [
860
- 'bearer',
861
- 'oauth2'
862
+ 'OAuth2',
863
+ 'OpenIdConnect',
864
+ 'Bearer'
862
865
  ]
863
866
 
864
867
  return self.api_client.param_serialize(
865
868
  method='GET',
866
- resource_path='/Dataset/GetById',
869
+ resource_path='/dataset/{datasetId}/datapoints',
867
870
  path_params=_path_params,
868
871
  query_params=_query_params,
869
872
  header_params=_header_params,
@@ -880,10 +883,9 @@ class DatasetApi:
880
883
 
881
884
 
882
885
  @validate_call
883
- def dataset_import_post(
886
+ def dataset_dataset_id_get(
884
887
  self,
885
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
886
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
888
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
887
889
  _request_timeout: Union[
888
890
  None,
889
891
  Annotated[StrictFloat, Field(gt=0)],
@@ -896,14 +898,12 @@ class DatasetApi:
896
898
  _content_type: Optional[StrictStr] = None,
897
899
  _headers: Optional[Dict[StrictStr, Any]] = None,
898
900
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
899
- ) -> ImportFromFileResult:
900
- """Imports datapoints from a csv file.
901
+ ) -> GetDatasetByIdResult:
902
+ """Gets a dataset by its id.
901
903
 
902
904
 
903
- :param dataset_id: The id of the dataset to import the datapoints to.
905
+ :param dataset_id: The id of the dataset to get. (required)
904
906
  :type dataset_id: str
905
- :param file: The csv file to import.
906
- :type file: bytearray
907
907
  :param _request_timeout: timeout setting for this request. If one
908
908
  number provided, it will be total request
909
909
  timeout. It can also be a pair (tuple) of
@@ -926,9 +926,8 @@ class DatasetApi:
926
926
  :return: Returns the result object.
927
927
  """ # noqa: E501
928
928
 
929
- _param = self._dataset_import_post_serialize(
929
+ _param = self._dataset_dataset_id_get_serialize(
930
930
  dataset_id=dataset_id,
931
- file=file,
932
931
  _request_auth=_request_auth,
933
932
  _content_type=_content_type,
934
933
  _headers=_headers,
@@ -936,7 +935,7 @@ class DatasetApi:
936
935
  )
937
936
 
938
937
  _response_types_map: Dict[str, Optional[str]] = {
939
- '200': "ImportFromFileResult",
938
+ '200': "GetDatasetByIdResult",
940
939
  }
941
940
  response_data = self.api_client.call_api(
942
941
  *_param,
@@ -950,10 +949,9 @@ class DatasetApi:
950
949
 
951
950
 
952
951
  @validate_call
953
- def dataset_import_post_with_http_info(
952
+ def dataset_dataset_id_get_with_http_info(
954
953
  self,
955
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
956
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
954
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
957
955
  _request_timeout: Union[
958
956
  None,
959
957
  Annotated[StrictFloat, Field(gt=0)],
@@ -966,14 +964,12 @@ class DatasetApi:
966
964
  _content_type: Optional[StrictStr] = None,
967
965
  _headers: Optional[Dict[StrictStr, Any]] = None,
968
966
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
969
- ) -> ApiResponse[ImportFromFileResult]:
970
- """Imports datapoints from a csv file.
967
+ ) -> ApiResponse[GetDatasetByIdResult]:
968
+ """Gets a dataset by its id.
971
969
 
972
970
 
973
- :param dataset_id: The id of the dataset to import the datapoints to.
971
+ :param dataset_id: The id of the dataset to get. (required)
974
972
  :type dataset_id: str
975
- :param file: The csv file to import.
976
- :type file: bytearray
977
973
  :param _request_timeout: timeout setting for this request. If one
978
974
  number provided, it will be total request
979
975
  timeout. It can also be a pair (tuple) of
@@ -996,9 +992,8 @@ class DatasetApi:
996
992
  :return: Returns the result object.
997
993
  """ # noqa: E501
998
994
 
999
- _param = self._dataset_import_post_serialize(
995
+ _param = self._dataset_dataset_id_get_serialize(
1000
996
  dataset_id=dataset_id,
1001
- file=file,
1002
997
  _request_auth=_request_auth,
1003
998
  _content_type=_content_type,
1004
999
  _headers=_headers,
@@ -1006,7 +1001,7 @@ class DatasetApi:
1006
1001
  )
1007
1002
 
1008
1003
  _response_types_map: Dict[str, Optional[str]] = {
1009
- '200': "ImportFromFileResult",
1004
+ '200': "GetDatasetByIdResult",
1010
1005
  }
1011
1006
  response_data = self.api_client.call_api(
1012
1007
  *_param,
@@ -1020,10 +1015,9 @@ class DatasetApi:
1020
1015
 
1021
1016
 
1022
1017
  @validate_call
1023
- def dataset_import_post_without_preload_content(
1018
+ def dataset_dataset_id_get_without_preload_content(
1024
1019
  self,
1025
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
1026
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
1020
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
1027
1021
  _request_timeout: Union[
1028
1022
  None,
1029
1023
  Annotated[StrictFloat, Field(gt=0)],
@@ -1037,13 +1031,11 @@ class DatasetApi:
1037
1031
  _headers: Optional[Dict[StrictStr, Any]] = None,
1038
1032
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1039
1033
  ) -> RESTResponseType:
1040
- """Imports datapoints from a csv file.
1034
+ """Gets a dataset by its id.
1041
1035
 
1042
1036
 
1043
- :param dataset_id: The id of the dataset to import the datapoints to.
1037
+ :param dataset_id: The id of the dataset to get. (required)
1044
1038
  :type dataset_id: str
1045
- :param file: The csv file to import.
1046
- :type file: bytearray
1047
1039
  :param _request_timeout: timeout setting for this request. If one
1048
1040
  number provided, it will be total request
1049
1041
  timeout. It can also be a pair (tuple) of
@@ -1066,9 +1058,8 @@ class DatasetApi:
1066
1058
  :return: Returns the result object.
1067
1059
  """ # noqa: E501
1068
1060
 
1069
- _param = self._dataset_import_post_serialize(
1061
+ _param = self._dataset_dataset_id_get_serialize(
1070
1062
  dataset_id=dataset_id,
1071
- file=file,
1072
1063
  _request_auth=_request_auth,
1073
1064
  _content_type=_content_type,
1074
1065
  _headers=_headers,
@@ -1076,7 +1067,7 @@ class DatasetApi:
1076
1067
  )
1077
1068
 
1078
1069
  _response_types_map: Dict[str, Optional[str]] = {
1079
- '200': "ImportFromFileResult",
1070
+ '200': "GetDatasetByIdResult",
1080
1071
  }
1081
1072
  response_data = self.api_client.call_api(
1082
1073
  *_param,
@@ -1085,10 +1076,9 @@ class DatasetApi:
1085
1076
  return response_data.response
1086
1077
 
1087
1078
 
1088
- def _dataset_import_post_serialize(
1079
+ def _dataset_dataset_id_get_serialize(
1089
1080
  self,
1090
1081
  dataset_id,
1091
- file,
1092
1082
  _request_auth,
1093
1083
  _content_type,
1094
1084
  _headers,
@@ -1110,15 +1100,11 @@ class DatasetApi:
1110
1100
  _body_params: Optional[bytes] = None
1111
1101
 
1112
1102
  # process the path parameters
1113
- # process the query parameters
1114
1103
  if dataset_id is not None:
1115
-
1116
- _query_params.append(('datasetId', dataset_id))
1117
-
1104
+ _path_params['datasetId'] = dataset_id
1105
+ # process the query parameters
1118
1106
  # process the header parameters
1119
1107
  # process the form parameters
1120
- if file is not None:
1121
- _files['file'] = file
1122
1108
  # process the body parameter
1123
1109
 
1124
1110
 
@@ -1132,29 +1118,17 @@ class DatasetApi:
1132
1118
  ]
1133
1119
  )
1134
1120
 
1135
- # set the HTTP header `Content-Type`
1136
- if _content_type:
1137
- _header_params['Content-Type'] = _content_type
1138
- else:
1139
- _default_content_type = (
1140
- self.api_client.select_header_content_type(
1141
- [
1142
- 'multipart/form-data'
1143
- ]
1144
- )
1145
- )
1146
- if _default_content_type is not None:
1147
- _header_params['Content-Type'] = _default_content_type
1148
1121
 
1149
1122
  # authentication setting
1150
1123
  _auth_settings: List[str] = [
1151
- 'bearer',
1152
- 'oauth2'
1124
+ 'OAuth2',
1125
+ 'OpenIdConnect',
1126
+ 'Bearer'
1153
1127
  ]
1154
1128
 
1155
1129
  return self.api_client.param_serialize(
1156
- method='POST',
1157
- resource_path='/Dataset/Import',
1130
+ method='GET',
1131
+ resource_path='/dataset/{datasetId}',
1158
1132
  path_params=_path_params,
1159
1133
  query_params=_query_params,
1160
1134
  header_params=_header_params,
@@ -1171,10 +1145,10 @@ class DatasetApi:
1171
1145
 
1172
1146
 
1173
1147
  @validate_call
1174
- def dataset_update_name_post(
1148
+ def dataset_dataset_id_name_patch(
1175
1149
  self,
1176
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
1177
- name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
1150
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
1151
+ update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
1178
1152
  _request_timeout: Union[
1179
1153
  None,
1180
1154
  Annotated[StrictFloat, Field(gt=0)],
@@ -1191,10 +1165,10 @@ class DatasetApi:
1191
1165
  """Updates the name of a dataset.
1192
1166
 
1193
1167
 
1194
- :param id: The id of the dataset to update.
1195
- :type id: str
1196
- :param name: The new name of the dataset.
1197
- :type name: str
1168
+ :param dataset_id: The id of the dataset to update. (required)
1169
+ :type dataset_id: str
1170
+ :param update_dataset_name_model: The body of the request. (required)
1171
+ :type update_dataset_name_model: UpdateDatasetNameModel
1198
1172
  :param _request_timeout: timeout setting for this request. If one
1199
1173
  number provided, it will be total request
1200
1174
  timeout. It can also be a pair (tuple) of
@@ -1217,9 +1191,9 @@ class DatasetApi:
1217
1191
  :return: Returns the result object.
1218
1192
  """ # noqa: E501
1219
1193
 
1220
- _param = self._dataset_update_name_post_serialize(
1221
- id=id,
1222
- name=name,
1194
+ _param = self._dataset_dataset_id_name_patch_serialize(
1195
+ dataset_id=dataset_id,
1196
+ update_dataset_name_model=update_dataset_name_model,
1223
1197
  _request_auth=_request_auth,
1224
1198
  _content_type=_content_type,
1225
1199
  _headers=_headers,
@@ -1227,7 +1201,7 @@ class DatasetApi:
1227
1201
  )
1228
1202
 
1229
1203
  _response_types_map: Dict[str, Optional[str]] = {
1230
- '200': None,
1204
+ '204': None,
1231
1205
  }
1232
1206
  response_data = self.api_client.call_api(
1233
1207
  *_param,
@@ -1241,10 +1215,10 @@ class DatasetApi:
1241
1215
 
1242
1216
 
1243
1217
  @validate_call
1244
- def dataset_update_name_post_with_http_info(
1218
+ def dataset_dataset_id_name_patch_with_http_info(
1245
1219
  self,
1246
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
1247
- name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
1220
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
1221
+ update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
1248
1222
  _request_timeout: Union[
1249
1223
  None,
1250
1224
  Annotated[StrictFloat, Field(gt=0)],
@@ -1261,10 +1235,10 @@ class DatasetApi:
1261
1235
  """Updates the name of a dataset.
1262
1236
 
1263
1237
 
1264
- :param id: The id of the dataset to update.
1265
- :type id: str
1266
- :param name: The new name of the dataset.
1267
- :type name: str
1238
+ :param dataset_id: The id of the dataset to update. (required)
1239
+ :type dataset_id: str
1240
+ :param update_dataset_name_model: The body of the request. (required)
1241
+ :type update_dataset_name_model: UpdateDatasetNameModel
1268
1242
  :param _request_timeout: timeout setting for this request. If one
1269
1243
  number provided, it will be total request
1270
1244
  timeout. It can also be a pair (tuple) of
@@ -1287,9 +1261,9 @@ class DatasetApi:
1287
1261
  :return: Returns the result object.
1288
1262
  """ # noqa: E501
1289
1263
 
1290
- _param = self._dataset_update_name_post_serialize(
1291
- id=id,
1292
- name=name,
1264
+ _param = self._dataset_dataset_id_name_patch_serialize(
1265
+ dataset_id=dataset_id,
1266
+ update_dataset_name_model=update_dataset_name_model,
1293
1267
  _request_auth=_request_auth,
1294
1268
  _content_type=_content_type,
1295
1269
  _headers=_headers,
@@ -1297,7 +1271,7 @@ class DatasetApi:
1297
1271
  )
1298
1272
 
1299
1273
  _response_types_map: Dict[str, Optional[str]] = {
1300
- '200': None,
1274
+ '204': None,
1301
1275
  }
1302
1276
  response_data = self.api_client.call_api(
1303
1277
  *_param,
@@ -1311,10 +1285,10 @@ class DatasetApi:
1311
1285
 
1312
1286
 
1313
1287
  @validate_call
1314
- def dataset_update_name_post_without_preload_content(
1288
+ def dataset_dataset_id_name_patch_without_preload_content(
1315
1289
  self,
1316
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
1317
- name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
1290
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
1291
+ update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
1318
1292
  _request_timeout: Union[
1319
1293
  None,
1320
1294
  Annotated[StrictFloat, Field(gt=0)],
@@ -1331,10 +1305,10 @@ class DatasetApi:
1331
1305
  """Updates the name of a dataset.
1332
1306
 
1333
1307
 
1334
- :param id: The id of the dataset to update.
1335
- :type id: str
1336
- :param name: The new name of the dataset.
1337
- :type name: str
1308
+ :param dataset_id: The id of the dataset to update. (required)
1309
+ :type dataset_id: str
1310
+ :param update_dataset_name_model: The body of the request. (required)
1311
+ :type update_dataset_name_model: UpdateDatasetNameModel
1338
1312
  :param _request_timeout: timeout setting for this request. If one
1339
1313
  number provided, it will be total request
1340
1314
  timeout. It can also be a pair (tuple) of
@@ -1357,9 +1331,9 @@ class DatasetApi:
1357
1331
  :return: Returns the result object.
1358
1332
  """ # noqa: E501
1359
1333
 
1360
- _param = self._dataset_update_name_post_serialize(
1361
- id=id,
1362
- name=name,
1334
+ _param = self._dataset_dataset_id_name_patch_serialize(
1335
+ dataset_id=dataset_id,
1336
+ update_dataset_name_model=update_dataset_name_model,
1363
1337
  _request_auth=_request_auth,
1364
1338
  _content_type=_content_type,
1365
1339
  _headers=_headers,
@@ -1367,7 +1341,7 @@ class DatasetApi:
1367
1341
  )
1368
1342
 
1369
1343
  _response_types_map: Dict[str, Optional[str]] = {
1370
- '200': None,
1344
+ '204': None,
1371
1345
  }
1372
1346
  response_data = self.api_client.call_api(
1373
1347
  *_param,
@@ -1376,10 +1350,10 @@ class DatasetApi:
1376
1350
  return response_data.response
1377
1351
 
1378
1352
 
1379
- def _dataset_update_name_post_serialize(
1353
+ def _dataset_dataset_id_name_patch_serialize(
1380
1354
  self,
1381
- id,
1382
- name,
1355
+ dataset_id,
1356
+ update_dataset_name_model,
1383
1357
  _request_auth,
1384
1358
  _content_type,
1385
1359
  _headers,
@@ -1401,31 +1375,43 @@ class DatasetApi:
1401
1375
  _body_params: Optional[bytes] = None
1402
1376
 
1403
1377
  # process the path parameters
1378
+ if dataset_id is not None:
1379
+ _path_params['datasetId'] = dataset_id
1404
1380
  # process the query parameters
1405
- if id is not None:
1406
-
1407
- _query_params.append(('id', id))
1408
-
1409
- if name is not None:
1410
-
1411
- _query_params.append(('name', name))
1412
-
1413
1381
  # process the header parameters
1414
1382
  # process the form parameters
1415
1383
  # process the body parameter
1384
+ if update_dataset_name_model is not None:
1385
+ _body_params = update_dataset_name_model
1416
1386
 
1417
1387
 
1418
1388
 
1389
+ # set the HTTP header `Content-Type`
1390
+ if _content_type:
1391
+ _header_params['Content-Type'] = _content_type
1392
+ else:
1393
+ _default_content_type = (
1394
+ self.api_client.select_header_content_type(
1395
+ [
1396
+ 'application/json',
1397
+ 'text/json',
1398
+ 'application/*+json'
1399
+ ]
1400
+ )
1401
+ )
1402
+ if _default_content_type is not None:
1403
+ _header_params['Content-Type'] = _default_content_type
1419
1404
 
1420
1405
  # authentication setting
1421
1406
  _auth_settings: List[str] = [
1422
- 'bearer',
1423
- 'oauth2'
1407
+ 'OAuth2',
1408
+ 'OpenIdConnect',
1409
+ 'Bearer'
1424
1410
  ]
1425
1411
 
1426
1412
  return self.api_client.param_serialize(
1427
- method='POST',
1428
- resource_path='/Dataset/UpdateName',
1413
+ method='PATCH',
1414
+ resource_path='/dataset/{datasetId}/name',
1429
1415
  path_params=_path_params,
1430
1416
  query_params=_query_params,
1431
1417
  header_params=_header_params,
@@ -1442,10 +1428,9 @@ class DatasetApi:
1442
1428
 
1443
1429
 
1444
1430
  @validate_call
1445
- def dataset_upload_datapoint_post(
1431
+ def dataset_dataset_id_progress_get(
1446
1432
  self,
1447
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1448
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
1433
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
1449
1434
  _request_timeout: Union[
1450
1435
  None,
1451
1436
  Annotated[StrictFloat, Field(gt=0)],
@@ -1458,14 +1443,12 @@ class DatasetApi:
1458
1443
  _content_type: Optional[StrictStr] = None,
1459
1444
  _headers: Optional[Dict[StrictStr, Any]] = None,
1460
1445
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1461
- ) -> UploadDatapointsResult:
1462
- """Creates a new multi asset datapoint.
1446
+ ) -> GetDatasetProgressResult:
1447
+ """Gets the upload progress of a dataset.
1463
1448
 
1464
1449
 
1465
- :param dataset_id: The id of the dataset to upload the datapoint to.
1450
+ :param dataset_id: The id of the dataset to get the progress of. (required)
1466
1451
  :type dataset_id: str
1467
- :param files: The image files to create the asset from.
1468
- :type files: List[bytearray]
1469
1452
  :param _request_timeout: timeout setting for this request. If one
1470
1453
  number provided, it will be total request
1471
1454
  timeout. It can also be a pair (tuple) of
@@ -1488,9 +1471,8 @@ class DatasetApi:
1488
1471
  :return: Returns the result object.
1489
1472
  """ # noqa: E501
1490
1473
 
1491
- _param = self._dataset_upload_datapoint_post_serialize(
1474
+ _param = self._dataset_dataset_id_progress_get_serialize(
1492
1475
  dataset_id=dataset_id,
1493
- files=files,
1494
1476
  _request_auth=_request_auth,
1495
1477
  _content_type=_content_type,
1496
1478
  _headers=_headers,
@@ -1498,7 +1480,7 @@ class DatasetApi:
1498
1480
  )
1499
1481
 
1500
1482
  _response_types_map: Dict[str, Optional[str]] = {
1501
- '200': "UploadDatapointsResult",
1483
+ '200': "GetDatasetProgressResult",
1502
1484
  }
1503
1485
  response_data = self.api_client.call_api(
1504
1486
  *_param,
@@ -1512,10 +1494,9 @@ class DatasetApi:
1512
1494
 
1513
1495
 
1514
1496
  @validate_call
1515
- def dataset_upload_datapoint_post_with_http_info(
1497
+ def dataset_dataset_id_progress_get_with_http_info(
1516
1498
  self,
1517
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1518
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
1499
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
1519
1500
  _request_timeout: Union[
1520
1501
  None,
1521
1502
  Annotated[StrictFloat, Field(gt=0)],
@@ -1528,14 +1509,12 @@ class DatasetApi:
1528
1509
  _content_type: Optional[StrictStr] = None,
1529
1510
  _headers: Optional[Dict[StrictStr, Any]] = None,
1530
1511
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1531
- ) -> ApiResponse[UploadDatapointsResult]:
1532
- """Creates a new multi asset datapoint.
1512
+ ) -> ApiResponse[GetDatasetProgressResult]:
1513
+ """Gets the upload progress of a dataset.
1533
1514
 
1534
1515
 
1535
- :param dataset_id: The id of the dataset to upload the datapoint to.
1516
+ :param dataset_id: The id of the dataset to get the progress of. (required)
1536
1517
  :type dataset_id: str
1537
- :param files: The image files to create the asset from.
1538
- :type files: List[bytearray]
1539
1518
  :param _request_timeout: timeout setting for this request. If one
1540
1519
  number provided, it will be total request
1541
1520
  timeout. It can also be a pair (tuple) of
@@ -1558,9 +1537,8 @@ class DatasetApi:
1558
1537
  :return: Returns the result object.
1559
1538
  """ # noqa: E501
1560
1539
 
1561
- _param = self._dataset_upload_datapoint_post_serialize(
1540
+ _param = self._dataset_dataset_id_progress_get_serialize(
1562
1541
  dataset_id=dataset_id,
1563
- files=files,
1564
1542
  _request_auth=_request_auth,
1565
1543
  _content_type=_content_type,
1566
1544
  _headers=_headers,
@@ -1568,7 +1546,7 @@ class DatasetApi:
1568
1546
  )
1569
1547
 
1570
1548
  _response_types_map: Dict[str, Optional[str]] = {
1571
- '200': "UploadDatapointsResult",
1549
+ '200': "GetDatasetProgressResult",
1572
1550
  }
1573
1551
  response_data = self.api_client.call_api(
1574
1552
  *_param,
@@ -1582,10 +1560,9 @@ class DatasetApi:
1582
1560
 
1583
1561
 
1584
1562
  @validate_call
1585
- def dataset_upload_datapoint_post_without_preload_content(
1563
+ def dataset_dataset_id_progress_get_without_preload_content(
1586
1564
  self,
1587
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1588
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
1565
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
1589
1566
  _request_timeout: Union[
1590
1567
  None,
1591
1568
  Annotated[StrictFloat, Field(gt=0)],
@@ -1599,13 +1576,11 @@ class DatasetApi:
1599
1576
  _headers: Optional[Dict[StrictStr, Any]] = None,
1600
1577
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1601
1578
  ) -> RESTResponseType:
1602
- """Creates a new multi asset datapoint.
1579
+ """Gets the upload progress of a dataset.
1603
1580
 
1604
1581
 
1605
- :param dataset_id: The id of the dataset to upload the datapoint to.
1582
+ :param dataset_id: The id of the dataset to get the progress of. (required)
1606
1583
  :type dataset_id: str
1607
- :param files: The image files to create the asset from.
1608
- :type files: List[bytearray]
1609
1584
  :param _request_timeout: timeout setting for this request. If one
1610
1585
  number provided, it will be total request
1611
1586
  timeout. It can also be a pair (tuple) of
@@ -1628,9 +1603,8 @@ class DatasetApi:
1628
1603
  :return: Returns the result object.
1629
1604
  """ # noqa: E501
1630
1605
 
1631
- _param = self._dataset_upload_datapoint_post_serialize(
1606
+ _param = self._dataset_dataset_id_progress_get_serialize(
1632
1607
  dataset_id=dataset_id,
1633
- files=files,
1634
1608
  _request_auth=_request_auth,
1635
1609
  _content_type=_content_type,
1636
1610
  _headers=_headers,
@@ -1638,7 +1612,7 @@ class DatasetApi:
1638
1612
  )
1639
1613
 
1640
1614
  _response_types_map: Dict[str, Optional[str]] = {
1641
- '200': "UploadDatapointsResult",
1615
+ '200': "GetDatasetProgressResult",
1642
1616
  }
1643
1617
  response_data = self.api_client.call_api(
1644
1618
  *_param,
@@ -1647,10 +1621,9 @@ class DatasetApi:
1647
1621
  return response_data.response
1648
1622
 
1649
1623
 
1650
- def _dataset_upload_datapoint_post_serialize(
1624
+ def _dataset_dataset_id_progress_get_serialize(
1651
1625
  self,
1652
1626
  dataset_id,
1653
- files,
1654
1627
  _request_auth,
1655
1628
  _content_type,
1656
1629
  _headers,
@@ -1660,7 +1633,6 @@ class DatasetApi:
1660
1633
  _host = None
1661
1634
 
1662
1635
  _collection_formats: Dict[str, str] = {
1663
- 'files': 'multi',
1664
1636
  }
1665
1637
 
1666
1638
  _path_params: Dict[str, str] = {}
@@ -1673,15 +1645,11 @@ class DatasetApi:
1673
1645
  _body_params: Optional[bytes] = None
1674
1646
 
1675
1647
  # process the path parameters
1676
- # process the query parameters
1677
1648
  if dataset_id is not None:
1678
-
1679
- _query_params.append(('datasetId', dataset_id))
1680
-
1649
+ _path_params['datasetId'] = dataset_id
1650
+ # process the query parameters
1681
1651
  # process the header parameters
1682
1652
  # process the form parameters
1683
- if files is not None:
1684
- _files['files'] = files
1685
1653
  # process the body parameter
1686
1654
 
1687
1655
 
@@ -1695,594 +1663,17 @@ class DatasetApi:
1695
1663
  ]
1696
1664
  )
1697
1665
 
1698
- # set the HTTP header `Content-Type`
1699
- if _content_type:
1700
- _header_params['Content-Type'] = _content_type
1701
- else:
1702
- _default_content_type = (
1703
- self.api_client.select_header_content_type(
1704
- [
1705
- 'multipart/form-data'
1706
- ]
1707
- )
1708
- )
1709
- if _default_content_type is not None:
1710
- _header_params['Content-Type'] = _default_content_type
1711
1666
 
1712
1667
  # authentication setting
1713
1668
  _auth_settings: List[str] = [
1714
- 'bearer',
1715
- 'oauth2'
1669
+ 'OAuth2',
1670
+ 'OpenIdConnect',
1671
+ 'Bearer'
1716
1672
  ]
1717
1673
 
1718
1674
  return self.api_client.param_serialize(
1719
- method='POST',
1720
- resource_path='/Dataset/UploadDatapoint',
1721
- path_params=_path_params,
1722
- query_params=_query_params,
1723
- header_params=_header_params,
1724
- body=_body_params,
1725
- post_params=_form_params,
1726
- files=_files,
1727
- auth_settings=_auth_settings,
1728
- collection_formats=_collection_formats,
1729
- _host=_host,
1730
- _request_auth=_request_auth
1731
- )
1732
-
1733
-
1734
-
1735
-
1736
- @validate_call
1737
- def dataset_upload_files_from_s3_post(
1738
- self,
1739
- upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
1740
- _request_timeout: Union[
1741
- None,
1742
- Annotated[StrictFloat, Field(gt=0)],
1743
- Tuple[
1744
- Annotated[StrictFloat, Field(gt=0)],
1745
- Annotated[StrictFloat, Field(gt=0)]
1746
- ]
1747
- ] = None,
1748
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1749
- _content_type: Optional[StrictStr] = None,
1750
- _headers: Optional[Dict[StrictStr, Any]] = None,
1751
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1752
- ) -> UploadDatapointsResult:
1753
- """Uploads files from an S3 bucket to a dataset.
1754
-
1755
- A new datapoint will be created for each file in the bucket.
1756
-
1757
- :param upload_files_from_s3_bucket_model: The body of the request.
1758
- :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
1759
- :param _request_timeout: timeout setting for this request. If one
1760
- number provided, it will be total request
1761
- timeout. It can also be a pair (tuple) of
1762
- (connection, read) timeouts.
1763
- :type _request_timeout: int, tuple(int, int), optional
1764
- :param _request_auth: set to override the auth_settings for an a single
1765
- request; this effectively ignores the
1766
- authentication in the spec for a single request.
1767
- :type _request_auth: dict, optional
1768
- :param _content_type: force content-type for the request.
1769
- :type _content_type: str, Optional
1770
- :param _headers: set to override the headers for a single
1771
- request; this effectively ignores the headers
1772
- in the spec for a single request.
1773
- :type _headers: dict, optional
1774
- :param _host_index: set to override the host_index for a single
1775
- request; this effectively ignores the host_index
1776
- in the spec for a single request.
1777
- :type _host_index: int, optional
1778
- :return: Returns the result object.
1779
- """ # noqa: E501
1780
-
1781
- _param = self._dataset_upload_files_from_s3_post_serialize(
1782
- upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
1783
- _request_auth=_request_auth,
1784
- _content_type=_content_type,
1785
- _headers=_headers,
1786
- _host_index=_host_index
1787
- )
1788
-
1789
- _response_types_map: Dict[str, Optional[str]] = {
1790
- '200': "UploadDatapointsResult",
1791
- }
1792
- response_data = self.api_client.call_api(
1793
- *_param,
1794
- _request_timeout=_request_timeout
1795
- )
1796
- response_data.read()
1797
- return self.api_client.response_deserialize(
1798
- response_data=response_data,
1799
- response_types_map=_response_types_map,
1800
- ).data
1801
-
1802
-
1803
- @validate_call
1804
- def dataset_upload_files_from_s3_post_with_http_info(
1805
- self,
1806
- upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
1807
- _request_timeout: Union[
1808
- None,
1809
- Annotated[StrictFloat, Field(gt=0)],
1810
- Tuple[
1811
- Annotated[StrictFloat, Field(gt=0)],
1812
- Annotated[StrictFloat, Field(gt=0)]
1813
- ]
1814
- ] = None,
1815
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1816
- _content_type: Optional[StrictStr] = None,
1817
- _headers: Optional[Dict[StrictStr, Any]] = None,
1818
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1819
- ) -> ApiResponse[UploadDatapointsResult]:
1820
- """Uploads files from an S3 bucket to a dataset.
1821
-
1822
- A new datapoint will be created for each file in the bucket.
1823
-
1824
- :param upload_files_from_s3_bucket_model: The body of the request.
1825
- :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
1826
- :param _request_timeout: timeout setting for this request. If one
1827
- number provided, it will be total request
1828
- timeout. It can also be a pair (tuple) of
1829
- (connection, read) timeouts.
1830
- :type _request_timeout: int, tuple(int, int), optional
1831
- :param _request_auth: set to override the auth_settings for an a single
1832
- request; this effectively ignores the
1833
- authentication in the spec for a single request.
1834
- :type _request_auth: dict, optional
1835
- :param _content_type: force content-type for the request.
1836
- :type _content_type: str, Optional
1837
- :param _headers: set to override the headers for a single
1838
- request; this effectively ignores the headers
1839
- in the spec for a single request.
1840
- :type _headers: dict, optional
1841
- :param _host_index: set to override the host_index for a single
1842
- request; this effectively ignores the host_index
1843
- in the spec for a single request.
1844
- :type _host_index: int, optional
1845
- :return: Returns the result object.
1846
- """ # noqa: E501
1847
-
1848
- _param = self._dataset_upload_files_from_s3_post_serialize(
1849
- upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
1850
- _request_auth=_request_auth,
1851
- _content_type=_content_type,
1852
- _headers=_headers,
1853
- _host_index=_host_index
1854
- )
1855
-
1856
- _response_types_map: Dict[str, Optional[str]] = {
1857
- '200': "UploadDatapointsResult",
1858
- }
1859
- response_data = self.api_client.call_api(
1860
- *_param,
1861
- _request_timeout=_request_timeout
1862
- )
1863
- response_data.read()
1864
- return self.api_client.response_deserialize(
1865
- response_data=response_data,
1866
- response_types_map=_response_types_map,
1867
- )
1868
-
1869
-
1870
- @validate_call
1871
- def dataset_upload_files_from_s3_post_without_preload_content(
1872
- self,
1873
- upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
1874
- _request_timeout: Union[
1875
- None,
1876
- Annotated[StrictFloat, Field(gt=0)],
1877
- Tuple[
1878
- Annotated[StrictFloat, Field(gt=0)],
1879
- Annotated[StrictFloat, Field(gt=0)]
1880
- ]
1881
- ] = None,
1882
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1883
- _content_type: Optional[StrictStr] = None,
1884
- _headers: Optional[Dict[StrictStr, Any]] = None,
1885
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1886
- ) -> RESTResponseType:
1887
- """Uploads files from an S3 bucket to a dataset.
1888
-
1889
- A new datapoint will be created for each file in the bucket.
1890
-
1891
- :param upload_files_from_s3_bucket_model: The body of the request.
1892
- :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
1893
- :param _request_timeout: timeout setting for this request. If one
1894
- number provided, it will be total request
1895
- timeout. It can also be a pair (tuple) of
1896
- (connection, read) timeouts.
1897
- :type _request_timeout: int, tuple(int, int), optional
1898
- :param _request_auth: set to override the auth_settings for an a single
1899
- request; this effectively ignores the
1900
- authentication in the spec for a single request.
1901
- :type _request_auth: dict, optional
1902
- :param _content_type: force content-type for the request.
1903
- :type _content_type: str, Optional
1904
- :param _headers: set to override the headers for a single
1905
- request; this effectively ignores the headers
1906
- in the spec for a single request.
1907
- :type _headers: dict, optional
1908
- :param _host_index: set to override the host_index for a single
1909
- request; this effectively ignores the host_index
1910
- in the spec for a single request.
1911
- :type _host_index: int, optional
1912
- :return: Returns the result object.
1913
- """ # noqa: E501
1914
-
1915
- _param = self._dataset_upload_files_from_s3_post_serialize(
1916
- upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
1917
- _request_auth=_request_auth,
1918
- _content_type=_content_type,
1919
- _headers=_headers,
1920
- _host_index=_host_index
1921
- )
1922
-
1923
- _response_types_map: Dict[str, Optional[str]] = {
1924
- '200': "UploadDatapointsResult",
1925
- }
1926
- response_data = self.api_client.call_api(
1927
- *_param,
1928
- _request_timeout=_request_timeout
1929
- )
1930
- return response_data.response
1931
-
1932
-
1933
- def _dataset_upload_files_from_s3_post_serialize(
1934
- self,
1935
- upload_files_from_s3_bucket_model,
1936
- _request_auth,
1937
- _content_type,
1938
- _headers,
1939
- _host_index,
1940
- ) -> RequestSerialized:
1941
-
1942
- _host = None
1943
-
1944
- _collection_formats: Dict[str, str] = {
1945
- }
1946
-
1947
- _path_params: Dict[str, str] = {}
1948
- _query_params: List[Tuple[str, str]] = []
1949
- _header_params: Dict[str, Optional[str]] = _headers or {}
1950
- _form_params: List[Tuple[str, str]] = []
1951
- _files: Dict[
1952
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1953
- ] = {}
1954
- _body_params: Optional[bytes] = None
1955
-
1956
- # process the path parameters
1957
- # process the query parameters
1958
- # process the header parameters
1959
- # process the form parameters
1960
- # process the body parameter
1961
- if upload_files_from_s3_bucket_model is not None:
1962
- _body_params = upload_files_from_s3_bucket_model
1963
-
1964
-
1965
- # set the HTTP header `Accept`
1966
- if 'Accept' not in _header_params:
1967
- _header_params['Accept'] = self.api_client.select_header_accept(
1968
- [
1969
- 'text/plain',
1970
- 'application/json',
1971
- 'text/json'
1972
- ]
1973
- )
1974
-
1975
- # set the HTTP header `Content-Type`
1976
- if _content_type:
1977
- _header_params['Content-Type'] = _content_type
1978
- else:
1979
- _default_content_type = (
1980
- self.api_client.select_header_content_type(
1981
- [
1982
- 'application/json',
1983
- 'text/json',
1984
- 'application/*+json'
1985
- ]
1986
- )
1987
- )
1988
- if _default_content_type is not None:
1989
- _header_params['Content-Type'] = _default_content_type
1990
-
1991
- # authentication setting
1992
- _auth_settings: List[str] = [
1993
- 'bearer',
1994
- 'oauth2'
1995
- ]
1996
-
1997
- return self.api_client.param_serialize(
1998
- method='POST',
1999
- resource_path='/Dataset/UploadFilesFromS3',
2000
- path_params=_path_params,
2001
- query_params=_query_params,
2002
- header_params=_header_params,
2003
- body=_body_params,
2004
- post_params=_form_params,
2005
- files=_files,
2006
- auth_settings=_auth_settings,
2007
- collection_formats=_collection_formats,
2008
- _host=_host,
2009
- _request_auth=_request_auth
2010
- )
2011
-
2012
-
2013
-
2014
-
2015
- @validate_call
2016
- def dataset_upload_images_to_dataset_post(
2017
- self,
2018
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
2019
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
2020
- _request_timeout: Union[
2021
- None,
2022
- Annotated[StrictFloat, Field(gt=0)],
2023
- Tuple[
2024
- Annotated[StrictFloat, Field(gt=0)],
2025
- Annotated[StrictFloat, Field(gt=0)]
2026
- ]
2027
- ] = None,
2028
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2029
- _content_type: Optional[StrictStr] = None,
2030
- _headers: Optional[Dict[StrictStr, Any]] = None,
2031
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2032
- ) -> None:
2033
- """Uploads images to a dataset.
2034
-
2035
- If multiple files are uploaded, a new datapoint will be created for each file.
2036
-
2037
- :param dataset_id: The id of the dataset to upload the images to.
2038
- :type dataset_id: str
2039
- :param files: The image files to upload.
2040
- :type files: List[bytearray]
2041
- :param _request_timeout: timeout setting for this request. If one
2042
- number provided, it will be total request
2043
- timeout. It can also be a pair (tuple) of
2044
- (connection, read) timeouts.
2045
- :type _request_timeout: int, tuple(int, int), optional
2046
- :param _request_auth: set to override the auth_settings for an a single
2047
- request; this effectively ignores the
2048
- authentication in the spec for a single request.
2049
- :type _request_auth: dict, optional
2050
- :param _content_type: force content-type for the request.
2051
- :type _content_type: str, Optional
2052
- :param _headers: set to override the headers for a single
2053
- request; this effectively ignores the headers
2054
- in the spec for a single request.
2055
- :type _headers: dict, optional
2056
- :param _host_index: set to override the host_index for a single
2057
- request; this effectively ignores the host_index
2058
- in the spec for a single request.
2059
- :type _host_index: int, optional
2060
- :return: Returns the result object.
2061
- """ # noqa: E501
2062
-
2063
- _param = self._dataset_upload_images_to_dataset_post_serialize(
2064
- dataset_id=dataset_id,
2065
- files=files,
2066
- _request_auth=_request_auth,
2067
- _content_type=_content_type,
2068
- _headers=_headers,
2069
- _host_index=_host_index
2070
- )
2071
-
2072
- _response_types_map: Dict[str, Optional[str]] = {
2073
- '200': None,
2074
- }
2075
- response_data = self.api_client.call_api(
2076
- *_param,
2077
- _request_timeout=_request_timeout
2078
- )
2079
- response_data.read()
2080
- return self.api_client.response_deserialize(
2081
- response_data=response_data,
2082
- response_types_map=_response_types_map,
2083
- ).data
2084
-
2085
-
2086
- @validate_call
2087
- def dataset_upload_images_to_dataset_post_with_http_info(
2088
- self,
2089
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
2090
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
2091
- _request_timeout: Union[
2092
- None,
2093
- Annotated[StrictFloat, Field(gt=0)],
2094
- Tuple[
2095
- Annotated[StrictFloat, Field(gt=0)],
2096
- Annotated[StrictFloat, Field(gt=0)]
2097
- ]
2098
- ] = None,
2099
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2100
- _content_type: Optional[StrictStr] = None,
2101
- _headers: Optional[Dict[StrictStr, Any]] = None,
2102
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2103
- ) -> ApiResponse[None]:
2104
- """Uploads images to a dataset.
2105
-
2106
- If multiple files are uploaded, a new datapoint will be created for each file.
2107
-
2108
- :param dataset_id: The id of the dataset to upload the images to.
2109
- :type dataset_id: str
2110
- :param files: The image files to upload.
2111
- :type files: List[bytearray]
2112
- :param _request_timeout: timeout setting for this request. If one
2113
- number provided, it will be total request
2114
- timeout. It can also be a pair (tuple) of
2115
- (connection, read) timeouts.
2116
- :type _request_timeout: int, tuple(int, int), optional
2117
- :param _request_auth: set to override the auth_settings for an a single
2118
- request; this effectively ignores the
2119
- authentication in the spec for a single request.
2120
- :type _request_auth: dict, optional
2121
- :param _content_type: force content-type for the request.
2122
- :type _content_type: str, Optional
2123
- :param _headers: set to override the headers for a single
2124
- request; this effectively ignores the headers
2125
- in the spec for a single request.
2126
- :type _headers: dict, optional
2127
- :param _host_index: set to override the host_index for a single
2128
- request; this effectively ignores the host_index
2129
- in the spec for a single request.
2130
- :type _host_index: int, optional
2131
- :return: Returns the result object.
2132
- """ # noqa: E501
2133
-
2134
- _param = self._dataset_upload_images_to_dataset_post_serialize(
2135
- dataset_id=dataset_id,
2136
- files=files,
2137
- _request_auth=_request_auth,
2138
- _content_type=_content_type,
2139
- _headers=_headers,
2140
- _host_index=_host_index
2141
- )
2142
-
2143
- _response_types_map: Dict[str, Optional[str]] = {
2144
- '200': None,
2145
- }
2146
- response_data = self.api_client.call_api(
2147
- *_param,
2148
- _request_timeout=_request_timeout
2149
- )
2150
- response_data.read()
2151
- return self.api_client.response_deserialize(
2152
- response_data=response_data,
2153
- response_types_map=_response_types_map,
2154
- )
2155
-
2156
-
2157
- @validate_call
2158
- def dataset_upload_images_to_dataset_post_without_preload_content(
2159
- self,
2160
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
2161
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
2162
- _request_timeout: Union[
2163
- None,
2164
- Annotated[StrictFloat, Field(gt=0)],
2165
- Tuple[
2166
- Annotated[StrictFloat, Field(gt=0)],
2167
- Annotated[StrictFloat, Field(gt=0)]
2168
- ]
2169
- ] = None,
2170
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2171
- _content_type: Optional[StrictStr] = None,
2172
- _headers: Optional[Dict[StrictStr, Any]] = None,
2173
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2174
- ) -> RESTResponseType:
2175
- """Uploads images to a dataset.
2176
-
2177
- If multiple files are uploaded, a new datapoint will be created for each file.
2178
-
2179
- :param dataset_id: The id of the dataset to upload the images to.
2180
- :type dataset_id: str
2181
- :param files: The image files to upload.
2182
- :type files: List[bytearray]
2183
- :param _request_timeout: timeout setting for this request. If one
2184
- number provided, it will be total request
2185
- timeout. It can also be a pair (tuple) of
2186
- (connection, read) timeouts.
2187
- :type _request_timeout: int, tuple(int, int), optional
2188
- :param _request_auth: set to override the auth_settings for an a single
2189
- request; this effectively ignores the
2190
- authentication in the spec for a single request.
2191
- :type _request_auth: dict, optional
2192
- :param _content_type: force content-type for the request.
2193
- :type _content_type: str, Optional
2194
- :param _headers: set to override the headers for a single
2195
- request; this effectively ignores the headers
2196
- in the spec for a single request.
2197
- :type _headers: dict, optional
2198
- :param _host_index: set to override the host_index for a single
2199
- request; this effectively ignores the host_index
2200
- in the spec for a single request.
2201
- :type _host_index: int, optional
2202
- :return: Returns the result object.
2203
- """ # noqa: E501
2204
-
2205
- _param = self._dataset_upload_images_to_dataset_post_serialize(
2206
- dataset_id=dataset_id,
2207
- files=files,
2208
- _request_auth=_request_auth,
2209
- _content_type=_content_type,
2210
- _headers=_headers,
2211
- _host_index=_host_index
2212
- )
2213
-
2214
- _response_types_map: Dict[str, Optional[str]] = {
2215
- '200': None,
2216
- }
2217
- response_data = self.api_client.call_api(
2218
- *_param,
2219
- _request_timeout=_request_timeout
2220
- )
2221
- return response_data.response
2222
-
2223
-
2224
- def _dataset_upload_images_to_dataset_post_serialize(
2225
- self,
2226
- dataset_id,
2227
- files,
2228
- _request_auth,
2229
- _content_type,
2230
- _headers,
2231
- _host_index,
2232
- ) -> RequestSerialized:
2233
-
2234
- _host = None
2235
-
2236
- _collection_formats: Dict[str, str] = {
2237
- 'files': 'multi',
2238
- }
2239
-
2240
- _path_params: Dict[str, str] = {}
2241
- _query_params: List[Tuple[str, str]] = []
2242
- _header_params: Dict[str, Optional[str]] = _headers or {}
2243
- _form_params: List[Tuple[str, str]] = []
2244
- _files: Dict[
2245
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2246
- ] = {}
2247
- _body_params: Optional[bytes] = None
2248
-
2249
- # process the path parameters
2250
- # process the query parameters
2251
- if dataset_id is not None:
2252
-
2253
- _query_params.append(('datasetId', dataset_id))
2254
-
2255
- # process the header parameters
2256
- # process the form parameters
2257
- if files is not None:
2258
- _files['files'] = files
2259
- # process the body parameter
2260
-
2261
-
2262
-
2263
- # set the HTTP header `Content-Type`
2264
- if _content_type:
2265
- _header_params['Content-Type'] = _content_type
2266
- else:
2267
- _default_content_type = (
2268
- self.api_client.select_header_content_type(
2269
- [
2270
- 'multipart/form-data'
2271
- ]
2272
- )
2273
- )
2274
- if _default_content_type is not None:
2275
- _header_params['Content-Type'] = _default_content_type
2276
-
2277
- # authentication setting
2278
- _auth_settings: List[str] = [
2279
- 'bearer',
2280
- 'oauth2'
2281
- ]
2282
-
2283
- return self.api_client.param_serialize(
2284
- method='POST',
2285
- resource_path='/Dataset/UploadImagesToDataset',
1675
+ method='GET',
1676
+ resource_path='/dataset/{datasetId}/progress',
2286
1677
  path_params=_path_params,
2287
1678
  query_params=_query_params,
2288
1679
  header_params=_header_params,