rapidata 2.35.1__py3-none-any.whl → 3.0.0a8__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 (790) hide show
  1. rapidata/__init__.py +25 -16
  2. rapidata/api_client/__init__.py +84 -408
  3. rapidata/api_client/api/__init__.py +6 -2
  4. rapidata/api_client/api/asset_api.py +853 -0
  5. rapidata/api_client/api/audience_api.py +2505 -0
  6. rapidata/api_client/api/benchmark_api.py +904 -245
  7. rapidata/api_client/api/campaign_api.py +582 -24
  8. rapidata/api_client/api/client_api.py +38 -33
  9. rapidata/api_client/api/compare_workflow_api.py +11 -10
  10. rapidata/api_client/api/customer_rapid_api.py +364 -123
  11. rapidata/api_client/api/datapoint_api.py +8 -6
  12. rapidata/api_client/api/dataset_api.py +240 -1516
  13. rapidata/api_client/api/evaluation_workflow_api.py +29 -82
  14. rapidata/api_client/api/feedback_api.py +11 -11
  15. rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
  16. rapidata/api_client/api/identity_api.py +26 -300
  17. rapidata/api_client/api/job_api.py +3902 -0
  18. rapidata/api_client/api/job_definition_api.py +319 -0
  19. rapidata/api_client/api/job_revision_api.py +335 -0
  20. rapidata/api_client/api/leaderboard_api.py +140 -2067
  21. rapidata/api_client/api/newsletter_api.py +20 -19
  22. rapidata/api_client/api/order_api.py +375 -91
  23. rapidata/api_client/api/participant_api.py +80 -118
  24. rapidata/api_client/api/pipeline_api.py +24 -1480
  25. rapidata/api_client/api/prompt_api.py +11 -11
  26. rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
  27. rapidata/api_client/api/sample_api.py +300 -0
  28. rapidata/api_client/api/simple_workflow_api.py +11 -10
  29. rapidata/api_client/api/survey_api.py +304 -0
  30. rapidata/api_client/api/user_rapid_api.py +35 -31
  31. rapidata/api_client/api/validation_set_api.py +377 -1835
  32. rapidata/api_client/api/workflow_api.py +32 -26
  33. rapidata/api_client/api_client.py +2 -2
  34. rapidata/api_client/configuration.py +16 -29
  35. rapidata/api_client/exceptions.py +2 -2
  36. rapidata/api_client/models/__init__.py +65 -382
  37. rapidata/api_client/models/ab_test_selection_a_inner.py +1 -1
  38. rapidata/api_client/models/add_rapid_to_audience_model.py +144 -0
  39. rapidata/api_client/models/add_user_response_result.py +10 -5
  40. rapidata/api_client/models/add_validation_rapid_model.py +49 -26
  41. rapidata/api_client/models/add_validation_rapid_model_asset.py +154 -0
  42. rapidata/api_client/models/add_validation_rapid_model_context_asset.py +160 -0
  43. rapidata/api_client/models/add_validation_rapid_model_metadata_inner.py +140 -0
  44. rapidata/api_client/models/add_validation_rapid_model_truth.py +7 -1
  45. rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
  46. rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
  47. rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
  48. rapidata/api_client/models/age_user_filter_model.py +2 -2
  49. rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
  50. rapidata/api_client/models/aggregated_orders_model.py +98 -0
  51. rapidata/api_client/models/aggregator_type.py +4 -2
  52. rapidata/api_client/models/and_filter.py +121 -0
  53. rapidata/api_client/models/and_filter_filters_inner.py +282 -0
  54. rapidata/api_client/models/are_rapids_active_result.py +2 -2
  55. rapidata/api_client/models/asset_metadata.py +11 -9
  56. rapidata/api_client/models/asset_type.py +40 -0
  57. rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
  58. rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
  59. rapidata/api_client/models/audience_job_state.py +38 -0
  60. rapidata/api_client/models/audience_status.py +39 -0
  61. rapidata/api_client/models/benchmark_query_result.py +5 -3
  62. rapidata/api_client/models/boost_leaderboard_model.py +5 -5
  63. rapidata/api_client/models/boost_mode.py +37 -0
  64. rapidata/api_client/models/boost_query_result.py +7 -10
  65. rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
  66. rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
  67. rapidata/api_client/models/boosting_profile.py +91 -0
  68. rapidata/api_client/models/box_shape.py +4 -33
  69. rapidata/api_client/models/campaign_filter.py +98 -0
  70. rapidata/api_client/models/campaign_query_result.py +15 -13
  71. rapidata/api_client/models/campaign_status.py +2 -2
  72. rapidata/api_client/models/change_boost_model.py +89 -0
  73. rapidata/api_client/models/classification_metadata.py +12 -1
  74. rapidata/api_client/models/classify_payload.py +14 -15
  75. rapidata/api_client/models/classify_payload_category.py +89 -0
  76. rapidata/api_client/models/client_model.py +25 -35
  77. rapidata/api_client/models/clients_query_result.py +5 -5
  78. rapidata/api_client/models/clone_order_model.py +4 -4
  79. rapidata/api_client/models/clone_order_result.py +9 -4
  80. rapidata/api_client/models/compare_rapid_blueprint.py +5 -3
  81. rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
  82. rapidata/api_client/models/compare_workflow_config.py +34 -23
  83. rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
  84. rapidata/api_client/models/compare_workflow_config_model.py +15 -5
  85. rapidata/api_client/models/compare_workflow_model.py +34 -6
  86. rapidata/api_client/models/compare_workflow_model1.py +20 -9
  87. rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
  88. rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
  89. rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +1 -1
  90. rapidata/api_client/models/comparison_operator.py +2 -2
  91. rapidata/api_client/models/conditional_validation_selection.py +6 -11
  92. rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
  93. rapidata/api_client/models/confidence_interval.py +89 -0
  94. rapidata/api_client/models/count_metadata.py +12 -1
  95. rapidata/api_client/models/country_filter.py +98 -0
  96. rapidata/api_client/models/create_audience_request.py +122 -0
  97. rapidata/api_client/models/create_audience_result.py +87 -0
  98. rapidata/api_client/models/create_benchmark_model.py +5 -5
  99. rapidata/api_client/models/create_benchmark_participant_model.py +5 -5
  100. rapidata/api_client/models/create_benchmark_participant_result.py +4 -4
  101. rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
  102. rapidata/api_client/models/create_benchmark_result.py +2 -2
  103. rapidata/api_client/models/create_bridge_token_result.py +2 -2
  104. rapidata/api_client/models/create_client_model.py +6 -13
  105. rapidata/api_client/models/create_complex_order_model.py +9 -9
  106. rapidata/api_client/models/create_complex_order_result.py +2 -2
  107. rapidata/api_client/models/create_customer_client_result.py +2 -2
  108. rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
  109. rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
  110. rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
  111. rapidata/api_client/models/create_datapoint_model.py +124 -0
  112. rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
  113. rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
  114. rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
  115. rapidata/api_client/models/create_datapoint_result.py +2 -2
  116. rapidata/api_client/models/create_dataset_endpoint_input.py +87 -0
  117. rapidata/api_client/models/create_dataset_endpoint_output.py +87 -0
  118. rapidata/api_client/models/create_demographic_rapid_model.py +45 -7
  119. rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
  120. rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
  121. rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
  122. rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
  123. rapidata/api_client/models/create_job_definition_endpoint_input.py +119 -0
  124. rapidata/api_client/models/create_job_definition_endpoint_output.py +89 -0
  125. rapidata/api_client/models/create_job_endpoint_input.py +100 -0
  126. rapidata/api_client/models/create_job_endpoint_output.py +89 -0
  127. rapidata/api_client/models/create_job_revision_endpoint_input.py +127 -0
  128. rapidata/api_client/models/create_job_revision_endpoint_output.py +89 -0
  129. rapidata/api_client/models/create_leaderboard_model.py +42 -15
  130. rapidata/api_client/models/create_leaderboard_result.py +2 -2
  131. rapidata/api_client/models/create_order_definition_model.py +119 -0
  132. rapidata/api_client/models/create_order_definition_result.py +87 -0
  133. rapidata/api_client/models/create_order_definition_revision_model.py +117 -0
  134. rapidata/api_client/models/create_order_definition_revision_result.py +87 -0
  135. rapidata/api_client/models/create_order_model.py +30 -101
  136. rapidata/api_client/models/create_order_model_referee.py +12 -12
  137. rapidata/api_client/models/create_order_model_workflow.py +35 -21
  138. rapidata/api_client/models/create_order_result.py +2 -2
  139. rapidata/api_client/models/create_rapid_result.py +2 -2
  140. rapidata/api_client/models/create_sample_model.py +13 -7
  141. rapidata/api_client/models/create_sample_model_asset.py +154 -0
  142. rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
  143. rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
  144. rapidata/api_client/models/create_unsupported_order_model.py +6 -6
  145. rapidata/api_client/models/create_validation_set_model.py +5 -5
  146. rapidata/api_client/models/datapoint_model.py +3 -3
  147. rapidata/api_client/models/datapoint_state.py +2 -2
  148. rapidata/api_client/models/definition_type.py +49 -0
  149. rapidata/api_client/models/demographic_filter.py +100 -0
  150. rapidata/api_client/models/dynamic_client_registration_request.py +21 -36
  151. rapidata/api_client/models/early_stopping_referee_model.py +3 -3
  152. rapidata/api_client/models/effort_capped_selection.py +2 -11
  153. rapidata/api_client/models/elo_config.py +2 -2
  154. rapidata/api_client/models/elo_config_model.py +6 -6
  155. rapidata/api_client/models/entity_tag_header_value.py +93 -0
  156. rapidata/api_client/models/evaluation_workflow_config.py +13 -3
  157. rapidata/api_client/models/evaluation_workflow_model.py +16 -6
  158. rapidata/api_client/models/existing_asset_input.py +109 -0
  159. rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
  160. rapidata/api_client/models/feature_flag.py +2 -2
  161. rapidata/api_client/models/feature_flag_model.py +6 -6
  162. rapidata/api_client/models/feedback_model.py +7 -7
  163. rapidata/api_client/models/file_asset.py +3 -5
  164. rapidata/api_client/models/file_asset_input_file.py +8 -22
  165. rapidata/api_client/models/file_asset_metadata_value.py +252 -0
  166. rapidata/api_client/models/file_asset_model_metadata_value.py +18 -88
  167. rapidata/api_client/models/file_stream_result.py +122 -0
  168. rapidata/api_client/models/file_type.py +2 -2
  169. rapidata/api_client/models/file_type_metadata.py +11 -6
  170. rapidata/api_client/models/file_type_metadata_model.py +2 -8
  171. rapidata/api_client/models/filter.py +7 -25
  172. rapidata/api_client/models/filter_operator.py +2 -2
  173. rapidata/api_client/models/fork_benchmark_result.py +87 -0
  174. rapidata/api_client/models/form_file_wrapper.py +17 -2
  175. rapidata/api_client/models/free_text_payload.py +10 -3
  176. rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
  177. rapidata/api_client/models/gender_user_filter_model.py +2 -2
  178. rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
  179. rapidata/api_client/models/get_asset_metadata_result.py +100 -0
  180. rapidata/api_client/models/get_audience_by_id_result.py +118 -0
  181. rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
  182. rapidata/api_client/models/get_benchmark_by_id_result.py +8 -4
  183. rapidata/api_client/models/get_boost_result.py +97 -0
  184. rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
  185. rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
  186. rapidata/api_client/models/get_compare_ab_summary_result.py +5 -5
  187. rapidata/api_client/models/get_compare_workflow_results_model.py +7 -7
  188. rapidata/api_client/models/get_compare_workflow_results_result.py +5 -5
  189. rapidata/api_client/models/get_datapoint_by_id_result.py +10 -21
  190. rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
  191. rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
  192. rapidata/api_client/models/get_dataset_progress_result.py +2 -2
  193. rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
  194. rapidata/api_client/models/get_failed_datapoints_result.py +5 -5
  195. rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
  196. rapidata/api_client/models/get_file_metadata_result.py +100 -0
  197. rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
  198. rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
  199. rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
  200. rapidata/api_client/models/get_job_by_id_endpoint_output.py +130 -0
  201. rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py +95 -0
  202. rapidata/api_client/models/get_job_revision_endpoint_output.py +133 -0
  203. rapidata/api_client/models/get_leaderboard_by_id_result.py +31 -4
  204. rapidata/api_client/models/get_order_by_id_result.py +12 -5
  205. rapidata/api_client/models/get_participant_by_id_result.py +4 -6
  206. rapidata/api_client/models/get_pipeline_by_id_result.py +5 -5
  207. rapidata/api_client/models/get_public_orders_result.py +2 -2
  208. rapidata/api_client/models/get_public_responses_result.py +95 -0
  209. rapidata/api_client/models/get_public_responses_result_response.py +112 -0
  210. rapidata/api_client/models/get_rapid_responses_result.py +6 -12
  211. rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
  212. rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
  213. rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
  214. rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
  215. rapidata/api_client/models/get_responses_result.py +5 -5
  216. rapidata/api_client/models/get_responses_result_response.py +103 -0
  217. rapidata/api_client/models/get_sample_by_id_result.py +125 -0
  218. rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
  219. rapidata/api_client/models/get_standing_by_id_result.py +6 -14
  220. rapidata/api_client/models/get_validation_rapids_result.py +32 -41
  221. rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
  222. rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
  223. rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
  224. rapidata/api_client/models/get_workflow_progress_result.py +5 -11
  225. rapidata/api_client/models/get_workflow_results_result.py +34 -23
  226. rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
  227. rapidata/api_client/models/google_one_tap_login_model.py +4 -4
  228. rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
  229. rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
  230. rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
  231. rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
  232. rapidata/api_client/models/i_artifact_model.py +182 -0
  233. rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
  234. rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
  235. rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
  236. rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
  237. rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
  238. rapidata/api_client/models/i_asset.py +170 -0
  239. rapidata/api_client/models/i_asset_file_asset.py +111 -0
  240. rapidata/api_client/models/i_asset_input.py +156 -0
  241. rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
  242. rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
  243. rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
  244. rapidata/api_client/models/i_asset_model.py +170 -0
  245. rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
  246. rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
  247. rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
  248. rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
  249. rapidata/api_client/models/i_asset_multi_asset.py +121 -0
  250. rapidata/api_client/models/i_asset_null_asset.py +109 -0
  251. rapidata/api_client/models/i_asset_text_asset.py +111 -0
  252. rapidata/api_client/models/i_audience_filter.py +184 -0
  253. rapidata/api_client/models/i_audience_filter_and_audience_filter.py +106 -0
  254. rapidata/api_client/models/i_audience_filter_country_audience_filter.py +96 -0
  255. rapidata/api_client/models/i_audience_filter_country_filter.py +96 -0
  256. rapidata/api_client/models/i_audience_filter_language_audience_filter.py +96 -0
  257. rapidata/api_client/models/i_audience_filter_language_filter.py +96 -0
  258. rapidata/api_client/models/i_audience_filter_not_audience_filter.py +102 -0
  259. rapidata/api_client/models/i_audience_filter_or_audience_filter.py +106 -0
  260. rapidata/api_client/models/i_campaign_filter.py +296 -0
  261. rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
  262. rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
  263. rapidata/api_client/models/i_campaign_filter_campaign_session_count_filter.py +101 -0
  264. rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
  265. rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
  266. rapidata/api_client/models/i_campaign_filter_device_filter.py +106 -0
  267. rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
  268. rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
  269. rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
  270. rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
  271. rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
  272. rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
  273. rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
  274. rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
  275. rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
  276. rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
  277. rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
  278. rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
  279. rapidata/api_client/models/i_dataset_model.py +126 -0
  280. rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
  281. rapidata/api_client/models/i_metadata.py +252 -0
  282. rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
  283. rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
  284. rapidata/api_client/models/i_metadata_duration_metadata.py +110 -0
  285. rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
  286. rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
  287. rapidata/api_client/models/i_metadata_input.py +126 -0
  288. rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
  289. rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
  290. rapidata/api_client/models/i_metadata_model.py +252 -0
  291. rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
  292. rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
  293. rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
  294. rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
  295. rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
  296. rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
  297. rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
  298. rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
  299. rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
  300. rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
  301. rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
  302. rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
  303. rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
  304. rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
  305. rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
  306. rapidata/api_client/models/i_order_workflow_model.py +168 -0
  307. rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
  308. rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
  309. rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
  310. rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
  311. rapidata/api_client/models/i_pair_maker_config.py +126 -0
  312. rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
  313. rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
  314. rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
  315. rapidata/api_client/models/i_pair_maker_information.py +126 -0
  316. rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
  317. rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
  318. rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
  319. rapidata/api_client/models/i_pipeline_model.py +126 -0
  320. rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
  321. rapidata/api_client/models/i_pipeline_step_model.py +168 -0
  322. rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
  323. rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
  324. rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
  325. rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
  326. rapidata/api_client/models/i_rapid_blueprint.py +252 -0
  327. rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
  328. rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
  329. rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
  330. rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +105 -0
  331. rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
  332. rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
  333. rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
  334. rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
  335. rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
  336. rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
  337. rapidata/api_client/models/i_rapid_payload.py +252 -0
  338. rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
  339. rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
  340. rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
  341. rapidata/api_client/models/i_rapid_payload_free_text_payload.py +105 -0
  342. rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
  343. rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
  344. rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
  345. rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
  346. rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
  347. rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
  348. rapidata/api_client/models/i_rapid_result.py +266 -0
  349. rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
  350. rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
  351. rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
  352. rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
  353. rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
  354. rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
  355. rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
  356. rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
  357. rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
  358. rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
  359. rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
  360. rapidata/api_client/models/i_referee_config.py +154 -0
  361. rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
  362. rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
  363. rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
  364. rapidata/api_client/models/i_referee_info.py +154 -0
  365. rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
  366. rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
  367. rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
  368. rapidata/api_client/models/i_referee_model.py +140 -0
  369. rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
  370. rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
  371. rapidata/api_client/models/i_selection.py +240 -0
  372. rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
  373. rapidata/api_client/models/i_selection_capped_selection.py +108 -0
  374. rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
  375. rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
  376. rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
  377. rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
  378. rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
  379. rapidata/api_client/models/i_selection_static_selection.py +96 -0
  380. rapidata/api_client/models/i_selection_validation_selection.py +98 -0
  381. rapidata/api_client/models/i_user_filter_model.py +296 -0
  382. rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
  383. rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
  384. rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
  385. rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
  386. rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
  387. rapidata/api_client/models/i_user_filter_model_device_user_filter_model.py +104 -0
  388. rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
  389. rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
  390. rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
  391. rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
  392. rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
  393. rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
  394. rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
  395. rapidata/api_client/models/i_validation_metadata_input.py +140 -0
  396. rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
  397. rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
  398. rapidata/api_client/models/i_validation_truth.py +280 -0
  399. rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
  400. rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
  401. rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
  402. rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
  403. rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
  404. rapidata/api_client/models/i_validation_truth_locate_box_truth.py +108 -0
  405. rapidata/api_client/models/i_validation_truth_model.py +294 -0
  406. rapidata/api_client/models/i_validation_truth_model_attach_category_truth_model.py +96 -0
  407. rapidata/api_client/models/i_validation_truth_model_bounding_box_truth_model.py +102 -0
  408. rapidata/api_client/models/i_validation_truth_model_classify_truth_model.py +96 -0
  409. rapidata/api_client/models/i_validation_truth_model_compare_truth_model.py +96 -0
  410. rapidata/api_client/models/i_validation_truth_model_empty_validation_truth_model.py +94 -0
  411. rapidata/api_client/models/i_validation_truth_model_line_truth_model.py +94 -0
  412. rapidata/api_client/models/i_validation_truth_model_locate_box_truth_model.py +108 -0
  413. rapidata/api_client/models/i_validation_truth_model_multi_compare_truth_model.py +96 -0
  414. rapidata/api_client/models/i_validation_truth_model_named_entity_truth_model.py +104 -0
  415. rapidata/api_client/models/i_validation_truth_model_polygon_truth_model.py +94 -0
  416. rapidata/api_client/models/i_validation_truth_model_scrub_truth_model.py +104 -0
  417. rapidata/api_client/models/i_validation_truth_model_skip_truth_model.py +94 -0
  418. rapidata/api_client/models/i_validation_truth_model_transcription_truth_model.py +115 -0
  419. rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
  420. rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
  421. rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
  422. rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
  423. rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
  424. rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
  425. rapidata/api_client/models/i_workflow_config.py +168 -0
  426. rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
  427. rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
  428. rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
  429. rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
  430. rapidata/api_client/models/i_workflow_model.py +168 -0
  431. rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
  432. rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
  433. rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
  434. rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
  435. rapidata/api_client/models/image_dimension_metadata.py +12 -1
  436. rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
  437. rapidata/api_client/models/inspect_report_result.py +2 -2
  438. rapidata/api_client/models/job_definition_revision_state.py +38 -0
  439. rapidata/api_client/models/json_web_key.py +2 -36
  440. rapidata/api_client/models/json_web_key_set.py +2 -22
  441. rapidata/api_client/models/labeling_selection.py +11 -13
  442. rapidata/api_client/models/language_filter.py +98 -0
  443. rapidata/api_client/models/leaderboard_query_result.py +29 -2
  444. rapidata/api_client/models/leaderboards_query_result.py +135 -0
  445. rapidata/api_client/models/line_result.py +3 -3
  446. rapidata/api_client/models/line_result_line.py +97 -0
  447. rapidata/api_client/models/line_result_line_point.py +89 -0
  448. rapidata/api_client/models/locate_coordinate.py +4 -13
  449. rapidata/api_client/models/location_metadata.py +12 -1
  450. rapidata/api_client/models/logic_operator.py +2 -2
  451. rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
  452. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
  453. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
  454. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
  455. rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
  456. rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
  457. rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
  458. rapidata/api_client/models/multi_asset.py +6 -6
  459. rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
  460. rapidata/api_client/models/multi_asset_input.py +21 -1
  461. rapidata/api_client/models/multi_asset_input1_assets_inner.py +40 -12
  462. rapidata/api_client/models/multi_asset_input3_assets_inner.py +40 -12
  463. rapidata/api_client/models/multi_asset_input_assets_inner.py +16 -30
  464. rapidata/api_client/models/multi_asset_model.py +3 -3
  465. rapidata/api_client/models/naive_referee_model.py +2 -2
  466. rapidata/api_client/models/named_classification.py +4 -13
  467. rapidata/api_client/models/new_user_filter.py +96 -0
  468. rapidata/api_client/models/newsletter_model.py +6 -6
  469. rapidata/api_client/models/not_available_yet_result.py +4 -13
  470. rapidata/api_client/models/not_filter.py +117 -0
  471. rapidata/api_client/models/null_asset.py +3 -5
  472. rapidata/api_client/models/online_pair_maker_config_model.py +3 -3
  473. rapidata/api_client/models/option_of_aggregator_type.py +49 -0
  474. rapidata/api_client/models/or_filter.py +121 -0
  475. rapidata/api_client/models/order_model.py +15 -14
  476. rapidata/api_client/models/order_state.py +2 -2
  477. rapidata/api_client/models/original_filename_metadata.py +12 -1
  478. rapidata/api_client/models/page_info.py +2 -7
  479. rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
  480. rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
  481. rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
  482. rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
  483. rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
  484. rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
  485. rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
  486. rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
  487. rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
  488. rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
  489. rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
  490. rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
  491. rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
  492. rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
  493. rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
  494. rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
  495. rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
  496. rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
  497. rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
  498. rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
  499. rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
  500. rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
  501. rapidata/api_client/models/paged_result_of_order_model.py +103 -0
  502. rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
  503. rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
  504. rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
  505. rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
  506. rapidata/api_client/models/paged_result_of_query_job_definitions_result.py +103 -0
  507. rapidata/api_client/models/paged_result_of_query_job_revisions_result.py +103 -0
  508. rapidata/api_client/models/paged_result_of_query_jobs_result.py +103 -0
  509. rapidata/api_client/models/paged_result_of_query_rapids_for_audience_result.py +103 -0
  510. rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
  511. rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
  512. rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
  513. rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
  514. rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
  515. rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
  516. rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
  517. rapidata/api_client/models/paged_result_order_model.py +105 -0
  518. rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
  519. rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
  520. rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
  521. rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
  522. rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
  523. rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
  524. rapidata/api_client/models/paged_result_rapid_model.py +105 -0
  525. rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
  526. rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
  527. rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
  528. rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
  529. rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
  530. rapidata/api_client/models/participant_by_benchmark.py +6 -14
  531. rapidata/api_client/models/participant_status.py +2 -2
  532. rapidata/api_client/models/polygon_result.py +3 -3
  533. rapidata/api_client/models/polygon_result_coordinate.py +89 -0
  534. rapidata/api_client/models/polygon_result_shape.py +95 -0
  535. rapidata/api_client/models/preliminary_download_model.py +5 -5
  536. rapidata/api_client/models/preview_order_model.py +5 -5
  537. rapidata/api_client/models/problem_details.py +2 -20
  538. rapidata/api_client/models/prompt_asset_metadata_input.py +4 -6
  539. rapidata/api_client/models/prompt_asset_metadata_input_asset.py +25 -41
  540. rapidata/api_client/models/prompt_by_benchmark_result.py +5 -5
  541. rapidata/api_client/models/prompt_metadata.py +12 -1
  542. rapidata/api_client/models/prompt_metadata_input.py +5 -7
  543. rapidata/api_client/models/prompt_type.py +38 -0
  544. rapidata/api_client/models/proxy_file_wrapper.py +17 -2
  545. rapidata/api_client/models/public_order_model.py +2 -2
  546. rapidata/api_client/models/public_rapid_response.py +112 -0
  547. rapidata/api_client/models/query_audiences_result.py +118 -0
  548. rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
  549. rapidata/api_client/models/query_job_definitions_result.py +97 -0
  550. rapidata/api_client/models/query_job_revisions_result.py +95 -0
  551. rapidata/api_client/models/query_jobs_result.py +103 -0
  552. rapidata/api_client/models/query_model.py +10 -5
  553. rapidata/api_client/models/query_rapids_for_audience_result.py +150 -0
  554. rapidata/api_client/models/query_validation_rapid_eligibility_model_query_validation_model.py +107 -0
  555. rapidata/api_client/models/query_validation_rapid_eligibility_result.py +103 -0
  556. rapidata/api_client/models/query_validation_rapid_eligibility_result_truth.py +280 -0
  557. rapidata/api_client/models/rapid_issue.py +2 -2
  558. rapidata/api_client/models/rapid_modality.py +46 -0
  559. rapidata/api_client/models/rapid_model.py +33 -49
  560. rapidata/api_client/models/rapid_result_model.py +7 -7
  561. rapidata/api_client/models/rapid_skipped_model.py +5 -5
  562. rapidata/api_client/models/rapid_state.py +2 -2
  563. rapidata/api_client/models/read_bridge_token_keys_result.py +10 -24
  564. rapidata/api_client/models/reference_asset_input.py +100 -0
  565. rapidata/api_client/models/report_model.py +9 -15
  566. rapidata/api_client/models/response_count_filter.py +103 -0
  567. rapidata/api_client/models/response_count_user_filter_model.py +2 -8
  568. rapidata/api_client/models/retrieval_mode.py +2 -2
  569. rapidata/api_client/models/root_filter.py +5 -14
  570. rapidata/api_client/models/run_status.py +2 -2
  571. rapidata/api_client/models/runs_by_leaderboard_result.py +6 -12
  572. rapidata/api_client/models/sample_by_identifier.py +125 -0
  573. rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
  574. rapidata/api_client/models/sample_by_participant.py +7 -8
  575. rapidata/api_client/models/scrub_range.py +2 -2
  576. rapidata/api_client/models/send_survey_model.py +87 -0
  577. rapidata/api_client/models/simple_workflow_config.py +15 -5
  578. rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
  579. rapidata/api_client/models/simple_workflow_config_model.py +11 -3
  580. rapidata/api_client/models/simple_workflow_model.py +14 -4
  581. rapidata/api_client/models/simple_workflow_model1.py +4 -11
  582. rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
  583. rapidata/api_client/models/sort_criterion.py +5 -11
  584. rapidata/api_client/models/sort_direction.py +2 -2
  585. rapidata/api_client/models/source_url_metadata.py +12 -1
  586. rapidata/api_client/models/standing_by_benchmark.py +113 -0
  587. rapidata/api_client/models/standing_by_leaderboard.py +19 -21
  588. rapidata/api_client/models/standing_status.py +2 -2
  589. rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
  590. rapidata/api_client/models/standings_by_leaderboard_result.py +2 -2
  591. rapidata/api_client/models/start_preliminary_download_result.py +87 -0
  592. rapidata/api_client/models/sticky_state.py +3 -2
  593. rapidata/api_client/models/stream_file_wrapper.py +25 -3
  594. rapidata/api_client/models/streams_metadata.py +12 -1
  595. rapidata/api_client/models/string_segment.py +105 -0
  596. rapidata/api_client/models/submit_order_model.py +5 -5
  597. rapidata/api_client/models/submit_participant_result.py +2 -2
  598. rapidata/api_client/models/submit_prompt_model.py +9 -14
  599. rapidata/api_client/models/submit_prompt_model_prompt_asset.py +40 -12
  600. rapidata/api_client/models/tags_by_benchmark_result.py +2 -2
  601. rapidata/api_client/models/text_asset.py +3 -5
  602. rapidata/api_client/models/text_asset_input.py +21 -1
  603. rapidata/api_client/models/text_metadata.py +18 -2
  604. rapidata/api_client/models/text_metadata_input.py +111 -0
  605. rapidata/api_client/models/text_metadata_model.py +7 -2
  606. rapidata/api_client/models/transcription_metadata.py +9 -1
  607. rapidata/api_client/models/transcription_metadata_input.py +5 -7
  608. rapidata/api_client/models/transcription_word.py +2 -2
  609. rapidata/api_client/models/translated_string.py +2 -2
  610. rapidata/api_client/models/unlock_order_result.py +2 -2
  611. rapidata/api_client/models/update_audience_request.py +113 -0
  612. rapidata/api_client/models/update_benchmark_model.py +99 -0
  613. rapidata/api_client/models/update_benchmark_name_model.py +5 -5
  614. rapidata/api_client/models/update_campaign_model.py +11 -11
  615. rapidata/api_client/models/update_dataset_name_model.py +5 -5
  616. rapidata/api_client/models/update_dimensions_model.py +3 -3
  617. rapidata/api_client/models/update_job_definition_endpoint_input.py +92 -0
  618. rapidata/api_client/models/update_leaderboard_model.py +106 -0
  619. rapidata/api_client/models/update_leaderboard_name_model.py +5 -5
  620. rapidata/api_client/models/update_leaderboard_response_config_model.py +5 -5
  621. rapidata/api_client/models/update_order_name_model.py +5 -5
  622. rapidata/api_client/models/update_participant_model.py +92 -0
  623. rapidata/api_client/models/update_participant_name_model.py +5 -5
  624. rapidata/api_client/models/update_priority_model.py +87 -0
  625. rapidata/api_client/models/update_prompt_tags_model.py +5 -5
  626. rapidata/api_client/models/update_should_alert_model.py +4 -4
  627. rapidata/api_client/models/update_validation_rapid_model.py +35 -14
  628. rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
  629. rapidata/api_client/models/update_validation_set_model.py +120 -0
  630. rapidata/api_client/models/upload_asset_result.py +102 -0
  631. rapidata/api_client/models/upload_file_from_url_result.py +87 -0
  632. rapidata/api_client/models/upload_file_result.py +87 -0
  633. rapidata/api_client/models/user_action_restriction.py +37 -0
  634. rapidata/api_client/models/user_action_restriction_filter.py +101 -0
  635. rapidata/api_client/models/user_score_filter.py +102 -0
  636. rapidata/api_client/models/user_state.py +38 -0
  637. rapidata/api_client/models/user_state_filter.py +101 -0
  638. rapidata/api_client/models/validation_chance.py +20 -3
  639. rapidata/api_client/models/validation_problem_details.py +117 -0
  640. rapidata/api_client/models/validation_set_model.py +39 -5
  641. rapidata/api_client/models/validation_set_overview_model.py +2 -2
  642. rapidata/api_client/models/video_duration_metadata.py +12 -1
  643. rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
  644. rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
  645. rapidata/api_client/models/workflow_state.py +2 -2
  646. rapidata/api_client/models/zip_entry_file_wrapper.py +33 -2
  647. rapidata/api_client/rest.py +2 -2
  648. rapidata/api_client_README.md +384 -318
  649. rapidata/rapidata_client/__init__.py +17 -22
  650. rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
  651. rapidata/rapidata_client/audience/__init__.py +2 -0
  652. rapidata/rapidata_client/audience/audience_example_handler.py +168 -0
  653. rapidata/rapidata_client/audience/rapidata_audience.py +287 -0
  654. rapidata/rapidata_client/audience/rapidata_audience_manager.py +162 -0
  655. rapidata/rapidata_client/benchmark/_detail_mapper.py +11 -9
  656. rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +98 -54
  657. rapidata/rapidata_client/benchmark/participant/_participant.py +90 -46
  658. rapidata/rapidata_client/benchmark/rapidata_benchmark.py +388 -225
  659. rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +172 -65
  660. rapidata/rapidata_client/config/__init__.py +4 -0
  661. rapidata/rapidata_client/config/logger.py +135 -0
  662. rapidata/rapidata_client/config/logging_config.py +55 -0
  663. rapidata/rapidata_client/config/managed_print.py +6 -0
  664. rapidata/rapidata_client/config/order_config.py +14 -0
  665. rapidata/rapidata_client/config/rapidata_config.py +36 -0
  666. rapidata/rapidata_client/config/tracer.py +184 -0
  667. rapidata/rapidata_client/config/upload_config.py +64 -0
  668. rapidata/rapidata_client/datapoints/__init__.py +8 -3
  669. rapidata/rapidata_client/datapoints/_asset_uploader.py +184 -0
  670. rapidata/rapidata_client/datapoints/_datapoint.py +92 -0
  671. rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
  672. rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
  673. rapidata/rapidata_client/datapoints/assets/__init__.py +0 -10
  674. rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
  675. rapidata/rapidata_client/datapoints/metadata/__init__.py +0 -2
  676. rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +5 -6
  677. rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +4 -5
  678. rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +5 -6
  679. rapidata/rapidata_client/datapoints/metadata/_select_words_metadata.py +3 -4
  680. rapidata/rapidata_client/dataset/__init__.py +1 -0
  681. rapidata/rapidata_client/dataset/_rapidata_dataset.py +55 -0
  682. rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
  683. rapidata/rapidata_client/exceptions/failed_upload_exception.py +15 -41
  684. rapidata/rapidata_client/filter/_backend_filter_mapper.py +134 -0
  685. rapidata/rapidata_client/filter/_base_filter.py +13 -8
  686. rapidata/rapidata_client/filter/age_filter.py +26 -10
  687. rapidata/rapidata_client/filter/and_filter.py +36 -11
  688. rapidata/rapidata_client/filter/campaign_filter.py +21 -10
  689. rapidata/rapidata_client/filter/country_filter.py +46 -12
  690. rapidata/rapidata_client/filter/custom_filter.py +25 -12
  691. rapidata/rapidata_client/filter/gender_filter.py +25 -10
  692. rapidata/rapidata_client/filter/language_filter.py +51 -21
  693. rapidata/rapidata_client/filter/models/age_group.py +14 -12
  694. rapidata/rapidata_client/filter/models/gender.py +12 -8
  695. rapidata/rapidata_client/filter/new_user_filter.py +14 -4
  696. rapidata/rapidata_client/filter/not_filter.py +35 -11
  697. rapidata/rapidata_client/filter/or_filter.py +36 -11
  698. rapidata/rapidata_client/filter/rapidata_filters.py +17 -23
  699. rapidata/rapidata_client/filter/response_count_filter.py +51 -20
  700. rapidata/rapidata_client/filter/user_score_filter.py +62 -24
  701. rapidata/rapidata_client/job/__init__.py +3 -0
  702. rapidata/rapidata_client/job/job_definition.py +110 -0
  703. rapidata/rapidata_client/job/job_manager.py +758 -0
  704. rapidata/rapidata_client/job/rapidata_job.py +326 -0
  705. rapidata/rapidata_client/order/__init__.py +2 -0
  706. rapidata/rapidata_client/order/_rapidata_order_builder.py +273 -122
  707. rapidata/rapidata_client/order/rapidata_order.py +316 -160
  708. rapidata/rapidata_client/order/rapidata_order_manager.py +680 -421
  709. rapidata/rapidata_client/rapidata_client.py +115 -37
  710. rapidata/rapidata_client/referee/__init__.py +1 -1
  711. rapidata/rapidata_client/referee/_base_referee.py +14 -3
  712. rapidata/rapidata_client/referee/_early_stopping_referee.py +32 -17
  713. rapidata/rapidata_client/referee/_naive_referee.py +24 -3
  714. rapidata/rapidata_client/results/__init__.py +3 -0
  715. rapidata/rapidata_client/{order → results}/rapidata_results.py +86 -63
  716. rapidata/rapidata_client/selection/__init__.py +1 -1
  717. rapidata/rapidata_client/selection/_base_selection.py +9 -2
  718. rapidata/rapidata_client/selection/ab_test_selection.py +28 -20
  719. rapidata/rapidata_client/selection/capped_selection.py +23 -16
  720. rapidata/rapidata_client/selection/conditional_validation_selection.py +43 -24
  721. rapidata/rapidata_client/selection/demographic_selection.py +21 -6
  722. rapidata/rapidata_client/selection/effort_selection.py +31 -8
  723. rapidata/rapidata_client/selection/labeling_selection.py +34 -11
  724. rapidata/rapidata_client/selection/{retrieval_modes.py → rapidata_retrieval_modes.py} +7 -4
  725. rapidata/rapidata_client/selection/rapidata_selections.py +23 -14
  726. rapidata/rapidata_client/selection/shuffling_selection.py +21 -13
  727. rapidata/rapidata_client/selection/static_selection.py +19 -8
  728. rapidata/rapidata_client/selection/validation_selection.py +20 -4
  729. rapidata/rapidata_client/settings/__init__.py +2 -0
  730. rapidata/rapidata_client/settings/_rapidata_setting.py +22 -3
  731. rapidata/rapidata_client/settings/alert_on_fast_response.py +8 -5
  732. rapidata/rapidata_client/settings/allow_neither_both.py +3 -0
  733. rapidata/rapidata_client/settings/custom_setting.py +3 -2
  734. rapidata/rapidata_client/settings/free_text_minimum_characters.py +9 -4
  735. rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
  736. rapidata/rapidata_client/settings/mute_video.py +15 -0
  737. rapidata/rapidata_client/settings/no_shuffle.py +4 -2
  738. rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
  739. rapidata/rapidata_client/settings/rapidata_settings.py +22 -9
  740. rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
  741. rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
  742. rapidata/rapidata_client/utils/__init__.py +3 -0
  743. rapidata/rapidata_client/utils/threaded_uploader.py +153 -0
  744. rapidata/rapidata_client/validation/__init__.py +2 -0
  745. rapidata/rapidata_client/validation/rapidata_validation_set.py +96 -18
  746. rapidata/rapidata_client/validation/rapids/__init__.py +2 -0
  747. rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +48 -0
  748. rapidata/rapidata_client/validation/rapids/box.py +37 -12
  749. rapidata/rapidata_client/validation/rapids/rapids.py +29 -83
  750. rapidata/rapidata_client/validation/rapids/rapids_manager.py +369 -211
  751. rapidata/rapidata_client/validation/validation_set_manager.py +505 -276
  752. rapidata/rapidata_client/workflow/__init__.py +2 -2
  753. rapidata/rapidata_client/workflow/_base_workflow.py +25 -7
  754. rapidata/rapidata_client/workflow/_classify_workflow.py +58 -15
  755. rapidata/rapidata_client/workflow/_compare_workflow.py +44 -9
  756. rapidata/rapidata_client/workflow/_draw_workflow.py +40 -10
  757. rapidata/rapidata_client/workflow/_evaluation_workflow.py +28 -7
  758. rapidata/rapidata_client/workflow/_free_text_workflow.py +46 -9
  759. rapidata/rapidata_client/workflow/_locate_workflow.py +40 -10
  760. rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +90 -0
  761. rapidata/rapidata_client/workflow/_select_words_workflow.py +51 -11
  762. rapidata/rapidata_client/workflow/_timestamp_workflow.py +42 -11
  763. rapidata/service/__init__.py +0 -1
  764. rapidata/service/credential_manager.py +14 -14
  765. rapidata/service/openapi_service.py +119 -34
  766. rapidata/types/__init__.py +149 -0
  767. rapidata-3.0.0a8.dist-info/METADATA +32 -0
  768. rapidata-3.0.0a8.dist-info/RECORD +1083 -0
  769. {rapidata-2.35.1.dist-info → rapidata-3.0.0a8.dist-info}/WHEEL +1 -1
  770. rapidata/rapidata_client/api/rapidata_exception.py +0 -107
  771. rapidata/rapidata_client/country_codes/__init__.py +0 -1
  772. rapidata/rapidata_client/country_codes/country_codes.py +0 -19
  773. rapidata/rapidata_client/datapoints/assets/_base_asset.py +0 -11
  774. rapidata/rapidata_client/datapoints/assets/_media_asset.py +0 -306
  775. rapidata/rapidata_client/datapoints/assets/_multi_asset.py +0 -61
  776. rapidata/rapidata_client/datapoints/assets/_sessions.py +0 -35
  777. rapidata/rapidata_client/datapoints/assets/_text_asset.py +0 -34
  778. rapidata/rapidata_client/datapoints/assets/data_type_enum.py +0 -8
  779. rapidata/rapidata_client/datapoints/datapoint.py +0 -108
  780. rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +0 -22
  781. rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +0 -18
  782. rapidata/rapidata_client/logging/__init__.py +0 -2
  783. rapidata/rapidata_client/logging/logger.py +0 -122
  784. rapidata/rapidata_client/logging/output_manager.py +0 -20
  785. rapidata/rapidata_client/order/_rapidata_dataset.py +0 -396
  786. rapidata/rapidata_client/workflow/_ranking_workflow.py +0 -47
  787. rapidata/service/local_file_service.py +0 -25
  788. rapidata-2.35.1.dist-info/METADATA +0 -35
  789. rapidata-2.35.1.dist-info/RECORD +0 -657
  790. {rapidata-2.35.1.dist-info → rapidata-3.0.0a8.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,23 +16,19 @@ 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, StrictInt, 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.create_datapoint_from_files_model import CreateDatapointFromFilesModel
23
- from rapidata.api_client.models.create_datapoint_from_text_sources_model import CreateDatapointFromTextSourcesModel
24
- from rapidata.api_client.models.create_datapoint_from_urls_model import CreateDatapointFromUrlsModel
22
+ from rapidata.api_client.models.create_datapoint_model import CreateDatapointModel
25
23
  from rapidata.api_client.models.create_datapoint_result import CreateDatapointResult
26
- from rapidata.api_client.models.create_datapoints_from_s3_bucket_model import CreateDatapointsFromS3BucketModel
27
- from rapidata.api_client.models.datapoint_model_paged_result import DatapointModelPagedResult
28
- from rapidata.api_client.models.dataset_dataset_id_datapoints_post_request_metadata_inner import DatasetDatasetIdDatapointsPostRequestMetadataInner
24
+ from rapidata.api_client.models.create_dataset_endpoint_input import CreateDatasetEndpointInput
25
+ from rapidata.api_client.models.create_dataset_endpoint_output import CreateDatasetEndpointOutput
29
26
  from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
30
27
  from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
31
28
  from rapidata.api_client.models.get_failed_datapoints_result import GetFailedDatapointsResult
32
- from rapidata.api_client.models.import_from_file_result import ImportFromFileResult
29
+ from rapidata.api_client.models.paged_result_of_query_datapoints_by_dataset_id_result import PagedResultOfQueryDatapointsByDatasetIdResult
33
30
  from rapidata.api_client.models.query_model import QueryModel
34
31
  from rapidata.api_client.models.update_dataset_name_model import UpdateDatasetNameModel
35
- from rapidata.api_client.models.upload_from_s3_result import UploadFromS3Result
36
32
 
37
33
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
38
34
  from rapidata.api_client.api_response import ApiResponse
@@ -53,10 +49,10 @@ class DatasetApi:
53
49
 
54
50
 
55
51
  @validate_call
56
- def dataset_dataset_id_datapoints_csv_post(
52
+ def dataset_dataset_id_datapoint_post(
57
53
  self,
58
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to import the datapoints to.")],
59
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
54
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
55
+ create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
60
56
  _request_timeout: Union[
61
57
  None,
62
58
  Annotated[StrictFloat, Field(gt=0)],
@@ -69,14 +65,14 @@ class DatasetApi:
69
65
  _content_type: Optional[StrictStr] = None,
70
66
  _headers: Optional[Dict[StrictStr, Any]] = None,
71
67
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
72
- ) -> ImportFromFileResult:
73
- """Creates multiple datapoints from a csv.
68
+ ) -> CreateDatapointResult:
69
+ """Creates a datapoint with JSON body.
74
70
 
75
71
 
76
- :param dataset_id: The id of the dataset to import the datapoints to. (required)
72
+ :param dataset_id: The id of the dataset to create the datapoint in. (required)
77
73
  :type dataset_id: str
78
- :param file: The csv file to import.
79
- :type file: bytearray
74
+ :param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
75
+ :type create_datapoint_model: CreateDatapointModel
80
76
  :param _request_timeout: timeout setting for this request. If one
81
77
  number provided, it will be total request
82
78
  timeout. It can also be a pair (tuple) of
@@ -99,9 +95,9 @@ class DatasetApi:
99
95
  :return: Returns the result object.
100
96
  """ # noqa: E501
101
97
 
102
- _param = self._dataset_dataset_id_datapoints_csv_post_serialize(
98
+ _param = self._dataset_dataset_id_datapoint_post_serialize(
103
99
  dataset_id=dataset_id,
104
- file=file,
100
+ create_datapoint_model=create_datapoint_model,
105
101
  _request_auth=_request_auth,
106
102
  _content_type=_content_type,
107
103
  _headers=_headers,
@@ -109,7 +105,7 @@ class DatasetApi:
109
105
  )
110
106
 
111
107
  _response_types_map: Dict[str, Optional[str]] = {
112
- '200': "ImportFromFileResult",
108
+ '200': "CreateDatapointResult",
113
109
  }
114
110
  response_data = self.api_client.call_api(
115
111
  *_param,
@@ -123,10 +119,10 @@ class DatasetApi:
123
119
 
124
120
 
125
121
  @validate_call
126
- def dataset_dataset_id_datapoints_csv_post_with_http_info(
122
+ def dataset_dataset_id_datapoint_post_with_http_info(
127
123
  self,
128
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to import the datapoints to.")],
129
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
124
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
125
+ create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
130
126
  _request_timeout: Union[
131
127
  None,
132
128
  Annotated[StrictFloat, Field(gt=0)],
@@ -139,14 +135,14 @@ class DatasetApi:
139
135
  _content_type: Optional[StrictStr] = None,
140
136
  _headers: Optional[Dict[StrictStr, Any]] = None,
141
137
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
142
- ) -> ApiResponse[ImportFromFileResult]:
143
- """Creates multiple datapoints from a csv.
138
+ ) -> ApiResponse[CreateDatapointResult]:
139
+ """Creates a datapoint with JSON body.
144
140
 
145
141
 
146
- :param dataset_id: The id of the dataset to import the datapoints to. (required)
142
+ :param dataset_id: The id of the dataset to create the datapoint in. (required)
147
143
  :type dataset_id: str
148
- :param file: The csv file to import.
149
- :type file: bytearray
144
+ :param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
145
+ :type create_datapoint_model: CreateDatapointModel
150
146
  :param _request_timeout: timeout setting for this request. If one
151
147
  number provided, it will be total request
152
148
  timeout. It can also be a pair (tuple) of
@@ -169,9 +165,9 @@ class DatasetApi:
169
165
  :return: Returns the result object.
170
166
  """ # noqa: E501
171
167
 
172
- _param = self._dataset_dataset_id_datapoints_csv_post_serialize(
168
+ _param = self._dataset_dataset_id_datapoint_post_serialize(
173
169
  dataset_id=dataset_id,
174
- file=file,
170
+ create_datapoint_model=create_datapoint_model,
175
171
  _request_auth=_request_auth,
176
172
  _content_type=_content_type,
177
173
  _headers=_headers,
@@ -179,7 +175,7 @@ class DatasetApi:
179
175
  )
180
176
 
181
177
  _response_types_map: Dict[str, Optional[str]] = {
182
- '200': "ImportFromFileResult",
178
+ '200': "CreateDatapointResult",
183
179
  }
184
180
  response_data = self.api_client.call_api(
185
181
  *_param,
@@ -193,10 +189,10 @@ class DatasetApi:
193
189
 
194
190
 
195
191
  @validate_call
196
- def dataset_dataset_id_datapoints_csv_post_without_preload_content(
192
+ def dataset_dataset_id_datapoint_post_without_preload_content(
197
193
  self,
198
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to import the datapoints to.")],
199
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
194
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
195
+ create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
200
196
  _request_timeout: Union[
201
197
  None,
202
198
  Annotated[StrictFloat, Field(gt=0)],
@@ -210,13 +206,13 @@ class DatasetApi:
210
206
  _headers: Optional[Dict[StrictStr, Any]] = None,
211
207
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
212
208
  ) -> RESTResponseType:
213
- """Creates multiple datapoints from a csv.
209
+ """Creates a datapoint with JSON body.
214
210
 
215
211
 
216
- :param dataset_id: The id of the dataset to import the datapoints to. (required)
212
+ :param dataset_id: The id of the dataset to create the datapoint in. (required)
217
213
  :type dataset_id: str
218
- :param file: The csv file to import.
219
- :type file: bytearray
214
+ :param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
215
+ :type create_datapoint_model: CreateDatapointModel
220
216
  :param _request_timeout: timeout setting for this request. If one
221
217
  number provided, it will be total request
222
218
  timeout. It can also be a pair (tuple) of
@@ -239,9 +235,9 @@ class DatasetApi:
239
235
  :return: Returns the result object.
240
236
  """ # noqa: E501
241
237
 
242
- _param = self._dataset_dataset_id_datapoints_csv_post_serialize(
238
+ _param = self._dataset_dataset_id_datapoint_post_serialize(
243
239
  dataset_id=dataset_id,
244
- file=file,
240
+ create_datapoint_model=create_datapoint_model,
245
241
  _request_auth=_request_auth,
246
242
  _content_type=_content_type,
247
243
  _headers=_headers,
@@ -249,7 +245,7 @@ class DatasetApi:
249
245
  )
250
246
 
251
247
  _response_types_map: Dict[str, Optional[str]] = {
252
- '200': "ImportFromFileResult",
248
+ '200': "CreateDatapointResult",
253
249
  }
254
250
  response_data = self.api_client.call_api(
255
251
  *_param,
@@ -258,10 +254,10 @@ class DatasetApi:
258
254
  return response_data.response
259
255
 
260
256
 
261
- def _dataset_dataset_id_datapoints_csv_post_serialize(
257
+ def _dataset_dataset_id_datapoint_post_serialize(
262
258
  self,
263
259
  dataset_id,
264
- file,
260
+ create_datapoint_model,
265
261
  _request_auth,
266
262
  _content_type,
267
263
  _headers,
@@ -288,9 +284,9 @@ class DatasetApi:
288
284
  # process the query parameters
289
285
  # process the header parameters
290
286
  # process the form parameters
291
- if file is not None:
292
- _files['file'] = file
293
287
  # process the body parameter
288
+ if create_datapoint_model is not None:
289
+ _body_params = create_datapoint_model
294
290
 
295
291
 
296
292
  # set the HTTP header `Accept`
@@ -310,7 +306,9 @@ class DatasetApi:
310
306
  _default_content_type = (
311
307
  self.api_client.select_header_content_type(
312
308
  [
313
- 'multipart/form-data'
309
+ 'application/json',
310
+ 'text/json',
311
+ 'application/*+json'
314
312
  ]
315
313
  )
316
314
  )
@@ -319,13 +317,14 @@ class DatasetApi:
319
317
 
320
318
  # authentication setting
321
319
  _auth_settings: List[str] = [
322
- 'bearer',
323
- 'oauth2'
320
+ 'OAuth2',
321
+ 'OpenIdConnect',
322
+ 'Bearer'
324
323
  ]
325
324
 
326
325
  return self.api_client.param_serialize(
327
326
  method='POST',
328
- resource_path='/dataset/{datasetId}/datapoints/csv',
327
+ resource_path='/dataset/{datasetId}/datapoint',
329
328
  path_params=_path_params,
330
329
  query_params=_query_params,
331
330
  header_params=_header_params,
@@ -360,7 +359,7 @@ class DatasetApi:
360
359
  ) -> GetFailedDatapointsResult:
361
360
  """Gets a list of all datapoints that failed to upload.
362
361
 
363
- A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
362
+ A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
364
363
 
365
364
  :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
366
365
  :type dataset_id: str
@@ -427,7 +426,7 @@ class DatasetApi:
427
426
  ) -> ApiResponse[GetFailedDatapointsResult]:
428
427
  """Gets a list of all datapoints that failed to upload.
429
428
 
430
- A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
429
+ A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
431
430
 
432
431
  :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
433
432
  :type dataset_id: str
@@ -494,7 +493,7 @@ class DatasetApi:
494
493
  ) -> RESTResponseType:
495
494
  """Gets a list of all datapoints that failed to upload.
496
495
 
497
- A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
496
+ A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
498
497
 
499
498
  :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
500
499
  :type dataset_id: str
@@ -583,8 +582,9 @@ class DatasetApi:
583
582
 
584
583
  # authentication setting
585
584
  _auth_settings: List[str] = [
586
- 'bearer',
587
- 'oauth2'
585
+ 'OAuth2',
586
+ 'OpenIdConnect',
587
+ 'Bearer'
588
588
  ]
589
589
 
590
590
  return self.api_client.param_serialize(
@@ -606,11 +606,10 @@ class DatasetApi:
606
606
 
607
607
 
608
608
  @validate_call
609
- def dataset_dataset_id_datapoints_files_post(
609
+ def dataset_dataset_id_datapoints_get(
610
610
  self,
611
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
612
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
613
- model: Optional[CreateDatapointFromFilesModel] = None,
611
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
612
+ request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
614
613
  _request_timeout: Union[
615
614
  None,
616
615
  Annotated[StrictFloat, Field(gt=0)],
@@ -623,17 +622,14 @@ class DatasetApi:
623
622
  _content_type: Optional[StrictStr] = None,
624
623
  _headers: Optional[Dict[StrictStr, Any]] = None,
625
624
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
626
- ) -> CreateDatapointResult:
627
- """Creates a single datapoint by uploading files.
625
+ ) -> PagedResultOfQueryDatapointsByDatasetIdResult:
626
+ """Gets all datapoints of a dataset.
628
627
 
629
- If multiple files are uploaded, a multi asset datapoint will be created.
630
628
 
631
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
629
+ :param dataset_id: The id of the dataset to get the datapoints of. (required)
632
630
  :type dataset_id: str
633
- :param files:
634
- :type files: List[bytearray]
635
- :param model:
636
- :type model: CreateDatapointFromFilesModel
631
+ :param request: The query model to filter, sort, and paginate the results.
632
+ :type request: QueryModel
637
633
  :param _request_timeout: timeout setting for this request. If one
638
634
  number provided, it will be total request
639
635
  timeout. It can also be a pair (tuple) of
@@ -656,10 +652,9 @@ class DatasetApi:
656
652
  :return: Returns the result object.
657
653
  """ # noqa: E501
658
654
 
659
- _param = self._dataset_dataset_id_datapoints_files_post_serialize(
655
+ _param = self._dataset_dataset_id_datapoints_get_serialize(
660
656
  dataset_id=dataset_id,
661
- files=files,
662
- model=model,
657
+ request=request,
663
658
  _request_auth=_request_auth,
664
659
  _content_type=_content_type,
665
660
  _headers=_headers,
@@ -667,7 +662,7 @@ class DatasetApi:
667
662
  )
668
663
 
669
664
  _response_types_map: Dict[str, Optional[str]] = {
670
- '200': "CreateDatapointResult",
665
+ '200': "PagedResultOfQueryDatapointsByDatasetIdResult",
671
666
  }
672
667
  response_data = self.api_client.call_api(
673
668
  *_param,
@@ -681,11 +676,10 @@ class DatasetApi:
681
676
 
682
677
 
683
678
  @validate_call
684
- def dataset_dataset_id_datapoints_files_post_with_http_info(
679
+ def dataset_dataset_id_datapoints_get_with_http_info(
685
680
  self,
686
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
687
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
688
- model: Optional[CreateDatapointFromFilesModel] = None,
681
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
682
+ request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
689
683
  _request_timeout: Union[
690
684
  None,
691
685
  Annotated[StrictFloat, Field(gt=0)],
@@ -698,17 +692,14 @@ class DatasetApi:
698
692
  _content_type: Optional[StrictStr] = None,
699
693
  _headers: Optional[Dict[StrictStr, Any]] = None,
700
694
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
701
- ) -> ApiResponse[CreateDatapointResult]:
702
- """Creates a single datapoint by uploading files.
695
+ ) -> ApiResponse[PagedResultOfQueryDatapointsByDatasetIdResult]:
696
+ """Gets all datapoints of a dataset.
703
697
 
704
- If multiple files are uploaded, a multi asset datapoint will be created.
705
698
 
706
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
699
+ :param dataset_id: The id of the dataset to get the datapoints of. (required)
707
700
  :type dataset_id: str
708
- :param files:
709
- :type files: List[bytearray]
710
- :param model:
711
- :type model: CreateDatapointFromFilesModel
701
+ :param request: The query model to filter, sort, and paginate the results.
702
+ :type request: QueryModel
712
703
  :param _request_timeout: timeout setting for this request. If one
713
704
  number provided, it will be total request
714
705
  timeout. It can also be a pair (tuple) of
@@ -731,10 +722,9 @@ class DatasetApi:
731
722
  :return: Returns the result object.
732
723
  """ # noqa: E501
733
724
 
734
- _param = self._dataset_dataset_id_datapoints_files_post_serialize(
725
+ _param = self._dataset_dataset_id_datapoints_get_serialize(
735
726
  dataset_id=dataset_id,
736
- files=files,
737
- model=model,
727
+ request=request,
738
728
  _request_auth=_request_auth,
739
729
  _content_type=_content_type,
740
730
  _headers=_headers,
@@ -742,7 +732,7 @@ class DatasetApi:
742
732
  )
743
733
 
744
734
  _response_types_map: Dict[str, Optional[str]] = {
745
- '200': "CreateDatapointResult",
735
+ '200': "PagedResultOfQueryDatapointsByDatasetIdResult",
746
736
  }
747
737
  response_data = self.api_client.call_api(
748
738
  *_param,
@@ -756,11 +746,10 @@ class DatasetApi:
756
746
 
757
747
 
758
748
  @validate_call
759
- def dataset_dataset_id_datapoints_files_post_without_preload_content(
749
+ def dataset_dataset_id_datapoints_get_without_preload_content(
760
750
  self,
761
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
762
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
763
- model: Optional[CreateDatapointFromFilesModel] = None,
751
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
752
+ request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
764
753
  _request_timeout: Union[
765
754
  None,
766
755
  Annotated[StrictFloat, Field(gt=0)],
@@ -774,16 +763,13 @@ class DatasetApi:
774
763
  _headers: Optional[Dict[StrictStr, Any]] = None,
775
764
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
776
765
  ) -> RESTResponseType:
777
- """Creates a single datapoint by uploading files.
766
+ """Gets all datapoints of a dataset.
778
767
 
779
- If multiple files are uploaded, a multi asset datapoint will be created.
780
768
 
781
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
769
+ :param dataset_id: The id of the dataset to get the datapoints of. (required)
782
770
  :type dataset_id: str
783
- :param files:
784
- :type files: List[bytearray]
785
- :param model:
786
- :type model: CreateDatapointFromFilesModel
771
+ :param request: The query model to filter, sort, and paginate the results.
772
+ :type request: QueryModel
787
773
  :param _request_timeout: timeout setting for this request. If one
788
774
  number provided, it will be total request
789
775
  timeout. It can also be a pair (tuple) of
@@ -806,10 +792,9 @@ class DatasetApi:
806
792
  :return: Returns the result object.
807
793
  """ # noqa: E501
808
794
 
809
- _param = self._dataset_dataset_id_datapoints_files_post_serialize(
795
+ _param = self._dataset_dataset_id_datapoints_get_serialize(
810
796
  dataset_id=dataset_id,
811
- files=files,
812
- model=model,
797
+ request=request,
813
798
  _request_auth=_request_auth,
814
799
  _content_type=_content_type,
815
800
  _headers=_headers,
@@ -817,7 +802,7 @@ class DatasetApi:
817
802
  )
818
803
 
819
804
  _response_types_map: Dict[str, Optional[str]] = {
820
- '200': "CreateDatapointResult",
805
+ '200': "PagedResultOfQueryDatapointsByDatasetIdResult",
821
806
  }
822
807
  response_data = self.api_client.call_api(
823
808
  *_param,
@@ -826,11 +811,10 @@ class DatasetApi:
826
811
  return response_data.response
827
812
 
828
813
 
829
- def _dataset_dataset_id_datapoints_files_post_serialize(
814
+ def _dataset_dataset_id_datapoints_get_serialize(
830
815
  self,
831
816
  dataset_id,
832
- files,
833
- model,
817
+ request,
834
818
  _request_auth,
835
819
  _content_type,
836
820
  _headers,
@@ -840,7 +824,6 @@ class DatasetApi:
840
824
  _host = None
841
825
 
842
826
  _collection_formats: Dict[str, str] = {
843
- 'files': 'multi',
844
827
  }
845
828
 
846
829
  _path_params: Dict[str, str] = {}
@@ -856,12 +839,12 @@ class DatasetApi:
856
839
  if dataset_id is not None:
857
840
  _path_params['datasetId'] = dataset_id
858
841
  # process the query parameters
842
+ if request is not None:
843
+
844
+ _query_params.append(('request', request))
845
+
859
846
  # process the header parameters
860
847
  # process the form parameters
861
- if files is not None:
862
- _files['files'] = files
863
- if model is not None:
864
- _form_params.append(('model', model))
865
848
  # process the body parameter
866
849
 
867
850
 
@@ -875,29 +858,17 @@ class DatasetApi:
875
858
  ]
876
859
  )
877
860
 
878
- # set the HTTP header `Content-Type`
879
- if _content_type:
880
- _header_params['Content-Type'] = _content_type
881
- else:
882
- _default_content_type = (
883
- self.api_client.select_header_content_type(
884
- [
885
- 'multipart/form-data'
886
- ]
887
- )
888
- )
889
- if _default_content_type is not None:
890
- _header_params['Content-Type'] = _default_content_type
891
861
 
892
862
  # authentication setting
893
863
  _auth_settings: List[str] = [
894
- 'bearer',
895
- 'oauth2'
864
+ 'OAuth2',
865
+ 'OpenIdConnect',
866
+ 'Bearer'
896
867
  ]
897
868
 
898
869
  return self.api_client.param_serialize(
899
- method='POST',
900
- resource_path='/dataset/{datasetId}/datapoints/files',
870
+ method='GET',
871
+ resource_path='/dataset/{datasetId}/datapoints',
901
872
  path_params=_path_params,
902
873
  query_params=_query_params,
903
874
  header_params=_header_params,
@@ -914,10 +885,9 @@ class DatasetApi:
914
885
 
915
886
 
916
887
  @validate_call
917
- def dataset_dataset_id_datapoints_get(
888
+ def dataset_dataset_id_get(
918
889
  self,
919
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
920
- request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
890
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
921
891
  _request_timeout: Union[
922
892
  None,
923
893
  Annotated[StrictFloat, Field(gt=0)],
@@ -930,14 +900,12 @@ class DatasetApi:
930
900
  _content_type: Optional[StrictStr] = None,
931
901
  _headers: Optional[Dict[StrictStr, Any]] = None,
932
902
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
933
- ) -> DatapointModelPagedResult:
934
- """Gets all datapoints of a dataset.
903
+ ) -> GetDatasetByIdResult:
904
+ """Gets a dataset by its id.
935
905
 
936
906
 
937
- :param dataset_id: The id of the dataset to get the datapoints of. (required)
907
+ :param dataset_id: The id of the dataset to get. (required)
938
908
  :type dataset_id: str
939
- :param request: The query model to filter, sort, and paginate the results.
940
- :type request: QueryModel
941
909
  :param _request_timeout: timeout setting for this request. If one
942
910
  number provided, it will be total request
943
911
  timeout. It can also be a pair (tuple) of
@@ -960,9 +928,8 @@ class DatasetApi:
960
928
  :return: Returns the result object.
961
929
  """ # noqa: E501
962
930
 
963
- _param = self._dataset_dataset_id_datapoints_get_serialize(
931
+ _param = self._dataset_dataset_id_get_serialize(
964
932
  dataset_id=dataset_id,
965
- request=request,
966
933
  _request_auth=_request_auth,
967
934
  _content_type=_content_type,
968
935
  _headers=_headers,
@@ -970,7 +937,7 @@ class DatasetApi:
970
937
  )
971
938
 
972
939
  _response_types_map: Dict[str, Optional[str]] = {
973
- '200': "DatapointModelPagedResult",
940
+ '200': "GetDatasetByIdResult",
974
941
  }
975
942
  response_data = self.api_client.call_api(
976
943
  *_param,
@@ -984,10 +951,9 @@ class DatasetApi:
984
951
 
985
952
 
986
953
  @validate_call
987
- def dataset_dataset_id_datapoints_get_with_http_info(
954
+ def dataset_dataset_id_get_with_http_info(
988
955
  self,
989
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
990
- request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
956
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
991
957
  _request_timeout: Union[
992
958
  None,
993
959
  Annotated[StrictFloat, Field(gt=0)],
@@ -1000,14 +966,12 @@ class DatasetApi:
1000
966
  _content_type: Optional[StrictStr] = None,
1001
967
  _headers: Optional[Dict[StrictStr, Any]] = None,
1002
968
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1003
- ) -> ApiResponse[DatapointModelPagedResult]:
1004
- """Gets all datapoints of a dataset.
969
+ ) -> ApiResponse[GetDatasetByIdResult]:
970
+ """Gets a dataset by its id.
1005
971
 
1006
972
 
1007
- :param dataset_id: The id of the dataset to get the datapoints of. (required)
973
+ :param dataset_id: The id of the dataset to get. (required)
1008
974
  :type dataset_id: str
1009
- :param request: The query model to filter, sort, and paginate the results.
1010
- :type request: QueryModel
1011
975
  :param _request_timeout: timeout setting for this request. If one
1012
976
  number provided, it will be total request
1013
977
  timeout. It can also be a pair (tuple) of
@@ -1030,9 +994,8 @@ class DatasetApi:
1030
994
  :return: Returns the result object.
1031
995
  """ # noqa: E501
1032
996
 
1033
- _param = self._dataset_dataset_id_datapoints_get_serialize(
997
+ _param = self._dataset_dataset_id_get_serialize(
1034
998
  dataset_id=dataset_id,
1035
- request=request,
1036
999
  _request_auth=_request_auth,
1037
1000
  _content_type=_content_type,
1038
1001
  _headers=_headers,
@@ -1040,7 +1003,7 @@ class DatasetApi:
1040
1003
  )
1041
1004
 
1042
1005
  _response_types_map: Dict[str, Optional[str]] = {
1043
- '200': "DatapointModelPagedResult",
1006
+ '200': "GetDatasetByIdResult",
1044
1007
  }
1045
1008
  response_data = self.api_client.call_api(
1046
1009
  *_param,
@@ -1054,10 +1017,9 @@ class DatasetApi:
1054
1017
 
1055
1018
 
1056
1019
  @validate_call
1057
- def dataset_dataset_id_datapoints_get_without_preload_content(
1020
+ def dataset_dataset_id_get_without_preload_content(
1058
1021
  self,
1059
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
1060
- request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
1022
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
1061
1023
  _request_timeout: Union[
1062
1024
  None,
1063
1025
  Annotated[StrictFloat, Field(gt=0)],
@@ -1071,13 +1033,11 @@ class DatasetApi:
1071
1033
  _headers: Optional[Dict[StrictStr, Any]] = None,
1072
1034
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1073
1035
  ) -> RESTResponseType:
1074
- """Gets all datapoints of a dataset.
1036
+ """Gets a dataset by its id.
1075
1037
 
1076
1038
 
1077
- :param dataset_id: The id of the dataset to get the datapoints of. (required)
1039
+ :param dataset_id: The id of the dataset to get. (required)
1078
1040
  :type dataset_id: str
1079
- :param request: The query model to filter, sort, and paginate the results.
1080
- :type request: QueryModel
1081
1041
  :param _request_timeout: timeout setting for this request. If one
1082
1042
  number provided, it will be total request
1083
1043
  timeout. It can also be a pair (tuple) of
@@ -1100,9 +1060,8 @@ class DatasetApi:
1100
1060
  :return: Returns the result object.
1101
1061
  """ # noqa: E501
1102
1062
 
1103
- _param = self._dataset_dataset_id_datapoints_get_serialize(
1063
+ _param = self._dataset_dataset_id_get_serialize(
1104
1064
  dataset_id=dataset_id,
1105
- request=request,
1106
1065
  _request_auth=_request_auth,
1107
1066
  _content_type=_content_type,
1108
1067
  _headers=_headers,
@@ -1110,7 +1069,7 @@ class DatasetApi:
1110
1069
  )
1111
1070
 
1112
1071
  _response_types_map: Dict[str, Optional[str]] = {
1113
- '200': "DatapointModelPagedResult",
1072
+ '200': "GetDatasetByIdResult",
1114
1073
  }
1115
1074
  response_data = self.api_client.call_api(
1116
1075
  *_param,
@@ -1119,10 +1078,9 @@ class DatasetApi:
1119
1078
  return response_data.response
1120
1079
 
1121
1080
 
1122
- def _dataset_dataset_id_datapoints_get_serialize(
1081
+ def _dataset_dataset_id_get_serialize(
1123
1082
  self,
1124
1083
  dataset_id,
1125
- request,
1126
1084
  _request_auth,
1127
1085
  _content_type,
1128
1086
  _headers,
@@ -1147,10 +1105,6 @@ class DatasetApi:
1147
1105
  if dataset_id is not None:
1148
1106
  _path_params['datasetId'] = dataset_id
1149
1107
  # process the query parameters
1150
- if request is not None:
1151
-
1152
- _query_params.append(('request', request))
1153
-
1154
1108
  # process the header parameters
1155
1109
  # process the form parameters
1156
1110
  # process the body parameter
@@ -1169,13 +1123,14 @@ class DatasetApi:
1169
1123
 
1170
1124
  # authentication setting
1171
1125
  _auth_settings: List[str] = [
1172
- 'bearer',
1173
- 'oauth2'
1126
+ 'OAuth2',
1127
+ 'OpenIdConnect',
1128
+ 'Bearer'
1174
1129
  ]
1175
1130
 
1176
1131
  return self.api_client.param_serialize(
1177
1132
  method='GET',
1178
- resource_path='/dataset/{datasetId}/datapoints',
1133
+ resource_path='/dataset/{datasetId}',
1179
1134
  path_params=_path_params,
1180
1135
  query_params=_query_params,
1181
1136
  header_params=_header_params,
@@ -1192,15 +1147,10 @@ class DatasetApi:
1192
1147
 
1193
1148
 
1194
1149
  @validate_call
1195
- def dataset_dataset_id_datapoints_post(
1150
+ def dataset_dataset_id_name_patch(
1196
1151
  self,
1197
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
1198
- prompt_asset: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1199
- file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1200
- text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
1201
- url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
1202
- metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
1203
- sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
1152
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
1153
+ update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
1204
1154
  _request_timeout: Union[
1205
1155
  None,
1206
1156
  Annotated[StrictFloat, Field(gt=0)],
@@ -1213,25 +1163,14 @@ class DatasetApi:
1213
1163
  _content_type: Optional[StrictStr] = None,
1214
1164
  _headers: Optional[Dict[StrictStr, Any]] = None,
1215
1165
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1216
- ) -> CreateDatapointResult:
1217
- """Creates a new datapoint from multiple possible sources.
1166
+ ) -> None:
1167
+ """Updates the name of a dataset.
1218
1168
 
1219
- Multiple files, texts, and urls can be provided. If multiple files are provided, a multi-asset datapoint will be created, meaning that all sources provided will be stored as sub-assets of the datapoint. If multiple datapoints are desired, one should not pass in multiple files, texts, or urls, instead, one should call this endpoint multiple times with the desired file, text, or url per datapoint. The request must be a multipart form request, where each parameter is sent as a separate part. The files, texts, and urls can be mixed and matched as needed, however, at least one of them must be provided, and one should make sure that mixing them makes sense for the dataset.
1220
1169
 
1221
- :param dataset_id: The id of the dataset (required)
1170
+ :param dataset_id: The id of the dataset to update. (required)
1222
1171
  :type dataset_id: str
1223
- :param prompt_asset:
1224
- :type prompt_asset: List[bytearray]
1225
- :param file:
1226
- :type file: List[bytearray]
1227
- :param text: The texts to upload. The length limit is set at 256 characters per text.
1228
- :type text: List[str]
1229
- :param url: Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>
1230
- :type url: List[str]
1231
- :param metadata: Optional metadata to attach to the datapoint.
1232
- :type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
1233
- :param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
1234
- :type sort_index: int
1172
+ :param update_dataset_name_model: The body of the request. (required)
1173
+ :type update_dataset_name_model: UpdateDatasetNameModel
1235
1174
  :param _request_timeout: timeout setting for this request. If one
1236
1175
  number provided, it will be total request
1237
1176
  timeout. It can also be a pair (tuple) of
@@ -1254,14 +1193,9 @@ class DatasetApi:
1254
1193
  :return: Returns the result object.
1255
1194
  """ # noqa: E501
1256
1195
 
1257
- _param = self._dataset_dataset_id_datapoints_post_serialize(
1196
+ _param = self._dataset_dataset_id_name_patch_serialize(
1258
1197
  dataset_id=dataset_id,
1259
- prompt_asset=prompt_asset,
1260
- file=file,
1261
- text=text,
1262
- url=url,
1263
- metadata=metadata,
1264
- sort_index=sort_index,
1198
+ update_dataset_name_model=update_dataset_name_model,
1265
1199
  _request_auth=_request_auth,
1266
1200
  _content_type=_content_type,
1267
1201
  _headers=_headers,
@@ -1269,7 +1203,7 @@ class DatasetApi:
1269
1203
  )
1270
1204
 
1271
1205
  _response_types_map: Dict[str, Optional[str]] = {
1272
- '200': "CreateDatapointResult",
1206
+ '204': None,
1273
1207
  }
1274
1208
  response_data = self.api_client.call_api(
1275
1209
  *_param,
@@ -1283,15 +1217,10 @@ class DatasetApi:
1283
1217
 
1284
1218
 
1285
1219
  @validate_call
1286
- def dataset_dataset_id_datapoints_post_with_http_info(
1220
+ def dataset_dataset_id_name_patch_with_http_info(
1287
1221
  self,
1288
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
1289
- prompt_asset: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1290
- file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1291
- text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
1292
- url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
1293
- metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
1294
- sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
1222
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
1223
+ update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
1295
1224
  _request_timeout: Union[
1296
1225
  None,
1297
1226
  Annotated[StrictFloat, Field(gt=0)],
@@ -1304,25 +1233,14 @@ class DatasetApi:
1304
1233
  _content_type: Optional[StrictStr] = None,
1305
1234
  _headers: Optional[Dict[StrictStr, Any]] = None,
1306
1235
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1307
- ) -> ApiResponse[CreateDatapointResult]:
1308
- """Creates a new datapoint from multiple possible sources.
1236
+ ) -> ApiResponse[None]:
1237
+ """Updates the name of a dataset.
1309
1238
 
1310
- Multiple files, texts, and urls can be provided. If multiple files are provided, a multi-asset datapoint will be created, meaning that all sources provided will be stored as sub-assets of the datapoint. If multiple datapoints are desired, one should not pass in multiple files, texts, or urls, instead, one should call this endpoint multiple times with the desired file, text, or url per datapoint. The request must be a multipart form request, where each parameter is sent as a separate part. The files, texts, and urls can be mixed and matched as needed, however, at least one of them must be provided, and one should make sure that mixing them makes sense for the dataset.
1311
1239
 
1312
- :param dataset_id: The id of the dataset (required)
1240
+ :param dataset_id: The id of the dataset to update. (required)
1313
1241
  :type dataset_id: str
1314
- :param prompt_asset:
1315
- :type prompt_asset: List[bytearray]
1316
- :param file:
1317
- :type file: List[bytearray]
1318
- :param text: The texts to upload. The length limit is set at 256 characters per text.
1319
- :type text: List[str]
1320
- :param url: Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>
1321
- :type url: List[str]
1322
- :param metadata: Optional metadata to attach to the datapoint.
1323
- :type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
1324
- :param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
1325
- :type sort_index: int
1242
+ :param update_dataset_name_model: The body of the request. (required)
1243
+ :type update_dataset_name_model: UpdateDatasetNameModel
1326
1244
  :param _request_timeout: timeout setting for this request. If one
1327
1245
  number provided, it will be total request
1328
1246
  timeout. It can also be a pair (tuple) of
@@ -1345,14 +1263,9 @@ class DatasetApi:
1345
1263
  :return: Returns the result object.
1346
1264
  """ # noqa: E501
1347
1265
 
1348
- _param = self._dataset_dataset_id_datapoints_post_serialize(
1266
+ _param = self._dataset_dataset_id_name_patch_serialize(
1349
1267
  dataset_id=dataset_id,
1350
- prompt_asset=prompt_asset,
1351
- file=file,
1352
- text=text,
1353
- url=url,
1354
- metadata=metadata,
1355
- sort_index=sort_index,
1268
+ update_dataset_name_model=update_dataset_name_model,
1356
1269
  _request_auth=_request_auth,
1357
1270
  _content_type=_content_type,
1358
1271
  _headers=_headers,
@@ -1360,7 +1273,7 @@ class DatasetApi:
1360
1273
  )
1361
1274
 
1362
1275
  _response_types_map: Dict[str, Optional[str]] = {
1363
- '200': "CreateDatapointResult",
1276
+ '204': None,
1364
1277
  }
1365
1278
  response_data = self.api_client.call_api(
1366
1279
  *_param,
@@ -1374,15 +1287,10 @@ class DatasetApi:
1374
1287
 
1375
1288
 
1376
1289
  @validate_call
1377
- def dataset_dataset_id_datapoints_post_without_preload_content(
1290
+ def dataset_dataset_id_name_patch_without_preload_content(
1378
1291
  self,
1379
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
1380
- prompt_asset: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1381
- file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1382
- text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
1383
- url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
1384
- metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
1385
- sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
1292
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
1293
+ update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
1386
1294
  _request_timeout: Union[
1387
1295
  None,
1388
1296
  Annotated[StrictFloat, Field(gt=0)],
@@ -1396,24 +1304,13 @@ class DatasetApi:
1396
1304
  _headers: Optional[Dict[StrictStr, Any]] = None,
1397
1305
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1398
1306
  ) -> RESTResponseType:
1399
- """Creates a new datapoint from multiple possible sources.
1307
+ """Updates the name of a dataset.
1400
1308
 
1401
- Multiple files, texts, and urls can be provided. If multiple files are provided, a multi-asset datapoint will be created, meaning that all sources provided will be stored as sub-assets of the datapoint. If multiple datapoints are desired, one should not pass in multiple files, texts, or urls, instead, one should call this endpoint multiple times with the desired file, text, or url per datapoint. The request must be a multipart form request, where each parameter is sent as a separate part. The files, texts, and urls can be mixed and matched as needed, however, at least one of them must be provided, and one should make sure that mixing them makes sense for the dataset.
1402
1309
 
1403
- :param dataset_id: The id of the dataset (required)
1310
+ :param dataset_id: The id of the dataset to update. (required)
1404
1311
  :type dataset_id: str
1405
- :param prompt_asset:
1406
- :type prompt_asset: List[bytearray]
1407
- :param file:
1408
- :type file: List[bytearray]
1409
- :param text: The texts to upload. The length limit is set at 256 characters per text.
1410
- :type text: List[str]
1411
- :param url: Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>
1412
- :type url: List[str]
1413
- :param metadata: Optional metadata to attach to the datapoint.
1414
- :type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
1415
- :param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
1416
- :type sort_index: int
1312
+ :param update_dataset_name_model: The body of the request. (required)
1313
+ :type update_dataset_name_model: UpdateDatasetNameModel
1417
1314
  :param _request_timeout: timeout setting for this request. If one
1418
1315
  number provided, it will be total request
1419
1316
  timeout. It can also be a pair (tuple) of
@@ -1436,14 +1333,9 @@ class DatasetApi:
1436
1333
  :return: Returns the result object.
1437
1334
  """ # noqa: E501
1438
1335
 
1439
- _param = self._dataset_dataset_id_datapoints_post_serialize(
1336
+ _param = self._dataset_dataset_id_name_patch_serialize(
1440
1337
  dataset_id=dataset_id,
1441
- prompt_asset=prompt_asset,
1442
- file=file,
1443
- text=text,
1444
- url=url,
1445
- metadata=metadata,
1446
- sort_index=sort_index,
1338
+ update_dataset_name_model=update_dataset_name_model,
1447
1339
  _request_auth=_request_auth,
1448
1340
  _content_type=_content_type,
1449
1341
  _headers=_headers,
@@ -1451,7 +1343,7 @@ class DatasetApi:
1451
1343
  )
1452
1344
 
1453
1345
  _response_types_map: Dict[str, Optional[str]] = {
1454
- '200': "CreateDatapointResult",
1346
+ '204': None,
1455
1347
  }
1456
1348
  response_data = self.api_client.call_api(
1457
1349
  *_param,
@@ -1460,15 +1352,10 @@ class DatasetApi:
1460
1352
  return response_data.response
1461
1353
 
1462
1354
 
1463
- def _dataset_dataset_id_datapoints_post_serialize(
1355
+ def _dataset_dataset_id_name_patch_serialize(
1464
1356
  self,
1465
1357
  dataset_id,
1466
- prompt_asset,
1467
- file,
1468
- text,
1469
- url,
1470
- metadata,
1471
- sort_index,
1358
+ update_dataset_name_model,
1472
1359
  _request_auth,
1473
1360
  _content_type,
1474
1361
  _headers,
@@ -1478,11 +1365,6 @@ class DatasetApi:
1478
1365
  _host = None
1479
1366
 
1480
1367
  _collection_formats: Dict[str, str] = {
1481
- 'promptAsset': 'multi',
1482
- 'file': 'multi',
1483
- 'text': 'multi',
1484
- 'url': 'multi',
1485
- 'metadata': 'multi',
1486
1368
  }
1487
1369
 
1488
1370
  _path_params: Dict[str, str] = {}
@@ -1500,30 +1382,11 @@ class DatasetApi:
1500
1382
  # process the query parameters
1501
1383
  # process the header parameters
1502
1384
  # process the form parameters
1503
- if prompt_asset is not None:
1504
- _files['promptAsset'] = prompt_asset
1505
- if file is not None:
1506
- _files['file'] = file
1507
- if text is not None:
1508
- _form_params.append(('text', text))
1509
- if url is not None:
1510
- _form_params.append(('url', url))
1511
- if metadata is not None:
1512
- _form_params.append(('metadata', metadata))
1513
- if sort_index is not None:
1514
- _form_params.append(('sortIndex', sort_index))
1515
1385
  # process the body parameter
1386
+ if update_dataset_name_model is not None:
1387
+ _body_params = update_dataset_name_model
1516
1388
 
1517
1389
 
1518
- # set the HTTP header `Accept`
1519
- if 'Accept' not in _header_params:
1520
- _header_params['Accept'] = self.api_client.select_header_accept(
1521
- [
1522
- 'text/plain',
1523
- 'application/json',
1524
- 'text/json'
1525
- ]
1526
- )
1527
1390
 
1528
1391
  # set the HTTP header `Content-Type`
1529
1392
  if _content_type:
@@ -1532,7 +1395,9 @@ class DatasetApi:
1532
1395
  _default_content_type = (
1533
1396
  self.api_client.select_header_content_type(
1534
1397
  [
1535
- 'multipart/form-data'
1398
+ 'application/json',
1399
+ 'text/json',
1400
+ 'application/*+json'
1536
1401
  ]
1537
1402
  )
1538
1403
  )
@@ -1541,13 +1406,14 @@ class DatasetApi:
1541
1406
 
1542
1407
  # authentication setting
1543
1408
  _auth_settings: List[str] = [
1544
- 'bearer',
1545
- 'oauth2'
1409
+ 'OAuth2',
1410
+ 'OpenIdConnect',
1411
+ 'Bearer'
1546
1412
  ]
1547
1413
 
1548
1414
  return self.api_client.param_serialize(
1549
- method='POST',
1550
- resource_path='/dataset/{datasetId}/datapoints',
1415
+ method='PATCH',
1416
+ resource_path='/dataset/{datasetId}/name',
1551
1417
  path_params=_path_params,
1552
1418
  query_params=_query_params,
1553
1419
  header_params=_header_params,
@@ -1564,10 +1430,9 @@ class DatasetApi:
1564
1430
 
1565
1431
 
1566
1432
  @validate_call
1567
- def dataset_dataset_id_datapoints_s3_post(
1433
+ def dataset_dataset_id_progress_get(
1568
1434
  self,
1569
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
1570
- create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
1435
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
1571
1436
  _request_timeout: Union[
1572
1437
  None,
1573
1438
  Annotated[StrictFloat, Field(gt=0)],
@@ -1580,15 +1445,12 @@ class DatasetApi:
1580
1445
  _content_type: Optional[StrictStr] = None,
1581
1446
  _headers: Optional[Dict[StrictStr, Any]] = None,
1582
1447
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1583
- ) -> UploadFromS3Result:
1584
- """Uploads files from an S3 bucket to a dataset.
1448
+ ) -> GetDatasetProgressResult:
1449
+ """Gets the upload progress of a dataset.
1585
1450
 
1586
- A new datapoint will be created for each file in the bucket.
1587
1451
 
1588
- :param dataset_id: The id of the dataset to upload the files to. (required)
1452
+ :param dataset_id: The id of the dataset to get the progress of. (required)
1589
1453
  :type dataset_id: str
1590
- :param create_datapoints_from_s3_bucket_model: The body of the request.
1591
- :type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
1592
1454
  :param _request_timeout: timeout setting for this request. If one
1593
1455
  number provided, it will be total request
1594
1456
  timeout. It can also be a pair (tuple) of
@@ -1611,9 +1473,8 @@ class DatasetApi:
1611
1473
  :return: Returns the result object.
1612
1474
  """ # noqa: E501
1613
1475
 
1614
- _param = self._dataset_dataset_id_datapoints_s3_post_serialize(
1476
+ _param = self._dataset_dataset_id_progress_get_serialize(
1615
1477
  dataset_id=dataset_id,
1616
- create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
1617
1478
  _request_auth=_request_auth,
1618
1479
  _content_type=_content_type,
1619
1480
  _headers=_headers,
@@ -1621,7 +1482,7 @@ class DatasetApi:
1621
1482
  )
1622
1483
 
1623
1484
  _response_types_map: Dict[str, Optional[str]] = {
1624
- '200': "UploadFromS3Result",
1485
+ '200': "GetDatasetProgressResult",
1625
1486
  }
1626
1487
  response_data = self.api_client.call_api(
1627
1488
  *_param,
@@ -1635,10 +1496,9 @@ class DatasetApi:
1635
1496
 
1636
1497
 
1637
1498
  @validate_call
1638
- def dataset_dataset_id_datapoints_s3_post_with_http_info(
1499
+ def dataset_dataset_id_progress_get_with_http_info(
1639
1500
  self,
1640
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
1641
- create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
1501
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
1642
1502
  _request_timeout: Union[
1643
1503
  None,
1644
1504
  Annotated[StrictFloat, Field(gt=0)],
@@ -1651,15 +1511,12 @@ class DatasetApi:
1651
1511
  _content_type: Optional[StrictStr] = None,
1652
1512
  _headers: Optional[Dict[StrictStr, Any]] = None,
1653
1513
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1654
- ) -> ApiResponse[UploadFromS3Result]:
1655
- """Uploads files from an S3 bucket to a dataset.
1514
+ ) -> ApiResponse[GetDatasetProgressResult]:
1515
+ """Gets the upload progress of a dataset.
1656
1516
 
1657
- A new datapoint will be created for each file in the bucket.
1658
1517
 
1659
- :param dataset_id: The id of the dataset to upload the files to. (required)
1518
+ :param dataset_id: The id of the dataset to get the progress of. (required)
1660
1519
  :type dataset_id: str
1661
- :param create_datapoints_from_s3_bucket_model: The body of the request.
1662
- :type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
1663
1520
  :param _request_timeout: timeout setting for this request. If one
1664
1521
  number provided, it will be total request
1665
1522
  timeout. It can also be a pair (tuple) of
@@ -1682,9 +1539,8 @@ class DatasetApi:
1682
1539
  :return: Returns the result object.
1683
1540
  """ # noqa: E501
1684
1541
 
1685
- _param = self._dataset_dataset_id_datapoints_s3_post_serialize(
1542
+ _param = self._dataset_dataset_id_progress_get_serialize(
1686
1543
  dataset_id=dataset_id,
1687
- create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
1688
1544
  _request_auth=_request_auth,
1689
1545
  _content_type=_content_type,
1690
1546
  _headers=_headers,
@@ -1692,7 +1548,7 @@ class DatasetApi:
1692
1548
  )
1693
1549
 
1694
1550
  _response_types_map: Dict[str, Optional[str]] = {
1695
- '200': "UploadFromS3Result",
1551
+ '200': "GetDatasetProgressResult",
1696
1552
  }
1697
1553
  response_data = self.api_client.call_api(
1698
1554
  *_param,
@@ -1706,10 +1562,9 @@ class DatasetApi:
1706
1562
 
1707
1563
 
1708
1564
  @validate_call
1709
- def dataset_dataset_id_datapoints_s3_post_without_preload_content(
1565
+ def dataset_dataset_id_progress_get_without_preload_content(
1710
1566
  self,
1711
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
1712
- create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
1567
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
1713
1568
  _request_timeout: Union[
1714
1569
  None,
1715
1570
  Annotated[StrictFloat, Field(gt=0)],
@@ -1723,14 +1578,11 @@ class DatasetApi:
1723
1578
  _headers: Optional[Dict[StrictStr, Any]] = None,
1724
1579
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1725
1580
  ) -> RESTResponseType:
1726
- """Uploads files from an S3 bucket to a dataset.
1581
+ """Gets the upload progress of a dataset.
1727
1582
 
1728
- A new datapoint will be created for each file in the bucket.
1729
1583
 
1730
- :param dataset_id: The id of the dataset to upload the files to. (required)
1584
+ :param dataset_id: The id of the dataset to get the progress of. (required)
1731
1585
  :type dataset_id: str
1732
- :param create_datapoints_from_s3_bucket_model: The body of the request.
1733
- :type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
1734
1586
  :param _request_timeout: timeout setting for this request. If one
1735
1587
  number provided, it will be total request
1736
1588
  timeout. It can also be a pair (tuple) of
@@ -1753,9 +1605,8 @@ class DatasetApi:
1753
1605
  :return: Returns the result object.
1754
1606
  """ # noqa: E501
1755
1607
 
1756
- _param = self._dataset_dataset_id_datapoints_s3_post_serialize(
1608
+ _param = self._dataset_dataset_id_progress_get_serialize(
1757
1609
  dataset_id=dataset_id,
1758
- create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
1759
1610
  _request_auth=_request_auth,
1760
1611
  _content_type=_content_type,
1761
1612
  _headers=_headers,
@@ -1763,7 +1614,7 @@ class DatasetApi:
1763
1614
  )
1764
1615
 
1765
1616
  _response_types_map: Dict[str, Optional[str]] = {
1766
- '200': "UploadFromS3Result",
1617
+ '200': "GetDatasetProgressResult",
1767
1618
  }
1768
1619
  response_data = self.api_client.call_api(
1769
1620
  *_param,
@@ -1772,10 +1623,9 @@ class DatasetApi:
1772
1623
  return response_data.response
1773
1624
 
1774
1625
 
1775
- def _dataset_dataset_id_datapoints_s3_post_serialize(
1626
+ def _dataset_dataset_id_progress_get_serialize(
1776
1627
  self,
1777
1628
  dataset_id,
1778
- create_datapoints_from_s3_bucket_model,
1779
1629
  _request_auth,
1780
1630
  _content_type,
1781
1631
  _headers,
@@ -1803,8 +1653,6 @@ class DatasetApi:
1803
1653
  # process the header parameters
1804
1654
  # process the form parameters
1805
1655
  # process the body parameter
1806
- if create_datapoints_from_s3_bucket_model is not None:
1807
- _body_params = create_datapoints_from_s3_bucket_model
1808
1656
 
1809
1657
 
1810
1658
  # set the HTTP header `Accept`
@@ -1817,31 +1665,17 @@ class DatasetApi:
1817
1665
  ]
1818
1666
  )
1819
1667
 
1820
- # set the HTTP header `Content-Type`
1821
- if _content_type:
1822
- _header_params['Content-Type'] = _content_type
1823
- else:
1824
- _default_content_type = (
1825
- self.api_client.select_header_content_type(
1826
- [
1827
- 'application/json',
1828
- 'text/json',
1829
- 'application/*+json'
1830
- ]
1831
- )
1832
- )
1833
- if _default_content_type is not None:
1834
- _header_params['Content-Type'] = _default_content_type
1835
1668
 
1836
1669
  # authentication setting
1837
1670
  _auth_settings: List[str] = [
1838
- 'bearer',
1839
- 'oauth2'
1671
+ 'OAuth2',
1672
+ 'OpenIdConnect',
1673
+ 'Bearer'
1840
1674
  ]
1841
1675
 
1842
1676
  return self.api_client.param_serialize(
1843
- method='POST',
1844
- resource_path='/dataset/{datasetId}/datapoints/s3',
1677
+ method='GET',
1678
+ resource_path='/dataset/{datasetId}/progress',
1845
1679
  path_params=_path_params,
1846
1680
  query_params=_query_params,
1847
1681
  header_params=_header_params,
@@ -1858,10 +1692,9 @@ class DatasetApi:
1858
1692
 
1859
1693
 
1860
1694
  @validate_call
1861
- def dataset_dataset_id_datapoints_texts_post(
1695
+ def dataset_post(
1862
1696
  self,
1863
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
1864
- create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
1697
+ create_dataset_endpoint_input: CreateDatasetEndpointInput,
1865
1698
  _request_timeout: Union[
1866
1699
  None,
1867
1700
  Annotated[StrictFloat, Field(gt=0)],
@@ -1874,15 +1707,12 @@ class DatasetApi:
1874
1707
  _content_type: Optional[StrictStr] = None,
1875
1708
  _headers: Optional[Dict[StrictStr, Any]] = None,
1876
1709
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1877
- ) -> CreateDatapointResult:
1878
- """Creates a single datapoint from text sources.
1710
+ ) -> CreateDatasetEndpointOutput:
1711
+ """Creates a new empty dataset.
1879
1712
 
1880
- If multiple text sources are uploaded, a multi asset datapoint will be created.
1881
1713
 
1882
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
1883
- :type dataset_id: str
1884
- :param create_datapoint_from_text_sources_model: The body of the request.
1885
- :type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
1714
+ :param create_dataset_endpoint_input: (required)
1715
+ :type create_dataset_endpoint_input: CreateDatasetEndpointInput
1886
1716
  :param _request_timeout: timeout setting for this request. If one
1887
1717
  number provided, it will be total request
1888
1718
  timeout. It can also be a pair (tuple) of
@@ -1905,9 +1735,8 @@ class DatasetApi:
1905
1735
  :return: Returns the result object.
1906
1736
  """ # noqa: E501
1907
1737
 
1908
- _param = self._dataset_dataset_id_datapoints_texts_post_serialize(
1909
- dataset_id=dataset_id,
1910
- create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
1738
+ _param = self._dataset_post_serialize(
1739
+ create_dataset_endpoint_input=create_dataset_endpoint_input,
1911
1740
  _request_auth=_request_auth,
1912
1741
  _content_type=_content_type,
1913
1742
  _headers=_headers,
@@ -1915,7 +1744,10 @@ class DatasetApi:
1915
1744
  )
1916
1745
 
1917
1746
  _response_types_map: Dict[str, Optional[str]] = {
1918
- '200': "CreateDatapointResult",
1747
+ '200': "CreateDatasetEndpointOutput",
1748
+ '400': "ValidationProblemDetails",
1749
+ '401': None,
1750
+ '403': None,
1919
1751
  }
1920
1752
  response_data = self.api_client.call_api(
1921
1753
  *_param,
@@ -1929,10 +1761,9 @@ class DatasetApi:
1929
1761
 
1930
1762
 
1931
1763
  @validate_call
1932
- def dataset_dataset_id_datapoints_texts_post_with_http_info(
1764
+ def dataset_post_with_http_info(
1933
1765
  self,
1934
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
1935
- create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
1766
+ create_dataset_endpoint_input: CreateDatasetEndpointInput,
1936
1767
  _request_timeout: Union[
1937
1768
  None,
1938
1769
  Annotated[StrictFloat, Field(gt=0)],
@@ -1945,15 +1776,12 @@ class DatasetApi:
1945
1776
  _content_type: Optional[StrictStr] = None,
1946
1777
  _headers: Optional[Dict[StrictStr, Any]] = None,
1947
1778
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1948
- ) -> ApiResponse[CreateDatapointResult]:
1949
- """Creates a single datapoint from text sources.
1779
+ ) -> ApiResponse[CreateDatasetEndpointOutput]:
1780
+ """Creates a new empty dataset.
1950
1781
 
1951
- If multiple text sources are uploaded, a multi asset datapoint will be created.
1952
1782
 
1953
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
1954
- :type dataset_id: str
1955
- :param create_datapoint_from_text_sources_model: The body of the request.
1956
- :type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
1783
+ :param create_dataset_endpoint_input: (required)
1784
+ :type create_dataset_endpoint_input: CreateDatasetEndpointInput
1957
1785
  :param _request_timeout: timeout setting for this request. If one
1958
1786
  number provided, it will be total request
1959
1787
  timeout. It can also be a pair (tuple) of
@@ -1976,9 +1804,8 @@ class DatasetApi:
1976
1804
  :return: Returns the result object.
1977
1805
  """ # noqa: E501
1978
1806
 
1979
- _param = self._dataset_dataset_id_datapoints_texts_post_serialize(
1980
- dataset_id=dataset_id,
1981
- create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
1807
+ _param = self._dataset_post_serialize(
1808
+ create_dataset_endpoint_input=create_dataset_endpoint_input,
1982
1809
  _request_auth=_request_auth,
1983
1810
  _content_type=_content_type,
1984
1811
  _headers=_headers,
@@ -1986,7 +1813,10 @@ class DatasetApi:
1986
1813
  )
1987
1814
 
1988
1815
  _response_types_map: Dict[str, Optional[str]] = {
1989
- '200': "CreateDatapointResult",
1816
+ '200': "CreateDatasetEndpointOutput",
1817
+ '400': "ValidationProblemDetails",
1818
+ '401': None,
1819
+ '403': None,
1990
1820
  }
1991
1821
  response_data = self.api_client.call_api(
1992
1822
  *_param,
@@ -2000,10 +1830,9 @@ class DatasetApi:
2000
1830
 
2001
1831
 
2002
1832
  @validate_call
2003
- def dataset_dataset_id_datapoints_texts_post_without_preload_content(
1833
+ def dataset_post_without_preload_content(
2004
1834
  self,
2005
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
2006
- create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
1835
+ create_dataset_endpoint_input: CreateDatasetEndpointInput,
2007
1836
  _request_timeout: Union[
2008
1837
  None,
2009
1838
  Annotated[StrictFloat, Field(gt=0)],
@@ -2017,14 +1846,11 @@ class DatasetApi:
2017
1846
  _headers: Optional[Dict[StrictStr, Any]] = None,
2018
1847
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2019
1848
  ) -> RESTResponseType:
2020
- """Creates a single datapoint from text sources.
1849
+ """Creates a new empty dataset.
2021
1850
 
2022
- If multiple text sources are uploaded, a multi asset datapoint will be created.
2023
1851
 
2024
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
2025
- :type dataset_id: str
2026
- :param create_datapoint_from_text_sources_model: The body of the request.
2027
- :type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
1852
+ :param create_dataset_endpoint_input: (required)
1853
+ :type create_dataset_endpoint_input: CreateDatasetEndpointInput
2028
1854
  :param _request_timeout: timeout setting for this request. If one
2029
1855
  number provided, it will be total request
2030
1856
  timeout. It can also be a pair (tuple) of
@@ -2047,9 +1873,8 @@ class DatasetApi:
2047
1873
  :return: Returns the result object.
2048
1874
  """ # noqa: E501
2049
1875
 
2050
- _param = self._dataset_dataset_id_datapoints_texts_post_serialize(
2051
- dataset_id=dataset_id,
2052
- create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
1876
+ _param = self._dataset_post_serialize(
1877
+ create_dataset_endpoint_input=create_dataset_endpoint_input,
2053
1878
  _request_auth=_request_auth,
2054
1879
  _content_type=_content_type,
2055
1880
  _headers=_headers,
@@ -2057,7 +1882,10 @@ class DatasetApi:
2057
1882
  )
2058
1883
 
2059
1884
  _response_types_map: Dict[str, Optional[str]] = {
2060
- '200': "CreateDatapointResult",
1885
+ '200': "CreateDatasetEndpointOutput",
1886
+ '400': "ValidationProblemDetails",
1887
+ '401': None,
1888
+ '403': None,
2061
1889
  }
2062
1890
  response_data = self.api_client.call_api(
2063
1891
  *_param,
@@ -2066,10 +1894,9 @@ class DatasetApi:
2066
1894
  return response_data.response
2067
1895
 
2068
1896
 
2069
- def _dataset_dataset_id_datapoints_texts_post_serialize(
1897
+ def _dataset_post_serialize(
2070
1898
  self,
2071
- dataset_id,
2072
- create_datapoint_from_text_sources_model,
1899
+ create_dataset_endpoint_input,
2073
1900
  _request_auth,
2074
1901
  _content_type,
2075
1902
  _headers,
@@ -2091,23 +1918,19 @@ class DatasetApi:
2091
1918
  _body_params: Optional[bytes] = None
2092
1919
 
2093
1920
  # process the path parameters
2094
- if dataset_id is not None:
2095
- _path_params['datasetId'] = dataset_id
2096
1921
  # process the query parameters
2097
1922
  # process the header parameters
2098
1923
  # process the form parameters
2099
1924
  # process the body parameter
2100
- if create_datapoint_from_text_sources_model is not None:
2101
- _body_params = create_datapoint_from_text_sources_model
1925
+ if create_dataset_endpoint_input is not None:
1926
+ _body_params = create_dataset_endpoint_input
2102
1927
 
2103
1928
 
2104
1929
  # set the HTTP header `Accept`
2105
1930
  if 'Accept' not in _header_params:
2106
1931
  _header_params['Accept'] = self.api_client.select_header_accept(
2107
1932
  [
2108
- 'text/plain',
2109
- 'application/json',
2110
- 'text/json'
1933
+ 'application/json'
2111
1934
  ]
2112
1935
  )
2113
1936
 
@@ -2118,9 +1941,7 @@ class DatasetApi:
2118
1941
  _default_content_type = (
2119
1942
  self.api_client.select_header_content_type(
2120
1943
  [
2121
- 'application/json',
2122
- 'text/json',
2123
- 'application/*+json'
1944
+ 'application/json'
2124
1945
  ]
2125
1946
  )
2126
1947
  )
@@ -2129,1111 +1950,14 @@ class DatasetApi:
2129
1950
 
2130
1951
  # authentication setting
2131
1952
  _auth_settings: List[str] = [
2132
- 'bearer',
2133
- 'oauth2'
1953
+ 'OAuth2',
1954
+ 'OpenIdConnect',
1955
+ 'Bearer'
2134
1956
  ]
2135
1957
 
2136
1958
  return self.api_client.param_serialize(
2137
1959
  method='POST',
2138
- resource_path='/dataset/{datasetId}/datapoints/texts',
2139
- path_params=_path_params,
2140
- query_params=_query_params,
2141
- header_params=_header_params,
2142
- body=_body_params,
2143
- post_params=_form_params,
2144
- files=_files,
2145
- auth_settings=_auth_settings,
2146
- collection_formats=_collection_formats,
2147
- _host=_host,
2148
- _request_auth=_request_auth
2149
- )
2150
-
2151
-
2152
-
2153
-
2154
- @validate_call
2155
- def dataset_dataset_id_datapoints_urls_post(
2156
- self,
2157
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
2158
- create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
2159
- _request_timeout: Union[
2160
- None,
2161
- Annotated[StrictFloat, Field(gt=0)],
2162
- Tuple[
2163
- Annotated[StrictFloat, Field(gt=0)],
2164
- Annotated[StrictFloat, Field(gt=0)]
2165
- ]
2166
- ] = None,
2167
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2168
- _content_type: Optional[StrictStr] = None,
2169
- _headers: Optional[Dict[StrictStr, Any]] = None,
2170
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2171
- ) -> CreateDatapointResult:
2172
- """Creates a single datapoint where the assets are fetched from the specified urls.
2173
-
2174
- Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
2175
-
2176
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
2177
- :type dataset_id: str
2178
- :param create_datapoint_from_urls_model: The body of the request.
2179
- :type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
2180
- :param _request_timeout: timeout setting for this request. If one
2181
- number provided, it will be total request
2182
- timeout. It can also be a pair (tuple) of
2183
- (connection, read) timeouts.
2184
- :type _request_timeout: int, tuple(int, int), optional
2185
- :param _request_auth: set to override the auth_settings for an a single
2186
- request; this effectively ignores the
2187
- authentication in the spec for a single request.
2188
- :type _request_auth: dict, optional
2189
- :param _content_type: force content-type for the request.
2190
- :type _content_type: str, Optional
2191
- :param _headers: set to override the headers for a single
2192
- request; this effectively ignores the headers
2193
- in the spec for a single request.
2194
- :type _headers: dict, optional
2195
- :param _host_index: set to override the host_index for a single
2196
- request; this effectively ignores the host_index
2197
- in the spec for a single request.
2198
- :type _host_index: int, optional
2199
- :return: Returns the result object.
2200
- """ # noqa: E501
2201
-
2202
- _param = self._dataset_dataset_id_datapoints_urls_post_serialize(
2203
- dataset_id=dataset_id,
2204
- create_datapoint_from_urls_model=create_datapoint_from_urls_model,
2205
- _request_auth=_request_auth,
2206
- _content_type=_content_type,
2207
- _headers=_headers,
2208
- _host_index=_host_index
2209
- )
2210
-
2211
- _response_types_map: Dict[str, Optional[str]] = {
2212
- '200': "CreateDatapointResult",
2213
- }
2214
- response_data = self.api_client.call_api(
2215
- *_param,
2216
- _request_timeout=_request_timeout
2217
- )
2218
- response_data.read()
2219
- return self.api_client.response_deserialize(
2220
- response_data=response_data,
2221
- response_types_map=_response_types_map,
2222
- ).data
2223
-
2224
-
2225
- @validate_call
2226
- def dataset_dataset_id_datapoints_urls_post_with_http_info(
2227
- self,
2228
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
2229
- create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
2230
- _request_timeout: Union[
2231
- None,
2232
- Annotated[StrictFloat, Field(gt=0)],
2233
- Tuple[
2234
- Annotated[StrictFloat, Field(gt=0)],
2235
- Annotated[StrictFloat, Field(gt=0)]
2236
- ]
2237
- ] = None,
2238
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2239
- _content_type: Optional[StrictStr] = None,
2240
- _headers: Optional[Dict[StrictStr, Any]] = None,
2241
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2242
- ) -> ApiResponse[CreateDatapointResult]:
2243
- """Creates a single datapoint where the assets are fetched from the specified urls.
2244
-
2245
- Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
2246
-
2247
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
2248
- :type dataset_id: str
2249
- :param create_datapoint_from_urls_model: The body of the request.
2250
- :type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
2251
- :param _request_timeout: timeout setting for this request. If one
2252
- number provided, it will be total request
2253
- timeout. It can also be a pair (tuple) of
2254
- (connection, read) timeouts.
2255
- :type _request_timeout: int, tuple(int, int), optional
2256
- :param _request_auth: set to override the auth_settings for an a single
2257
- request; this effectively ignores the
2258
- authentication in the spec for a single request.
2259
- :type _request_auth: dict, optional
2260
- :param _content_type: force content-type for the request.
2261
- :type _content_type: str, Optional
2262
- :param _headers: set to override the headers for a single
2263
- request; this effectively ignores the headers
2264
- in the spec for a single request.
2265
- :type _headers: dict, optional
2266
- :param _host_index: set to override the host_index for a single
2267
- request; this effectively ignores the host_index
2268
- in the spec for a single request.
2269
- :type _host_index: int, optional
2270
- :return: Returns the result object.
2271
- """ # noqa: E501
2272
-
2273
- _param = self._dataset_dataset_id_datapoints_urls_post_serialize(
2274
- dataset_id=dataset_id,
2275
- create_datapoint_from_urls_model=create_datapoint_from_urls_model,
2276
- _request_auth=_request_auth,
2277
- _content_type=_content_type,
2278
- _headers=_headers,
2279
- _host_index=_host_index
2280
- )
2281
-
2282
- _response_types_map: Dict[str, Optional[str]] = {
2283
- '200': "CreateDatapointResult",
2284
- }
2285
- response_data = self.api_client.call_api(
2286
- *_param,
2287
- _request_timeout=_request_timeout
2288
- )
2289
- response_data.read()
2290
- return self.api_client.response_deserialize(
2291
- response_data=response_data,
2292
- response_types_map=_response_types_map,
2293
- )
2294
-
2295
-
2296
- @validate_call
2297
- def dataset_dataset_id_datapoints_urls_post_without_preload_content(
2298
- self,
2299
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
2300
- create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
2301
- _request_timeout: Union[
2302
- None,
2303
- Annotated[StrictFloat, Field(gt=0)],
2304
- Tuple[
2305
- Annotated[StrictFloat, Field(gt=0)],
2306
- Annotated[StrictFloat, Field(gt=0)]
2307
- ]
2308
- ] = None,
2309
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2310
- _content_type: Optional[StrictStr] = None,
2311
- _headers: Optional[Dict[StrictStr, Any]] = None,
2312
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2313
- ) -> RESTResponseType:
2314
- """Creates a single datapoint where the assets are fetched from the specified urls.
2315
-
2316
- Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
2317
-
2318
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
2319
- :type dataset_id: str
2320
- :param create_datapoint_from_urls_model: The body of the request.
2321
- :type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
2322
- :param _request_timeout: timeout setting for this request. If one
2323
- number provided, it will be total request
2324
- timeout. It can also be a pair (tuple) of
2325
- (connection, read) timeouts.
2326
- :type _request_timeout: int, tuple(int, int), optional
2327
- :param _request_auth: set to override the auth_settings for an a single
2328
- request; this effectively ignores the
2329
- authentication in the spec for a single request.
2330
- :type _request_auth: dict, optional
2331
- :param _content_type: force content-type for the request.
2332
- :type _content_type: str, Optional
2333
- :param _headers: set to override the headers for a single
2334
- request; this effectively ignores the headers
2335
- in the spec for a single request.
2336
- :type _headers: dict, optional
2337
- :param _host_index: set to override the host_index for a single
2338
- request; this effectively ignores the host_index
2339
- in the spec for a single request.
2340
- :type _host_index: int, optional
2341
- :return: Returns the result object.
2342
- """ # noqa: E501
2343
-
2344
- _param = self._dataset_dataset_id_datapoints_urls_post_serialize(
2345
- dataset_id=dataset_id,
2346
- create_datapoint_from_urls_model=create_datapoint_from_urls_model,
2347
- _request_auth=_request_auth,
2348
- _content_type=_content_type,
2349
- _headers=_headers,
2350
- _host_index=_host_index
2351
- )
2352
-
2353
- _response_types_map: Dict[str, Optional[str]] = {
2354
- '200': "CreateDatapointResult",
2355
- }
2356
- response_data = self.api_client.call_api(
2357
- *_param,
2358
- _request_timeout=_request_timeout
2359
- )
2360
- return response_data.response
2361
-
2362
-
2363
- def _dataset_dataset_id_datapoints_urls_post_serialize(
2364
- self,
2365
- dataset_id,
2366
- create_datapoint_from_urls_model,
2367
- _request_auth,
2368
- _content_type,
2369
- _headers,
2370
- _host_index,
2371
- ) -> RequestSerialized:
2372
-
2373
- _host = None
2374
-
2375
- _collection_formats: Dict[str, str] = {
2376
- }
2377
-
2378
- _path_params: Dict[str, str] = {}
2379
- _query_params: List[Tuple[str, str]] = []
2380
- _header_params: Dict[str, Optional[str]] = _headers or {}
2381
- _form_params: List[Tuple[str, str]] = []
2382
- _files: Dict[
2383
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2384
- ] = {}
2385
- _body_params: Optional[bytes] = None
2386
-
2387
- # process the path parameters
2388
- if dataset_id is not None:
2389
- _path_params['datasetId'] = dataset_id
2390
- # process the query parameters
2391
- # process the header parameters
2392
- # process the form parameters
2393
- # process the body parameter
2394
- if create_datapoint_from_urls_model is not None:
2395
- _body_params = create_datapoint_from_urls_model
2396
-
2397
-
2398
- # set the HTTP header `Accept`
2399
- if 'Accept' not in _header_params:
2400
- _header_params['Accept'] = self.api_client.select_header_accept(
2401
- [
2402
- 'text/plain',
2403
- 'application/json',
2404
- 'text/json'
2405
- ]
2406
- )
2407
-
2408
- # set the HTTP header `Content-Type`
2409
- if _content_type:
2410
- _header_params['Content-Type'] = _content_type
2411
- else:
2412
- _default_content_type = (
2413
- self.api_client.select_header_content_type(
2414
- [
2415
- 'application/json',
2416
- 'text/json',
2417
- 'application/*+json'
2418
- ]
2419
- )
2420
- )
2421
- if _default_content_type is not None:
2422
- _header_params['Content-Type'] = _default_content_type
2423
-
2424
- # authentication setting
2425
- _auth_settings: List[str] = [
2426
- 'bearer',
2427
- 'oauth2'
2428
- ]
2429
-
2430
- return self.api_client.param_serialize(
2431
- method='POST',
2432
- resource_path='/dataset/{datasetId}/datapoints/urls',
2433
- path_params=_path_params,
2434
- query_params=_query_params,
2435
- header_params=_header_params,
2436
- body=_body_params,
2437
- post_params=_form_params,
2438
- files=_files,
2439
- auth_settings=_auth_settings,
2440
- collection_formats=_collection_formats,
2441
- _host=_host,
2442
- _request_auth=_request_auth
2443
- )
2444
-
2445
-
2446
-
2447
-
2448
- @validate_call
2449
- def dataset_dataset_id_get(
2450
- self,
2451
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
2452
- _request_timeout: Union[
2453
- None,
2454
- Annotated[StrictFloat, Field(gt=0)],
2455
- Tuple[
2456
- Annotated[StrictFloat, Field(gt=0)],
2457
- Annotated[StrictFloat, Field(gt=0)]
2458
- ]
2459
- ] = None,
2460
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2461
- _content_type: Optional[StrictStr] = None,
2462
- _headers: Optional[Dict[StrictStr, Any]] = None,
2463
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2464
- ) -> GetDatasetByIdResult:
2465
- """Gets a dataset by its id.
2466
-
2467
-
2468
- :param dataset_id: The id of the dataset to get. (required)
2469
- :type dataset_id: str
2470
- :param _request_timeout: timeout setting for this request. If one
2471
- number provided, it will be total request
2472
- timeout. It can also be a pair (tuple) of
2473
- (connection, read) timeouts.
2474
- :type _request_timeout: int, tuple(int, int), optional
2475
- :param _request_auth: set to override the auth_settings for an a single
2476
- request; this effectively ignores the
2477
- authentication in the spec for a single request.
2478
- :type _request_auth: dict, optional
2479
- :param _content_type: force content-type for the request.
2480
- :type _content_type: str, Optional
2481
- :param _headers: set to override the headers for a single
2482
- request; this effectively ignores the headers
2483
- in the spec for a single request.
2484
- :type _headers: dict, optional
2485
- :param _host_index: set to override the host_index for a single
2486
- request; this effectively ignores the host_index
2487
- in the spec for a single request.
2488
- :type _host_index: int, optional
2489
- :return: Returns the result object.
2490
- """ # noqa: E501
2491
-
2492
- _param = self._dataset_dataset_id_get_serialize(
2493
- dataset_id=dataset_id,
2494
- _request_auth=_request_auth,
2495
- _content_type=_content_type,
2496
- _headers=_headers,
2497
- _host_index=_host_index
2498
- )
2499
-
2500
- _response_types_map: Dict[str, Optional[str]] = {
2501
- '200': "GetDatasetByIdResult",
2502
- }
2503
- response_data = self.api_client.call_api(
2504
- *_param,
2505
- _request_timeout=_request_timeout
2506
- )
2507
- response_data.read()
2508
- return self.api_client.response_deserialize(
2509
- response_data=response_data,
2510
- response_types_map=_response_types_map,
2511
- ).data
2512
-
2513
-
2514
- @validate_call
2515
- def dataset_dataset_id_get_with_http_info(
2516
- self,
2517
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
2518
- _request_timeout: Union[
2519
- None,
2520
- Annotated[StrictFloat, Field(gt=0)],
2521
- Tuple[
2522
- Annotated[StrictFloat, Field(gt=0)],
2523
- Annotated[StrictFloat, Field(gt=0)]
2524
- ]
2525
- ] = None,
2526
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2527
- _content_type: Optional[StrictStr] = None,
2528
- _headers: Optional[Dict[StrictStr, Any]] = None,
2529
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2530
- ) -> ApiResponse[GetDatasetByIdResult]:
2531
- """Gets a dataset by its id.
2532
-
2533
-
2534
- :param dataset_id: The id of the dataset to get. (required)
2535
- :type dataset_id: str
2536
- :param _request_timeout: timeout setting for this request. If one
2537
- number provided, it will be total request
2538
- timeout. It can also be a pair (tuple) of
2539
- (connection, read) timeouts.
2540
- :type _request_timeout: int, tuple(int, int), optional
2541
- :param _request_auth: set to override the auth_settings for an a single
2542
- request; this effectively ignores the
2543
- authentication in the spec for a single request.
2544
- :type _request_auth: dict, optional
2545
- :param _content_type: force content-type for the request.
2546
- :type _content_type: str, Optional
2547
- :param _headers: set to override the headers for a single
2548
- request; this effectively ignores the headers
2549
- in the spec for a single request.
2550
- :type _headers: dict, optional
2551
- :param _host_index: set to override the host_index for a single
2552
- request; this effectively ignores the host_index
2553
- in the spec for a single request.
2554
- :type _host_index: int, optional
2555
- :return: Returns the result object.
2556
- """ # noqa: E501
2557
-
2558
- _param = self._dataset_dataset_id_get_serialize(
2559
- dataset_id=dataset_id,
2560
- _request_auth=_request_auth,
2561
- _content_type=_content_type,
2562
- _headers=_headers,
2563
- _host_index=_host_index
2564
- )
2565
-
2566
- _response_types_map: Dict[str, Optional[str]] = {
2567
- '200': "GetDatasetByIdResult",
2568
- }
2569
- response_data = self.api_client.call_api(
2570
- *_param,
2571
- _request_timeout=_request_timeout
2572
- )
2573
- response_data.read()
2574
- return self.api_client.response_deserialize(
2575
- response_data=response_data,
2576
- response_types_map=_response_types_map,
2577
- )
2578
-
2579
-
2580
- @validate_call
2581
- def dataset_dataset_id_get_without_preload_content(
2582
- self,
2583
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
2584
- _request_timeout: Union[
2585
- None,
2586
- Annotated[StrictFloat, Field(gt=0)],
2587
- Tuple[
2588
- Annotated[StrictFloat, Field(gt=0)],
2589
- Annotated[StrictFloat, Field(gt=0)]
2590
- ]
2591
- ] = None,
2592
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2593
- _content_type: Optional[StrictStr] = None,
2594
- _headers: Optional[Dict[StrictStr, Any]] = None,
2595
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2596
- ) -> RESTResponseType:
2597
- """Gets a dataset by its id.
2598
-
2599
-
2600
- :param dataset_id: The id of the dataset to get. (required)
2601
- :type dataset_id: str
2602
- :param _request_timeout: timeout setting for this request. If one
2603
- number provided, it will be total request
2604
- timeout. It can also be a pair (tuple) of
2605
- (connection, read) timeouts.
2606
- :type _request_timeout: int, tuple(int, int), optional
2607
- :param _request_auth: set to override the auth_settings for an a single
2608
- request; this effectively ignores the
2609
- authentication in the spec for a single request.
2610
- :type _request_auth: dict, optional
2611
- :param _content_type: force content-type for the request.
2612
- :type _content_type: str, Optional
2613
- :param _headers: set to override the headers for a single
2614
- request; this effectively ignores the headers
2615
- in the spec for a single request.
2616
- :type _headers: dict, optional
2617
- :param _host_index: set to override the host_index for a single
2618
- request; this effectively ignores the host_index
2619
- in the spec for a single request.
2620
- :type _host_index: int, optional
2621
- :return: Returns the result object.
2622
- """ # noqa: E501
2623
-
2624
- _param = self._dataset_dataset_id_get_serialize(
2625
- dataset_id=dataset_id,
2626
- _request_auth=_request_auth,
2627
- _content_type=_content_type,
2628
- _headers=_headers,
2629
- _host_index=_host_index
2630
- )
2631
-
2632
- _response_types_map: Dict[str, Optional[str]] = {
2633
- '200': "GetDatasetByIdResult",
2634
- }
2635
- response_data = self.api_client.call_api(
2636
- *_param,
2637
- _request_timeout=_request_timeout
2638
- )
2639
- return response_data.response
2640
-
2641
-
2642
- def _dataset_dataset_id_get_serialize(
2643
- self,
2644
- dataset_id,
2645
- _request_auth,
2646
- _content_type,
2647
- _headers,
2648
- _host_index,
2649
- ) -> RequestSerialized:
2650
-
2651
- _host = None
2652
-
2653
- _collection_formats: Dict[str, str] = {
2654
- }
2655
-
2656
- _path_params: Dict[str, str] = {}
2657
- _query_params: List[Tuple[str, str]] = []
2658
- _header_params: Dict[str, Optional[str]] = _headers or {}
2659
- _form_params: List[Tuple[str, str]] = []
2660
- _files: Dict[
2661
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2662
- ] = {}
2663
- _body_params: Optional[bytes] = None
2664
-
2665
- # process the path parameters
2666
- if dataset_id is not None:
2667
- _path_params['datasetId'] = dataset_id
2668
- # process the query parameters
2669
- # process the header parameters
2670
- # process the form parameters
2671
- # process the body parameter
2672
-
2673
-
2674
- # set the HTTP header `Accept`
2675
- if 'Accept' not in _header_params:
2676
- _header_params['Accept'] = self.api_client.select_header_accept(
2677
- [
2678
- 'text/plain',
2679
- 'application/json',
2680
- 'text/json'
2681
- ]
2682
- )
2683
-
2684
-
2685
- # authentication setting
2686
- _auth_settings: List[str] = [
2687
- 'bearer',
2688
- 'oauth2'
2689
- ]
2690
-
2691
- return self.api_client.param_serialize(
2692
- method='GET',
2693
- resource_path='/dataset/{datasetId}',
2694
- path_params=_path_params,
2695
- query_params=_query_params,
2696
- header_params=_header_params,
2697
- body=_body_params,
2698
- post_params=_form_params,
2699
- files=_files,
2700
- auth_settings=_auth_settings,
2701
- collection_formats=_collection_formats,
2702
- _host=_host,
2703
- _request_auth=_request_auth
2704
- )
2705
-
2706
-
2707
-
2708
-
2709
- @validate_call
2710
- def dataset_dataset_id_name_patch(
2711
- self,
2712
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
2713
- update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
2714
- _request_timeout: Union[
2715
- None,
2716
- Annotated[StrictFloat, Field(gt=0)],
2717
- Tuple[
2718
- Annotated[StrictFloat, Field(gt=0)],
2719
- Annotated[StrictFloat, Field(gt=0)]
2720
- ]
2721
- ] = None,
2722
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2723
- _content_type: Optional[StrictStr] = None,
2724
- _headers: Optional[Dict[StrictStr, Any]] = None,
2725
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2726
- ) -> None:
2727
- """Updates the name of a dataset.
2728
-
2729
-
2730
- :param dataset_id: The id of the dataset to update. (required)
2731
- :type dataset_id: str
2732
- :param update_dataset_name_model: The body of the request.
2733
- :type update_dataset_name_model: UpdateDatasetNameModel
2734
- :param _request_timeout: timeout setting for this request. If one
2735
- number provided, it will be total request
2736
- timeout. It can also be a pair (tuple) of
2737
- (connection, read) timeouts.
2738
- :type _request_timeout: int, tuple(int, int), optional
2739
- :param _request_auth: set to override the auth_settings for an a single
2740
- request; this effectively ignores the
2741
- authentication in the spec for a single request.
2742
- :type _request_auth: dict, optional
2743
- :param _content_type: force content-type for the request.
2744
- :type _content_type: str, Optional
2745
- :param _headers: set to override the headers for a single
2746
- request; this effectively ignores the headers
2747
- in the spec for a single request.
2748
- :type _headers: dict, optional
2749
- :param _host_index: set to override the host_index for a single
2750
- request; this effectively ignores the host_index
2751
- in the spec for a single request.
2752
- :type _host_index: int, optional
2753
- :return: Returns the result object.
2754
- """ # noqa: E501
2755
-
2756
- _param = self._dataset_dataset_id_name_patch_serialize(
2757
- dataset_id=dataset_id,
2758
- update_dataset_name_model=update_dataset_name_model,
2759
- _request_auth=_request_auth,
2760
- _content_type=_content_type,
2761
- _headers=_headers,
2762
- _host_index=_host_index
2763
- )
2764
-
2765
- _response_types_map: Dict[str, Optional[str]] = {
2766
- '204': None,
2767
- }
2768
- response_data = self.api_client.call_api(
2769
- *_param,
2770
- _request_timeout=_request_timeout
2771
- )
2772
- response_data.read()
2773
- return self.api_client.response_deserialize(
2774
- response_data=response_data,
2775
- response_types_map=_response_types_map,
2776
- ).data
2777
-
2778
-
2779
- @validate_call
2780
- def dataset_dataset_id_name_patch_with_http_info(
2781
- self,
2782
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
2783
- update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
2784
- _request_timeout: Union[
2785
- None,
2786
- Annotated[StrictFloat, Field(gt=0)],
2787
- Tuple[
2788
- Annotated[StrictFloat, Field(gt=0)],
2789
- Annotated[StrictFloat, Field(gt=0)]
2790
- ]
2791
- ] = None,
2792
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2793
- _content_type: Optional[StrictStr] = None,
2794
- _headers: Optional[Dict[StrictStr, Any]] = None,
2795
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2796
- ) -> ApiResponse[None]:
2797
- """Updates the name of a dataset.
2798
-
2799
-
2800
- :param dataset_id: The id of the dataset to update. (required)
2801
- :type dataset_id: str
2802
- :param update_dataset_name_model: The body of the request.
2803
- :type update_dataset_name_model: UpdateDatasetNameModel
2804
- :param _request_timeout: timeout setting for this request. If one
2805
- number provided, it will be total request
2806
- timeout. It can also be a pair (tuple) of
2807
- (connection, read) timeouts.
2808
- :type _request_timeout: int, tuple(int, int), optional
2809
- :param _request_auth: set to override the auth_settings for an a single
2810
- request; this effectively ignores the
2811
- authentication in the spec for a single request.
2812
- :type _request_auth: dict, optional
2813
- :param _content_type: force content-type for the request.
2814
- :type _content_type: str, Optional
2815
- :param _headers: set to override the headers for a single
2816
- request; this effectively ignores the headers
2817
- in the spec for a single request.
2818
- :type _headers: dict, optional
2819
- :param _host_index: set to override the host_index for a single
2820
- request; this effectively ignores the host_index
2821
- in the spec for a single request.
2822
- :type _host_index: int, optional
2823
- :return: Returns the result object.
2824
- """ # noqa: E501
2825
-
2826
- _param = self._dataset_dataset_id_name_patch_serialize(
2827
- dataset_id=dataset_id,
2828
- update_dataset_name_model=update_dataset_name_model,
2829
- _request_auth=_request_auth,
2830
- _content_type=_content_type,
2831
- _headers=_headers,
2832
- _host_index=_host_index
2833
- )
2834
-
2835
- _response_types_map: Dict[str, Optional[str]] = {
2836
- '204': None,
2837
- }
2838
- response_data = self.api_client.call_api(
2839
- *_param,
2840
- _request_timeout=_request_timeout
2841
- )
2842
- response_data.read()
2843
- return self.api_client.response_deserialize(
2844
- response_data=response_data,
2845
- response_types_map=_response_types_map,
2846
- )
2847
-
2848
-
2849
- @validate_call
2850
- def dataset_dataset_id_name_patch_without_preload_content(
2851
- self,
2852
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
2853
- update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
2854
- _request_timeout: Union[
2855
- None,
2856
- Annotated[StrictFloat, Field(gt=0)],
2857
- Tuple[
2858
- Annotated[StrictFloat, Field(gt=0)],
2859
- Annotated[StrictFloat, Field(gt=0)]
2860
- ]
2861
- ] = None,
2862
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2863
- _content_type: Optional[StrictStr] = None,
2864
- _headers: Optional[Dict[StrictStr, Any]] = None,
2865
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2866
- ) -> RESTResponseType:
2867
- """Updates the name of a dataset.
2868
-
2869
-
2870
- :param dataset_id: The id of the dataset to update. (required)
2871
- :type dataset_id: str
2872
- :param update_dataset_name_model: The body of the request.
2873
- :type update_dataset_name_model: UpdateDatasetNameModel
2874
- :param _request_timeout: timeout setting for this request. If one
2875
- number provided, it will be total request
2876
- timeout. It can also be a pair (tuple) of
2877
- (connection, read) timeouts.
2878
- :type _request_timeout: int, tuple(int, int), optional
2879
- :param _request_auth: set to override the auth_settings for an a single
2880
- request; this effectively ignores the
2881
- authentication in the spec for a single request.
2882
- :type _request_auth: dict, optional
2883
- :param _content_type: force content-type for the request.
2884
- :type _content_type: str, Optional
2885
- :param _headers: set to override the headers for a single
2886
- request; this effectively ignores the headers
2887
- in the spec for a single request.
2888
- :type _headers: dict, optional
2889
- :param _host_index: set to override the host_index for a single
2890
- request; this effectively ignores the host_index
2891
- in the spec for a single request.
2892
- :type _host_index: int, optional
2893
- :return: Returns the result object.
2894
- """ # noqa: E501
2895
-
2896
- _param = self._dataset_dataset_id_name_patch_serialize(
2897
- dataset_id=dataset_id,
2898
- update_dataset_name_model=update_dataset_name_model,
2899
- _request_auth=_request_auth,
2900
- _content_type=_content_type,
2901
- _headers=_headers,
2902
- _host_index=_host_index
2903
- )
2904
-
2905
- _response_types_map: Dict[str, Optional[str]] = {
2906
- '204': None,
2907
- }
2908
- response_data = self.api_client.call_api(
2909
- *_param,
2910
- _request_timeout=_request_timeout
2911
- )
2912
- return response_data.response
2913
-
2914
-
2915
- def _dataset_dataset_id_name_patch_serialize(
2916
- self,
2917
- dataset_id,
2918
- update_dataset_name_model,
2919
- _request_auth,
2920
- _content_type,
2921
- _headers,
2922
- _host_index,
2923
- ) -> RequestSerialized:
2924
-
2925
- _host = None
2926
-
2927
- _collection_formats: Dict[str, str] = {
2928
- }
2929
-
2930
- _path_params: Dict[str, str] = {}
2931
- _query_params: List[Tuple[str, str]] = []
2932
- _header_params: Dict[str, Optional[str]] = _headers or {}
2933
- _form_params: List[Tuple[str, str]] = []
2934
- _files: Dict[
2935
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2936
- ] = {}
2937
- _body_params: Optional[bytes] = None
2938
-
2939
- # process the path parameters
2940
- if dataset_id is not None:
2941
- _path_params['datasetId'] = dataset_id
2942
- # process the query parameters
2943
- # process the header parameters
2944
- # process the form parameters
2945
- # process the body parameter
2946
- if update_dataset_name_model is not None:
2947
- _body_params = update_dataset_name_model
2948
-
2949
-
2950
-
2951
- # set the HTTP header `Content-Type`
2952
- if _content_type:
2953
- _header_params['Content-Type'] = _content_type
2954
- else:
2955
- _default_content_type = (
2956
- self.api_client.select_header_content_type(
2957
- [
2958
- 'application/json',
2959
- 'text/json',
2960
- 'application/*+json'
2961
- ]
2962
- )
2963
- )
2964
- if _default_content_type is not None:
2965
- _header_params['Content-Type'] = _default_content_type
2966
-
2967
- # authentication setting
2968
- _auth_settings: List[str] = [
2969
- 'bearer',
2970
- 'oauth2'
2971
- ]
2972
-
2973
- return self.api_client.param_serialize(
2974
- method='PATCH',
2975
- resource_path='/dataset/{datasetId}/name',
2976
- path_params=_path_params,
2977
- query_params=_query_params,
2978
- header_params=_header_params,
2979
- body=_body_params,
2980
- post_params=_form_params,
2981
- files=_files,
2982
- auth_settings=_auth_settings,
2983
- collection_formats=_collection_formats,
2984
- _host=_host,
2985
- _request_auth=_request_auth
2986
- )
2987
-
2988
-
2989
-
2990
-
2991
- @validate_call
2992
- def dataset_dataset_id_progress_get(
2993
- self,
2994
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
2995
- _request_timeout: Union[
2996
- None,
2997
- Annotated[StrictFloat, Field(gt=0)],
2998
- Tuple[
2999
- Annotated[StrictFloat, Field(gt=0)],
3000
- Annotated[StrictFloat, Field(gt=0)]
3001
- ]
3002
- ] = None,
3003
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3004
- _content_type: Optional[StrictStr] = None,
3005
- _headers: Optional[Dict[StrictStr, Any]] = None,
3006
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3007
- ) -> GetDatasetProgressResult:
3008
- """Gets the upload progress of a dataset.
3009
-
3010
-
3011
- :param dataset_id: The id of the dataset to get the progress of. (required)
3012
- :type dataset_id: str
3013
- :param _request_timeout: timeout setting for this request. If one
3014
- number provided, it will be total request
3015
- timeout. It can also be a pair (tuple) of
3016
- (connection, read) timeouts.
3017
- :type _request_timeout: int, tuple(int, int), optional
3018
- :param _request_auth: set to override the auth_settings for an a single
3019
- request; this effectively ignores the
3020
- authentication in the spec for a single request.
3021
- :type _request_auth: dict, optional
3022
- :param _content_type: force content-type for the request.
3023
- :type _content_type: str, Optional
3024
- :param _headers: set to override the headers for a single
3025
- request; this effectively ignores the headers
3026
- in the spec for a single request.
3027
- :type _headers: dict, optional
3028
- :param _host_index: set to override the host_index for a single
3029
- request; this effectively ignores the host_index
3030
- in the spec for a single request.
3031
- :type _host_index: int, optional
3032
- :return: Returns the result object.
3033
- """ # noqa: E501
3034
-
3035
- _param = self._dataset_dataset_id_progress_get_serialize(
3036
- dataset_id=dataset_id,
3037
- _request_auth=_request_auth,
3038
- _content_type=_content_type,
3039
- _headers=_headers,
3040
- _host_index=_host_index
3041
- )
3042
-
3043
- _response_types_map: Dict[str, Optional[str]] = {
3044
- '200': "GetDatasetProgressResult",
3045
- }
3046
- response_data = self.api_client.call_api(
3047
- *_param,
3048
- _request_timeout=_request_timeout
3049
- )
3050
- response_data.read()
3051
- return self.api_client.response_deserialize(
3052
- response_data=response_data,
3053
- response_types_map=_response_types_map,
3054
- ).data
3055
-
3056
-
3057
- @validate_call
3058
- def dataset_dataset_id_progress_get_with_http_info(
3059
- self,
3060
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
3061
- _request_timeout: Union[
3062
- None,
3063
- Annotated[StrictFloat, Field(gt=0)],
3064
- Tuple[
3065
- Annotated[StrictFloat, Field(gt=0)],
3066
- Annotated[StrictFloat, Field(gt=0)]
3067
- ]
3068
- ] = None,
3069
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3070
- _content_type: Optional[StrictStr] = None,
3071
- _headers: Optional[Dict[StrictStr, Any]] = None,
3072
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3073
- ) -> ApiResponse[GetDatasetProgressResult]:
3074
- """Gets the upload progress of a dataset.
3075
-
3076
-
3077
- :param dataset_id: The id of the dataset to get the progress of. (required)
3078
- :type dataset_id: str
3079
- :param _request_timeout: timeout setting for this request. If one
3080
- number provided, it will be total request
3081
- timeout. It can also be a pair (tuple) of
3082
- (connection, read) timeouts.
3083
- :type _request_timeout: int, tuple(int, int), optional
3084
- :param _request_auth: set to override the auth_settings for an a single
3085
- request; this effectively ignores the
3086
- authentication in the spec for a single request.
3087
- :type _request_auth: dict, optional
3088
- :param _content_type: force content-type for the request.
3089
- :type _content_type: str, Optional
3090
- :param _headers: set to override the headers for a single
3091
- request; this effectively ignores the headers
3092
- in the spec for a single request.
3093
- :type _headers: dict, optional
3094
- :param _host_index: set to override the host_index for a single
3095
- request; this effectively ignores the host_index
3096
- in the spec for a single request.
3097
- :type _host_index: int, optional
3098
- :return: Returns the result object.
3099
- """ # noqa: E501
3100
-
3101
- _param = self._dataset_dataset_id_progress_get_serialize(
3102
- dataset_id=dataset_id,
3103
- _request_auth=_request_auth,
3104
- _content_type=_content_type,
3105
- _headers=_headers,
3106
- _host_index=_host_index
3107
- )
3108
-
3109
- _response_types_map: Dict[str, Optional[str]] = {
3110
- '200': "GetDatasetProgressResult",
3111
- }
3112
- response_data = self.api_client.call_api(
3113
- *_param,
3114
- _request_timeout=_request_timeout
3115
- )
3116
- response_data.read()
3117
- return self.api_client.response_deserialize(
3118
- response_data=response_data,
3119
- response_types_map=_response_types_map,
3120
- )
3121
-
3122
-
3123
- @validate_call
3124
- def dataset_dataset_id_progress_get_without_preload_content(
3125
- self,
3126
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
3127
- _request_timeout: Union[
3128
- None,
3129
- Annotated[StrictFloat, Field(gt=0)],
3130
- Tuple[
3131
- Annotated[StrictFloat, Field(gt=0)],
3132
- Annotated[StrictFloat, Field(gt=0)]
3133
- ]
3134
- ] = None,
3135
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3136
- _content_type: Optional[StrictStr] = None,
3137
- _headers: Optional[Dict[StrictStr, Any]] = None,
3138
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3139
- ) -> RESTResponseType:
3140
- """Gets the upload progress of a dataset.
3141
-
3142
-
3143
- :param dataset_id: The id of the dataset to get the progress of. (required)
3144
- :type dataset_id: str
3145
- :param _request_timeout: timeout setting for this request. If one
3146
- number provided, it will be total request
3147
- timeout. It can also be a pair (tuple) of
3148
- (connection, read) timeouts.
3149
- :type _request_timeout: int, tuple(int, int), optional
3150
- :param _request_auth: set to override the auth_settings for an a single
3151
- request; this effectively ignores the
3152
- authentication in the spec for a single request.
3153
- :type _request_auth: dict, optional
3154
- :param _content_type: force content-type for the request.
3155
- :type _content_type: str, Optional
3156
- :param _headers: set to override the headers for a single
3157
- request; this effectively ignores the headers
3158
- in the spec for a single request.
3159
- :type _headers: dict, optional
3160
- :param _host_index: set to override the host_index for a single
3161
- request; this effectively ignores the host_index
3162
- in the spec for a single request.
3163
- :type _host_index: int, optional
3164
- :return: Returns the result object.
3165
- """ # noqa: E501
3166
-
3167
- _param = self._dataset_dataset_id_progress_get_serialize(
3168
- dataset_id=dataset_id,
3169
- _request_auth=_request_auth,
3170
- _content_type=_content_type,
3171
- _headers=_headers,
3172
- _host_index=_host_index
3173
- )
3174
-
3175
- _response_types_map: Dict[str, Optional[str]] = {
3176
- '200': "GetDatasetProgressResult",
3177
- }
3178
- response_data = self.api_client.call_api(
3179
- *_param,
3180
- _request_timeout=_request_timeout
3181
- )
3182
- return response_data.response
3183
-
3184
-
3185
- def _dataset_dataset_id_progress_get_serialize(
3186
- self,
3187
- dataset_id,
3188
- _request_auth,
3189
- _content_type,
3190
- _headers,
3191
- _host_index,
3192
- ) -> RequestSerialized:
3193
-
3194
- _host = None
3195
-
3196
- _collection_formats: Dict[str, str] = {
3197
- }
3198
-
3199
- _path_params: Dict[str, str] = {}
3200
- _query_params: List[Tuple[str, str]] = []
3201
- _header_params: Dict[str, Optional[str]] = _headers or {}
3202
- _form_params: List[Tuple[str, str]] = []
3203
- _files: Dict[
3204
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3205
- ] = {}
3206
- _body_params: Optional[bytes] = None
3207
-
3208
- # process the path parameters
3209
- if dataset_id is not None:
3210
- _path_params['datasetId'] = dataset_id
3211
- # process the query parameters
3212
- # process the header parameters
3213
- # process the form parameters
3214
- # process the body parameter
3215
-
3216
-
3217
- # set the HTTP header `Accept`
3218
- if 'Accept' not in _header_params:
3219
- _header_params['Accept'] = self.api_client.select_header_accept(
3220
- [
3221
- 'text/plain',
3222
- 'application/json',
3223
- 'text/json'
3224
- ]
3225
- )
3226
-
3227
-
3228
- # authentication setting
3229
- _auth_settings: List[str] = [
3230
- 'bearer',
3231
- 'oauth2'
3232
- ]
3233
-
3234
- return self.api_client.param_serialize(
3235
- method='GET',
3236
- resource_path='/dataset/{datasetId}/progress',
1960
+ resource_path='/dataset',
3237
1961
  path_params=_path_params,
3238
1962
  query_params=_query_params,
3239
1963
  header_params=_header_params,