rapidata 2.27.2__py3-none-any.whl → 2.44.3__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.
Files changed (771) hide show
  1. rapidata/__init__.py +12 -9
  2. rapidata/api_client/__init__.py +83 -329
  3. rapidata/api_client/api/__init__.py +9 -2
  4. rapidata/api_client/api/asset_api.py +853 -0
  5. rapidata/api_client/api/audience_api.py +1133 -0
  6. rapidata/api_client/api/benchmark_api.py +3966 -0
  7. rapidata/api_client/api/campaign_api.py +232 -207
  8. rapidata/api_client/api/client_api.py +349 -71
  9. rapidata/api_client/api/coco_api.py +0 -571
  10. rapidata/api_client/api/compare_workflow_api.py +11 -10
  11. rapidata/api_client/api/customer_rapid_api.py +644 -72
  12. rapidata/api_client/api/datapoint_api.py +8 -797
  13. rapidata/api_client/api/dataset_api.py +229 -3452
  14. rapidata/api_client/api/evaluation_workflow_api.py +29 -82
  15. rapidata/api_client/api/feedback_api.py +11 -281
  16. rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
  17. rapidata/api_client/api/identity_api.py +83 -1171
  18. rapidata/api_client/api/leaderboard_api.py +2550 -0
  19. rapidata/api_client/api/newsletter_api.py +20 -19
  20. rapidata/api_client/api/order_api.py +758 -5487
  21. rapidata/api_client/api/participant_api.py +2181 -0
  22. rapidata/api_client/api/pipeline_api.py +24 -1783
  23. rapidata/api_client/api/prompt_api.py +320 -0
  24. rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
  25. rapidata/api_client/api/sample_api.py +300 -0
  26. rapidata/api_client/api/simple_workflow_api.py +11 -10
  27. rapidata/api_client/api/survey_api.py +304 -0
  28. rapidata/api_client/api/user_rapid_api.py +35 -31
  29. rapidata/api_client/api/validation_set_api.py +513 -3233
  30. rapidata/api_client/api/workflow_api.py +32 -825
  31. rapidata/api_client/api_client.py +2 -2
  32. rapidata/api_client/configuration.py +16 -29
  33. rapidata/api_client/exceptions.py +2 -2
  34. rapidata/api_client/models/__init__.py +65 -307
  35. rapidata/api_client/models/ab_test_selection_a_inner.py +27 -13
  36. rapidata/api_client/models/add_campaign_model.py +3 -3
  37. rapidata/api_client/models/add_user_response_result.py +10 -5
  38. rapidata/api_client/models/add_validation_rapid_model.py +55 -24
  39. rapidata/api_client/models/add_validation_rapid_model_asset.py +154 -0
  40. rapidata/api_client/models/add_validation_rapid_model_context_asset.py +160 -0
  41. rapidata/api_client/models/add_validation_rapid_model_metadata_inner.py +140 -0
  42. rapidata/api_client/models/add_validation_rapid_model_truth.py +7 -1
  43. rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
  44. rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
  45. rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
  46. rapidata/api_client/models/add_validation_text_rapid_model.py +1 -3
  47. rapidata/api_client/models/age_user_filter_model.py +2 -2
  48. rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
  49. rapidata/api_client/models/aggregated_orders_model.py +98 -0
  50. rapidata/api_client/models/aggregator_type.py +4 -2
  51. rapidata/api_client/models/and_filter.py +121 -0
  52. rapidata/api_client/models/and_filter_filters_inner.py +282 -0
  53. rapidata/api_client/models/and_user_filter_model.py +106 -0
  54. rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
  55. rapidata/api_client/models/are_rapids_active_result.py +2 -2
  56. rapidata/api_client/models/asset_metadata.py +11 -9
  57. rapidata/api_client/models/asset_type.py +40 -0
  58. rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
  59. rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
  60. rapidata/api_client/models/audience_status.py +38 -0
  61. rapidata/api_client/models/benchmark_query_result.py +98 -0
  62. rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
  63. rapidata/api_client/models/boost_leaderboard_model.py +89 -0
  64. rapidata/api_client/models/boost_mode.py +37 -0
  65. rapidata/api_client/models/boost_query_result.py +97 -0
  66. rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
  67. rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
  68. rapidata/api_client/models/boost_status.py +39 -0
  69. rapidata/api_client/models/boosting_profile.py +89 -0
  70. rapidata/api_client/models/box_shape.py +4 -33
  71. rapidata/api_client/models/campaign_filter.py +98 -0
  72. rapidata/api_client/models/campaign_query_result.py +15 -13
  73. rapidata/api_client/models/campaign_status.py +2 -2
  74. rapidata/api_client/models/change_boost_model.py +89 -0
  75. rapidata/api_client/models/classification_metadata.py +12 -1
  76. rapidata/api_client/models/classify_payload.py +14 -15
  77. rapidata/api_client/models/classify_payload_category.py +89 -0
  78. rapidata/api_client/models/client_model.py +181 -0
  79. rapidata/api_client/models/clients_query_result.py +5 -5
  80. rapidata/api_client/models/clone_order_model.py +6 -8
  81. rapidata/api_client/models/clone_order_result.py +9 -4
  82. rapidata/api_client/models/compare_rapid_blueprint.py +5 -3
  83. rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
  84. rapidata/api_client/models/compare_workflow_config.py +34 -23
  85. rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
  86. rapidata/api_client/models/compare_workflow_config_metadata_value.py +57 -15
  87. rapidata/api_client/models/compare_workflow_config_model.py +15 -5
  88. rapidata/api_client/models/compare_workflow_model.py +34 -6
  89. rapidata/api_client/models/compare_workflow_model1.py +20 -9
  90. rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
  91. rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
  92. rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +1 -1
  93. rapidata/api_client/models/comparison_operator.py +2 -2
  94. rapidata/api_client/models/conditional_validation_selection.py +8 -11
  95. rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
  96. rapidata/api_client/models/confidence_interval.py +89 -0
  97. rapidata/api_client/models/count_metadata.py +12 -1
  98. rapidata/api_client/models/country_filter.py +98 -0
  99. rapidata/api_client/models/create_audience_request.py +99 -0
  100. rapidata/api_client/models/create_audience_result.py +87 -0
  101. rapidata/api_client/models/create_benchmark_model.py +87 -0
  102. rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
  103. rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
  104. rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
  105. rapidata/api_client/models/create_benchmark_result.py +87 -0
  106. rapidata/api_client/models/create_bridge_token_result.py +2 -2
  107. rapidata/api_client/models/create_client_model.py +6 -13
  108. rapidata/api_client/models/create_complex_order_model.py +9 -9
  109. rapidata/api_client/models/create_complex_order_result.py +6 -4
  110. rapidata/api_client/models/create_customer_client_result.py +89 -0
  111. rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
  112. rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
  113. rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
  114. rapidata/api_client/models/create_datapoint_model.py +134 -0
  115. rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
  116. rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
  117. rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
  118. rapidata/api_client/models/create_datapoint_result.py +6 -18
  119. rapidata/api_client/models/create_demographic_rapid_model.py +45 -7
  120. rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
  121. rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
  122. rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
  123. rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
  124. rapidata/api_client/models/create_leaderboard_model.py +140 -0
  125. rapidata/api_client/models/create_leaderboard_participant_model.py +87 -0
  126. rapidata/api_client/models/create_leaderboard_participant_result.py +89 -0
  127. rapidata/api_client/models/create_leaderboard_result.py +99 -0
  128. rapidata/api_client/models/create_order_model.py +30 -101
  129. rapidata/api_client/models/create_order_model_referee.py +12 -12
  130. rapidata/api_client/models/create_order_model_workflow.py +35 -21
  131. rapidata/api_client/models/create_order_result.py +6 -4
  132. rapidata/api_client/models/create_rapid_result.py +2 -2
  133. rapidata/api_client/models/create_sample_model.py +93 -0
  134. rapidata/api_client/models/create_sample_model_asset.py +154 -0
  135. rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
  136. rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
  137. rapidata/api_client/models/create_unsupported_order_model.py +6 -6
  138. rapidata/api_client/models/create_validation_set_model.py +5 -5
  139. rapidata/api_client/models/datapoint_model.py +3 -3
  140. rapidata/api_client/models/datapoint_model_paged_result.py +105 -0
  141. rapidata/api_client/models/datapoint_state.py +2 -2
  142. rapidata/api_client/models/demographic_filter.py +100 -0
  143. rapidata/api_client/models/dynamic_client_registration_request.py +160 -0
  144. rapidata/api_client/models/early_stopping_referee_model.py +3 -3
  145. rapidata/api_client/models/effort_capped_selection.py +106 -0
  146. rapidata/api_client/models/elo_config.py +2 -2
  147. rapidata/api_client/models/elo_config_model.py +6 -6
  148. rapidata/api_client/models/entity_tag_header_value.py +93 -0
  149. rapidata/api_client/models/evaluation_workflow_config.py +13 -3
  150. rapidata/api_client/models/evaluation_workflow_model.py +16 -6
  151. rapidata/api_client/models/existing_asset_input.py +120 -0
  152. rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
  153. rapidata/api_client/models/feature_flag.py +2 -2
  154. rapidata/api_client/models/feature_flag_model.py +6 -6
  155. rapidata/api_client/models/feedback_model.py +7 -7
  156. rapidata/api_client/models/file_asset.py +3 -5
  157. rapidata/api_client/models/file_asset_input.py +104 -0
  158. rapidata/api_client/models/file_asset_input1.py +104 -0
  159. rapidata/api_client/models/file_asset_input1_file.py +168 -0
  160. rapidata/api_client/models/file_asset_input2.py +104 -0
  161. rapidata/api_client/models/file_asset_input3.py +104 -0
  162. rapidata/api_client/models/file_asset_input_file.py +168 -0
  163. rapidata/api_client/models/file_asset_metadata_value.py +252 -0
  164. rapidata/api_client/models/file_asset_model_metadata_value.py +43 -71
  165. rapidata/api_client/models/file_stream_result.py +122 -0
  166. rapidata/api_client/models/file_type.py +39 -0
  167. rapidata/api_client/models/file_type_metadata.py +110 -0
  168. rapidata/api_client/models/file_type_metadata_model.py +97 -0
  169. rapidata/api_client/models/filter.py +7 -25
  170. rapidata/api_client/models/filter_operator.py +3 -2
  171. rapidata/api_client/models/fork_benchmark_result.py +87 -0
  172. rapidata/api_client/models/form_file_wrapper.py +135 -0
  173. rapidata/api_client/models/free_text_payload.py +10 -3
  174. rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
  175. rapidata/api_client/models/gender_user_filter_model.py +2 -2
  176. rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
  177. rapidata/api_client/models/get_asset_metadata_result.py +100 -0
  178. rapidata/api_client/models/get_audience_by_id_result.py +111 -0
  179. rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
  180. rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
  181. rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
  182. rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
  183. rapidata/api_client/models/get_benchmark_by_id_result.py +96 -0
  184. rapidata/api_client/models/get_boost_result.py +97 -0
  185. rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
  186. rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
  187. rapidata/api_client/models/get_compare_ab_summary_result.py +5 -5
  188. rapidata/api_client/models/get_compare_workflow_results_model.py +7 -7
  189. rapidata/api_client/models/get_compare_workflow_results_result.py +5 -5
  190. rapidata/api_client/models/get_datapoint_by_id_result.py +10 -21
  191. rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
  192. rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
  193. rapidata/api_client/models/get_dataset_progress_result.py +2 -2
  194. rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
  195. rapidata/api_client/models/get_failed_datapoints_result.py +5 -5
  196. rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
  197. rapidata/api_client/models/get_file_metadata_result.py +100 -0
  198. rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
  199. rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
  200. rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
  201. rapidata/api_client/models/get_leaderboard_by_id_result.py +135 -0
  202. rapidata/api_client/models/get_order_by_id_result.py +12 -5
  203. rapidata/api_client/models/get_participant_by_id_result.py +91 -0
  204. rapidata/api_client/models/get_pipeline_by_id_result.py +5 -5
  205. rapidata/api_client/models/get_public_orders_result.py +2 -2
  206. rapidata/api_client/models/get_public_responses_result.py +95 -0
  207. rapidata/api_client/models/get_public_responses_result_response.py +112 -0
  208. rapidata/api_client/models/get_rapid_responses_result.py +6 -12
  209. rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
  210. rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
  211. rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
  212. rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
  213. rapidata/api_client/models/get_responses_result.py +5 -5
  214. rapidata/api_client/models/get_responses_result_response.py +103 -0
  215. rapidata/api_client/models/get_sample_by_id_result.py +125 -0
  216. rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
  217. rapidata/api_client/models/get_standing_by_id_result.py +96 -0
  218. rapidata/api_client/models/get_validation_rapids_result.py +32 -41
  219. rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
  220. rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
  221. rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
  222. rapidata/api_client/models/get_workflow_progress_result.py +5 -11
  223. rapidata/api_client/models/get_workflow_results_result.py +34 -23
  224. rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
  225. rapidata/api_client/models/google_one_tap_login_model.py +4 -4
  226. rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
  227. rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
  228. rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
  229. rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
  230. rapidata/api_client/models/i_artifact_model.py +182 -0
  231. rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
  232. rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
  233. rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
  234. rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
  235. rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
  236. rapidata/api_client/models/i_asset.py +170 -0
  237. rapidata/api_client/models/i_asset_file_asset.py +111 -0
  238. rapidata/api_client/models/i_asset_input.py +156 -0
  239. rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
  240. rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
  241. rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
  242. rapidata/api_client/models/i_asset_model.py +170 -0
  243. rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
  244. rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
  245. rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
  246. rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
  247. rapidata/api_client/models/i_asset_multi_asset.py +121 -0
  248. rapidata/api_client/models/i_asset_null_asset.py +109 -0
  249. rapidata/api_client/models/i_asset_text_asset.py +111 -0
  250. rapidata/api_client/models/i_campaign_filter.py +282 -0
  251. rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
  252. rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
  253. rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
  254. rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
  255. rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
  256. rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
  257. rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
  258. rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
  259. rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
  260. rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
  261. rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
  262. rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
  263. rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
  264. rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
  265. rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
  266. rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
  267. rapidata/api_client/models/i_dataset_model.py +126 -0
  268. rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
  269. rapidata/api_client/models/i_metadata.py +252 -0
  270. rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
  271. rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
  272. rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
  273. rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
  274. rapidata/api_client/models/i_metadata_input.py +126 -0
  275. rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
  276. rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
  277. rapidata/api_client/models/i_metadata_model.py +252 -0
  278. rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
  279. rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
  280. rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
  281. rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
  282. rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
  283. rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
  284. rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
  285. rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
  286. rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
  287. rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
  288. rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
  289. rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
  290. rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
  291. rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
  292. rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
  293. rapidata/api_client/models/i_order_workflow_model.py +168 -0
  294. rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
  295. rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
  296. rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
  297. rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
  298. rapidata/api_client/models/i_pair_maker_config.py +126 -0
  299. rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
  300. rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
  301. rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
  302. rapidata/api_client/models/i_pair_maker_information.py +126 -0
  303. rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
  304. rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
  305. rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
  306. rapidata/api_client/models/i_pipeline_model.py +126 -0
  307. rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
  308. rapidata/api_client/models/i_pipeline_step_model.py +168 -0
  309. rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
  310. rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
  311. rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
  312. rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
  313. rapidata/api_client/models/i_rapid_blueprint.py +252 -0
  314. rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
  315. rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
  316. rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
  317. rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +103 -0
  318. rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
  319. rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
  320. rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
  321. rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
  322. rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
  323. rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
  324. rapidata/api_client/models/i_rapid_payload.py +252 -0
  325. rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
  326. rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
  327. rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
  328. rapidata/api_client/models/i_rapid_payload_free_text_payload.py +103 -0
  329. rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
  330. rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
  331. rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
  332. rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
  333. rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
  334. rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
  335. rapidata/api_client/models/i_rapid_result.py +266 -0
  336. rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
  337. rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
  338. rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
  339. rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
  340. rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
  341. rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
  342. rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
  343. rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
  344. rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
  345. rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
  346. rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
  347. rapidata/api_client/models/i_referee_config.py +154 -0
  348. rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
  349. rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
  350. rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
  351. rapidata/api_client/models/i_referee_info.py +154 -0
  352. rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
  353. rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
  354. rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
  355. rapidata/api_client/models/i_referee_model.py +140 -0
  356. rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
  357. rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
  358. rapidata/api_client/models/i_selection.py +240 -0
  359. rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
  360. rapidata/api_client/models/i_selection_capped_selection.py +108 -0
  361. rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
  362. rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
  363. rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
  364. rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
  365. rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
  366. rapidata/api_client/models/i_selection_static_selection.py +96 -0
  367. rapidata/api_client/models/i_selection_validation_selection.py +98 -0
  368. rapidata/api_client/models/i_user_filter_model.py +282 -0
  369. rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
  370. rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
  371. rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
  372. rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
  373. rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
  374. rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
  375. rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
  376. rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
  377. rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
  378. rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
  379. rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
  380. rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
  381. rapidata/api_client/models/i_validation_metadata_input.py +140 -0
  382. rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
  383. rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
  384. rapidata/api_client/models/i_validation_truth.py +280 -0
  385. rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
  386. rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
  387. rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
  388. rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
  389. rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
  390. rapidata/api_client/models/i_validation_truth_locate_box_truth.py +104 -0
  391. rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
  392. rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
  393. rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
  394. rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
  395. rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
  396. rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
  397. rapidata/api_client/models/i_workflow_config.py +168 -0
  398. rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
  399. rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
  400. rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
  401. rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
  402. rapidata/api_client/models/i_workflow_model.py +168 -0
  403. rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
  404. rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
  405. rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
  406. rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
  407. rapidata/api_client/models/image_dimension_metadata.py +12 -1
  408. rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
  409. rapidata/api_client/models/inspect_report_result.py +2 -2
  410. rapidata/api_client/models/json_web_key.py +224 -0
  411. rapidata/api_client/models/json_web_key_set.py +95 -0
  412. rapidata/api_client/models/labeling_selection.py +11 -13
  413. rapidata/api_client/models/language_filter.py +98 -0
  414. rapidata/api_client/models/leaderboard_query_result.py +135 -0
  415. rapidata/api_client/models/leaderboard_query_result_paged_result.py +105 -0
  416. rapidata/api_client/models/leaderboards_query_result.py +135 -0
  417. rapidata/api_client/models/line_result.py +3 -3
  418. rapidata/api_client/models/line_result_line.py +97 -0
  419. rapidata/api_client/models/line_result_line_point.py +89 -0
  420. rapidata/api_client/models/local_file_wrapper.py +120 -0
  421. rapidata/api_client/models/locate_coordinate.py +4 -13
  422. rapidata/api_client/models/location_metadata.py +12 -1
  423. rapidata/api_client/models/logic_operator.py +2 -2
  424. rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
  425. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
  426. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
  427. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
  428. rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
  429. rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
  430. rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
  431. rapidata/api_client/models/multi_asset.py +6 -6
  432. rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
  433. rapidata/api_client/models/multi_asset_input.py +130 -0
  434. rapidata/api_client/models/multi_asset_input1.py +110 -0
  435. rapidata/api_client/models/multi_asset_input1_assets_inner.py +198 -0
  436. rapidata/api_client/models/multi_asset_input2.py +110 -0
  437. rapidata/api_client/models/multi_asset_input3.py +110 -0
  438. rapidata/api_client/models/multi_asset_input3_assets_inner.py +198 -0
  439. rapidata/api_client/models/multi_asset_input_assets_inner.py +156 -0
  440. rapidata/api_client/models/multi_asset_model.py +3 -3
  441. rapidata/api_client/models/naive_referee_model.py +2 -2
  442. rapidata/api_client/models/named_classification.py +4 -13
  443. rapidata/api_client/models/new_user_filter.py +96 -0
  444. rapidata/api_client/models/newsletter_model.py +6 -6
  445. rapidata/api_client/models/not_available_yet_result.py +4 -13
  446. rapidata/api_client/models/not_filter.py +117 -0
  447. rapidata/api_client/models/not_user_filter_model.py +3 -3
  448. rapidata/api_client/models/null_asset.py +3 -5
  449. rapidata/api_client/models/online_pair_maker_config_model.py +3 -3
  450. rapidata/api_client/models/or_filter.py +121 -0
  451. rapidata/api_client/models/or_user_filter_model.py +3 -3
  452. rapidata/api_client/models/order_model.py +15 -14
  453. rapidata/api_client/models/order_state.py +2 -2
  454. rapidata/api_client/models/original_filename_metadata.py +12 -1
  455. rapidata/api_client/models/page_info.py +2 -7
  456. rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
  457. rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
  458. rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
  459. rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
  460. rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
  461. rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
  462. rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
  463. rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
  464. rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
  465. rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
  466. rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
  467. rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
  468. rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
  469. rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
  470. rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
  471. rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
  472. rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
  473. rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
  474. rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
  475. rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
  476. rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
  477. rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
  478. rapidata/api_client/models/paged_result_of_order_model.py +103 -0
  479. rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
  480. rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
  481. rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
  482. rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
  483. rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
  484. rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
  485. rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
  486. rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
  487. rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
  488. rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
  489. rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
  490. rapidata/api_client/models/paged_result_order_model.py +105 -0
  491. rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
  492. rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
  493. rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
  494. rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
  495. rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
  496. rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
  497. rapidata/api_client/models/paged_result_rapid_model.py +105 -0
  498. rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
  499. rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
  500. rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
  501. rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
  502. rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
  503. rapidata/api_client/models/participant_by_benchmark.py +94 -0
  504. rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
  505. rapidata/api_client/models/participant_by_leaderboard.py +113 -0
  506. rapidata/api_client/models/participant_by_leaderboard_paged_result.py +105 -0
  507. rapidata/api_client/models/participant_status.py +38 -0
  508. rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
  509. rapidata/api_client/models/polygon_result.py +3 -3
  510. rapidata/api_client/models/polygon_result_coordinate.py +89 -0
  511. rapidata/api_client/models/polygon_result_shape.py +95 -0
  512. rapidata/api_client/models/potential_validation_rapid.py +103 -0
  513. rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
  514. rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
  515. rapidata/api_client/models/preliminary_download_model.py +5 -5
  516. rapidata/api_client/models/preview_order_model.py +87 -0
  517. rapidata/api_client/models/problem_details.py +2 -20
  518. rapidata/api_client/models/prompt_asset_metadata_input.py +6 -8
  519. rapidata/api_client/models/prompt_asset_metadata_input_asset.py +154 -0
  520. rapidata/api_client/models/prompt_by_benchmark_result.py +112 -0
  521. rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
  522. rapidata/api_client/models/prompt_by_leaderboard_result.py +90 -0
  523. rapidata/api_client/models/prompt_by_leaderboard_result_paged_result.py +105 -0
  524. rapidata/api_client/models/prompt_metadata.py +12 -1
  525. rapidata/api_client/models/prompt_metadata_input.py +2 -2
  526. rapidata/api_client/models/prompt_type.py +38 -0
  527. rapidata/api_client/models/proxy_file_wrapper.py +129 -0
  528. rapidata/api_client/models/public_order_model.py +2 -2
  529. rapidata/api_client/models/public_rapid_response.py +112 -0
  530. rapidata/api_client/models/query_audiences_result.py +111 -0
  531. rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
  532. rapidata/api_client/models/query_model.py +10 -5
  533. rapidata/api_client/models/query_validation_model.py +97 -0
  534. rapidata/api_client/models/query_validation_rapid_eligibility_model_query_validation_model.py +107 -0
  535. rapidata/api_client/models/query_validation_rapid_eligibility_result.py +103 -0
  536. rapidata/api_client/models/query_validation_rapid_eligibility_result_truth.py +280 -0
  537. rapidata/api_client/models/rapid_issue.py +2 -2
  538. rapidata/api_client/models/rapid_modality.py +46 -0
  539. rapidata/api_client/models/rapid_model.py +33 -49
  540. rapidata/api_client/models/rapid_result_model.py +7 -7
  541. rapidata/api_client/models/rapid_skipped_model.py +5 -5
  542. rapidata/api_client/models/rapid_state.py +2 -2
  543. rapidata/api_client/models/read_bridge_token_keys_result.py +10 -24
  544. rapidata/api_client/models/reference_asset_input.py +100 -0
  545. rapidata/api_client/models/report_model.py +9 -15
  546. rapidata/api_client/models/response_count_filter.py +103 -0
  547. rapidata/api_client/models/response_count_user_filter_model.py +2 -8
  548. rapidata/api_client/models/retrieval_mode.py +2 -2
  549. rapidata/api_client/models/root_filter.py +5 -14
  550. rapidata/api_client/models/run_status.py +39 -0
  551. rapidata/api_client/models/runs_by_leaderboard_result.py +104 -0
  552. rapidata/api_client/models/runs_by_leaderboard_result_paged_result.py +105 -0
  553. rapidata/api_client/models/sample_by_identifier.py +125 -0
  554. rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
  555. rapidata/api_client/models/sample_by_participant.py +121 -0
  556. rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
  557. rapidata/api_client/models/scrub_range.py +2 -2
  558. rapidata/api_client/models/send_survey_model.py +87 -0
  559. rapidata/api_client/models/simple_workflow_config.py +15 -7
  560. rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
  561. rapidata/api_client/models/simple_workflow_config_model.py +11 -3
  562. rapidata/api_client/models/simple_workflow_model.py +14 -4
  563. rapidata/api_client/models/simple_workflow_model1.py +4 -11
  564. rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
  565. rapidata/api_client/models/sort_criterion.py +5 -11
  566. rapidata/api_client/models/sort_direction.py +2 -2
  567. rapidata/api_client/models/source_url_metadata.py +12 -1
  568. rapidata/api_client/models/standing_by_benchmark.py +113 -0
  569. rapidata/api_client/models/standing_by_leaderboard.py +113 -0
  570. rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
  571. rapidata/api_client/models/standing_status.py +38 -0
  572. rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
  573. rapidata/api_client/models/standings_by_leaderboard_result.py +95 -0
  574. rapidata/api_client/models/start_preliminary_download_result.py +87 -0
  575. rapidata/api_client/models/sticky_state.py +3 -2
  576. rapidata/api_client/models/stream_file_wrapper.py +138 -0
  577. rapidata/api_client/models/streams_metadata.py +113 -0
  578. rapidata/api_client/models/streams_metadata_model.py +100 -0
  579. rapidata/api_client/models/string_segment.py +105 -0
  580. rapidata/api_client/models/submit_coco_model.py +1 -3
  581. rapidata/api_client/models/submit_order_model.py +87 -0
  582. rapidata/api_client/models/submit_participant_result.py +89 -0
  583. rapidata/api_client/models/submit_prompt_model.py +107 -0
  584. rapidata/api_client/models/submit_prompt_model_prompt_asset.py +202 -0
  585. rapidata/api_client/models/tags_by_benchmark_result.py +87 -0
  586. rapidata/api_client/models/text_asset.py +3 -5
  587. rapidata/api_client/models/text_asset_input.py +120 -0
  588. rapidata/api_client/models/text_metadata.py +18 -2
  589. rapidata/api_client/models/text_metadata_input.py +111 -0
  590. rapidata/api_client/models/text_metadata_model.py +7 -2
  591. rapidata/api_client/models/transcription_metadata.py +9 -1
  592. rapidata/api_client/models/transcription_metadata_input.py +2 -2
  593. rapidata/api_client/models/transcription_word.py +2 -2
  594. rapidata/api_client/models/translated_string.py +2 -2
  595. rapidata/api_client/models/unlock_order_result.py +2 -2
  596. rapidata/api_client/models/update_audience_request.py +102 -0
  597. rapidata/api_client/models/update_benchmark_model.py +99 -0
  598. rapidata/api_client/models/update_benchmark_name_model.py +87 -0
  599. rapidata/api_client/models/update_campaign_model.py +11 -11
  600. rapidata/api_client/models/update_dataset_name_model.py +5 -5
  601. rapidata/api_client/models/update_dimensions_model.py +3 -3
  602. rapidata/api_client/models/update_leaderboard_model.py +106 -0
  603. rapidata/api_client/models/update_leaderboard_name_model.py +87 -0
  604. rapidata/api_client/models/update_leaderboard_response_config_model.py +89 -0
  605. rapidata/api_client/models/update_order_name_model.py +5 -5
  606. rapidata/api_client/models/update_participant_model.py +92 -0
  607. rapidata/api_client/models/update_participant_name_model.py +87 -0
  608. rapidata/api_client/models/update_priority_model.py +87 -0
  609. rapidata/api_client/models/update_prompt_tags_model.py +87 -0
  610. rapidata/api_client/models/update_should_alert_model.py +87 -0
  611. rapidata/api_client/models/update_validation_rapid_model.py +28 -10
  612. rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
  613. rapidata/api_client/models/update_validation_set_model.py +120 -0
  614. rapidata/api_client/models/upload_asset_result.py +102 -0
  615. rapidata/api_client/models/upload_file_from_url_result.py +87 -0
  616. rapidata/api_client/models/upload_file_result.py +87 -0
  617. rapidata/api_client/models/user_action_restriction.py +37 -0
  618. rapidata/api_client/models/user_action_restriction_filter.py +101 -0
  619. rapidata/api_client/models/user_score_filter.py +102 -0
  620. rapidata/api_client/models/user_state.py +38 -0
  621. rapidata/api_client/models/user_state_filter.py +101 -0
  622. rapidata/api_client/models/validation_chance.py +20 -3
  623. rapidata/api_client/models/validation_set_model.py +39 -5
  624. rapidata/api_client/models/validation_set_overview_model.py +2 -2
  625. rapidata/api_client/models/validation_set_validation_set_id_rapid_post_payload_parameter.py +252 -0
  626. rapidata/api_client/models/validation_set_validation_set_id_rapid_post_truth_parameter.py +280 -0
  627. rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
  628. rapidata/api_client/models/video_duration_metadata.py +109 -0
  629. rapidata/api_client/models/video_duration_metadata_model.py +96 -0
  630. rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
  631. rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
  632. rapidata/api_client/models/workflow_state.py +2 -2
  633. rapidata/api_client/models/zip_entry_file_wrapper.py +151 -0
  634. rapidata/api_client/rest.py +16 -9
  635. rapidata/api_client_README.md +389 -315
  636. rapidata/rapidata_client/__init__.py +10 -17
  637. rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
  638. rapidata/rapidata_client/benchmark/__init__.py +0 -0
  639. rapidata/rapidata_client/benchmark/_detail_mapper.py +32 -0
  640. rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
  641. rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +221 -0
  642. rapidata/rapidata_client/benchmark/participant/__init__.py +0 -0
  643. rapidata/rapidata_client/benchmark/participant/_participant.py +147 -0
  644. rapidata/rapidata_client/benchmark/rapidata_benchmark.py +546 -0
  645. rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +219 -0
  646. rapidata/rapidata_client/config/__init__.py +4 -0
  647. rapidata/rapidata_client/config/logger.py +135 -0
  648. rapidata/rapidata_client/config/logging_config.py +55 -0
  649. rapidata/rapidata_client/config/managed_print.py +6 -0
  650. rapidata/rapidata_client/config/order_config.py +14 -0
  651. rapidata/rapidata_client/config/rapidata_config.py +36 -0
  652. rapidata/rapidata_client/config/tracer.py +184 -0
  653. rapidata/rapidata_client/config/upload_config.py +64 -0
  654. rapidata/rapidata_client/datapoints/__init__.py +10 -0
  655. rapidata/rapidata_client/datapoints/_asset_uploader.py +169 -0
  656. rapidata/rapidata_client/datapoints/_datapoint.py +92 -0
  657. rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
  658. rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
  659. rapidata/rapidata_client/datapoints/assets/__init__.py +0 -0
  660. rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
  661. rapidata/rapidata_client/{metadata → datapoints/metadata}/__init__.py +1 -0
  662. rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +26 -0
  663. rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +16 -0
  664. rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +14 -0
  665. rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +12 -0
  666. rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +16 -0
  667. rapidata/rapidata_client/{metadata → datapoints/metadata}/_select_words_metadata.py +4 -5
  668. rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
  669. rapidata/rapidata_client/exceptions/__init__.py +1 -0
  670. rapidata/rapidata_client/exceptions/failed_upload_exception.py +20 -0
  671. rapidata/rapidata_client/filter/__init__.py +1 -0
  672. rapidata/rapidata_client/filter/_base_filter.py +27 -6
  673. rapidata/rapidata_client/filter/age_filter.py +21 -10
  674. rapidata/rapidata_client/filter/and_filter.py +42 -0
  675. rapidata/rapidata_client/filter/campaign_filter.py +18 -10
  676. rapidata/rapidata_client/filter/country_filter.py +34 -12
  677. rapidata/rapidata_client/filter/custom_filter.py +22 -12
  678. rapidata/rapidata_client/filter/gender_filter.py +22 -10
  679. rapidata/rapidata_client/filter/language_filter.py +39 -21
  680. rapidata/rapidata_client/filter/models/age_group.py +14 -12
  681. rapidata/rapidata_client/filter/models/gender.py +12 -8
  682. rapidata/rapidata_client/filter/new_user_filter.py +11 -4
  683. rapidata/rapidata_client/filter/not_filter.py +23 -11
  684. rapidata/rapidata_client/filter/or_filter.py +23 -11
  685. rapidata/rapidata_client/filter/rapidata_filters.py +19 -13
  686. rapidata/rapidata_client/filter/response_count_filter.py +36 -20
  687. rapidata/rapidata_client/filter/user_score_filter.py +47 -24
  688. rapidata/rapidata_client/order/_rapidata_order_builder.py +286 -193
  689. rapidata/rapidata_client/order/dataset/_rapidata_dataset.py +153 -0
  690. rapidata/rapidata_client/order/rapidata_order.py +317 -160
  691. rapidata/rapidata_client/order/rapidata_order_manager.py +689 -431
  692. rapidata/rapidata_client/order/rapidata_results.py +98 -67
  693. rapidata/rapidata_client/rapidata_client.py +99 -33
  694. rapidata/rapidata_client/referee/__init__.py +1 -1
  695. rapidata/rapidata_client/referee/_base_referee.py +7 -3
  696. rapidata/rapidata_client/referee/_early_stopping_referee.py +20 -11
  697. rapidata/rapidata_client/referee/_naive_referee.py +18 -3
  698. rapidata/rapidata_client/selection/__init__.py +2 -1
  699. rapidata/rapidata_client/selection/_base_selection.py +9 -2
  700. rapidata/rapidata_client/selection/ab_test_selection.py +28 -20
  701. rapidata/rapidata_client/selection/capped_selection.py +23 -16
  702. rapidata/rapidata_client/selection/conditional_validation_selection.py +43 -24
  703. rapidata/rapidata_client/selection/demographic_selection.py +21 -6
  704. rapidata/rapidata_client/selection/effort_selection.py +49 -0
  705. rapidata/rapidata_client/selection/labeling_selection.py +34 -11
  706. rapidata/rapidata_client/selection/{retrieval_modes.py → rapidata_retrieval_modes.py} +7 -4
  707. rapidata/rapidata_client/selection/rapidata_selections.py +17 -8
  708. rapidata/rapidata_client/selection/shuffling_selection.py +21 -13
  709. rapidata/rapidata_client/selection/static_selection.py +19 -8
  710. rapidata/rapidata_client/selection/validation_selection.py +20 -4
  711. rapidata/rapidata_client/settings/__init__.py +4 -1
  712. rapidata/rapidata_client/settings/_rapidata_setting.py +15 -2
  713. rapidata/rapidata_client/settings/alert_on_fast_response.py +8 -5
  714. rapidata/rapidata_client/settings/allow_neither_both.py +17 -0
  715. rapidata/rapidata_client/settings/custom_setting.py +3 -2
  716. rapidata/rapidata_client/settings/free_text_minimum_characters.py +9 -4
  717. rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
  718. rapidata/rapidata_client/settings/mute_video.py +15 -0
  719. rapidata/rapidata_client/settings/no_shuffle.py +4 -2
  720. rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
  721. rapidata/rapidata_client/settings/rapidata_settings.py +18 -3
  722. rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
  723. rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
  724. rapidata/rapidata_client/validation/rapidata_validation_set.py +106 -12
  725. rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +62 -0
  726. rapidata/rapidata_client/validation/rapids/box.py +37 -12
  727. rapidata/rapidata_client/validation/rapids/rapids.py +28 -103
  728. rapidata/rapidata_client/validation/rapids/rapids_manager.py +315 -208
  729. rapidata/rapidata_client/validation/validation_set_manager.py +511 -260
  730. rapidata/rapidata_client/workflow/__init__.py +2 -1
  731. rapidata/rapidata_client/workflow/_base_workflow.py +25 -7
  732. rapidata/rapidata_client/workflow/_classify_workflow.py +58 -15
  733. rapidata/rapidata_client/workflow/_compare_workflow.py +44 -9
  734. rapidata/rapidata_client/workflow/_draw_workflow.py +40 -10
  735. rapidata/rapidata_client/workflow/_evaluation_workflow.py +28 -7
  736. rapidata/rapidata_client/workflow/_free_text_workflow.py +46 -9
  737. rapidata/rapidata_client/workflow/_locate_workflow.py +40 -10
  738. rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +87 -0
  739. rapidata/rapidata_client/workflow/_ranking_workflow.py +109 -25
  740. rapidata/rapidata_client/workflow/_select_words_workflow.py +51 -11
  741. rapidata/rapidata_client/workflow/_timestamp_workflow.py +42 -11
  742. rapidata/service/__init__.py +0 -1
  743. rapidata/service/credential_manager.py +14 -14
  744. rapidata/service/openapi_service.py +82 -22
  745. rapidata/types/__init__.py +166 -0
  746. rapidata-2.44.3.dist-info/METADATA +32 -0
  747. rapidata-2.44.3.dist-info/RECORD +1014 -0
  748. {rapidata-2.27.2.dist-info → rapidata-2.44.3.dist-info}/WHEEL +1 -1
  749. rapidata/rapidata_client/api/rapidata_exception.py +0 -107
  750. rapidata/rapidata_client/assets/__init__.py +0 -10
  751. rapidata/rapidata_client/assets/_base_asset.py +0 -11
  752. rapidata/rapidata_client/assets/_media_asset.py +0 -306
  753. rapidata/rapidata_client/assets/_multi_asset.py +0 -61
  754. rapidata/rapidata_client/assets/_sessions.py +0 -35
  755. rapidata/rapidata_client/assets/_text_asset.py +0 -34
  756. rapidata/rapidata_client/assets/data_type_enum.py +0 -7
  757. rapidata/rapidata_client/country_codes/__init__.py +0 -1
  758. rapidata/rapidata_client/country_codes/country_codes.py +0 -19
  759. rapidata/rapidata_client/logging/__init__.py +0 -2
  760. rapidata/rapidata_client/logging/logger.py +0 -122
  761. rapidata/rapidata_client/logging/output_manager.py +0 -20
  762. rapidata/rapidata_client/metadata/_media_asset_metadata.py +0 -15
  763. rapidata/rapidata_client/metadata/_private_text_metadata.py +0 -17
  764. rapidata/rapidata_client/metadata/_prompt_metadata.py +0 -18
  765. rapidata/rapidata_client/metadata/_public_text_metadata.py +0 -17
  766. rapidata/rapidata_client/order/_rapidata_dataset.py +0 -411
  767. rapidata/service/local_file_service.py +0 -25
  768. rapidata-2.27.2.dist-info/METADATA +0 -35
  769. rapidata-2.27.2.dist-info/RECORD +0 -540
  770. /rapidata/rapidata_client/{metadata → datapoints/metadata}/_base_metadata.py +0 -0
  771. {rapidata-2.27.2.dist-info → rapidata-2.44.3.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,25 +16,17 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictBytes, 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_metadata_model import DatapointMetadataModel
28
- from rapidata.api_client.models.dataset_dataset_id_datapoints_post_request_metadata_inner import DatasetDatasetIdDatapointsPostRequestMetadataInner
29
- from rapidata.api_client.models.get_datapoints_by_dataset_id_result import GetDatapointsByDatasetIdResult
30
24
  from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
31
25
  from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
32
26
  from rapidata.api_client.models.get_failed_datapoints_result import GetFailedDatapointsResult
33
- from rapidata.api_client.models.import_from_file_result import ImportFromFileResult
27
+ from rapidata.api_client.models.paged_result_of_query_datapoints_by_dataset_id_result import PagedResultOfQueryDatapointsByDatasetIdResult
28
+ from rapidata.api_client.models.query_model import QueryModel
34
29
  from rapidata.api_client.models.update_dataset_name_model import UpdateDatasetNameModel
35
- from rapidata.api_client.models.upload_files_from_s3_bucket_model import UploadFilesFromS3BucketModel
36
- from rapidata.api_client.models.upload_from_s3_result import UploadFromS3Result
37
- from rapidata.api_client.models.upload_text_sources_to_dataset_model import UploadTextSourcesToDatasetModel
38
30
 
39
31
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
40
32
  from rapidata.api_client.api_response import ApiResponse
@@ -55,10 +47,10 @@ class DatasetApi:
55
47
 
56
48
 
57
49
  @validate_call
58
- def dataset_createdatapoint_post(
50
+ def dataset_dataset_id_datapoint_post(
59
51
  self,
60
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
61
- model: Optional[DatapointMetadataModel] = None,
52
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
53
+ create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
62
54
  _request_timeout: Union[
63
55
  None,
64
56
  Annotated[StrictFloat, Field(gt=0)],
@@ -72,14 +64,13 @@ class DatasetApi:
72
64
  _headers: Optional[Dict[StrictStr, Any]] = None,
73
65
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
74
66
  ) -> CreateDatapointResult:
75
- """(Deprecated) Creates a single datapoint.
67
+ """Creates a datapoint with JSON body.
76
68
 
77
- If multiple files are uploaded, a multi asset datapoint will be created.
78
69
 
79
- :param files:
80
- :type files: List[bytearray]
81
- :param model:
82
- :type model: DatapointMetadataModel
70
+ :param dataset_id: The id of the dataset to create the datapoint in. (required)
71
+ :type dataset_id: str
72
+ :param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
73
+ :type create_datapoint_model: CreateDatapointModel
83
74
  :param _request_timeout: timeout setting for this request. If one
84
75
  number provided, it will be total request
85
76
  timeout. It can also be a pair (tuple) of
@@ -101,11 +92,10 @@ class DatasetApi:
101
92
  :type _host_index: int, optional
102
93
  :return: Returns the result object.
103
94
  """ # noqa: E501
104
- warnings.warn("POST /dataset/createdatapoint is deprecated.", DeprecationWarning)
105
95
 
106
- _param = self._dataset_createdatapoint_post_serialize(
107
- files=files,
108
- model=model,
96
+ _param = self._dataset_dataset_id_datapoint_post_serialize(
97
+ dataset_id=dataset_id,
98
+ create_datapoint_model=create_datapoint_model,
109
99
  _request_auth=_request_auth,
110
100
  _content_type=_content_type,
111
101
  _headers=_headers,
@@ -127,10 +117,10 @@ class DatasetApi:
127
117
 
128
118
 
129
119
  @validate_call
130
- def dataset_createdatapoint_post_with_http_info(
120
+ def dataset_dataset_id_datapoint_post_with_http_info(
131
121
  self,
132
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
133
- model: Optional[DatapointMetadataModel] = None,
122
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
123
+ create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
134
124
  _request_timeout: Union[
135
125
  None,
136
126
  Annotated[StrictFloat, Field(gt=0)],
@@ -144,14 +134,13 @@ class DatasetApi:
144
134
  _headers: Optional[Dict[StrictStr, Any]] = None,
145
135
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
146
136
  ) -> ApiResponse[CreateDatapointResult]:
147
- """(Deprecated) Creates a single datapoint.
137
+ """Creates a datapoint with JSON body.
148
138
 
149
- If multiple files are uploaded, a multi asset datapoint will be created.
150
139
 
151
- :param files:
152
- :type files: List[bytearray]
153
- :param model:
154
- :type model: DatapointMetadataModel
140
+ :param dataset_id: The id of the dataset to create the datapoint in. (required)
141
+ :type dataset_id: str
142
+ :param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
143
+ :type create_datapoint_model: CreateDatapointModel
155
144
  :param _request_timeout: timeout setting for this request. If one
156
145
  number provided, it will be total request
157
146
  timeout. It can also be a pair (tuple) of
@@ -173,11 +162,10 @@ class DatasetApi:
173
162
  :type _host_index: int, optional
174
163
  :return: Returns the result object.
175
164
  """ # noqa: E501
176
- warnings.warn("POST /dataset/createdatapoint is deprecated.", DeprecationWarning)
177
165
 
178
- _param = self._dataset_createdatapoint_post_serialize(
179
- files=files,
180
- model=model,
166
+ _param = self._dataset_dataset_id_datapoint_post_serialize(
167
+ dataset_id=dataset_id,
168
+ create_datapoint_model=create_datapoint_model,
181
169
  _request_auth=_request_auth,
182
170
  _content_type=_content_type,
183
171
  _headers=_headers,
@@ -199,10 +187,10 @@ class DatasetApi:
199
187
 
200
188
 
201
189
  @validate_call
202
- def dataset_createdatapoint_post_without_preload_content(
190
+ def dataset_dataset_id_datapoint_post_without_preload_content(
203
191
  self,
204
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
205
- model: Optional[DatapointMetadataModel] = None,
192
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
193
+ create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
206
194
  _request_timeout: Union[
207
195
  None,
208
196
  Annotated[StrictFloat, Field(gt=0)],
@@ -216,14 +204,13 @@ class DatasetApi:
216
204
  _headers: Optional[Dict[StrictStr, Any]] = None,
217
205
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
218
206
  ) -> RESTResponseType:
219
- """(Deprecated) Creates a single datapoint.
207
+ """Creates a datapoint with JSON body.
220
208
 
221
- If multiple files are uploaded, a multi asset datapoint will be created.
222
209
 
223
- :param files:
224
- :type files: List[bytearray]
225
- :param model:
226
- :type model: DatapointMetadataModel
210
+ :param dataset_id: The id of the dataset to create the datapoint in. (required)
211
+ :type dataset_id: str
212
+ :param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
213
+ :type create_datapoint_model: CreateDatapointModel
227
214
  :param _request_timeout: timeout setting for this request. If one
228
215
  number provided, it will be total request
229
216
  timeout. It can also be a pair (tuple) of
@@ -245,11 +232,10 @@ class DatasetApi:
245
232
  :type _host_index: int, optional
246
233
  :return: Returns the result object.
247
234
  """ # noqa: E501
248
- warnings.warn("POST /dataset/createdatapoint is deprecated.", DeprecationWarning)
249
235
 
250
- _param = self._dataset_createdatapoint_post_serialize(
251
- files=files,
252
- model=model,
236
+ _param = self._dataset_dataset_id_datapoint_post_serialize(
237
+ dataset_id=dataset_id,
238
+ create_datapoint_model=create_datapoint_model,
253
239
  _request_auth=_request_auth,
254
240
  _content_type=_content_type,
255
241
  _headers=_headers,
@@ -266,10 +252,10 @@ class DatasetApi:
266
252
  return response_data.response
267
253
 
268
254
 
269
- def _dataset_createdatapoint_post_serialize(
255
+ def _dataset_dataset_id_datapoint_post_serialize(
270
256
  self,
271
- files,
272
- model,
257
+ dataset_id,
258
+ create_datapoint_model,
273
259
  _request_auth,
274
260
  _content_type,
275
261
  _headers,
@@ -279,7 +265,6 @@ class DatasetApi:
279
265
  _host = None
280
266
 
281
267
  _collection_formats: Dict[str, str] = {
282
- 'files': 'multi',
283
268
  }
284
269
 
285
270
  _path_params: Dict[str, str] = {}
@@ -292,14 +277,14 @@ class DatasetApi:
292
277
  _body_params: Optional[bytes] = None
293
278
 
294
279
  # process the path parameters
280
+ if dataset_id is not None:
281
+ _path_params['datasetId'] = dataset_id
295
282
  # process the query parameters
296
283
  # process the header parameters
297
284
  # process the form parameters
298
- if files is not None:
299
- _files['files'] = files
300
- if model is not None:
301
- _form_params.append(('model', model))
302
285
  # process the body parameter
286
+ if create_datapoint_model is not None:
287
+ _body_params = create_datapoint_model
303
288
 
304
289
 
305
290
  # set the HTTP header `Accept`
@@ -319,7 +304,9 @@ class DatasetApi:
319
304
  _default_content_type = (
320
305
  self.api_client.select_header_content_type(
321
306
  [
322
- 'multipart/form-data'
307
+ 'application/json',
308
+ 'text/json',
309
+ 'application/*+json'
323
310
  ]
324
311
  )
325
312
  )
@@ -328,13 +315,14 @@ class DatasetApi:
328
315
 
329
316
  # authentication setting
330
317
  _auth_settings: List[str] = [
331
- 'bearer',
332
- 'oauth2'
318
+ 'OAuth2',
319
+ 'OpenIdConnect',
320
+ 'Bearer'
333
321
  ]
334
322
 
335
323
  return self.api_client.param_serialize(
336
324
  method='POST',
337
- resource_path='/dataset/createdatapoint',
325
+ resource_path='/dataset/{datasetId}/datapoint',
338
326
  path_params=_path_params,
339
327
  query_params=_query_params,
340
328
  header_params=_header_params,
@@ -351,9 +339,9 @@ class DatasetApi:
351
339
 
352
340
 
353
341
  @validate_call
354
- def dataset_creattextdatapoint_post(
342
+ def dataset_dataset_id_datapoints_failed_get(
355
343
  self,
356
- upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
344
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
357
345
  _request_timeout: Union[
358
346
  None,
359
347
  Annotated[StrictFloat, Field(gt=0)],
@@ -366,13 +354,13 @@ class DatasetApi:
366
354
  _content_type: Optional[StrictStr] = None,
367
355
  _headers: Optional[Dict[StrictStr, Any]] = None,
368
356
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
369
- ) -> CreateDatapointResult:
370
- """(Deprecated) Creates new datapoints from text sources.
357
+ ) -> GetFailedDatapointsResult:
358
+ """Gets a list of all datapoints that failed to upload.
371
359
 
372
- If multiple text sources are uploaded, a new datapoint will be created for each text source.
360
+ A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
373
361
 
374
- :param upload_text_sources_to_dataset_model: The body of the request.
375
- :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
362
+ :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
363
+ :type dataset_id: str
376
364
  :param _request_timeout: timeout setting for this request. If one
377
365
  number provided, it will be total request
378
366
  timeout. It can also be a pair (tuple) of
@@ -394,10 +382,9 @@ class DatasetApi:
394
382
  :type _host_index: int, optional
395
383
  :return: Returns the result object.
396
384
  """ # noqa: E501
397
- warnings.warn("POST /dataset/creattextdatapoint is deprecated.", DeprecationWarning)
398
385
 
399
- _param = self._dataset_creattextdatapoint_post_serialize(
400
- upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
386
+ _param = self._dataset_dataset_id_datapoints_failed_get_serialize(
387
+ dataset_id=dataset_id,
401
388
  _request_auth=_request_auth,
402
389
  _content_type=_content_type,
403
390
  _headers=_headers,
@@ -405,7 +392,7 @@ class DatasetApi:
405
392
  )
406
393
 
407
394
  _response_types_map: Dict[str, Optional[str]] = {
408
- '200': "CreateDatapointResult",
395
+ '200': "GetFailedDatapointsResult",
409
396
  }
410
397
  response_data = self.api_client.call_api(
411
398
  *_param,
@@ -419,9 +406,9 @@ class DatasetApi:
419
406
 
420
407
 
421
408
  @validate_call
422
- def dataset_creattextdatapoint_post_with_http_info(
409
+ def dataset_dataset_id_datapoints_failed_get_with_http_info(
423
410
  self,
424
- upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
411
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
425
412
  _request_timeout: Union[
426
413
  None,
427
414
  Annotated[StrictFloat, Field(gt=0)],
@@ -434,13 +421,13 @@ class DatasetApi:
434
421
  _content_type: Optional[StrictStr] = None,
435
422
  _headers: Optional[Dict[StrictStr, Any]] = None,
436
423
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
437
- ) -> ApiResponse[CreateDatapointResult]:
438
- """(Deprecated) Creates new datapoints from text sources.
424
+ ) -> ApiResponse[GetFailedDatapointsResult]:
425
+ """Gets a list of all datapoints that failed to upload.
439
426
 
440
- If multiple text sources are uploaded, a new datapoint will be created for each text source.
427
+ A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
441
428
 
442
- :param upload_text_sources_to_dataset_model: The body of the request.
443
- :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
429
+ :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
430
+ :type dataset_id: str
444
431
  :param _request_timeout: timeout setting for this request. If one
445
432
  number provided, it will be total request
446
433
  timeout. It can also be a pair (tuple) of
@@ -462,10 +449,9 @@ class DatasetApi:
462
449
  :type _host_index: int, optional
463
450
  :return: Returns the result object.
464
451
  """ # noqa: E501
465
- warnings.warn("POST /dataset/creattextdatapoint is deprecated.", DeprecationWarning)
466
452
 
467
- _param = self._dataset_creattextdatapoint_post_serialize(
468
- upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
453
+ _param = self._dataset_dataset_id_datapoints_failed_get_serialize(
454
+ dataset_id=dataset_id,
469
455
  _request_auth=_request_auth,
470
456
  _content_type=_content_type,
471
457
  _headers=_headers,
@@ -473,7 +459,7 @@ class DatasetApi:
473
459
  )
474
460
 
475
461
  _response_types_map: Dict[str, Optional[str]] = {
476
- '200': "CreateDatapointResult",
462
+ '200': "GetFailedDatapointsResult",
477
463
  }
478
464
  response_data = self.api_client.call_api(
479
465
  *_param,
@@ -487,9 +473,9 @@ class DatasetApi:
487
473
 
488
474
 
489
475
  @validate_call
490
- def dataset_creattextdatapoint_post_without_preload_content(
476
+ def dataset_dataset_id_datapoints_failed_get_without_preload_content(
491
477
  self,
492
- upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
478
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
493
479
  _request_timeout: Union[
494
480
  None,
495
481
  Annotated[StrictFloat, Field(gt=0)],
@@ -503,12 +489,12 @@ class DatasetApi:
503
489
  _headers: Optional[Dict[StrictStr, Any]] = None,
504
490
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
505
491
  ) -> RESTResponseType:
506
- """(Deprecated) Creates new datapoints from text sources.
492
+ """Gets a list of all datapoints that failed to upload.
507
493
 
508
- If multiple text sources are uploaded, a new datapoint will be created for each text source.
494
+ A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
509
495
 
510
- :param upload_text_sources_to_dataset_model: The body of the request.
511
- :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
496
+ :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
497
+ :type dataset_id: str
512
498
  :param _request_timeout: timeout setting for this request. If one
513
499
  number provided, it will be total request
514
500
  timeout. It can also be a pair (tuple) of
@@ -530,10 +516,9 @@ class DatasetApi:
530
516
  :type _host_index: int, optional
531
517
  :return: Returns the result object.
532
518
  """ # noqa: E501
533
- warnings.warn("POST /dataset/creattextdatapoint is deprecated.", DeprecationWarning)
534
519
 
535
- _param = self._dataset_creattextdatapoint_post_serialize(
536
- upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
520
+ _param = self._dataset_dataset_id_datapoints_failed_get_serialize(
521
+ dataset_id=dataset_id,
537
522
  _request_auth=_request_auth,
538
523
  _content_type=_content_type,
539
524
  _headers=_headers,
@@ -541,7 +526,7 @@ class DatasetApi:
541
526
  )
542
527
 
543
528
  _response_types_map: Dict[str, Optional[str]] = {
544
- '200': "CreateDatapointResult",
529
+ '200': "GetFailedDatapointsResult",
545
530
  }
546
531
  response_data = self.api_client.call_api(
547
532
  *_param,
@@ -550,9 +535,9 @@ class DatasetApi:
550
535
  return response_data.response
551
536
 
552
537
 
553
- def _dataset_creattextdatapoint_post_serialize(
538
+ def _dataset_dataset_id_datapoints_failed_get_serialize(
554
539
  self,
555
- upload_text_sources_to_dataset_model,
540
+ dataset_id,
556
541
  _request_auth,
557
542
  _content_type,
558
543
  _headers,
@@ -574,12 +559,12 @@ class DatasetApi:
574
559
  _body_params: Optional[bytes] = None
575
560
 
576
561
  # process the path parameters
562
+ if dataset_id is not None:
563
+ _path_params['datasetId'] = dataset_id
577
564
  # process the query parameters
578
565
  # process the header parameters
579
566
  # process the form parameters
580
567
  # process the body parameter
581
- if upload_text_sources_to_dataset_model is not None:
582
- _body_params = upload_text_sources_to_dataset_model
583
568
 
584
569
 
585
570
  # set the HTTP header `Accept`
@@ -592,31 +577,17 @@ class DatasetApi:
592
577
  ]
593
578
  )
594
579
 
595
- # set the HTTP header `Content-Type`
596
- if _content_type:
597
- _header_params['Content-Type'] = _content_type
598
- else:
599
- _default_content_type = (
600
- self.api_client.select_header_content_type(
601
- [
602
- 'application/json',
603
- 'text/json',
604
- 'application/*+json'
605
- ]
606
- )
607
- )
608
- if _default_content_type is not None:
609
- _header_params['Content-Type'] = _default_content_type
610
580
 
611
581
  # authentication setting
612
582
  _auth_settings: List[str] = [
613
- 'bearer',
614
- 'oauth2'
583
+ 'OAuth2',
584
+ 'OpenIdConnect',
585
+ 'Bearer'
615
586
  ]
616
587
 
617
588
  return self.api_client.param_serialize(
618
- method='POST',
619
- resource_path='/dataset/creattextdatapoint',
589
+ method='GET',
590
+ resource_path='/dataset/{datasetId}/datapoints/failed',
620
591
  path_params=_path_params,
621
592
  query_params=_query_params,
622
593
  header_params=_header_params,
@@ -633,10 +604,10 @@ class DatasetApi:
633
604
 
634
605
 
635
606
  @validate_call
636
- def dataset_dataset_id_datapoints_csv_post(
607
+ def dataset_dataset_id_datapoints_get(
637
608
  self,
638
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to import the datapoints to.")],
639
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
609
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
610
+ request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
640
611
  _request_timeout: Union[
641
612
  None,
642
613
  Annotated[StrictFloat, Field(gt=0)],
@@ -649,14 +620,14 @@ class DatasetApi:
649
620
  _content_type: Optional[StrictStr] = None,
650
621
  _headers: Optional[Dict[StrictStr, Any]] = None,
651
622
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
652
- ) -> ImportFromFileResult:
653
- """Creates multiple datapoints from a csv.
623
+ ) -> PagedResultOfQueryDatapointsByDatasetIdResult:
624
+ """Gets all datapoints of a dataset.
654
625
 
655
626
 
656
- :param dataset_id: The id of the dataset to import the datapoints to. (required)
627
+ :param dataset_id: The id of the dataset to get the datapoints of. (required)
657
628
  :type dataset_id: str
658
- :param file: The csv file to import.
659
- :type file: bytearray
629
+ :param request: The query model to filter, sort, and paginate the results.
630
+ :type request: QueryModel
660
631
  :param _request_timeout: timeout setting for this request. If one
661
632
  number provided, it will be total request
662
633
  timeout. It can also be a pair (tuple) of
@@ -679,9 +650,9 @@ class DatasetApi:
679
650
  :return: Returns the result object.
680
651
  """ # noqa: E501
681
652
 
682
- _param = self._dataset_dataset_id_datapoints_csv_post_serialize(
653
+ _param = self._dataset_dataset_id_datapoints_get_serialize(
683
654
  dataset_id=dataset_id,
684
- file=file,
655
+ request=request,
685
656
  _request_auth=_request_auth,
686
657
  _content_type=_content_type,
687
658
  _headers=_headers,
@@ -689,7 +660,7 @@ class DatasetApi:
689
660
  )
690
661
 
691
662
  _response_types_map: Dict[str, Optional[str]] = {
692
- '200': "ImportFromFileResult",
663
+ '200': "PagedResultOfQueryDatapointsByDatasetIdResult",
693
664
  }
694
665
  response_data = self.api_client.call_api(
695
666
  *_param,
@@ -703,10 +674,10 @@ class DatasetApi:
703
674
 
704
675
 
705
676
  @validate_call
706
- def dataset_dataset_id_datapoints_csv_post_with_http_info(
677
+ def dataset_dataset_id_datapoints_get_with_http_info(
707
678
  self,
708
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to import the datapoints to.")],
709
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
679
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
680
+ request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
710
681
  _request_timeout: Union[
711
682
  None,
712
683
  Annotated[StrictFloat, Field(gt=0)],
@@ -719,14 +690,14 @@ class DatasetApi:
719
690
  _content_type: Optional[StrictStr] = None,
720
691
  _headers: Optional[Dict[StrictStr, Any]] = None,
721
692
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
722
- ) -> ApiResponse[ImportFromFileResult]:
723
- """Creates multiple datapoints from a csv.
693
+ ) -> ApiResponse[PagedResultOfQueryDatapointsByDatasetIdResult]:
694
+ """Gets all datapoints of a dataset.
724
695
 
725
696
 
726
- :param dataset_id: The id of the dataset to import the datapoints to. (required)
697
+ :param dataset_id: The id of the dataset to get the datapoints of. (required)
727
698
  :type dataset_id: str
728
- :param file: The csv file to import.
729
- :type file: bytearray
699
+ :param request: The query model to filter, sort, and paginate the results.
700
+ :type request: QueryModel
730
701
  :param _request_timeout: timeout setting for this request. If one
731
702
  number provided, it will be total request
732
703
  timeout. It can also be a pair (tuple) of
@@ -749,9 +720,9 @@ class DatasetApi:
749
720
  :return: Returns the result object.
750
721
  """ # noqa: E501
751
722
 
752
- _param = self._dataset_dataset_id_datapoints_csv_post_serialize(
723
+ _param = self._dataset_dataset_id_datapoints_get_serialize(
753
724
  dataset_id=dataset_id,
754
- file=file,
725
+ request=request,
755
726
  _request_auth=_request_auth,
756
727
  _content_type=_content_type,
757
728
  _headers=_headers,
@@ -759,7 +730,7 @@ class DatasetApi:
759
730
  )
760
731
 
761
732
  _response_types_map: Dict[str, Optional[str]] = {
762
- '200': "ImportFromFileResult",
733
+ '200': "PagedResultOfQueryDatapointsByDatasetIdResult",
763
734
  }
764
735
  response_data = self.api_client.call_api(
765
736
  *_param,
@@ -773,10 +744,10 @@ class DatasetApi:
773
744
 
774
745
 
775
746
  @validate_call
776
- def dataset_dataset_id_datapoints_csv_post_without_preload_content(
747
+ def dataset_dataset_id_datapoints_get_without_preload_content(
777
748
  self,
778
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to import the datapoints to.")],
779
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
749
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
750
+ request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
780
751
  _request_timeout: Union[
781
752
  None,
782
753
  Annotated[StrictFloat, Field(gt=0)],
@@ -790,13 +761,13 @@ class DatasetApi:
790
761
  _headers: Optional[Dict[StrictStr, Any]] = None,
791
762
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
792
763
  ) -> RESTResponseType:
793
- """Creates multiple datapoints from a csv.
764
+ """Gets all datapoints of a dataset.
794
765
 
795
766
 
796
- :param dataset_id: The id of the dataset to import the datapoints to. (required)
767
+ :param dataset_id: The id of the dataset to get the datapoints of. (required)
797
768
  :type dataset_id: str
798
- :param file: The csv file to import.
799
- :type file: bytearray
769
+ :param request: The query model to filter, sort, and paginate the results.
770
+ :type request: QueryModel
800
771
  :param _request_timeout: timeout setting for this request. If one
801
772
  number provided, it will be total request
802
773
  timeout. It can also be a pair (tuple) of
@@ -819,9 +790,9 @@ class DatasetApi:
819
790
  :return: Returns the result object.
820
791
  """ # noqa: E501
821
792
 
822
- _param = self._dataset_dataset_id_datapoints_csv_post_serialize(
793
+ _param = self._dataset_dataset_id_datapoints_get_serialize(
823
794
  dataset_id=dataset_id,
824
- file=file,
795
+ request=request,
825
796
  _request_auth=_request_auth,
826
797
  _content_type=_content_type,
827
798
  _headers=_headers,
@@ -829,7 +800,7 @@ class DatasetApi:
829
800
  )
830
801
 
831
802
  _response_types_map: Dict[str, Optional[str]] = {
832
- '200': "ImportFromFileResult",
803
+ '200': "PagedResultOfQueryDatapointsByDatasetIdResult",
833
804
  }
834
805
  response_data = self.api_client.call_api(
835
806
  *_param,
@@ -838,10 +809,10 @@ class DatasetApi:
838
809
  return response_data.response
839
810
 
840
811
 
841
- def _dataset_dataset_id_datapoints_csv_post_serialize(
812
+ def _dataset_dataset_id_datapoints_get_serialize(
842
813
  self,
843
814
  dataset_id,
844
- file,
815
+ request,
845
816
  _request_auth,
846
817
  _content_type,
847
818
  _headers,
@@ -866,10 +837,12 @@ class DatasetApi:
866
837
  if dataset_id is not None:
867
838
  _path_params['datasetId'] = dataset_id
868
839
  # process the query parameters
840
+ if request is not None:
841
+
842
+ _query_params.append(('request', request))
843
+
869
844
  # process the header parameters
870
845
  # process the form parameters
871
- if file is not None:
872
- _files['file'] = file
873
846
  # process the body parameter
874
847
 
875
848
 
@@ -883,29 +856,17 @@ class DatasetApi:
883
856
  ]
884
857
  )
885
858
 
886
- # set the HTTP header `Content-Type`
887
- if _content_type:
888
- _header_params['Content-Type'] = _content_type
889
- else:
890
- _default_content_type = (
891
- self.api_client.select_header_content_type(
892
- [
893
- 'multipart/form-data'
894
- ]
895
- )
896
- )
897
- if _default_content_type is not None:
898
- _header_params['Content-Type'] = _default_content_type
899
859
 
900
860
  # authentication setting
901
861
  _auth_settings: List[str] = [
902
- 'bearer',
903
- 'oauth2'
862
+ 'OAuth2',
863
+ 'OpenIdConnect',
864
+ 'Bearer'
904
865
  ]
905
866
 
906
867
  return self.api_client.param_serialize(
907
- method='POST',
908
- resource_path='/dataset/{datasetId}/datapoints/csv',
868
+ method='GET',
869
+ resource_path='/dataset/{datasetId}/datapoints',
909
870
  path_params=_path_params,
910
871
  query_params=_query_params,
911
872
  header_params=_header_params,
@@ -922,9 +883,9 @@ class DatasetApi:
922
883
 
923
884
 
924
885
  @validate_call
925
- def dataset_dataset_id_datapoints_failed_get(
886
+ def dataset_dataset_id_get(
926
887
  self,
927
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
888
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
928
889
  _request_timeout: Union[
929
890
  None,
930
891
  Annotated[StrictFloat, Field(gt=0)],
@@ -937,12 +898,11 @@ class DatasetApi:
937
898
  _content_type: Optional[StrictStr] = None,
938
899
  _headers: Optional[Dict[StrictStr, Any]] = None,
939
900
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
940
- ) -> GetFailedDatapointsResult:
941
- """Gets a list of all datapoints that failed to upload.
901
+ ) -> GetDatasetByIdResult:
902
+ """Gets a dataset by its id.
942
903
 
943
- A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
944
904
 
945
- :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
905
+ :param dataset_id: The id of the dataset to get. (required)
946
906
  :type dataset_id: str
947
907
  :param _request_timeout: timeout setting for this request. If one
948
908
  number provided, it will be total request
@@ -966,7 +926,7 @@ class DatasetApi:
966
926
  :return: Returns the result object.
967
927
  """ # noqa: E501
968
928
 
969
- _param = self._dataset_dataset_id_datapoints_failed_get_serialize(
929
+ _param = self._dataset_dataset_id_get_serialize(
970
930
  dataset_id=dataset_id,
971
931
  _request_auth=_request_auth,
972
932
  _content_type=_content_type,
@@ -975,7 +935,7 @@ class DatasetApi:
975
935
  )
976
936
 
977
937
  _response_types_map: Dict[str, Optional[str]] = {
978
- '200': "GetFailedDatapointsResult",
938
+ '200': "GetDatasetByIdResult",
979
939
  }
980
940
  response_data = self.api_client.call_api(
981
941
  *_param,
@@ -989,9 +949,9 @@ class DatasetApi:
989
949
 
990
950
 
991
951
  @validate_call
992
- def dataset_dataset_id_datapoints_failed_get_with_http_info(
952
+ def dataset_dataset_id_get_with_http_info(
993
953
  self,
994
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
954
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
995
955
  _request_timeout: Union[
996
956
  None,
997
957
  Annotated[StrictFloat, Field(gt=0)],
@@ -1004,12 +964,11 @@ class DatasetApi:
1004
964
  _content_type: Optional[StrictStr] = None,
1005
965
  _headers: Optional[Dict[StrictStr, Any]] = None,
1006
966
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1007
- ) -> ApiResponse[GetFailedDatapointsResult]:
1008
- """Gets a list of all datapoints that failed to upload.
967
+ ) -> ApiResponse[GetDatasetByIdResult]:
968
+ """Gets a dataset by its id.
1009
969
 
1010
- A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
1011
970
 
1012
- :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
971
+ :param dataset_id: The id of the dataset to get. (required)
1013
972
  :type dataset_id: str
1014
973
  :param _request_timeout: timeout setting for this request. If one
1015
974
  number provided, it will be total request
@@ -1033,7 +992,7 @@ class DatasetApi:
1033
992
  :return: Returns the result object.
1034
993
  """ # noqa: E501
1035
994
 
1036
- _param = self._dataset_dataset_id_datapoints_failed_get_serialize(
995
+ _param = self._dataset_dataset_id_get_serialize(
1037
996
  dataset_id=dataset_id,
1038
997
  _request_auth=_request_auth,
1039
998
  _content_type=_content_type,
@@ -1042,7 +1001,7 @@ class DatasetApi:
1042
1001
  )
1043
1002
 
1044
1003
  _response_types_map: Dict[str, Optional[str]] = {
1045
- '200': "GetFailedDatapointsResult",
1004
+ '200': "GetDatasetByIdResult",
1046
1005
  }
1047
1006
  response_data = self.api_client.call_api(
1048
1007
  *_param,
@@ -1056,9 +1015,9 @@ class DatasetApi:
1056
1015
 
1057
1016
 
1058
1017
  @validate_call
1059
- def dataset_dataset_id_datapoints_failed_get_without_preload_content(
1018
+ def dataset_dataset_id_get_without_preload_content(
1060
1019
  self,
1061
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
1020
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
1062
1021
  _request_timeout: Union[
1063
1022
  None,
1064
1023
  Annotated[StrictFloat, Field(gt=0)],
@@ -1072,11 +1031,10 @@ class DatasetApi:
1072
1031
  _headers: Optional[Dict[StrictStr, Any]] = None,
1073
1032
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1074
1033
  ) -> RESTResponseType:
1075
- """Gets a list of all datapoints that failed to upload.
1034
+ """Gets a dataset by its id.
1076
1035
 
1077
- A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
1078
1036
 
1079
- :param dataset_id: The id of the dataset to get the failed datapoints of. (required)
1037
+ :param dataset_id: The id of the dataset to get. (required)
1080
1038
  :type dataset_id: str
1081
1039
  :param _request_timeout: timeout setting for this request. If one
1082
1040
  number provided, it will be total request
@@ -1100,7 +1058,7 @@ class DatasetApi:
1100
1058
  :return: Returns the result object.
1101
1059
  """ # noqa: E501
1102
1060
 
1103
- _param = self._dataset_dataset_id_datapoints_failed_get_serialize(
1061
+ _param = self._dataset_dataset_id_get_serialize(
1104
1062
  dataset_id=dataset_id,
1105
1063
  _request_auth=_request_auth,
1106
1064
  _content_type=_content_type,
@@ -1109,7 +1067,7 @@ class DatasetApi:
1109
1067
  )
1110
1068
 
1111
1069
  _response_types_map: Dict[str, Optional[str]] = {
1112
- '200': "GetFailedDatapointsResult",
1070
+ '200': "GetDatasetByIdResult",
1113
1071
  }
1114
1072
  response_data = self.api_client.call_api(
1115
1073
  *_param,
@@ -1118,7 +1076,7 @@ class DatasetApi:
1118
1076
  return response_data.response
1119
1077
 
1120
1078
 
1121
- def _dataset_dataset_id_datapoints_failed_get_serialize(
1079
+ def _dataset_dataset_id_get_serialize(
1122
1080
  self,
1123
1081
  dataset_id,
1124
1082
  _request_auth,
@@ -1163,13 +1121,14 @@ class DatasetApi:
1163
1121
 
1164
1122
  # authentication setting
1165
1123
  _auth_settings: List[str] = [
1166
- 'bearer',
1167
- 'oauth2'
1124
+ 'OAuth2',
1125
+ 'OpenIdConnect',
1126
+ 'Bearer'
1168
1127
  ]
1169
1128
 
1170
1129
  return self.api_client.param_serialize(
1171
1130
  method='GET',
1172
- resource_path='/dataset/{datasetId}/datapoints/failed',
1131
+ resource_path='/dataset/{datasetId}',
1173
1132
  path_params=_path_params,
1174
1133
  query_params=_query_params,
1175
1134
  header_params=_header_params,
@@ -1186,11 +1145,10 @@ class DatasetApi:
1186
1145
 
1187
1146
 
1188
1147
  @validate_call
1189
- def dataset_dataset_id_datapoints_files_post(
1148
+ def dataset_dataset_id_name_patch(
1190
1149
  self,
1191
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
1192
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1193
- model: Optional[CreateDatapointFromFilesModel] = None,
1150
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
1151
+ update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
1194
1152
  _request_timeout: Union[
1195
1153
  None,
1196
1154
  Annotated[StrictFloat, Field(gt=0)],
@@ -1203,17 +1161,14 @@ class DatasetApi:
1203
1161
  _content_type: Optional[StrictStr] = None,
1204
1162
  _headers: Optional[Dict[StrictStr, Any]] = None,
1205
1163
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1206
- ) -> CreateDatapointResult:
1207
- """Creates a single datapoint by uploading files.
1164
+ ) -> None:
1165
+ """Updates the name of a dataset.
1208
1166
 
1209
- If multiple files are uploaded, a multi asset datapoint will be created.
1210
1167
 
1211
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
1168
+ :param dataset_id: The id of the dataset to update. (required)
1212
1169
  :type dataset_id: str
1213
- :param files:
1214
- :type files: List[bytearray]
1215
- :param model:
1216
- :type model: CreateDatapointFromFilesModel
1170
+ :param update_dataset_name_model: The body of the request. (required)
1171
+ :type update_dataset_name_model: UpdateDatasetNameModel
1217
1172
  :param _request_timeout: timeout setting for this request. If one
1218
1173
  number provided, it will be total request
1219
1174
  timeout. It can also be a pair (tuple) of
@@ -1236,10 +1191,9 @@ class DatasetApi:
1236
1191
  :return: Returns the result object.
1237
1192
  """ # noqa: E501
1238
1193
 
1239
- _param = self._dataset_dataset_id_datapoints_files_post_serialize(
1194
+ _param = self._dataset_dataset_id_name_patch_serialize(
1240
1195
  dataset_id=dataset_id,
1241
- files=files,
1242
- model=model,
1196
+ update_dataset_name_model=update_dataset_name_model,
1243
1197
  _request_auth=_request_auth,
1244
1198
  _content_type=_content_type,
1245
1199
  _headers=_headers,
@@ -1247,7 +1201,7 @@ class DatasetApi:
1247
1201
  )
1248
1202
 
1249
1203
  _response_types_map: Dict[str, Optional[str]] = {
1250
- '200': "CreateDatapointResult",
1204
+ '204': None,
1251
1205
  }
1252
1206
  response_data = self.api_client.call_api(
1253
1207
  *_param,
@@ -1261,11 +1215,10 @@ class DatasetApi:
1261
1215
 
1262
1216
 
1263
1217
  @validate_call
1264
- def dataset_dataset_id_datapoints_files_post_with_http_info(
1218
+ def dataset_dataset_id_name_patch_with_http_info(
1265
1219
  self,
1266
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
1267
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1268
- model: Optional[CreateDatapointFromFilesModel] = None,
1220
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
1221
+ update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
1269
1222
  _request_timeout: Union[
1270
1223
  None,
1271
1224
  Annotated[StrictFloat, Field(gt=0)],
@@ -1278,17 +1231,14 @@ class DatasetApi:
1278
1231
  _content_type: Optional[StrictStr] = None,
1279
1232
  _headers: Optional[Dict[StrictStr, Any]] = None,
1280
1233
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1281
- ) -> ApiResponse[CreateDatapointResult]:
1282
- """Creates a single datapoint by uploading files.
1234
+ ) -> ApiResponse[None]:
1235
+ """Updates the name of a dataset.
1283
1236
 
1284
- If multiple files are uploaded, a multi asset datapoint will be created.
1285
1237
 
1286
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
1238
+ :param dataset_id: The id of the dataset to update. (required)
1287
1239
  :type dataset_id: str
1288
- :param files:
1289
- :type files: List[bytearray]
1290
- :param model:
1291
- :type model: CreateDatapointFromFilesModel
1240
+ :param update_dataset_name_model: The body of the request. (required)
1241
+ :type update_dataset_name_model: UpdateDatasetNameModel
1292
1242
  :param _request_timeout: timeout setting for this request. If one
1293
1243
  number provided, it will be total request
1294
1244
  timeout. It can also be a pair (tuple) of
@@ -1311,10 +1261,9 @@ class DatasetApi:
1311
1261
  :return: Returns the result object.
1312
1262
  """ # noqa: E501
1313
1263
 
1314
- _param = self._dataset_dataset_id_datapoints_files_post_serialize(
1264
+ _param = self._dataset_dataset_id_name_patch_serialize(
1315
1265
  dataset_id=dataset_id,
1316
- files=files,
1317
- model=model,
1266
+ update_dataset_name_model=update_dataset_name_model,
1318
1267
  _request_auth=_request_auth,
1319
1268
  _content_type=_content_type,
1320
1269
  _headers=_headers,
@@ -1322,7 +1271,7 @@ class DatasetApi:
1322
1271
  )
1323
1272
 
1324
1273
  _response_types_map: Dict[str, Optional[str]] = {
1325
- '200': "CreateDatapointResult",
1274
+ '204': None,
1326
1275
  }
1327
1276
  response_data = self.api_client.call_api(
1328
1277
  *_param,
@@ -1336,11 +1285,10 @@ class DatasetApi:
1336
1285
 
1337
1286
 
1338
1287
  @validate_call
1339
- def dataset_dataset_id_datapoints_files_post_without_preload_content(
1288
+ def dataset_dataset_id_name_patch_without_preload_content(
1340
1289
  self,
1341
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
1342
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1343
- model: Optional[CreateDatapointFromFilesModel] = None,
1290
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
1291
+ update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
1344
1292
  _request_timeout: Union[
1345
1293
  None,
1346
1294
  Annotated[StrictFloat, Field(gt=0)],
@@ -1354,16 +1302,13 @@ class DatasetApi:
1354
1302
  _headers: Optional[Dict[StrictStr, Any]] = None,
1355
1303
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1356
1304
  ) -> RESTResponseType:
1357
- """Creates a single datapoint by uploading files.
1305
+ """Updates the name of a dataset.
1358
1306
 
1359
- If multiple files are uploaded, a multi asset datapoint will be created.
1360
1307
 
1361
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
1308
+ :param dataset_id: The id of the dataset to update. (required)
1362
1309
  :type dataset_id: str
1363
- :param files:
1364
- :type files: List[bytearray]
1365
- :param model:
1366
- :type model: CreateDatapointFromFilesModel
1310
+ :param update_dataset_name_model: The body of the request. (required)
1311
+ :type update_dataset_name_model: UpdateDatasetNameModel
1367
1312
  :param _request_timeout: timeout setting for this request. If one
1368
1313
  number provided, it will be total request
1369
1314
  timeout. It can also be a pair (tuple) of
@@ -1386,10 +1331,9 @@ class DatasetApi:
1386
1331
  :return: Returns the result object.
1387
1332
  """ # noqa: E501
1388
1333
 
1389
- _param = self._dataset_dataset_id_datapoints_files_post_serialize(
1334
+ _param = self._dataset_dataset_id_name_patch_serialize(
1390
1335
  dataset_id=dataset_id,
1391
- files=files,
1392
- model=model,
1336
+ update_dataset_name_model=update_dataset_name_model,
1393
1337
  _request_auth=_request_auth,
1394
1338
  _content_type=_content_type,
1395
1339
  _headers=_headers,
@@ -1397,7 +1341,7 @@ class DatasetApi:
1397
1341
  )
1398
1342
 
1399
1343
  _response_types_map: Dict[str, Optional[str]] = {
1400
- '200': "CreateDatapointResult",
1344
+ '204': None,
1401
1345
  }
1402
1346
  response_data = self.api_client.call_api(
1403
1347
  *_param,
@@ -1406,11 +1350,10 @@ class DatasetApi:
1406
1350
  return response_data.response
1407
1351
 
1408
1352
 
1409
- def _dataset_dataset_id_datapoints_files_post_serialize(
1353
+ def _dataset_dataset_id_name_patch_serialize(
1410
1354
  self,
1411
1355
  dataset_id,
1412
- files,
1413
- model,
1356
+ update_dataset_name_model,
1414
1357
  _request_auth,
1415
1358
  _content_type,
1416
1359
  _headers,
@@ -1420,7 +1363,6 @@ class DatasetApi:
1420
1363
  _host = None
1421
1364
 
1422
1365
  _collection_formats: Dict[str, str] = {
1423
- 'files': 'multi',
1424
1366
  }
1425
1367
 
1426
1368
  _path_params: Dict[str, str] = {}
@@ -1438,22 +1380,11 @@ class DatasetApi:
1438
1380
  # process the query parameters
1439
1381
  # process the header parameters
1440
1382
  # process the form parameters
1441
- if files is not None:
1442
- _files['files'] = files
1443
- if model is not None:
1444
- _form_params.append(('model', model))
1445
1383
  # process the body parameter
1384
+ if update_dataset_name_model is not None:
1385
+ _body_params = update_dataset_name_model
1446
1386
 
1447
1387
 
1448
- # set the HTTP header `Accept`
1449
- if 'Accept' not in _header_params:
1450
- _header_params['Accept'] = self.api_client.select_header_accept(
1451
- [
1452
- 'text/plain',
1453
- 'application/json',
1454
- 'text/json'
1455
- ]
1456
- )
1457
1388
 
1458
1389
  # set the HTTP header `Content-Type`
1459
1390
  if _content_type:
@@ -1462,7 +1393,9 @@ class DatasetApi:
1462
1393
  _default_content_type = (
1463
1394
  self.api_client.select_header_content_type(
1464
1395
  [
1465
- 'multipart/form-data'
1396
+ 'application/json',
1397
+ 'text/json',
1398
+ 'application/*+json'
1466
1399
  ]
1467
1400
  )
1468
1401
  )
@@ -1471,13 +1404,14 @@ class DatasetApi:
1471
1404
 
1472
1405
  # authentication setting
1473
1406
  _auth_settings: List[str] = [
1474
- 'bearer',
1475
- 'oauth2'
1407
+ 'OAuth2',
1408
+ 'OpenIdConnect',
1409
+ 'Bearer'
1476
1410
  ]
1477
1411
 
1478
1412
  return self.api_client.param_serialize(
1479
- method='POST',
1480
- resource_path='/dataset/{datasetId}/datapoints/files',
1413
+ method='PATCH',
1414
+ resource_path='/dataset/{datasetId}/name',
1481
1415
  path_params=_path_params,
1482
1416
  query_params=_query_params,
1483
1417
  header_params=_header_params,
@@ -1494,9 +1428,9 @@ class DatasetApi:
1494
1428
 
1495
1429
 
1496
1430
  @validate_call
1497
- def dataset_dataset_id_datapoints_get(
1431
+ def dataset_dataset_id_progress_get(
1498
1432
  self,
1499
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
1433
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
1500
1434
  _request_timeout: Union[
1501
1435
  None,
1502
1436
  Annotated[StrictFloat, Field(gt=0)],
@@ -1509,11 +1443,11 @@ class DatasetApi:
1509
1443
  _content_type: Optional[StrictStr] = None,
1510
1444
  _headers: Optional[Dict[StrictStr, Any]] = None,
1511
1445
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1512
- ) -> GetDatapointsByDatasetIdResult:
1513
- """Gets all datapoints of a dataset.
1446
+ ) -> GetDatasetProgressResult:
1447
+ """Gets the upload progress of a dataset.
1514
1448
 
1515
1449
 
1516
- :param dataset_id: The id of the dataset to get the datapoints of. (required)
1450
+ :param dataset_id: The id of the dataset to get the progress of. (required)
1517
1451
  :type dataset_id: str
1518
1452
  :param _request_timeout: timeout setting for this request. If one
1519
1453
  number provided, it will be total request
@@ -1537,7 +1471,7 @@ class DatasetApi:
1537
1471
  :return: Returns the result object.
1538
1472
  """ # noqa: E501
1539
1473
 
1540
- _param = self._dataset_dataset_id_datapoints_get_serialize(
1474
+ _param = self._dataset_dataset_id_progress_get_serialize(
1541
1475
  dataset_id=dataset_id,
1542
1476
  _request_auth=_request_auth,
1543
1477
  _content_type=_content_type,
@@ -1546,7 +1480,7 @@ class DatasetApi:
1546
1480
  )
1547
1481
 
1548
1482
  _response_types_map: Dict[str, Optional[str]] = {
1549
- '200': "GetDatapointsByDatasetIdResult",
1483
+ '200': "GetDatasetProgressResult",
1550
1484
  }
1551
1485
  response_data = self.api_client.call_api(
1552
1486
  *_param,
@@ -1560,9 +1494,9 @@ class DatasetApi:
1560
1494
 
1561
1495
 
1562
1496
  @validate_call
1563
- def dataset_dataset_id_datapoints_get_with_http_info(
1497
+ def dataset_dataset_id_progress_get_with_http_info(
1564
1498
  self,
1565
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
1499
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
1566
1500
  _request_timeout: Union[
1567
1501
  None,
1568
1502
  Annotated[StrictFloat, Field(gt=0)],
@@ -1575,11 +1509,11 @@ class DatasetApi:
1575
1509
  _content_type: Optional[StrictStr] = None,
1576
1510
  _headers: Optional[Dict[StrictStr, Any]] = None,
1577
1511
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1578
- ) -> ApiResponse[GetDatapointsByDatasetIdResult]:
1579
- """Gets all datapoints of a dataset.
1512
+ ) -> ApiResponse[GetDatasetProgressResult]:
1513
+ """Gets the upload progress of a dataset.
1580
1514
 
1581
1515
 
1582
- :param dataset_id: The id of the dataset to get the datapoints of. (required)
1516
+ :param dataset_id: The id of the dataset to get the progress of. (required)
1583
1517
  :type dataset_id: str
1584
1518
  :param _request_timeout: timeout setting for this request. If one
1585
1519
  number provided, it will be total request
@@ -1603,7 +1537,7 @@ class DatasetApi:
1603
1537
  :return: Returns the result object.
1604
1538
  """ # noqa: E501
1605
1539
 
1606
- _param = self._dataset_dataset_id_datapoints_get_serialize(
1540
+ _param = self._dataset_dataset_id_progress_get_serialize(
1607
1541
  dataset_id=dataset_id,
1608
1542
  _request_auth=_request_auth,
1609
1543
  _content_type=_content_type,
@@ -1612,7 +1546,7 @@ class DatasetApi:
1612
1546
  )
1613
1547
 
1614
1548
  _response_types_map: Dict[str, Optional[str]] = {
1615
- '200': "GetDatapointsByDatasetIdResult",
1549
+ '200': "GetDatasetProgressResult",
1616
1550
  }
1617
1551
  response_data = self.api_client.call_api(
1618
1552
  *_param,
@@ -1626,9 +1560,9 @@ class DatasetApi:
1626
1560
 
1627
1561
 
1628
1562
  @validate_call
1629
- def dataset_dataset_id_datapoints_get_without_preload_content(
1563
+ def dataset_dataset_id_progress_get_without_preload_content(
1630
1564
  self,
1631
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
1565
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
1632
1566
  _request_timeout: Union[
1633
1567
  None,
1634
1568
  Annotated[StrictFloat, Field(gt=0)],
@@ -1642,10 +1576,10 @@ class DatasetApi:
1642
1576
  _headers: Optional[Dict[StrictStr, Any]] = None,
1643
1577
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1644
1578
  ) -> RESTResponseType:
1645
- """Gets all datapoints of a dataset.
1579
+ """Gets the upload progress of a dataset.
1646
1580
 
1647
1581
 
1648
- :param dataset_id: The id of the dataset to get the datapoints of. (required)
1582
+ :param dataset_id: The id of the dataset to get the progress of. (required)
1649
1583
  :type dataset_id: str
1650
1584
  :param _request_timeout: timeout setting for this request. If one
1651
1585
  number provided, it will be total request
@@ -1669,7 +1603,7 @@ class DatasetApi:
1669
1603
  :return: Returns the result object.
1670
1604
  """ # noqa: E501
1671
1605
 
1672
- _param = self._dataset_dataset_id_datapoints_get_serialize(
1606
+ _param = self._dataset_dataset_id_progress_get_serialize(
1673
1607
  dataset_id=dataset_id,
1674
1608
  _request_auth=_request_auth,
1675
1609
  _content_type=_content_type,
@@ -1678,7 +1612,7 @@ class DatasetApi:
1678
1612
  )
1679
1613
 
1680
1614
  _response_types_map: Dict[str, Optional[str]] = {
1681
- '200': "GetDatapointsByDatasetIdResult",
1615
+ '200': "GetDatasetProgressResult",
1682
1616
  }
1683
1617
  response_data = self.api_client.call_api(
1684
1618
  *_param,
@@ -1687,7 +1621,7 @@ class DatasetApi:
1687
1621
  return response_data.response
1688
1622
 
1689
1623
 
1690
- def _dataset_dataset_id_datapoints_get_serialize(
1624
+ def _dataset_dataset_id_progress_get_serialize(
1691
1625
  self,
1692
1626
  dataset_id,
1693
1627
  _request_auth,
@@ -1732,3171 +1666,14 @@ class DatasetApi:
1732
1666
 
1733
1667
  # authentication setting
1734
1668
  _auth_settings: List[str] = [
1735
- 'bearer',
1736
- 'oauth2'
1669
+ 'OAuth2',
1670
+ 'OpenIdConnect',
1671
+ 'Bearer'
1737
1672
  ]
1738
1673
 
1739
1674
  return self.api_client.param_serialize(
1740
1675
  method='GET',
1741
- resource_path='/dataset/{datasetId}/datapoints',
1742
- path_params=_path_params,
1743
- query_params=_query_params,
1744
- header_params=_header_params,
1745
- body=_body_params,
1746
- post_params=_form_params,
1747
- files=_files,
1748
- auth_settings=_auth_settings,
1749
- collection_formats=_collection_formats,
1750
- _host=_host,
1751
- _request_auth=_request_auth
1752
- )
1753
-
1754
-
1755
-
1756
-
1757
- @validate_call
1758
- def dataset_dataset_id_datapoints_post(
1759
- self,
1760
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
1761
- file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
1762
- text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
1763
- 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,
1764
- metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
1765
- sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
1766
- _request_timeout: Union[
1767
- None,
1768
- Annotated[StrictFloat, Field(gt=0)],
1769
- Tuple[
1770
- Annotated[StrictFloat, Field(gt=0)],
1771
- Annotated[StrictFloat, Field(gt=0)]
1772
- ]
1773
- ] = None,
1774
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1775
- _content_type: Optional[StrictStr] = None,
1776
- _headers: Optional[Dict[StrictStr, Any]] = None,
1777
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1778
- ) -> CreateDatapointResult:
1779
- """Creates a new datapoint from multiple possible sources.
1780
-
1781
- 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.
1782
-
1783
- :param dataset_id: The id of the dataset (required)
1784
- :type dataset_id: str
1785
- :param file: The files to upload from the local storage. Must be either images or videos.
1786
- :type file: List[bytearray]
1787
- :param text: The texts to upload. The length limit is set at 256 characters per text.
1788
- :type text: List[str]
1789
- :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>
1790
- :type url: List[str]
1791
- :param metadata: Optional metadata to attach to the datapoint.
1792
- :type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
1793
- :param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
1794
- :type sort_index: int
1795
- :param _request_timeout: timeout setting for this request. If one
1796
- number provided, it will be total request
1797
- timeout. It can also be a pair (tuple) of
1798
- (connection, read) timeouts.
1799
- :type _request_timeout: int, tuple(int, int), optional
1800
- :param _request_auth: set to override the auth_settings for an a single
1801
- request; this effectively ignores the
1802
- authentication in the spec for a single request.
1803
- :type _request_auth: dict, optional
1804
- :param _content_type: force content-type for the request.
1805
- :type _content_type: str, Optional
1806
- :param _headers: set to override the headers for a single
1807
- request; this effectively ignores the headers
1808
- in the spec for a single request.
1809
- :type _headers: dict, optional
1810
- :param _host_index: set to override the host_index for a single
1811
- request; this effectively ignores the host_index
1812
- in the spec for a single request.
1813
- :type _host_index: int, optional
1814
- :return: Returns the result object.
1815
- """ # noqa: E501
1816
-
1817
- _param = self._dataset_dataset_id_datapoints_post_serialize(
1818
- dataset_id=dataset_id,
1819
- file=file,
1820
- text=text,
1821
- url=url,
1822
- metadata=metadata,
1823
- sort_index=sort_index,
1824
- _request_auth=_request_auth,
1825
- _content_type=_content_type,
1826
- _headers=_headers,
1827
- _host_index=_host_index
1828
- )
1829
-
1830
- _response_types_map: Dict[str, Optional[str]] = {
1831
- '200': "CreateDatapointResult",
1832
- }
1833
- response_data = self.api_client.call_api(
1834
- *_param,
1835
- _request_timeout=_request_timeout
1836
- )
1837
- response_data.read()
1838
- return self.api_client.response_deserialize(
1839
- response_data=response_data,
1840
- response_types_map=_response_types_map,
1841
- ).data
1842
-
1843
-
1844
- @validate_call
1845
- def dataset_dataset_id_datapoints_post_with_http_info(
1846
- self,
1847
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
1848
- file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
1849
- text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
1850
- 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,
1851
- metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
1852
- sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
1853
- _request_timeout: Union[
1854
- None,
1855
- Annotated[StrictFloat, Field(gt=0)],
1856
- Tuple[
1857
- Annotated[StrictFloat, Field(gt=0)],
1858
- Annotated[StrictFloat, Field(gt=0)]
1859
- ]
1860
- ] = None,
1861
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1862
- _content_type: Optional[StrictStr] = None,
1863
- _headers: Optional[Dict[StrictStr, Any]] = None,
1864
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1865
- ) -> ApiResponse[CreateDatapointResult]:
1866
- """Creates a new datapoint from multiple possible sources.
1867
-
1868
- 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.
1869
-
1870
- :param dataset_id: The id of the dataset (required)
1871
- :type dataset_id: str
1872
- :param file: The files to upload from the local storage. Must be either images or videos.
1873
- :type file: List[bytearray]
1874
- :param text: The texts to upload. The length limit is set at 256 characters per text.
1875
- :type text: List[str]
1876
- :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>
1877
- :type url: List[str]
1878
- :param metadata: Optional metadata to attach to the datapoint.
1879
- :type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
1880
- :param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
1881
- :type sort_index: int
1882
- :param _request_timeout: timeout setting for this request. If one
1883
- number provided, it will be total request
1884
- timeout. It can also be a pair (tuple) of
1885
- (connection, read) timeouts.
1886
- :type _request_timeout: int, tuple(int, int), optional
1887
- :param _request_auth: set to override the auth_settings for an a single
1888
- request; this effectively ignores the
1889
- authentication in the spec for a single request.
1890
- :type _request_auth: dict, optional
1891
- :param _content_type: force content-type for the request.
1892
- :type _content_type: str, Optional
1893
- :param _headers: set to override the headers for a single
1894
- request; this effectively ignores the headers
1895
- in the spec for a single request.
1896
- :type _headers: dict, optional
1897
- :param _host_index: set to override the host_index for a single
1898
- request; this effectively ignores the host_index
1899
- in the spec for a single request.
1900
- :type _host_index: int, optional
1901
- :return: Returns the result object.
1902
- """ # noqa: E501
1903
-
1904
- _param = self._dataset_dataset_id_datapoints_post_serialize(
1905
- dataset_id=dataset_id,
1906
- file=file,
1907
- text=text,
1908
- url=url,
1909
- metadata=metadata,
1910
- sort_index=sort_index,
1911
- _request_auth=_request_auth,
1912
- _content_type=_content_type,
1913
- _headers=_headers,
1914
- _host_index=_host_index
1915
- )
1916
-
1917
- _response_types_map: Dict[str, Optional[str]] = {
1918
- '200': "CreateDatapointResult",
1919
- }
1920
- response_data = self.api_client.call_api(
1921
- *_param,
1922
- _request_timeout=_request_timeout
1923
- )
1924
- response_data.read()
1925
- return self.api_client.response_deserialize(
1926
- response_data=response_data,
1927
- response_types_map=_response_types_map,
1928
- )
1929
-
1930
-
1931
- @validate_call
1932
- def dataset_dataset_id_datapoints_post_without_preload_content(
1933
- self,
1934
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
1935
- file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
1936
- text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
1937
- 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,
1938
- metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
1939
- sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
1940
- _request_timeout: Union[
1941
- None,
1942
- Annotated[StrictFloat, Field(gt=0)],
1943
- Tuple[
1944
- Annotated[StrictFloat, Field(gt=0)],
1945
- Annotated[StrictFloat, Field(gt=0)]
1946
- ]
1947
- ] = None,
1948
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1949
- _content_type: Optional[StrictStr] = None,
1950
- _headers: Optional[Dict[StrictStr, Any]] = None,
1951
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1952
- ) -> RESTResponseType:
1953
- """Creates a new datapoint from multiple possible sources.
1954
-
1955
- 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.
1956
-
1957
- :param dataset_id: The id of the dataset (required)
1958
- :type dataset_id: str
1959
- :param file: The files to upload from the local storage. Must be either images or videos.
1960
- :type file: List[bytearray]
1961
- :param text: The texts to upload. The length limit is set at 256 characters per text.
1962
- :type text: List[str]
1963
- :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>
1964
- :type url: List[str]
1965
- :param metadata: Optional metadata to attach to the datapoint.
1966
- :type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
1967
- :param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
1968
- :type sort_index: int
1969
- :param _request_timeout: timeout setting for this request. If one
1970
- number provided, it will be total request
1971
- timeout. It can also be a pair (tuple) of
1972
- (connection, read) timeouts.
1973
- :type _request_timeout: int, tuple(int, int), optional
1974
- :param _request_auth: set to override the auth_settings for an a single
1975
- request; this effectively ignores the
1976
- authentication in the spec for a single request.
1977
- :type _request_auth: dict, optional
1978
- :param _content_type: force content-type for the request.
1979
- :type _content_type: str, Optional
1980
- :param _headers: set to override the headers for a single
1981
- request; this effectively ignores the headers
1982
- in the spec for a single request.
1983
- :type _headers: dict, optional
1984
- :param _host_index: set to override the host_index for a single
1985
- request; this effectively ignores the host_index
1986
- in the spec for a single request.
1987
- :type _host_index: int, optional
1988
- :return: Returns the result object.
1989
- """ # noqa: E501
1990
-
1991
- _param = self._dataset_dataset_id_datapoints_post_serialize(
1992
- dataset_id=dataset_id,
1993
- file=file,
1994
- text=text,
1995
- url=url,
1996
- metadata=metadata,
1997
- sort_index=sort_index,
1998
- _request_auth=_request_auth,
1999
- _content_type=_content_type,
2000
- _headers=_headers,
2001
- _host_index=_host_index
2002
- )
2003
-
2004
- _response_types_map: Dict[str, Optional[str]] = {
2005
- '200': "CreateDatapointResult",
2006
- }
2007
- response_data = self.api_client.call_api(
2008
- *_param,
2009
- _request_timeout=_request_timeout
2010
- )
2011
- return response_data.response
2012
-
2013
-
2014
- def _dataset_dataset_id_datapoints_post_serialize(
2015
- self,
2016
- dataset_id,
2017
- file,
2018
- text,
2019
- url,
2020
- metadata,
2021
- sort_index,
2022
- _request_auth,
2023
- _content_type,
2024
- _headers,
2025
- _host_index,
2026
- ) -> RequestSerialized:
2027
-
2028
- _host = None
2029
-
2030
- _collection_formats: Dict[str, str] = {
2031
- 'file': 'csv',
2032
- 'text': 'multi',
2033
- 'url': 'multi',
2034
- 'metadata': 'multi',
2035
- }
2036
-
2037
- _path_params: Dict[str, str] = {}
2038
- _query_params: List[Tuple[str, str]] = []
2039
- _header_params: Dict[str, Optional[str]] = _headers or {}
2040
- _form_params: List[Tuple[str, str]] = []
2041
- _files: Dict[
2042
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2043
- ] = {}
2044
- _body_params: Optional[bytes] = None
2045
-
2046
- # process the path parameters
2047
- if dataset_id is not None:
2048
- _path_params['datasetId'] = dataset_id
2049
- # process the query parameters
2050
- # process the header parameters
2051
- # process the form parameters
2052
- if file is not None:
2053
- _files['file'] = file
2054
- if text is not None:
2055
- _form_params.append(('text', text))
2056
- if url is not None:
2057
- _form_params.append(('url', url))
2058
- if metadata is not None:
2059
- _form_params.append(('metadata', metadata))
2060
- if sort_index is not None:
2061
- _form_params.append(('sortIndex', sort_index))
2062
- # process the body parameter
2063
-
2064
-
2065
- # set the HTTP header `Accept`
2066
- if 'Accept' not in _header_params:
2067
- _header_params['Accept'] = self.api_client.select_header_accept(
2068
- [
2069
- 'text/plain',
2070
- 'application/json',
2071
- 'text/json'
2072
- ]
2073
- )
2074
-
2075
- # set the HTTP header `Content-Type`
2076
- if _content_type:
2077
- _header_params['Content-Type'] = _content_type
2078
- else:
2079
- _default_content_type = (
2080
- self.api_client.select_header_content_type(
2081
- [
2082
- 'multipart/form-data'
2083
- ]
2084
- )
2085
- )
2086
- if _default_content_type is not None:
2087
- _header_params['Content-Type'] = _default_content_type
2088
-
2089
- # authentication setting
2090
- _auth_settings: List[str] = [
2091
- 'bearer',
2092
- 'oauth2'
2093
- ]
2094
-
2095
- return self.api_client.param_serialize(
2096
- method='POST',
2097
- resource_path='/dataset/{datasetId}/datapoints',
2098
- path_params=_path_params,
2099
- query_params=_query_params,
2100
- header_params=_header_params,
2101
- body=_body_params,
2102
- post_params=_form_params,
2103
- files=_files,
2104
- auth_settings=_auth_settings,
2105
- collection_formats=_collection_formats,
2106
- _host=_host,
2107
- _request_auth=_request_auth
2108
- )
2109
-
2110
-
2111
-
2112
-
2113
- @validate_call
2114
- def dataset_dataset_id_datapoints_s3_post(
2115
- self,
2116
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
2117
- create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
2118
- _request_timeout: Union[
2119
- None,
2120
- Annotated[StrictFloat, Field(gt=0)],
2121
- Tuple[
2122
- Annotated[StrictFloat, Field(gt=0)],
2123
- Annotated[StrictFloat, Field(gt=0)]
2124
- ]
2125
- ] = None,
2126
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2127
- _content_type: Optional[StrictStr] = None,
2128
- _headers: Optional[Dict[StrictStr, Any]] = None,
2129
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2130
- ) -> UploadFromS3Result:
2131
- """Uploads files from an S3 bucket to a dataset.
2132
-
2133
- A new datapoint will be created for each file in the bucket.
2134
-
2135
- :param dataset_id: The id of the dataset to upload the files to. (required)
2136
- :type dataset_id: str
2137
- :param create_datapoints_from_s3_bucket_model: The body of the request.
2138
- :type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
2139
- :param _request_timeout: timeout setting for this request. If one
2140
- number provided, it will be total request
2141
- timeout. It can also be a pair (tuple) of
2142
- (connection, read) timeouts.
2143
- :type _request_timeout: int, tuple(int, int), optional
2144
- :param _request_auth: set to override the auth_settings for an a single
2145
- request; this effectively ignores the
2146
- authentication in the spec for a single request.
2147
- :type _request_auth: dict, optional
2148
- :param _content_type: force content-type for the request.
2149
- :type _content_type: str, Optional
2150
- :param _headers: set to override the headers for a single
2151
- request; this effectively ignores the headers
2152
- in the spec for a single request.
2153
- :type _headers: dict, optional
2154
- :param _host_index: set to override the host_index for a single
2155
- request; this effectively ignores the host_index
2156
- in the spec for a single request.
2157
- :type _host_index: int, optional
2158
- :return: Returns the result object.
2159
- """ # noqa: E501
2160
-
2161
- _param = self._dataset_dataset_id_datapoints_s3_post_serialize(
2162
- dataset_id=dataset_id,
2163
- create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
2164
- _request_auth=_request_auth,
2165
- _content_type=_content_type,
2166
- _headers=_headers,
2167
- _host_index=_host_index
2168
- )
2169
-
2170
- _response_types_map: Dict[str, Optional[str]] = {
2171
- '200': "UploadFromS3Result",
2172
- }
2173
- response_data = self.api_client.call_api(
2174
- *_param,
2175
- _request_timeout=_request_timeout
2176
- )
2177
- response_data.read()
2178
- return self.api_client.response_deserialize(
2179
- response_data=response_data,
2180
- response_types_map=_response_types_map,
2181
- ).data
2182
-
2183
-
2184
- @validate_call
2185
- def dataset_dataset_id_datapoints_s3_post_with_http_info(
2186
- self,
2187
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
2188
- create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
2189
- _request_timeout: Union[
2190
- None,
2191
- Annotated[StrictFloat, Field(gt=0)],
2192
- Tuple[
2193
- Annotated[StrictFloat, Field(gt=0)],
2194
- Annotated[StrictFloat, Field(gt=0)]
2195
- ]
2196
- ] = None,
2197
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2198
- _content_type: Optional[StrictStr] = None,
2199
- _headers: Optional[Dict[StrictStr, Any]] = None,
2200
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2201
- ) -> ApiResponse[UploadFromS3Result]:
2202
- """Uploads files from an S3 bucket to a dataset.
2203
-
2204
- A new datapoint will be created for each file in the bucket.
2205
-
2206
- :param dataset_id: The id of the dataset to upload the files to. (required)
2207
- :type dataset_id: str
2208
- :param create_datapoints_from_s3_bucket_model: The body of the request.
2209
- :type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
2210
- :param _request_timeout: timeout setting for this request. If one
2211
- number provided, it will be total request
2212
- timeout. It can also be a pair (tuple) of
2213
- (connection, read) timeouts.
2214
- :type _request_timeout: int, tuple(int, int), optional
2215
- :param _request_auth: set to override the auth_settings for an a single
2216
- request; this effectively ignores the
2217
- authentication in the spec for a single request.
2218
- :type _request_auth: dict, optional
2219
- :param _content_type: force content-type for the request.
2220
- :type _content_type: str, Optional
2221
- :param _headers: set to override the headers for a single
2222
- request; this effectively ignores the headers
2223
- in the spec for a single request.
2224
- :type _headers: dict, optional
2225
- :param _host_index: set to override the host_index for a single
2226
- request; this effectively ignores the host_index
2227
- in the spec for a single request.
2228
- :type _host_index: int, optional
2229
- :return: Returns the result object.
2230
- """ # noqa: E501
2231
-
2232
- _param = self._dataset_dataset_id_datapoints_s3_post_serialize(
2233
- dataset_id=dataset_id,
2234
- create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
2235
- _request_auth=_request_auth,
2236
- _content_type=_content_type,
2237
- _headers=_headers,
2238
- _host_index=_host_index
2239
- )
2240
-
2241
- _response_types_map: Dict[str, Optional[str]] = {
2242
- '200': "UploadFromS3Result",
2243
- }
2244
- response_data = self.api_client.call_api(
2245
- *_param,
2246
- _request_timeout=_request_timeout
2247
- )
2248
- response_data.read()
2249
- return self.api_client.response_deserialize(
2250
- response_data=response_data,
2251
- response_types_map=_response_types_map,
2252
- )
2253
-
2254
-
2255
- @validate_call
2256
- def dataset_dataset_id_datapoints_s3_post_without_preload_content(
2257
- self,
2258
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
2259
- create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
2260
- _request_timeout: Union[
2261
- None,
2262
- Annotated[StrictFloat, Field(gt=0)],
2263
- Tuple[
2264
- Annotated[StrictFloat, Field(gt=0)],
2265
- Annotated[StrictFloat, Field(gt=0)]
2266
- ]
2267
- ] = None,
2268
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2269
- _content_type: Optional[StrictStr] = None,
2270
- _headers: Optional[Dict[StrictStr, Any]] = None,
2271
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2272
- ) -> RESTResponseType:
2273
- """Uploads files from an S3 bucket to a dataset.
2274
-
2275
- A new datapoint will be created for each file in the bucket.
2276
-
2277
- :param dataset_id: The id of the dataset to upload the files to. (required)
2278
- :type dataset_id: str
2279
- :param create_datapoints_from_s3_bucket_model: The body of the request.
2280
- :type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
2281
- :param _request_timeout: timeout setting for this request. If one
2282
- number provided, it will be total request
2283
- timeout. It can also be a pair (tuple) of
2284
- (connection, read) timeouts.
2285
- :type _request_timeout: int, tuple(int, int), optional
2286
- :param _request_auth: set to override the auth_settings for an a single
2287
- request; this effectively ignores the
2288
- authentication in the spec for a single request.
2289
- :type _request_auth: dict, optional
2290
- :param _content_type: force content-type for the request.
2291
- :type _content_type: str, Optional
2292
- :param _headers: set to override the headers for a single
2293
- request; this effectively ignores the headers
2294
- in the spec for a single request.
2295
- :type _headers: dict, optional
2296
- :param _host_index: set to override the host_index for a single
2297
- request; this effectively ignores the host_index
2298
- in the spec for a single request.
2299
- :type _host_index: int, optional
2300
- :return: Returns the result object.
2301
- """ # noqa: E501
2302
-
2303
- _param = self._dataset_dataset_id_datapoints_s3_post_serialize(
2304
- dataset_id=dataset_id,
2305
- create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
2306
- _request_auth=_request_auth,
2307
- _content_type=_content_type,
2308
- _headers=_headers,
2309
- _host_index=_host_index
2310
- )
2311
-
2312
- _response_types_map: Dict[str, Optional[str]] = {
2313
- '200': "UploadFromS3Result",
2314
- }
2315
- response_data = self.api_client.call_api(
2316
- *_param,
2317
- _request_timeout=_request_timeout
2318
- )
2319
- return response_data.response
2320
-
2321
-
2322
- def _dataset_dataset_id_datapoints_s3_post_serialize(
2323
- self,
2324
- dataset_id,
2325
- create_datapoints_from_s3_bucket_model,
2326
- _request_auth,
2327
- _content_type,
2328
- _headers,
2329
- _host_index,
2330
- ) -> RequestSerialized:
2331
-
2332
- _host = None
2333
-
2334
- _collection_formats: Dict[str, str] = {
2335
- }
2336
-
2337
- _path_params: Dict[str, str] = {}
2338
- _query_params: List[Tuple[str, str]] = []
2339
- _header_params: Dict[str, Optional[str]] = _headers or {}
2340
- _form_params: List[Tuple[str, str]] = []
2341
- _files: Dict[
2342
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2343
- ] = {}
2344
- _body_params: Optional[bytes] = None
2345
-
2346
- # process the path parameters
2347
- if dataset_id is not None:
2348
- _path_params['datasetId'] = dataset_id
2349
- # process the query parameters
2350
- # process the header parameters
2351
- # process the form parameters
2352
- # process the body parameter
2353
- if create_datapoints_from_s3_bucket_model is not None:
2354
- _body_params = create_datapoints_from_s3_bucket_model
2355
-
2356
-
2357
- # set the HTTP header `Accept`
2358
- if 'Accept' not in _header_params:
2359
- _header_params['Accept'] = self.api_client.select_header_accept(
2360
- [
2361
- 'text/plain',
2362
- 'application/json',
2363
- 'text/json'
2364
- ]
2365
- )
2366
-
2367
- # set the HTTP header `Content-Type`
2368
- if _content_type:
2369
- _header_params['Content-Type'] = _content_type
2370
- else:
2371
- _default_content_type = (
2372
- self.api_client.select_header_content_type(
2373
- [
2374
- 'application/json',
2375
- 'text/json',
2376
- 'application/*+json'
2377
- ]
2378
- )
2379
- )
2380
- if _default_content_type is not None:
2381
- _header_params['Content-Type'] = _default_content_type
2382
-
2383
- # authentication setting
2384
- _auth_settings: List[str] = [
2385
- 'bearer',
2386
- 'oauth2'
2387
- ]
2388
-
2389
- return self.api_client.param_serialize(
2390
- method='POST',
2391
- resource_path='/dataset/{datasetId}/datapoints/s3',
2392
- path_params=_path_params,
2393
- query_params=_query_params,
2394
- header_params=_header_params,
2395
- body=_body_params,
2396
- post_params=_form_params,
2397
- files=_files,
2398
- auth_settings=_auth_settings,
2399
- collection_formats=_collection_formats,
2400
- _host=_host,
2401
- _request_auth=_request_auth
2402
- )
2403
-
2404
-
2405
-
2406
-
2407
- @validate_call
2408
- def dataset_dataset_id_datapoints_texts_post(
2409
- self,
2410
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
2411
- create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
2412
- _request_timeout: Union[
2413
- None,
2414
- Annotated[StrictFloat, Field(gt=0)],
2415
- Tuple[
2416
- Annotated[StrictFloat, Field(gt=0)],
2417
- Annotated[StrictFloat, Field(gt=0)]
2418
- ]
2419
- ] = None,
2420
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2421
- _content_type: Optional[StrictStr] = None,
2422
- _headers: Optional[Dict[StrictStr, Any]] = None,
2423
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2424
- ) -> CreateDatapointResult:
2425
- """Creates a single datapoint from text sources.
2426
-
2427
- If multiple text sources are uploaded, a multi asset datapoint will be created.
2428
-
2429
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
2430
- :type dataset_id: str
2431
- :param create_datapoint_from_text_sources_model: The body of the request.
2432
- :type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
2433
- :param _request_timeout: timeout setting for this request. If one
2434
- number provided, it will be total request
2435
- timeout. It can also be a pair (tuple) of
2436
- (connection, read) timeouts.
2437
- :type _request_timeout: int, tuple(int, int), optional
2438
- :param _request_auth: set to override the auth_settings for an a single
2439
- request; this effectively ignores the
2440
- authentication in the spec for a single request.
2441
- :type _request_auth: dict, optional
2442
- :param _content_type: force content-type for the request.
2443
- :type _content_type: str, Optional
2444
- :param _headers: set to override the headers for a single
2445
- request; this effectively ignores the headers
2446
- in the spec for a single request.
2447
- :type _headers: dict, optional
2448
- :param _host_index: set to override the host_index for a single
2449
- request; this effectively ignores the host_index
2450
- in the spec for a single request.
2451
- :type _host_index: int, optional
2452
- :return: Returns the result object.
2453
- """ # noqa: E501
2454
-
2455
- _param = self._dataset_dataset_id_datapoints_texts_post_serialize(
2456
- dataset_id=dataset_id,
2457
- create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
2458
- _request_auth=_request_auth,
2459
- _content_type=_content_type,
2460
- _headers=_headers,
2461
- _host_index=_host_index
2462
- )
2463
-
2464
- _response_types_map: Dict[str, Optional[str]] = {
2465
- '200': "CreateDatapointResult",
2466
- }
2467
- response_data = self.api_client.call_api(
2468
- *_param,
2469
- _request_timeout=_request_timeout
2470
- )
2471
- response_data.read()
2472
- return self.api_client.response_deserialize(
2473
- response_data=response_data,
2474
- response_types_map=_response_types_map,
2475
- ).data
2476
-
2477
-
2478
- @validate_call
2479
- def dataset_dataset_id_datapoints_texts_post_with_http_info(
2480
- self,
2481
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
2482
- create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
2483
- _request_timeout: Union[
2484
- None,
2485
- Annotated[StrictFloat, Field(gt=0)],
2486
- Tuple[
2487
- Annotated[StrictFloat, Field(gt=0)],
2488
- Annotated[StrictFloat, Field(gt=0)]
2489
- ]
2490
- ] = None,
2491
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2492
- _content_type: Optional[StrictStr] = None,
2493
- _headers: Optional[Dict[StrictStr, Any]] = None,
2494
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2495
- ) -> ApiResponse[CreateDatapointResult]:
2496
- """Creates a single datapoint from text sources.
2497
-
2498
- If multiple text sources are uploaded, a multi asset datapoint will be created.
2499
-
2500
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
2501
- :type dataset_id: str
2502
- :param create_datapoint_from_text_sources_model: The body of the request.
2503
- :type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
2504
- :param _request_timeout: timeout setting for this request. If one
2505
- number provided, it will be total request
2506
- timeout. It can also be a pair (tuple) of
2507
- (connection, read) timeouts.
2508
- :type _request_timeout: int, tuple(int, int), optional
2509
- :param _request_auth: set to override the auth_settings for an a single
2510
- request; this effectively ignores the
2511
- authentication in the spec for a single request.
2512
- :type _request_auth: dict, optional
2513
- :param _content_type: force content-type for the request.
2514
- :type _content_type: str, Optional
2515
- :param _headers: set to override the headers for a single
2516
- request; this effectively ignores the headers
2517
- in the spec for a single request.
2518
- :type _headers: dict, optional
2519
- :param _host_index: set to override the host_index for a single
2520
- request; this effectively ignores the host_index
2521
- in the spec for a single request.
2522
- :type _host_index: int, optional
2523
- :return: Returns the result object.
2524
- """ # noqa: E501
2525
-
2526
- _param = self._dataset_dataset_id_datapoints_texts_post_serialize(
2527
- dataset_id=dataset_id,
2528
- create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
2529
- _request_auth=_request_auth,
2530
- _content_type=_content_type,
2531
- _headers=_headers,
2532
- _host_index=_host_index
2533
- )
2534
-
2535
- _response_types_map: Dict[str, Optional[str]] = {
2536
- '200': "CreateDatapointResult",
2537
- }
2538
- response_data = self.api_client.call_api(
2539
- *_param,
2540
- _request_timeout=_request_timeout
2541
- )
2542
- response_data.read()
2543
- return self.api_client.response_deserialize(
2544
- response_data=response_data,
2545
- response_types_map=_response_types_map,
2546
- )
2547
-
2548
-
2549
- @validate_call
2550
- def dataset_dataset_id_datapoints_texts_post_without_preload_content(
2551
- self,
2552
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
2553
- create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
2554
- _request_timeout: Union[
2555
- None,
2556
- Annotated[StrictFloat, Field(gt=0)],
2557
- Tuple[
2558
- Annotated[StrictFloat, Field(gt=0)],
2559
- Annotated[StrictFloat, Field(gt=0)]
2560
- ]
2561
- ] = None,
2562
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2563
- _content_type: Optional[StrictStr] = None,
2564
- _headers: Optional[Dict[StrictStr, Any]] = None,
2565
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2566
- ) -> RESTResponseType:
2567
- """Creates a single datapoint from text sources.
2568
-
2569
- If multiple text sources are uploaded, a multi asset datapoint will be created.
2570
-
2571
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
2572
- :type dataset_id: str
2573
- :param create_datapoint_from_text_sources_model: The body of the request.
2574
- :type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
2575
- :param _request_timeout: timeout setting for this request. If one
2576
- number provided, it will be total request
2577
- timeout. It can also be a pair (tuple) of
2578
- (connection, read) timeouts.
2579
- :type _request_timeout: int, tuple(int, int), optional
2580
- :param _request_auth: set to override the auth_settings for an a single
2581
- request; this effectively ignores the
2582
- authentication in the spec for a single request.
2583
- :type _request_auth: dict, optional
2584
- :param _content_type: force content-type for the request.
2585
- :type _content_type: str, Optional
2586
- :param _headers: set to override the headers for a single
2587
- request; this effectively ignores the headers
2588
- in the spec for a single request.
2589
- :type _headers: dict, optional
2590
- :param _host_index: set to override the host_index for a single
2591
- request; this effectively ignores the host_index
2592
- in the spec for a single request.
2593
- :type _host_index: int, optional
2594
- :return: Returns the result object.
2595
- """ # noqa: E501
2596
-
2597
- _param = self._dataset_dataset_id_datapoints_texts_post_serialize(
2598
- dataset_id=dataset_id,
2599
- create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
2600
- _request_auth=_request_auth,
2601
- _content_type=_content_type,
2602
- _headers=_headers,
2603
- _host_index=_host_index
2604
- )
2605
-
2606
- _response_types_map: Dict[str, Optional[str]] = {
2607
- '200': "CreateDatapointResult",
2608
- }
2609
- response_data = self.api_client.call_api(
2610
- *_param,
2611
- _request_timeout=_request_timeout
2612
- )
2613
- return response_data.response
2614
-
2615
-
2616
- def _dataset_dataset_id_datapoints_texts_post_serialize(
2617
- self,
2618
- dataset_id,
2619
- create_datapoint_from_text_sources_model,
2620
- _request_auth,
2621
- _content_type,
2622
- _headers,
2623
- _host_index,
2624
- ) -> RequestSerialized:
2625
-
2626
- _host = None
2627
-
2628
- _collection_formats: Dict[str, str] = {
2629
- }
2630
-
2631
- _path_params: Dict[str, str] = {}
2632
- _query_params: List[Tuple[str, str]] = []
2633
- _header_params: Dict[str, Optional[str]] = _headers or {}
2634
- _form_params: List[Tuple[str, str]] = []
2635
- _files: Dict[
2636
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2637
- ] = {}
2638
- _body_params: Optional[bytes] = None
2639
-
2640
- # process the path parameters
2641
- if dataset_id is not None:
2642
- _path_params['datasetId'] = dataset_id
2643
- # process the query parameters
2644
- # process the header parameters
2645
- # process the form parameters
2646
- # process the body parameter
2647
- if create_datapoint_from_text_sources_model is not None:
2648
- _body_params = create_datapoint_from_text_sources_model
2649
-
2650
-
2651
- # set the HTTP header `Accept`
2652
- if 'Accept' not in _header_params:
2653
- _header_params['Accept'] = self.api_client.select_header_accept(
2654
- [
2655
- 'text/plain',
2656
- 'application/json',
2657
- 'text/json'
2658
- ]
2659
- )
2660
-
2661
- # set the HTTP header `Content-Type`
2662
- if _content_type:
2663
- _header_params['Content-Type'] = _content_type
2664
- else:
2665
- _default_content_type = (
2666
- self.api_client.select_header_content_type(
2667
- [
2668
- 'application/json',
2669
- 'text/json',
2670
- 'application/*+json'
2671
- ]
2672
- )
2673
- )
2674
- if _default_content_type is not None:
2675
- _header_params['Content-Type'] = _default_content_type
2676
-
2677
- # authentication setting
2678
- _auth_settings: List[str] = [
2679
- 'bearer',
2680
- 'oauth2'
2681
- ]
2682
-
2683
- return self.api_client.param_serialize(
2684
- method='POST',
2685
- resource_path='/dataset/{datasetId}/datapoints/texts',
2686
- path_params=_path_params,
2687
- query_params=_query_params,
2688
- header_params=_header_params,
2689
- body=_body_params,
2690
- post_params=_form_params,
2691
- files=_files,
2692
- auth_settings=_auth_settings,
2693
- collection_formats=_collection_formats,
2694
- _host=_host,
2695
- _request_auth=_request_auth
2696
- )
2697
-
2698
-
2699
-
2700
-
2701
- @validate_call
2702
- def dataset_dataset_id_datapoints_urls_post(
2703
- self,
2704
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
2705
- create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
2706
- _request_timeout: Union[
2707
- None,
2708
- Annotated[StrictFloat, Field(gt=0)],
2709
- Tuple[
2710
- Annotated[StrictFloat, Field(gt=0)],
2711
- Annotated[StrictFloat, Field(gt=0)]
2712
- ]
2713
- ] = None,
2714
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2715
- _content_type: Optional[StrictStr] = None,
2716
- _headers: Optional[Dict[StrictStr, Any]] = None,
2717
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2718
- ) -> CreateDatapointResult:
2719
- """Creates a single datapoint where the assets are fetched from the specified urls.
2720
-
2721
- 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.
2722
-
2723
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
2724
- :type dataset_id: str
2725
- :param create_datapoint_from_urls_model: The body of the request.
2726
- :type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
2727
- :param _request_timeout: timeout setting for this request. If one
2728
- number provided, it will be total request
2729
- timeout. It can also be a pair (tuple) of
2730
- (connection, read) timeouts.
2731
- :type _request_timeout: int, tuple(int, int), optional
2732
- :param _request_auth: set to override the auth_settings for an a single
2733
- request; this effectively ignores the
2734
- authentication in the spec for a single request.
2735
- :type _request_auth: dict, optional
2736
- :param _content_type: force content-type for the request.
2737
- :type _content_type: str, Optional
2738
- :param _headers: set to override the headers for a single
2739
- request; this effectively ignores the headers
2740
- in the spec for a single request.
2741
- :type _headers: dict, optional
2742
- :param _host_index: set to override the host_index for a single
2743
- request; this effectively ignores the host_index
2744
- in the spec for a single request.
2745
- :type _host_index: int, optional
2746
- :return: Returns the result object.
2747
- """ # noqa: E501
2748
-
2749
- _param = self._dataset_dataset_id_datapoints_urls_post_serialize(
2750
- dataset_id=dataset_id,
2751
- create_datapoint_from_urls_model=create_datapoint_from_urls_model,
2752
- _request_auth=_request_auth,
2753
- _content_type=_content_type,
2754
- _headers=_headers,
2755
- _host_index=_host_index
2756
- )
2757
-
2758
- _response_types_map: Dict[str, Optional[str]] = {
2759
- '200': "CreateDatapointResult",
2760
- }
2761
- response_data = self.api_client.call_api(
2762
- *_param,
2763
- _request_timeout=_request_timeout
2764
- )
2765
- response_data.read()
2766
- return self.api_client.response_deserialize(
2767
- response_data=response_data,
2768
- response_types_map=_response_types_map,
2769
- ).data
2770
-
2771
-
2772
- @validate_call
2773
- def dataset_dataset_id_datapoints_urls_post_with_http_info(
2774
- self,
2775
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
2776
- create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
2777
- _request_timeout: Union[
2778
- None,
2779
- Annotated[StrictFloat, Field(gt=0)],
2780
- Tuple[
2781
- Annotated[StrictFloat, Field(gt=0)],
2782
- Annotated[StrictFloat, Field(gt=0)]
2783
- ]
2784
- ] = None,
2785
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2786
- _content_type: Optional[StrictStr] = None,
2787
- _headers: Optional[Dict[StrictStr, Any]] = None,
2788
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2789
- ) -> ApiResponse[CreateDatapointResult]:
2790
- """Creates a single datapoint where the assets are fetched from the specified urls.
2791
-
2792
- 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.
2793
-
2794
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
2795
- :type dataset_id: str
2796
- :param create_datapoint_from_urls_model: The body of the request.
2797
- :type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
2798
- :param _request_timeout: timeout setting for this request. If one
2799
- number provided, it will be total request
2800
- timeout. It can also be a pair (tuple) of
2801
- (connection, read) timeouts.
2802
- :type _request_timeout: int, tuple(int, int), optional
2803
- :param _request_auth: set to override the auth_settings for an a single
2804
- request; this effectively ignores the
2805
- authentication in the spec for a single request.
2806
- :type _request_auth: dict, optional
2807
- :param _content_type: force content-type for the request.
2808
- :type _content_type: str, Optional
2809
- :param _headers: set to override the headers for a single
2810
- request; this effectively ignores the headers
2811
- in the spec for a single request.
2812
- :type _headers: dict, optional
2813
- :param _host_index: set to override the host_index for a single
2814
- request; this effectively ignores the host_index
2815
- in the spec for a single request.
2816
- :type _host_index: int, optional
2817
- :return: Returns the result object.
2818
- """ # noqa: E501
2819
-
2820
- _param = self._dataset_dataset_id_datapoints_urls_post_serialize(
2821
- dataset_id=dataset_id,
2822
- create_datapoint_from_urls_model=create_datapoint_from_urls_model,
2823
- _request_auth=_request_auth,
2824
- _content_type=_content_type,
2825
- _headers=_headers,
2826
- _host_index=_host_index
2827
- )
2828
-
2829
- _response_types_map: Dict[str, Optional[str]] = {
2830
- '200': "CreateDatapointResult",
2831
- }
2832
- response_data = self.api_client.call_api(
2833
- *_param,
2834
- _request_timeout=_request_timeout
2835
- )
2836
- response_data.read()
2837
- return self.api_client.response_deserialize(
2838
- response_data=response_data,
2839
- response_types_map=_response_types_map,
2840
- )
2841
-
2842
-
2843
- @validate_call
2844
- def dataset_dataset_id_datapoints_urls_post_without_preload_content(
2845
- self,
2846
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
2847
- create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
2848
- _request_timeout: Union[
2849
- None,
2850
- Annotated[StrictFloat, Field(gt=0)],
2851
- Tuple[
2852
- Annotated[StrictFloat, Field(gt=0)],
2853
- Annotated[StrictFloat, Field(gt=0)]
2854
- ]
2855
- ] = None,
2856
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2857
- _content_type: Optional[StrictStr] = None,
2858
- _headers: Optional[Dict[StrictStr, Any]] = None,
2859
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2860
- ) -> RESTResponseType:
2861
- """Creates a single datapoint where the assets are fetched from the specified urls.
2862
-
2863
- 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.
2864
-
2865
- :param dataset_id: The id of the dataset to create the datapoint in. (required)
2866
- :type dataset_id: str
2867
- :param create_datapoint_from_urls_model: The body of the request.
2868
- :type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
2869
- :param _request_timeout: timeout setting for this request. If one
2870
- number provided, it will be total request
2871
- timeout. It can also be a pair (tuple) of
2872
- (connection, read) timeouts.
2873
- :type _request_timeout: int, tuple(int, int), optional
2874
- :param _request_auth: set to override the auth_settings for an a single
2875
- request; this effectively ignores the
2876
- authentication in the spec for a single request.
2877
- :type _request_auth: dict, optional
2878
- :param _content_type: force content-type for the request.
2879
- :type _content_type: str, Optional
2880
- :param _headers: set to override the headers for a single
2881
- request; this effectively ignores the headers
2882
- in the spec for a single request.
2883
- :type _headers: dict, optional
2884
- :param _host_index: set to override the host_index for a single
2885
- request; this effectively ignores the host_index
2886
- in the spec for a single request.
2887
- :type _host_index: int, optional
2888
- :return: Returns the result object.
2889
- """ # noqa: E501
2890
-
2891
- _param = self._dataset_dataset_id_datapoints_urls_post_serialize(
2892
- dataset_id=dataset_id,
2893
- create_datapoint_from_urls_model=create_datapoint_from_urls_model,
2894
- _request_auth=_request_auth,
2895
- _content_type=_content_type,
2896
- _headers=_headers,
2897
- _host_index=_host_index
2898
- )
2899
-
2900
- _response_types_map: Dict[str, Optional[str]] = {
2901
- '200': "CreateDatapointResult",
2902
- }
2903
- response_data = self.api_client.call_api(
2904
- *_param,
2905
- _request_timeout=_request_timeout
2906
- )
2907
- return response_data.response
2908
-
2909
-
2910
- def _dataset_dataset_id_datapoints_urls_post_serialize(
2911
- self,
2912
- dataset_id,
2913
- create_datapoint_from_urls_model,
2914
- _request_auth,
2915
- _content_type,
2916
- _headers,
2917
- _host_index,
2918
- ) -> RequestSerialized:
2919
-
2920
- _host = None
2921
-
2922
- _collection_formats: Dict[str, str] = {
2923
- }
2924
-
2925
- _path_params: Dict[str, str] = {}
2926
- _query_params: List[Tuple[str, str]] = []
2927
- _header_params: Dict[str, Optional[str]] = _headers or {}
2928
- _form_params: List[Tuple[str, str]] = []
2929
- _files: Dict[
2930
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2931
- ] = {}
2932
- _body_params: Optional[bytes] = None
2933
-
2934
- # process the path parameters
2935
- if dataset_id is not None:
2936
- _path_params['datasetId'] = dataset_id
2937
- # process the query parameters
2938
- # process the header parameters
2939
- # process the form parameters
2940
- # process the body parameter
2941
- if create_datapoint_from_urls_model is not None:
2942
- _body_params = create_datapoint_from_urls_model
2943
-
2944
-
2945
- # set the HTTP header `Accept`
2946
- if 'Accept' not in _header_params:
2947
- _header_params['Accept'] = self.api_client.select_header_accept(
2948
- [
2949
- 'text/plain',
2950
- 'application/json',
2951
- 'text/json'
2952
- ]
2953
- )
2954
-
2955
- # set the HTTP header `Content-Type`
2956
- if _content_type:
2957
- _header_params['Content-Type'] = _content_type
2958
- else:
2959
- _default_content_type = (
2960
- self.api_client.select_header_content_type(
2961
- [
2962
- 'application/json',
2963
- 'text/json',
2964
- 'application/*+json'
2965
- ]
2966
- )
2967
- )
2968
- if _default_content_type is not None:
2969
- _header_params['Content-Type'] = _default_content_type
2970
-
2971
- # authentication setting
2972
- _auth_settings: List[str] = [
2973
- 'bearer',
2974
- 'oauth2'
2975
- ]
2976
-
2977
- return self.api_client.param_serialize(
2978
- method='POST',
2979
- resource_path='/dataset/{datasetId}/datapoints/urls',
2980
- path_params=_path_params,
2981
- query_params=_query_params,
2982
- header_params=_header_params,
2983
- body=_body_params,
2984
- post_params=_form_params,
2985
- files=_files,
2986
- auth_settings=_auth_settings,
2987
- collection_formats=_collection_formats,
2988
- _host=_host,
2989
- _request_auth=_request_auth
2990
- )
2991
-
2992
-
2993
-
2994
-
2995
- @validate_call
2996
- def dataset_dataset_id_get(
2997
- self,
2998
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
2999
- _request_timeout: Union[
3000
- None,
3001
- Annotated[StrictFloat, Field(gt=0)],
3002
- Tuple[
3003
- Annotated[StrictFloat, Field(gt=0)],
3004
- Annotated[StrictFloat, Field(gt=0)]
3005
- ]
3006
- ] = None,
3007
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3008
- _content_type: Optional[StrictStr] = None,
3009
- _headers: Optional[Dict[StrictStr, Any]] = None,
3010
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3011
- ) -> GetDatasetByIdResult:
3012
- """Gets a dataset by its id.
3013
-
3014
-
3015
- :param dataset_id: The id of the dataset to get. (required)
3016
- :type dataset_id: str
3017
- :param _request_timeout: timeout setting for this request. If one
3018
- number provided, it will be total request
3019
- timeout. It can also be a pair (tuple) of
3020
- (connection, read) timeouts.
3021
- :type _request_timeout: int, tuple(int, int), optional
3022
- :param _request_auth: set to override the auth_settings for an a single
3023
- request; this effectively ignores the
3024
- authentication in the spec for a single request.
3025
- :type _request_auth: dict, optional
3026
- :param _content_type: force content-type for the request.
3027
- :type _content_type: str, Optional
3028
- :param _headers: set to override the headers for a single
3029
- request; this effectively ignores the headers
3030
- in the spec for a single request.
3031
- :type _headers: dict, optional
3032
- :param _host_index: set to override the host_index for a single
3033
- request; this effectively ignores the host_index
3034
- in the spec for a single request.
3035
- :type _host_index: int, optional
3036
- :return: Returns the result object.
3037
- """ # noqa: E501
3038
-
3039
- _param = self._dataset_dataset_id_get_serialize(
3040
- dataset_id=dataset_id,
3041
- _request_auth=_request_auth,
3042
- _content_type=_content_type,
3043
- _headers=_headers,
3044
- _host_index=_host_index
3045
- )
3046
-
3047
- _response_types_map: Dict[str, Optional[str]] = {
3048
- '200': "GetDatasetByIdResult",
3049
- }
3050
- response_data = self.api_client.call_api(
3051
- *_param,
3052
- _request_timeout=_request_timeout
3053
- )
3054
- response_data.read()
3055
- return self.api_client.response_deserialize(
3056
- response_data=response_data,
3057
- response_types_map=_response_types_map,
3058
- ).data
3059
-
3060
-
3061
- @validate_call
3062
- def dataset_dataset_id_get_with_http_info(
3063
- self,
3064
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
3065
- _request_timeout: Union[
3066
- None,
3067
- Annotated[StrictFloat, Field(gt=0)],
3068
- Tuple[
3069
- Annotated[StrictFloat, Field(gt=0)],
3070
- Annotated[StrictFloat, Field(gt=0)]
3071
- ]
3072
- ] = None,
3073
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3074
- _content_type: Optional[StrictStr] = None,
3075
- _headers: Optional[Dict[StrictStr, Any]] = None,
3076
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3077
- ) -> ApiResponse[GetDatasetByIdResult]:
3078
- """Gets a dataset by its id.
3079
-
3080
-
3081
- :param dataset_id: The id of the dataset to get. (required)
3082
- :type dataset_id: str
3083
- :param _request_timeout: timeout setting for this request. If one
3084
- number provided, it will be total request
3085
- timeout. It can also be a pair (tuple) of
3086
- (connection, read) timeouts.
3087
- :type _request_timeout: int, tuple(int, int), optional
3088
- :param _request_auth: set to override the auth_settings for an a single
3089
- request; this effectively ignores the
3090
- authentication in the spec for a single request.
3091
- :type _request_auth: dict, optional
3092
- :param _content_type: force content-type for the request.
3093
- :type _content_type: str, Optional
3094
- :param _headers: set to override the headers for a single
3095
- request; this effectively ignores the headers
3096
- in the spec for a single request.
3097
- :type _headers: dict, optional
3098
- :param _host_index: set to override the host_index for a single
3099
- request; this effectively ignores the host_index
3100
- in the spec for a single request.
3101
- :type _host_index: int, optional
3102
- :return: Returns the result object.
3103
- """ # noqa: E501
3104
-
3105
- _param = self._dataset_dataset_id_get_serialize(
3106
- dataset_id=dataset_id,
3107
- _request_auth=_request_auth,
3108
- _content_type=_content_type,
3109
- _headers=_headers,
3110
- _host_index=_host_index
3111
- )
3112
-
3113
- _response_types_map: Dict[str, Optional[str]] = {
3114
- '200': "GetDatasetByIdResult",
3115
- }
3116
- response_data = self.api_client.call_api(
3117
- *_param,
3118
- _request_timeout=_request_timeout
3119
- )
3120
- response_data.read()
3121
- return self.api_client.response_deserialize(
3122
- response_data=response_data,
3123
- response_types_map=_response_types_map,
3124
- )
3125
-
3126
-
3127
- @validate_call
3128
- def dataset_dataset_id_get_without_preload_content(
3129
- self,
3130
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
3131
- _request_timeout: Union[
3132
- None,
3133
- Annotated[StrictFloat, Field(gt=0)],
3134
- Tuple[
3135
- Annotated[StrictFloat, Field(gt=0)],
3136
- Annotated[StrictFloat, Field(gt=0)]
3137
- ]
3138
- ] = None,
3139
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3140
- _content_type: Optional[StrictStr] = None,
3141
- _headers: Optional[Dict[StrictStr, Any]] = None,
3142
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3143
- ) -> RESTResponseType:
3144
- """Gets a dataset by its id.
3145
-
3146
-
3147
- :param dataset_id: The id of the dataset to get. (required)
3148
- :type dataset_id: str
3149
- :param _request_timeout: timeout setting for this request. If one
3150
- number provided, it will be total request
3151
- timeout. It can also be a pair (tuple) of
3152
- (connection, read) timeouts.
3153
- :type _request_timeout: int, tuple(int, int), optional
3154
- :param _request_auth: set to override the auth_settings for an a single
3155
- request; this effectively ignores the
3156
- authentication in the spec for a single request.
3157
- :type _request_auth: dict, optional
3158
- :param _content_type: force content-type for the request.
3159
- :type _content_type: str, Optional
3160
- :param _headers: set to override the headers for a single
3161
- request; this effectively ignores the headers
3162
- in the spec for a single request.
3163
- :type _headers: dict, optional
3164
- :param _host_index: set to override the host_index for a single
3165
- request; this effectively ignores the host_index
3166
- in the spec for a single request.
3167
- :type _host_index: int, optional
3168
- :return: Returns the result object.
3169
- """ # noqa: E501
3170
-
3171
- _param = self._dataset_dataset_id_get_serialize(
3172
- dataset_id=dataset_id,
3173
- _request_auth=_request_auth,
3174
- _content_type=_content_type,
3175
- _headers=_headers,
3176
- _host_index=_host_index
3177
- )
3178
-
3179
- _response_types_map: Dict[str, Optional[str]] = {
3180
- '200': "GetDatasetByIdResult",
3181
- }
3182
- response_data = self.api_client.call_api(
3183
- *_param,
3184
- _request_timeout=_request_timeout
3185
- )
3186
- return response_data.response
3187
-
3188
-
3189
- def _dataset_dataset_id_get_serialize(
3190
- self,
3191
- dataset_id,
3192
- _request_auth,
3193
- _content_type,
3194
- _headers,
3195
- _host_index,
3196
- ) -> RequestSerialized:
3197
-
3198
- _host = None
3199
-
3200
- _collection_formats: Dict[str, str] = {
3201
- }
3202
-
3203
- _path_params: Dict[str, str] = {}
3204
- _query_params: List[Tuple[str, str]] = []
3205
- _header_params: Dict[str, Optional[str]] = _headers or {}
3206
- _form_params: List[Tuple[str, str]] = []
3207
- _files: Dict[
3208
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3209
- ] = {}
3210
- _body_params: Optional[bytes] = None
3211
-
3212
- # process the path parameters
3213
- if dataset_id is not None:
3214
- _path_params['datasetId'] = dataset_id
3215
- # process the query parameters
3216
- # process the header parameters
3217
- # process the form parameters
3218
- # process the body parameter
3219
-
3220
-
3221
- # set the HTTP header `Accept`
3222
- if 'Accept' not in _header_params:
3223
- _header_params['Accept'] = self.api_client.select_header_accept(
3224
- [
3225
- 'text/plain',
3226
- 'application/json',
3227
- 'text/json'
3228
- ]
3229
- )
3230
-
3231
-
3232
- # authentication setting
3233
- _auth_settings: List[str] = [
3234
- 'bearer',
3235
- 'oauth2'
3236
- ]
3237
-
3238
- return self.api_client.param_serialize(
3239
- method='GET',
3240
- resource_path='/dataset/{datasetId}',
3241
- path_params=_path_params,
3242
- query_params=_query_params,
3243
- header_params=_header_params,
3244
- body=_body_params,
3245
- post_params=_form_params,
3246
- files=_files,
3247
- auth_settings=_auth_settings,
3248
- collection_formats=_collection_formats,
3249
- _host=_host,
3250
- _request_auth=_request_auth
3251
- )
3252
-
3253
-
3254
-
3255
-
3256
- @validate_call
3257
- def dataset_dataset_id_name_patch(
3258
- self,
3259
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
3260
- update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
3261
- _request_timeout: Union[
3262
- None,
3263
- Annotated[StrictFloat, Field(gt=0)],
3264
- Tuple[
3265
- Annotated[StrictFloat, Field(gt=0)],
3266
- Annotated[StrictFloat, Field(gt=0)]
3267
- ]
3268
- ] = None,
3269
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3270
- _content_type: Optional[StrictStr] = None,
3271
- _headers: Optional[Dict[StrictStr, Any]] = None,
3272
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3273
- ) -> None:
3274
- """Updates the name of a dataset.
3275
-
3276
-
3277
- :param dataset_id: The id of the dataset to update. (required)
3278
- :type dataset_id: str
3279
- :param update_dataset_name_model: The body of the request.
3280
- :type update_dataset_name_model: UpdateDatasetNameModel
3281
- :param _request_timeout: timeout setting for this request. If one
3282
- number provided, it will be total request
3283
- timeout. It can also be a pair (tuple) of
3284
- (connection, read) timeouts.
3285
- :type _request_timeout: int, tuple(int, int), optional
3286
- :param _request_auth: set to override the auth_settings for an a single
3287
- request; this effectively ignores the
3288
- authentication in the spec for a single request.
3289
- :type _request_auth: dict, optional
3290
- :param _content_type: force content-type for the request.
3291
- :type _content_type: str, Optional
3292
- :param _headers: set to override the headers for a single
3293
- request; this effectively ignores the headers
3294
- in the spec for a single request.
3295
- :type _headers: dict, optional
3296
- :param _host_index: set to override the host_index for a single
3297
- request; this effectively ignores the host_index
3298
- in the spec for a single request.
3299
- :type _host_index: int, optional
3300
- :return: Returns the result object.
3301
- """ # noqa: E501
3302
-
3303
- _param = self._dataset_dataset_id_name_patch_serialize(
3304
- dataset_id=dataset_id,
3305
- update_dataset_name_model=update_dataset_name_model,
3306
- _request_auth=_request_auth,
3307
- _content_type=_content_type,
3308
- _headers=_headers,
3309
- _host_index=_host_index
3310
- )
3311
-
3312
- _response_types_map: Dict[str, Optional[str]] = {
3313
- '204': None,
3314
- }
3315
- response_data = self.api_client.call_api(
3316
- *_param,
3317
- _request_timeout=_request_timeout
3318
- )
3319
- response_data.read()
3320
- return self.api_client.response_deserialize(
3321
- response_data=response_data,
3322
- response_types_map=_response_types_map,
3323
- ).data
3324
-
3325
-
3326
- @validate_call
3327
- def dataset_dataset_id_name_patch_with_http_info(
3328
- self,
3329
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
3330
- update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
3331
- _request_timeout: Union[
3332
- None,
3333
- Annotated[StrictFloat, Field(gt=0)],
3334
- Tuple[
3335
- Annotated[StrictFloat, Field(gt=0)],
3336
- Annotated[StrictFloat, Field(gt=0)]
3337
- ]
3338
- ] = None,
3339
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3340
- _content_type: Optional[StrictStr] = None,
3341
- _headers: Optional[Dict[StrictStr, Any]] = None,
3342
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3343
- ) -> ApiResponse[None]:
3344
- """Updates the name of a dataset.
3345
-
3346
-
3347
- :param dataset_id: The id of the dataset to update. (required)
3348
- :type dataset_id: str
3349
- :param update_dataset_name_model: The body of the request.
3350
- :type update_dataset_name_model: UpdateDatasetNameModel
3351
- :param _request_timeout: timeout setting for this request. If one
3352
- number provided, it will be total request
3353
- timeout. It can also be a pair (tuple) of
3354
- (connection, read) timeouts.
3355
- :type _request_timeout: int, tuple(int, int), optional
3356
- :param _request_auth: set to override the auth_settings for an a single
3357
- request; this effectively ignores the
3358
- authentication in the spec for a single request.
3359
- :type _request_auth: dict, optional
3360
- :param _content_type: force content-type for the request.
3361
- :type _content_type: str, Optional
3362
- :param _headers: set to override the headers for a single
3363
- request; this effectively ignores the headers
3364
- in the spec for a single request.
3365
- :type _headers: dict, optional
3366
- :param _host_index: set to override the host_index for a single
3367
- request; this effectively ignores the host_index
3368
- in the spec for a single request.
3369
- :type _host_index: int, optional
3370
- :return: Returns the result object.
3371
- """ # noqa: E501
3372
-
3373
- _param = self._dataset_dataset_id_name_patch_serialize(
3374
- dataset_id=dataset_id,
3375
- update_dataset_name_model=update_dataset_name_model,
3376
- _request_auth=_request_auth,
3377
- _content_type=_content_type,
3378
- _headers=_headers,
3379
- _host_index=_host_index
3380
- )
3381
-
3382
- _response_types_map: Dict[str, Optional[str]] = {
3383
- '204': None,
3384
- }
3385
- response_data = self.api_client.call_api(
3386
- *_param,
3387
- _request_timeout=_request_timeout
3388
- )
3389
- response_data.read()
3390
- return self.api_client.response_deserialize(
3391
- response_data=response_data,
3392
- response_types_map=_response_types_map,
3393
- )
3394
-
3395
-
3396
- @validate_call
3397
- def dataset_dataset_id_name_patch_without_preload_content(
3398
- self,
3399
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
3400
- update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
3401
- _request_timeout: Union[
3402
- None,
3403
- Annotated[StrictFloat, Field(gt=0)],
3404
- Tuple[
3405
- Annotated[StrictFloat, Field(gt=0)],
3406
- Annotated[StrictFloat, Field(gt=0)]
3407
- ]
3408
- ] = None,
3409
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3410
- _content_type: Optional[StrictStr] = None,
3411
- _headers: Optional[Dict[StrictStr, Any]] = None,
3412
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3413
- ) -> RESTResponseType:
3414
- """Updates the name of a dataset.
3415
-
3416
-
3417
- :param dataset_id: The id of the dataset to update. (required)
3418
- :type dataset_id: str
3419
- :param update_dataset_name_model: The body of the request.
3420
- :type update_dataset_name_model: UpdateDatasetNameModel
3421
- :param _request_timeout: timeout setting for this request. If one
3422
- number provided, it will be total request
3423
- timeout. It can also be a pair (tuple) of
3424
- (connection, read) timeouts.
3425
- :type _request_timeout: int, tuple(int, int), optional
3426
- :param _request_auth: set to override the auth_settings for an a single
3427
- request; this effectively ignores the
3428
- authentication in the spec for a single request.
3429
- :type _request_auth: dict, optional
3430
- :param _content_type: force content-type for the request.
3431
- :type _content_type: str, Optional
3432
- :param _headers: set to override the headers for a single
3433
- request; this effectively ignores the headers
3434
- in the spec for a single request.
3435
- :type _headers: dict, optional
3436
- :param _host_index: set to override the host_index for a single
3437
- request; this effectively ignores the host_index
3438
- in the spec for a single request.
3439
- :type _host_index: int, optional
3440
- :return: Returns the result object.
3441
- """ # noqa: E501
3442
-
3443
- _param = self._dataset_dataset_id_name_patch_serialize(
3444
- dataset_id=dataset_id,
3445
- update_dataset_name_model=update_dataset_name_model,
3446
- _request_auth=_request_auth,
3447
- _content_type=_content_type,
3448
- _headers=_headers,
3449
- _host_index=_host_index
3450
- )
3451
-
3452
- _response_types_map: Dict[str, Optional[str]] = {
3453
- '204': None,
3454
- }
3455
- response_data = self.api_client.call_api(
3456
- *_param,
3457
- _request_timeout=_request_timeout
3458
- )
3459
- return response_data.response
3460
-
3461
-
3462
- def _dataset_dataset_id_name_patch_serialize(
3463
- self,
3464
- dataset_id,
3465
- update_dataset_name_model,
3466
- _request_auth,
3467
- _content_type,
3468
- _headers,
3469
- _host_index,
3470
- ) -> RequestSerialized:
3471
-
3472
- _host = None
3473
-
3474
- _collection_formats: Dict[str, str] = {
3475
- }
3476
-
3477
- _path_params: Dict[str, str] = {}
3478
- _query_params: List[Tuple[str, str]] = []
3479
- _header_params: Dict[str, Optional[str]] = _headers or {}
3480
- _form_params: List[Tuple[str, str]] = []
3481
- _files: Dict[
3482
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3483
- ] = {}
3484
- _body_params: Optional[bytes] = None
3485
-
3486
- # process the path parameters
3487
- if dataset_id is not None:
3488
- _path_params['datasetId'] = dataset_id
3489
- # process the query parameters
3490
- # process the header parameters
3491
- # process the form parameters
3492
- # process the body parameter
3493
- if update_dataset_name_model is not None:
3494
- _body_params = update_dataset_name_model
3495
-
3496
-
3497
-
3498
- # set the HTTP header `Content-Type`
3499
- if _content_type:
3500
- _header_params['Content-Type'] = _content_type
3501
- else:
3502
- _default_content_type = (
3503
- self.api_client.select_header_content_type(
3504
- [
3505
- 'application/json',
3506
- 'text/json',
3507
- 'application/*+json'
3508
- ]
3509
- )
3510
- )
3511
- if _default_content_type is not None:
3512
- _header_params['Content-Type'] = _default_content_type
3513
-
3514
- # authentication setting
3515
- _auth_settings: List[str] = [
3516
- 'bearer',
3517
- 'oauth2'
3518
- ]
3519
-
3520
- return self.api_client.param_serialize(
3521
- method='PATCH',
3522
- resource_path='/dataset/{datasetId}/name',
3523
- path_params=_path_params,
3524
- query_params=_query_params,
3525
- header_params=_header_params,
3526
- body=_body_params,
3527
- post_params=_form_params,
3528
- files=_files,
3529
- auth_settings=_auth_settings,
3530
- collection_formats=_collection_formats,
3531
- _host=_host,
3532
- _request_auth=_request_auth
3533
- )
3534
-
3535
-
3536
-
3537
-
3538
- @validate_call
3539
- def dataset_dataset_id_progress_get(
3540
- self,
3541
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
3542
- _request_timeout: Union[
3543
- None,
3544
- Annotated[StrictFloat, Field(gt=0)],
3545
- Tuple[
3546
- Annotated[StrictFloat, Field(gt=0)],
3547
- Annotated[StrictFloat, Field(gt=0)]
3548
- ]
3549
- ] = None,
3550
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3551
- _content_type: Optional[StrictStr] = None,
3552
- _headers: Optional[Dict[StrictStr, Any]] = None,
3553
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3554
- ) -> GetDatasetProgressResult:
3555
- """Gets the upload progress of a dataset.
3556
-
3557
-
3558
- :param dataset_id: The id of the dataset to get the progress of. (required)
3559
- :type dataset_id: str
3560
- :param _request_timeout: timeout setting for this request. If one
3561
- number provided, it will be total request
3562
- timeout. It can also be a pair (tuple) of
3563
- (connection, read) timeouts.
3564
- :type _request_timeout: int, tuple(int, int), optional
3565
- :param _request_auth: set to override the auth_settings for an a single
3566
- request; this effectively ignores the
3567
- authentication in the spec for a single request.
3568
- :type _request_auth: dict, optional
3569
- :param _content_type: force content-type for the request.
3570
- :type _content_type: str, Optional
3571
- :param _headers: set to override the headers for a single
3572
- request; this effectively ignores the headers
3573
- in the spec for a single request.
3574
- :type _headers: dict, optional
3575
- :param _host_index: set to override the host_index for a single
3576
- request; this effectively ignores the host_index
3577
- in the spec for a single request.
3578
- :type _host_index: int, optional
3579
- :return: Returns the result object.
3580
- """ # noqa: E501
3581
-
3582
- _param = self._dataset_dataset_id_progress_get_serialize(
3583
- dataset_id=dataset_id,
3584
- _request_auth=_request_auth,
3585
- _content_type=_content_type,
3586
- _headers=_headers,
3587
- _host_index=_host_index
3588
- )
3589
-
3590
- _response_types_map: Dict[str, Optional[str]] = {
3591
- '200': "GetDatasetProgressResult",
3592
- }
3593
- response_data = self.api_client.call_api(
3594
- *_param,
3595
- _request_timeout=_request_timeout
3596
- )
3597
- response_data.read()
3598
- return self.api_client.response_deserialize(
3599
- response_data=response_data,
3600
- response_types_map=_response_types_map,
3601
- ).data
3602
-
3603
-
3604
- @validate_call
3605
- def dataset_dataset_id_progress_get_with_http_info(
3606
- self,
3607
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
3608
- _request_timeout: Union[
3609
- None,
3610
- Annotated[StrictFloat, Field(gt=0)],
3611
- Tuple[
3612
- Annotated[StrictFloat, Field(gt=0)],
3613
- Annotated[StrictFloat, Field(gt=0)]
3614
- ]
3615
- ] = None,
3616
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3617
- _content_type: Optional[StrictStr] = None,
3618
- _headers: Optional[Dict[StrictStr, Any]] = None,
3619
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3620
- ) -> ApiResponse[GetDatasetProgressResult]:
3621
- """Gets the upload progress of a dataset.
3622
-
3623
-
3624
- :param dataset_id: The id of the dataset to get the progress of. (required)
3625
- :type dataset_id: str
3626
- :param _request_timeout: timeout setting for this request. If one
3627
- number provided, it will be total request
3628
- timeout. It can also be a pair (tuple) of
3629
- (connection, read) timeouts.
3630
- :type _request_timeout: int, tuple(int, int), optional
3631
- :param _request_auth: set to override the auth_settings for an a single
3632
- request; this effectively ignores the
3633
- authentication in the spec for a single request.
3634
- :type _request_auth: dict, optional
3635
- :param _content_type: force content-type for the request.
3636
- :type _content_type: str, Optional
3637
- :param _headers: set to override the headers for a single
3638
- request; this effectively ignores the headers
3639
- in the spec for a single request.
3640
- :type _headers: dict, optional
3641
- :param _host_index: set to override the host_index for a single
3642
- request; this effectively ignores the host_index
3643
- in the spec for a single request.
3644
- :type _host_index: int, optional
3645
- :return: Returns the result object.
3646
- """ # noqa: E501
3647
-
3648
- _param = self._dataset_dataset_id_progress_get_serialize(
3649
- dataset_id=dataset_id,
3650
- _request_auth=_request_auth,
3651
- _content_type=_content_type,
3652
- _headers=_headers,
3653
- _host_index=_host_index
3654
- )
3655
-
3656
- _response_types_map: Dict[str, Optional[str]] = {
3657
- '200': "GetDatasetProgressResult",
3658
- }
3659
- response_data = self.api_client.call_api(
3660
- *_param,
3661
- _request_timeout=_request_timeout
3662
- )
3663
- response_data.read()
3664
- return self.api_client.response_deserialize(
3665
- response_data=response_data,
3666
- response_types_map=_response_types_map,
3667
- )
3668
-
3669
-
3670
- @validate_call
3671
- def dataset_dataset_id_progress_get_without_preload_content(
3672
- self,
3673
- dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
3674
- _request_timeout: Union[
3675
- None,
3676
- Annotated[StrictFloat, Field(gt=0)],
3677
- Tuple[
3678
- Annotated[StrictFloat, Field(gt=0)],
3679
- Annotated[StrictFloat, Field(gt=0)]
3680
- ]
3681
- ] = None,
3682
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3683
- _content_type: Optional[StrictStr] = None,
3684
- _headers: Optional[Dict[StrictStr, Any]] = None,
3685
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3686
- ) -> RESTResponseType:
3687
- """Gets the upload progress of a dataset.
3688
-
3689
-
3690
- :param dataset_id: The id of the dataset to get the progress of. (required)
3691
- :type dataset_id: str
3692
- :param _request_timeout: timeout setting for this request. If one
3693
- number provided, it will be total request
3694
- timeout. It can also be a pair (tuple) of
3695
- (connection, read) timeouts.
3696
- :type _request_timeout: int, tuple(int, int), optional
3697
- :param _request_auth: set to override the auth_settings for an a single
3698
- request; this effectively ignores the
3699
- authentication in the spec for a single request.
3700
- :type _request_auth: dict, optional
3701
- :param _content_type: force content-type for the request.
3702
- :type _content_type: str, Optional
3703
- :param _headers: set to override the headers for a single
3704
- request; this effectively ignores the headers
3705
- in the spec for a single request.
3706
- :type _headers: dict, optional
3707
- :param _host_index: set to override the host_index for a single
3708
- request; this effectively ignores the host_index
3709
- in the spec for a single request.
3710
- :type _host_index: int, optional
3711
- :return: Returns the result object.
3712
- """ # noqa: E501
3713
-
3714
- _param = self._dataset_dataset_id_progress_get_serialize(
3715
- dataset_id=dataset_id,
3716
- _request_auth=_request_auth,
3717
- _content_type=_content_type,
3718
- _headers=_headers,
3719
- _host_index=_host_index
3720
- )
3721
-
3722
- _response_types_map: Dict[str, Optional[str]] = {
3723
- '200': "GetDatasetProgressResult",
3724
- }
3725
- response_data = self.api_client.call_api(
3726
- *_param,
3727
- _request_timeout=_request_timeout
3728
- )
3729
- return response_data.response
3730
-
3731
-
3732
- def _dataset_dataset_id_progress_get_serialize(
3733
- self,
3734
- dataset_id,
3735
- _request_auth,
3736
- _content_type,
3737
- _headers,
3738
- _host_index,
3739
- ) -> RequestSerialized:
3740
-
3741
- _host = None
3742
-
3743
- _collection_formats: Dict[str, str] = {
3744
- }
3745
-
3746
- _path_params: Dict[str, str] = {}
3747
- _query_params: List[Tuple[str, str]] = []
3748
- _header_params: Dict[str, Optional[str]] = _headers or {}
3749
- _form_params: List[Tuple[str, str]] = []
3750
- _files: Dict[
3751
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3752
- ] = {}
3753
- _body_params: Optional[bytes] = None
3754
-
3755
- # process the path parameters
3756
- if dataset_id is not None:
3757
- _path_params['datasetId'] = dataset_id
3758
- # process the query parameters
3759
- # process the header parameters
3760
- # process the form parameters
3761
- # process the body parameter
3762
-
3763
-
3764
- # set the HTTP header `Accept`
3765
- if 'Accept' not in _header_params:
3766
- _header_params['Accept'] = self.api_client.select_header_accept(
3767
- [
3768
- 'text/plain',
3769
- 'application/json',
3770
- 'text/json'
3771
- ]
3772
- )
3773
-
3774
-
3775
- # authentication setting
3776
- _auth_settings: List[str] = [
3777
- 'bearer',
3778
- 'oauth2'
3779
- ]
3780
-
3781
- return self.api_client.param_serialize(
3782
- method='GET',
3783
- resource_path='/dataset/{datasetId}/progress',
3784
- path_params=_path_params,
3785
- query_params=_query_params,
3786
- header_params=_header_params,
3787
- body=_body_params,
3788
- post_params=_form_params,
3789
- files=_files,
3790
- auth_settings=_auth_settings,
3791
- collection_formats=_collection_formats,
3792
- _host=_host,
3793
- _request_auth=_request_auth
3794
- )
3795
-
3796
-
3797
-
3798
-
3799
- @validate_call
3800
- def dataset_getbyid_get(
3801
- self,
3802
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
3803
- _request_timeout: Union[
3804
- None,
3805
- Annotated[StrictFloat, Field(gt=0)],
3806
- Tuple[
3807
- Annotated[StrictFloat, Field(gt=0)],
3808
- Annotated[StrictFloat, Field(gt=0)]
3809
- ]
3810
- ] = None,
3811
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3812
- _content_type: Optional[StrictStr] = None,
3813
- _headers: Optional[Dict[StrictStr, Any]] = None,
3814
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3815
- ) -> GetDatasetByIdResult:
3816
- """(Deprecated) Gets a dataset by its id.
3817
-
3818
-
3819
- :param id: The id of the dataset to get.
3820
- :type id: str
3821
- :param _request_timeout: timeout setting for this request. If one
3822
- number provided, it will be total request
3823
- timeout. It can also be a pair (tuple) of
3824
- (connection, read) timeouts.
3825
- :type _request_timeout: int, tuple(int, int), optional
3826
- :param _request_auth: set to override the auth_settings for an a single
3827
- request; this effectively ignores the
3828
- authentication in the spec for a single request.
3829
- :type _request_auth: dict, optional
3830
- :param _content_type: force content-type for the request.
3831
- :type _content_type: str, Optional
3832
- :param _headers: set to override the headers for a single
3833
- request; this effectively ignores the headers
3834
- in the spec for a single request.
3835
- :type _headers: dict, optional
3836
- :param _host_index: set to override the host_index for a single
3837
- request; this effectively ignores the host_index
3838
- in the spec for a single request.
3839
- :type _host_index: int, optional
3840
- :return: Returns the result object.
3841
- """ # noqa: E501
3842
- warnings.warn("GET /dataset/getbyid is deprecated.", DeprecationWarning)
3843
-
3844
- _param = self._dataset_getbyid_get_serialize(
3845
- id=id,
3846
- _request_auth=_request_auth,
3847
- _content_type=_content_type,
3848
- _headers=_headers,
3849
- _host_index=_host_index
3850
- )
3851
-
3852
- _response_types_map: Dict[str, Optional[str]] = {
3853
- '200': "GetDatasetByIdResult",
3854
- }
3855
- response_data = self.api_client.call_api(
3856
- *_param,
3857
- _request_timeout=_request_timeout
3858
- )
3859
- response_data.read()
3860
- return self.api_client.response_deserialize(
3861
- response_data=response_data,
3862
- response_types_map=_response_types_map,
3863
- ).data
3864
-
3865
-
3866
- @validate_call
3867
- def dataset_getbyid_get_with_http_info(
3868
- self,
3869
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
3870
- _request_timeout: Union[
3871
- None,
3872
- Annotated[StrictFloat, Field(gt=0)],
3873
- Tuple[
3874
- Annotated[StrictFloat, Field(gt=0)],
3875
- Annotated[StrictFloat, Field(gt=0)]
3876
- ]
3877
- ] = None,
3878
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3879
- _content_type: Optional[StrictStr] = None,
3880
- _headers: Optional[Dict[StrictStr, Any]] = None,
3881
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3882
- ) -> ApiResponse[GetDatasetByIdResult]:
3883
- """(Deprecated) Gets a dataset by its id.
3884
-
3885
-
3886
- :param id: The id of the dataset to get.
3887
- :type id: str
3888
- :param _request_timeout: timeout setting for this request. If one
3889
- number provided, it will be total request
3890
- timeout. It can also be a pair (tuple) of
3891
- (connection, read) timeouts.
3892
- :type _request_timeout: int, tuple(int, int), optional
3893
- :param _request_auth: set to override the auth_settings for an a single
3894
- request; this effectively ignores the
3895
- authentication in the spec for a single request.
3896
- :type _request_auth: dict, optional
3897
- :param _content_type: force content-type for the request.
3898
- :type _content_type: str, Optional
3899
- :param _headers: set to override the headers for a single
3900
- request; this effectively ignores the headers
3901
- in the spec for a single request.
3902
- :type _headers: dict, optional
3903
- :param _host_index: set to override the host_index for a single
3904
- request; this effectively ignores the host_index
3905
- in the spec for a single request.
3906
- :type _host_index: int, optional
3907
- :return: Returns the result object.
3908
- """ # noqa: E501
3909
- warnings.warn("GET /dataset/getbyid is deprecated.", DeprecationWarning)
3910
-
3911
- _param = self._dataset_getbyid_get_serialize(
3912
- id=id,
3913
- _request_auth=_request_auth,
3914
- _content_type=_content_type,
3915
- _headers=_headers,
3916
- _host_index=_host_index
3917
- )
3918
-
3919
- _response_types_map: Dict[str, Optional[str]] = {
3920
- '200': "GetDatasetByIdResult",
3921
- }
3922
- response_data = self.api_client.call_api(
3923
- *_param,
3924
- _request_timeout=_request_timeout
3925
- )
3926
- response_data.read()
3927
- return self.api_client.response_deserialize(
3928
- response_data=response_data,
3929
- response_types_map=_response_types_map,
3930
- )
3931
-
3932
-
3933
- @validate_call
3934
- def dataset_getbyid_get_without_preload_content(
3935
- self,
3936
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
3937
- _request_timeout: Union[
3938
- None,
3939
- Annotated[StrictFloat, Field(gt=0)],
3940
- Tuple[
3941
- Annotated[StrictFloat, Field(gt=0)],
3942
- Annotated[StrictFloat, Field(gt=0)]
3943
- ]
3944
- ] = None,
3945
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3946
- _content_type: Optional[StrictStr] = None,
3947
- _headers: Optional[Dict[StrictStr, Any]] = None,
3948
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3949
- ) -> RESTResponseType:
3950
- """(Deprecated) Gets a dataset by its id.
3951
-
3952
-
3953
- :param id: The id of the dataset to get.
3954
- :type id: str
3955
- :param _request_timeout: timeout setting for this request. If one
3956
- number provided, it will be total request
3957
- timeout. It can also be a pair (tuple) of
3958
- (connection, read) timeouts.
3959
- :type _request_timeout: int, tuple(int, int), optional
3960
- :param _request_auth: set to override the auth_settings for an a single
3961
- request; this effectively ignores the
3962
- authentication in the spec for a single request.
3963
- :type _request_auth: dict, optional
3964
- :param _content_type: force content-type for the request.
3965
- :type _content_type: str, Optional
3966
- :param _headers: set to override the headers for a single
3967
- request; this effectively ignores the headers
3968
- in the spec for a single request.
3969
- :type _headers: dict, optional
3970
- :param _host_index: set to override the host_index for a single
3971
- request; this effectively ignores the host_index
3972
- in the spec for a single request.
3973
- :type _host_index: int, optional
3974
- :return: Returns the result object.
3975
- """ # noqa: E501
3976
- warnings.warn("GET /dataset/getbyid is deprecated.", DeprecationWarning)
3977
-
3978
- _param = self._dataset_getbyid_get_serialize(
3979
- id=id,
3980
- _request_auth=_request_auth,
3981
- _content_type=_content_type,
3982
- _headers=_headers,
3983
- _host_index=_host_index
3984
- )
3985
-
3986
- _response_types_map: Dict[str, Optional[str]] = {
3987
- '200': "GetDatasetByIdResult",
3988
- }
3989
- response_data = self.api_client.call_api(
3990
- *_param,
3991
- _request_timeout=_request_timeout
3992
- )
3993
- return response_data.response
3994
-
3995
-
3996
- def _dataset_getbyid_get_serialize(
3997
- self,
3998
- id,
3999
- _request_auth,
4000
- _content_type,
4001
- _headers,
4002
- _host_index,
4003
- ) -> RequestSerialized:
4004
-
4005
- _host = None
4006
-
4007
- _collection_formats: Dict[str, str] = {
4008
- }
4009
-
4010
- _path_params: Dict[str, str] = {}
4011
- _query_params: List[Tuple[str, str]] = []
4012
- _header_params: Dict[str, Optional[str]] = _headers or {}
4013
- _form_params: List[Tuple[str, str]] = []
4014
- _files: Dict[
4015
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4016
- ] = {}
4017
- _body_params: Optional[bytes] = None
4018
-
4019
- # process the path parameters
4020
- # process the query parameters
4021
- if id is not None:
4022
-
4023
- _query_params.append(('id', id))
4024
-
4025
- # process the header parameters
4026
- # process the form parameters
4027
- # process the body parameter
4028
-
4029
-
4030
- # set the HTTP header `Accept`
4031
- if 'Accept' not in _header_params:
4032
- _header_params['Accept'] = self.api_client.select_header_accept(
4033
- [
4034
- 'text/plain',
4035
- 'application/json',
4036
- 'text/json'
4037
- ]
4038
- )
4039
-
4040
-
4041
- # authentication setting
4042
- _auth_settings: List[str] = [
4043
- 'bearer',
4044
- 'oauth2'
4045
- ]
4046
-
4047
- return self.api_client.param_serialize(
4048
- method='GET',
4049
- resource_path='/dataset/getbyid',
4050
- path_params=_path_params,
4051
- query_params=_query_params,
4052
- header_params=_header_params,
4053
- body=_body_params,
4054
- post_params=_form_params,
4055
- files=_files,
4056
- auth_settings=_auth_settings,
4057
- collection_formats=_collection_formats,
4058
- _host=_host,
4059
- _request_auth=_request_auth
4060
- )
4061
-
4062
-
4063
-
4064
-
4065
- @validate_call
4066
- def dataset_import_post(
4067
- self,
4068
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
4069
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
4070
- _request_timeout: Union[
4071
- None,
4072
- Annotated[StrictFloat, Field(gt=0)],
4073
- Tuple[
4074
- Annotated[StrictFloat, Field(gt=0)],
4075
- Annotated[StrictFloat, Field(gt=0)]
4076
- ]
4077
- ] = None,
4078
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
4079
- _content_type: Optional[StrictStr] = None,
4080
- _headers: Optional[Dict[StrictStr, Any]] = None,
4081
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4082
- ) -> ImportFromFileResult:
4083
- """(Deprecated) Imports datapoints from a csv file.
4084
-
4085
-
4086
- :param dataset_id: The id of the dataset to import the datapoints to.
4087
- :type dataset_id: str
4088
- :param file: The csv file to import.
4089
- :type file: bytearray
4090
- :param _request_timeout: timeout setting for this request. If one
4091
- number provided, it will be total request
4092
- timeout. It can also be a pair (tuple) of
4093
- (connection, read) timeouts.
4094
- :type _request_timeout: int, tuple(int, int), optional
4095
- :param _request_auth: set to override the auth_settings for an a single
4096
- request; this effectively ignores the
4097
- authentication in the spec for a single request.
4098
- :type _request_auth: dict, optional
4099
- :param _content_type: force content-type for the request.
4100
- :type _content_type: str, Optional
4101
- :param _headers: set to override the headers for a single
4102
- request; this effectively ignores the headers
4103
- in the spec for a single request.
4104
- :type _headers: dict, optional
4105
- :param _host_index: set to override the host_index for a single
4106
- request; this effectively ignores the host_index
4107
- in the spec for a single request.
4108
- :type _host_index: int, optional
4109
- :return: Returns the result object.
4110
- """ # noqa: E501
4111
- warnings.warn("POST /dataset/import is deprecated.", DeprecationWarning)
4112
-
4113
- _param = self._dataset_import_post_serialize(
4114
- dataset_id=dataset_id,
4115
- file=file,
4116
- _request_auth=_request_auth,
4117
- _content_type=_content_type,
4118
- _headers=_headers,
4119
- _host_index=_host_index
4120
- )
4121
-
4122
- _response_types_map: Dict[str, Optional[str]] = {
4123
- '200': "ImportFromFileResult",
4124
- }
4125
- response_data = self.api_client.call_api(
4126
- *_param,
4127
- _request_timeout=_request_timeout
4128
- )
4129
- response_data.read()
4130
- return self.api_client.response_deserialize(
4131
- response_data=response_data,
4132
- response_types_map=_response_types_map,
4133
- ).data
4134
-
4135
-
4136
- @validate_call
4137
- def dataset_import_post_with_http_info(
4138
- self,
4139
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
4140
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
4141
- _request_timeout: Union[
4142
- None,
4143
- Annotated[StrictFloat, Field(gt=0)],
4144
- Tuple[
4145
- Annotated[StrictFloat, Field(gt=0)],
4146
- Annotated[StrictFloat, Field(gt=0)]
4147
- ]
4148
- ] = None,
4149
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
4150
- _content_type: Optional[StrictStr] = None,
4151
- _headers: Optional[Dict[StrictStr, Any]] = None,
4152
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4153
- ) -> ApiResponse[ImportFromFileResult]:
4154
- """(Deprecated) Imports datapoints from a csv file.
4155
-
4156
-
4157
- :param dataset_id: The id of the dataset to import the datapoints to.
4158
- :type dataset_id: str
4159
- :param file: The csv file to import.
4160
- :type file: bytearray
4161
- :param _request_timeout: timeout setting for this request. If one
4162
- number provided, it will be total request
4163
- timeout. It can also be a pair (tuple) of
4164
- (connection, read) timeouts.
4165
- :type _request_timeout: int, tuple(int, int), optional
4166
- :param _request_auth: set to override the auth_settings for an a single
4167
- request; this effectively ignores the
4168
- authentication in the spec for a single request.
4169
- :type _request_auth: dict, optional
4170
- :param _content_type: force content-type for the request.
4171
- :type _content_type: str, Optional
4172
- :param _headers: set to override the headers for a single
4173
- request; this effectively ignores the headers
4174
- in the spec for a single request.
4175
- :type _headers: dict, optional
4176
- :param _host_index: set to override the host_index for a single
4177
- request; this effectively ignores the host_index
4178
- in the spec for a single request.
4179
- :type _host_index: int, optional
4180
- :return: Returns the result object.
4181
- """ # noqa: E501
4182
- warnings.warn("POST /dataset/import is deprecated.", DeprecationWarning)
4183
-
4184
- _param = self._dataset_import_post_serialize(
4185
- dataset_id=dataset_id,
4186
- file=file,
4187
- _request_auth=_request_auth,
4188
- _content_type=_content_type,
4189
- _headers=_headers,
4190
- _host_index=_host_index
4191
- )
4192
-
4193
- _response_types_map: Dict[str, Optional[str]] = {
4194
- '200': "ImportFromFileResult",
4195
- }
4196
- response_data = self.api_client.call_api(
4197
- *_param,
4198
- _request_timeout=_request_timeout
4199
- )
4200
- response_data.read()
4201
- return self.api_client.response_deserialize(
4202
- response_data=response_data,
4203
- response_types_map=_response_types_map,
4204
- )
4205
-
4206
-
4207
- @validate_call
4208
- def dataset_import_post_without_preload_content(
4209
- self,
4210
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
4211
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
4212
- _request_timeout: Union[
4213
- None,
4214
- Annotated[StrictFloat, Field(gt=0)],
4215
- Tuple[
4216
- Annotated[StrictFloat, Field(gt=0)],
4217
- Annotated[StrictFloat, Field(gt=0)]
4218
- ]
4219
- ] = None,
4220
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
4221
- _content_type: Optional[StrictStr] = None,
4222
- _headers: Optional[Dict[StrictStr, Any]] = None,
4223
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4224
- ) -> RESTResponseType:
4225
- """(Deprecated) Imports datapoints from a csv file.
4226
-
4227
-
4228
- :param dataset_id: The id of the dataset to import the datapoints to.
4229
- :type dataset_id: str
4230
- :param file: The csv file to import.
4231
- :type file: bytearray
4232
- :param _request_timeout: timeout setting for this request. If one
4233
- number provided, it will be total request
4234
- timeout. It can also be a pair (tuple) of
4235
- (connection, read) timeouts.
4236
- :type _request_timeout: int, tuple(int, int), optional
4237
- :param _request_auth: set to override the auth_settings for an a single
4238
- request; this effectively ignores the
4239
- authentication in the spec for a single request.
4240
- :type _request_auth: dict, optional
4241
- :param _content_type: force content-type for the request.
4242
- :type _content_type: str, Optional
4243
- :param _headers: set to override the headers for a single
4244
- request; this effectively ignores the headers
4245
- in the spec for a single request.
4246
- :type _headers: dict, optional
4247
- :param _host_index: set to override the host_index for a single
4248
- request; this effectively ignores the host_index
4249
- in the spec for a single request.
4250
- :type _host_index: int, optional
4251
- :return: Returns the result object.
4252
- """ # noqa: E501
4253
- warnings.warn("POST /dataset/import is deprecated.", DeprecationWarning)
4254
-
4255
- _param = self._dataset_import_post_serialize(
4256
- dataset_id=dataset_id,
4257
- file=file,
4258
- _request_auth=_request_auth,
4259
- _content_type=_content_type,
4260
- _headers=_headers,
4261
- _host_index=_host_index
4262
- )
4263
-
4264
- _response_types_map: Dict[str, Optional[str]] = {
4265
- '200': "ImportFromFileResult",
4266
- }
4267
- response_data = self.api_client.call_api(
4268
- *_param,
4269
- _request_timeout=_request_timeout
4270
- )
4271
- return response_data.response
4272
-
4273
-
4274
- def _dataset_import_post_serialize(
4275
- self,
4276
- dataset_id,
4277
- file,
4278
- _request_auth,
4279
- _content_type,
4280
- _headers,
4281
- _host_index,
4282
- ) -> RequestSerialized:
4283
-
4284
- _host = None
4285
-
4286
- _collection_formats: Dict[str, str] = {
4287
- }
4288
-
4289
- _path_params: Dict[str, str] = {}
4290
- _query_params: List[Tuple[str, str]] = []
4291
- _header_params: Dict[str, Optional[str]] = _headers or {}
4292
- _form_params: List[Tuple[str, str]] = []
4293
- _files: Dict[
4294
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4295
- ] = {}
4296
- _body_params: Optional[bytes] = None
4297
-
4298
- # process the path parameters
4299
- # process the query parameters
4300
- if dataset_id is not None:
4301
-
4302
- _query_params.append(('datasetId', dataset_id))
4303
-
4304
- # process the header parameters
4305
- # process the form parameters
4306
- if file is not None:
4307
- _files['file'] = file
4308
- # process the body parameter
4309
-
4310
-
4311
- # set the HTTP header `Accept`
4312
- if 'Accept' not in _header_params:
4313
- _header_params['Accept'] = self.api_client.select_header_accept(
4314
- [
4315
- 'text/plain',
4316
- 'application/json',
4317
- 'text/json'
4318
- ]
4319
- )
4320
-
4321
- # set the HTTP header `Content-Type`
4322
- if _content_type:
4323
- _header_params['Content-Type'] = _content_type
4324
- else:
4325
- _default_content_type = (
4326
- self.api_client.select_header_content_type(
4327
- [
4328
- 'multipart/form-data'
4329
- ]
4330
- )
4331
- )
4332
- if _default_content_type is not None:
4333
- _header_params['Content-Type'] = _default_content_type
4334
-
4335
- # authentication setting
4336
- _auth_settings: List[str] = [
4337
- 'bearer',
4338
- 'oauth2'
4339
- ]
4340
-
4341
- return self.api_client.param_serialize(
4342
- method='POST',
4343
- resource_path='/dataset/import',
4344
- path_params=_path_params,
4345
- query_params=_query_params,
4346
- header_params=_header_params,
4347
- body=_body_params,
4348
- post_params=_form_params,
4349
- files=_files,
4350
- auth_settings=_auth_settings,
4351
- collection_formats=_collection_formats,
4352
- _host=_host,
4353
- _request_auth=_request_auth
4354
- )
4355
-
4356
-
4357
-
4358
-
4359
- @validate_call
4360
- def dataset_updatename_post(
4361
- self,
4362
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
4363
- name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
4364
- _request_timeout: Union[
4365
- None,
4366
- Annotated[StrictFloat, Field(gt=0)],
4367
- Tuple[
4368
- Annotated[StrictFloat, Field(gt=0)],
4369
- Annotated[StrictFloat, Field(gt=0)]
4370
- ]
4371
- ] = None,
4372
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
4373
- _content_type: Optional[StrictStr] = None,
4374
- _headers: Optional[Dict[StrictStr, Any]] = None,
4375
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4376
- ) -> None:
4377
- """(Deprecated) Updates the name of a dataset.
4378
-
4379
-
4380
- :param id: The id of the dataset to update.
4381
- :type id: str
4382
- :param name: The new name of the dataset.
4383
- :type name: str
4384
- :param _request_timeout: timeout setting for this request. If one
4385
- number provided, it will be total request
4386
- timeout. It can also be a pair (tuple) of
4387
- (connection, read) timeouts.
4388
- :type _request_timeout: int, tuple(int, int), optional
4389
- :param _request_auth: set to override the auth_settings for an a single
4390
- request; this effectively ignores the
4391
- authentication in the spec for a single request.
4392
- :type _request_auth: dict, optional
4393
- :param _content_type: force content-type for the request.
4394
- :type _content_type: str, Optional
4395
- :param _headers: set to override the headers for a single
4396
- request; this effectively ignores the headers
4397
- in the spec for a single request.
4398
- :type _headers: dict, optional
4399
- :param _host_index: set to override the host_index for a single
4400
- request; this effectively ignores the host_index
4401
- in the spec for a single request.
4402
- :type _host_index: int, optional
4403
- :return: Returns the result object.
4404
- """ # noqa: E501
4405
- warnings.warn("POST /dataset/updatename is deprecated.", DeprecationWarning)
4406
-
4407
- _param = self._dataset_updatename_post_serialize(
4408
- id=id,
4409
- name=name,
4410
- _request_auth=_request_auth,
4411
- _content_type=_content_type,
4412
- _headers=_headers,
4413
- _host_index=_host_index
4414
- )
4415
-
4416
- _response_types_map: Dict[str, Optional[str]] = {
4417
- '200': None,
4418
- }
4419
- response_data = self.api_client.call_api(
4420
- *_param,
4421
- _request_timeout=_request_timeout
4422
- )
4423
- response_data.read()
4424
- return self.api_client.response_deserialize(
4425
- response_data=response_data,
4426
- response_types_map=_response_types_map,
4427
- ).data
4428
-
4429
-
4430
- @validate_call
4431
- def dataset_updatename_post_with_http_info(
4432
- self,
4433
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
4434
- name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
4435
- _request_timeout: Union[
4436
- None,
4437
- Annotated[StrictFloat, Field(gt=0)],
4438
- Tuple[
4439
- Annotated[StrictFloat, Field(gt=0)],
4440
- Annotated[StrictFloat, Field(gt=0)]
4441
- ]
4442
- ] = None,
4443
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
4444
- _content_type: Optional[StrictStr] = None,
4445
- _headers: Optional[Dict[StrictStr, Any]] = None,
4446
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4447
- ) -> ApiResponse[None]:
4448
- """(Deprecated) Updates the name of a dataset.
4449
-
4450
-
4451
- :param id: The id of the dataset to update.
4452
- :type id: str
4453
- :param name: The new name of the dataset.
4454
- :type name: str
4455
- :param _request_timeout: timeout setting for this request. If one
4456
- number provided, it will be total request
4457
- timeout. It can also be a pair (tuple) of
4458
- (connection, read) timeouts.
4459
- :type _request_timeout: int, tuple(int, int), optional
4460
- :param _request_auth: set to override the auth_settings for an a single
4461
- request; this effectively ignores the
4462
- authentication in the spec for a single request.
4463
- :type _request_auth: dict, optional
4464
- :param _content_type: force content-type for the request.
4465
- :type _content_type: str, Optional
4466
- :param _headers: set to override the headers for a single
4467
- request; this effectively ignores the headers
4468
- in the spec for a single request.
4469
- :type _headers: dict, optional
4470
- :param _host_index: set to override the host_index for a single
4471
- request; this effectively ignores the host_index
4472
- in the spec for a single request.
4473
- :type _host_index: int, optional
4474
- :return: Returns the result object.
4475
- """ # noqa: E501
4476
- warnings.warn("POST /dataset/updatename is deprecated.", DeprecationWarning)
4477
-
4478
- _param = self._dataset_updatename_post_serialize(
4479
- id=id,
4480
- name=name,
4481
- _request_auth=_request_auth,
4482
- _content_type=_content_type,
4483
- _headers=_headers,
4484
- _host_index=_host_index
4485
- )
4486
-
4487
- _response_types_map: Dict[str, Optional[str]] = {
4488
- '200': None,
4489
- }
4490
- response_data = self.api_client.call_api(
4491
- *_param,
4492
- _request_timeout=_request_timeout
4493
- )
4494
- response_data.read()
4495
- return self.api_client.response_deserialize(
4496
- response_data=response_data,
4497
- response_types_map=_response_types_map,
4498
- )
4499
-
4500
-
4501
- @validate_call
4502
- def dataset_updatename_post_without_preload_content(
4503
- self,
4504
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
4505
- name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
4506
- _request_timeout: Union[
4507
- None,
4508
- Annotated[StrictFloat, Field(gt=0)],
4509
- Tuple[
4510
- Annotated[StrictFloat, Field(gt=0)],
4511
- Annotated[StrictFloat, Field(gt=0)]
4512
- ]
4513
- ] = None,
4514
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
4515
- _content_type: Optional[StrictStr] = None,
4516
- _headers: Optional[Dict[StrictStr, Any]] = None,
4517
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4518
- ) -> RESTResponseType:
4519
- """(Deprecated) Updates the name of a dataset.
4520
-
4521
-
4522
- :param id: The id of the dataset to update.
4523
- :type id: str
4524
- :param name: The new name of the dataset.
4525
- :type name: str
4526
- :param _request_timeout: timeout setting for this request. If one
4527
- number provided, it will be total request
4528
- timeout. It can also be a pair (tuple) of
4529
- (connection, read) timeouts.
4530
- :type _request_timeout: int, tuple(int, int), optional
4531
- :param _request_auth: set to override the auth_settings for an a single
4532
- request; this effectively ignores the
4533
- authentication in the spec for a single request.
4534
- :type _request_auth: dict, optional
4535
- :param _content_type: force content-type for the request.
4536
- :type _content_type: str, Optional
4537
- :param _headers: set to override the headers for a single
4538
- request; this effectively ignores the headers
4539
- in the spec for a single request.
4540
- :type _headers: dict, optional
4541
- :param _host_index: set to override the host_index for a single
4542
- request; this effectively ignores the host_index
4543
- in the spec for a single request.
4544
- :type _host_index: int, optional
4545
- :return: Returns the result object.
4546
- """ # noqa: E501
4547
- warnings.warn("POST /dataset/updatename is deprecated.", DeprecationWarning)
4548
-
4549
- _param = self._dataset_updatename_post_serialize(
4550
- id=id,
4551
- name=name,
4552
- _request_auth=_request_auth,
4553
- _content_type=_content_type,
4554
- _headers=_headers,
4555
- _host_index=_host_index
4556
- )
4557
-
4558
- _response_types_map: Dict[str, Optional[str]] = {
4559
- '200': None,
4560
- }
4561
- response_data = self.api_client.call_api(
4562
- *_param,
4563
- _request_timeout=_request_timeout
4564
- )
4565
- return response_data.response
4566
-
4567
-
4568
- def _dataset_updatename_post_serialize(
4569
- self,
4570
- id,
4571
- name,
4572
- _request_auth,
4573
- _content_type,
4574
- _headers,
4575
- _host_index,
4576
- ) -> RequestSerialized:
4577
-
4578
- _host = None
4579
-
4580
- _collection_formats: Dict[str, str] = {
4581
- }
4582
-
4583
- _path_params: Dict[str, str] = {}
4584
- _query_params: List[Tuple[str, str]] = []
4585
- _header_params: Dict[str, Optional[str]] = _headers or {}
4586
- _form_params: List[Tuple[str, str]] = []
4587
- _files: Dict[
4588
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4589
- ] = {}
4590
- _body_params: Optional[bytes] = None
4591
-
4592
- # process the path parameters
4593
- # process the query parameters
4594
- if id is not None:
4595
-
4596
- _query_params.append(('id', id))
4597
-
4598
- if name is not None:
4599
-
4600
- _query_params.append(('name', name))
4601
-
4602
- # process the header parameters
4603
- # process the form parameters
4604
- # process the body parameter
4605
-
4606
-
4607
-
4608
-
4609
- # authentication setting
4610
- _auth_settings: List[str] = [
4611
- 'bearer',
4612
- 'oauth2'
4613
- ]
4614
-
4615
- return self.api_client.param_serialize(
4616
- method='POST',
4617
- resource_path='/dataset/updatename',
4618
- path_params=_path_params,
4619
- query_params=_query_params,
4620
- header_params=_header_params,
4621
- body=_body_params,
4622
- post_params=_form_params,
4623
- files=_files,
4624
- auth_settings=_auth_settings,
4625
- collection_formats=_collection_formats,
4626
- _host=_host,
4627
- _request_auth=_request_auth
4628
- )
4629
-
4630
-
4631
-
4632
-
4633
- @validate_call
4634
- def dataset_uploadfilesfroms3_post(
4635
- self,
4636
- upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
4637
- _request_timeout: Union[
4638
- None,
4639
- Annotated[StrictFloat, Field(gt=0)],
4640
- Tuple[
4641
- Annotated[StrictFloat, Field(gt=0)],
4642
- Annotated[StrictFloat, Field(gt=0)]
4643
- ]
4644
- ] = None,
4645
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
4646
- _content_type: Optional[StrictStr] = None,
4647
- _headers: Optional[Dict[StrictStr, Any]] = None,
4648
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4649
- ) -> UploadFromS3Result:
4650
- """(Deprecated) Uploads files from an S3 bucket to a dataset.
4651
-
4652
- A new datapoint will be created for each file in the bucket.
4653
-
4654
- :param upload_files_from_s3_bucket_model: The body of the request.
4655
- :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
4656
- :param _request_timeout: timeout setting for this request. If one
4657
- number provided, it will be total request
4658
- timeout. It can also be a pair (tuple) of
4659
- (connection, read) timeouts.
4660
- :type _request_timeout: int, tuple(int, int), optional
4661
- :param _request_auth: set to override the auth_settings for an a single
4662
- request; this effectively ignores the
4663
- authentication in the spec for a single request.
4664
- :type _request_auth: dict, optional
4665
- :param _content_type: force content-type for the request.
4666
- :type _content_type: str, Optional
4667
- :param _headers: set to override the headers for a single
4668
- request; this effectively ignores the headers
4669
- in the spec for a single request.
4670
- :type _headers: dict, optional
4671
- :param _host_index: set to override the host_index for a single
4672
- request; this effectively ignores the host_index
4673
- in the spec for a single request.
4674
- :type _host_index: int, optional
4675
- :return: Returns the result object.
4676
- """ # noqa: E501
4677
- warnings.warn("POST /dataset/uploadfilesfroms3 is deprecated.", DeprecationWarning)
4678
-
4679
- _param = self._dataset_uploadfilesfroms3_post_serialize(
4680
- upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
4681
- _request_auth=_request_auth,
4682
- _content_type=_content_type,
4683
- _headers=_headers,
4684
- _host_index=_host_index
4685
- )
4686
-
4687
- _response_types_map: Dict[str, Optional[str]] = {
4688
- '200': "UploadFromS3Result",
4689
- }
4690
- response_data = self.api_client.call_api(
4691
- *_param,
4692
- _request_timeout=_request_timeout
4693
- )
4694
- response_data.read()
4695
- return self.api_client.response_deserialize(
4696
- response_data=response_data,
4697
- response_types_map=_response_types_map,
4698
- ).data
4699
-
4700
-
4701
- @validate_call
4702
- def dataset_uploadfilesfroms3_post_with_http_info(
4703
- self,
4704
- upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
4705
- _request_timeout: Union[
4706
- None,
4707
- Annotated[StrictFloat, Field(gt=0)],
4708
- Tuple[
4709
- Annotated[StrictFloat, Field(gt=0)],
4710
- Annotated[StrictFloat, Field(gt=0)]
4711
- ]
4712
- ] = None,
4713
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
4714
- _content_type: Optional[StrictStr] = None,
4715
- _headers: Optional[Dict[StrictStr, Any]] = None,
4716
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4717
- ) -> ApiResponse[UploadFromS3Result]:
4718
- """(Deprecated) Uploads files from an S3 bucket to a dataset.
4719
-
4720
- A new datapoint will be created for each file in the bucket.
4721
-
4722
- :param upload_files_from_s3_bucket_model: The body of the request.
4723
- :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
4724
- :param _request_timeout: timeout setting for this request. If one
4725
- number provided, it will be total request
4726
- timeout. It can also be a pair (tuple) of
4727
- (connection, read) timeouts.
4728
- :type _request_timeout: int, tuple(int, int), optional
4729
- :param _request_auth: set to override the auth_settings for an a single
4730
- request; this effectively ignores the
4731
- authentication in the spec for a single request.
4732
- :type _request_auth: dict, optional
4733
- :param _content_type: force content-type for the request.
4734
- :type _content_type: str, Optional
4735
- :param _headers: set to override the headers for a single
4736
- request; this effectively ignores the headers
4737
- in the spec for a single request.
4738
- :type _headers: dict, optional
4739
- :param _host_index: set to override the host_index for a single
4740
- request; this effectively ignores the host_index
4741
- in the spec for a single request.
4742
- :type _host_index: int, optional
4743
- :return: Returns the result object.
4744
- """ # noqa: E501
4745
- warnings.warn("POST /dataset/uploadfilesfroms3 is deprecated.", DeprecationWarning)
4746
-
4747
- _param = self._dataset_uploadfilesfroms3_post_serialize(
4748
- upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
4749
- _request_auth=_request_auth,
4750
- _content_type=_content_type,
4751
- _headers=_headers,
4752
- _host_index=_host_index
4753
- )
4754
-
4755
- _response_types_map: Dict[str, Optional[str]] = {
4756
- '200': "UploadFromS3Result",
4757
- }
4758
- response_data = self.api_client.call_api(
4759
- *_param,
4760
- _request_timeout=_request_timeout
4761
- )
4762
- response_data.read()
4763
- return self.api_client.response_deserialize(
4764
- response_data=response_data,
4765
- response_types_map=_response_types_map,
4766
- )
4767
-
4768
-
4769
- @validate_call
4770
- def dataset_uploadfilesfroms3_post_without_preload_content(
4771
- self,
4772
- upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
4773
- _request_timeout: Union[
4774
- None,
4775
- Annotated[StrictFloat, Field(gt=0)],
4776
- Tuple[
4777
- Annotated[StrictFloat, Field(gt=0)],
4778
- Annotated[StrictFloat, Field(gt=0)]
4779
- ]
4780
- ] = None,
4781
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
4782
- _content_type: Optional[StrictStr] = None,
4783
- _headers: Optional[Dict[StrictStr, Any]] = None,
4784
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4785
- ) -> RESTResponseType:
4786
- """(Deprecated) Uploads files from an S3 bucket to a dataset.
4787
-
4788
- A new datapoint will be created for each file in the bucket.
4789
-
4790
- :param upload_files_from_s3_bucket_model: The body of the request.
4791
- :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
4792
- :param _request_timeout: timeout setting for this request. If one
4793
- number provided, it will be total request
4794
- timeout. It can also be a pair (tuple) of
4795
- (connection, read) timeouts.
4796
- :type _request_timeout: int, tuple(int, int), optional
4797
- :param _request_auth: set to override the auth_settings for an a single
4798
- request; this effectively ignores the
4799
- authentication in the spec for a single request.
4800
- :type _request_auth: dict, optional
4801
- :param _content_type: force content-type for the request.
4802
- :type _content_type: str, Optional
4803
- :param _headers: set to override the headers for a single
4804
- request; this effectively ignores the headers
4805
- in the spec for a single request.
4806
- :type _headers: dict, optional
4807
- :param _host_index: set to override the host_index for a single
4808
- request; this effectively ignores the host_index
4809
- in the spec for a single request.
4810
- :type _host_index: int, optional
4811
- :return: Returns the result object.
4812
- """ # noqa: E501
4813
- warnings.warn("POST /dataset/uploadfilesfroms3 is deprecated.", DeprecationWarning)
4814
-
4815
- _param = self._dataset_uploadfilesfroms3_post_serialize(
4816
- upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
4817
- _request_auth=_request_auth,
4818
- _content_type=_content_type,
4819
- _headers=_headers,
4820
- _host_index=_host_index
4821
- )
4822
-
4823
- _response_types_map: Dict[str, Optional[str]] = {
4824
- '200': "UploadFromS3Result",
4825
- }
4826
- response_data = self.api_client.call_api(
4827
- *_param,
4828
- _request_timeout=_request_timeout
4829
- )
4830
- return response_data.response
4831
-
4832
-
4833
- def _dataset_uploadfilesfroms3_post_serialize(
4834
- self,
4835
- upload_files_from_s3_bucket_model,
4836
- _request_auth,
4837
- _content_type,
4838
- _headers,
4839
- _host_index,
4840
- ) -> RequestSerialized:
4841
-
4842
- _host = None
4843
-
4844
- _collection_formats: Dict[str, str] = {
4845
- }
4846
-
4847
- _path_params: Dict[str, str] = {}
4848
- _query_params: List[Tuple[str, str]] = []
4849
- _header_params: Dict[str, Optional[str]] = _headers or {}
4850
- _form_params: List[Tuple[str, str]] = []
4851
- _files: Dict[
4852
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4853
- ] = {}
4854
- _body_params: Optional[bytes] = None
4855
-
4856
- # process the path parameters
4857
- # process the query parameters
4858
- # process the header parameters
4859
- # process the form parameters
4860
- # process the body parameter
4861
- if upload_files_from_s3_bucket_model is not None:
4862
- _body_params = upload_files_from_s3_bucket_model
4863
-
4864
-
4865
- # set the HTTP header `Accept`
4866
- if 'Accept' not in _header_params:
4867
- _header_params['Accept'] = self.api_client.select_header_accept(
4868
- [
4869
- 'text/plain',
4870
- 'application/json',
4871
- 'text/json'
4872
- ]
4873
- )
4874
-
4875
- # set the HTTP header `Content-Type`
4876
- if _content_type:
4877
- _header_params['Content-Type'] = _content_type
4878
- else:
4879
- _default_content_type = (
4880
- self.api_client.select_header_content_type(
4881
- [
4882
- 'application/json',
4883
- 'text/json',
4884
- 'application/*+json'
4885
- ]
4886
- )
4887
- )
4888
- if _default_content_type is not None:
4889
- _header_params['Content-Type'] = _default_content_type
4890
-
4891
- # authentication setting
4892
- _auth_settings: List[str] = [
4893
- 'bearer',
4894
- 'oauth2'
4895
- ]
4896
-
4897
- return self.api_client.param_serialize(
4898
- method='POST',
4899
- resource_path='/dataset/uploadfilesfroms3',
1676
+ resource_path='/dataset/{datasetId}/progress',
4900
1677
  path_params=_path_params,
4901
1678
  query_params=_query_params,
4902
1679
  header_params=_header_params,