rapidata 2.23.2__py3-none-any.whl → 3.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of rapidata might be problematic. Click here for more details.

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