rapidata 1.2.0__py3-none-any.whl → 1.2.2__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 (67) hide show
  1. rapidata/__init__.py +4 -0
  2. rapidata/api_client/__init__.py +25 -5
  3. rapidata/api_client/api/dataset_api.py +388 -388
  4. rapidata/api_client/api/workflow_api.py +18 -1064
  5. rapidata/api_client/models/__init__.py +25 -5
  6. rapidata/api_client/models/add_validation_text_rapid_model.py +3 -3
  7. rapidata/api_client/models/classification_metadata_model.py +98 -0
  8. rapidata/api_client/models/compare_workflow_config.py +3 -3
  9. rapidata/api_client/models/compare_workflow_config_model.py +3 -3
  10. rapidata/api_client/models/compare_workflow_model1.py +4 -18
  11. rapidata/api_client/models/compare_workflow_model1_referee.py +154 -0
  12. rapidata/api_client/models/completed_rapid_model.py +3 -3
  13. rapidata/api_client/models/completed_rapid_model_asset.py +170 -0
  14. rapidata/api_client/models/count_metadata_model.py +98 -0
  15. rapidata/api_client/models/demographic_metadata_model.py +100 -0
  16. rapidata/api_client/models/file_asset_model.py +3 -3
  17. rapidata/api_client/models/file_asset_model1.py +108 -0
  18. rapidata/api_client/models/file_asset_model1_metadata_inner.py +252 -0
  19. rapidata/api_client/models/file_asset_model2.py +108 -0
  20. rapidata/api_client/models/file_asset_model_metadata_inner.py +252 -0
  21. rapidata/api_client/models/image_dimension_metadata_model.py +100 -0
  22. rapidata/api_client/models/in_progress_rapid_model.py +3 -3
  23. rapidata/api_client/models/location_metadata_model.py +100 -0
  24. rapidata/api_client/models/multi_asset_model.py +3 -3
  25. rapidata/api_client/models/multi_asset_model1.py +118 -0
  26. rapidata/api_client/models/multi_asset_model1_assets_inner.py +170 -0
  27. rapidata/api_client/models/multi_asset_model2.py +118 -0
  28. rapidata/api_client/models/not_started_rapid_model.py +3 -3
  29. rapidata/api_client/models/null_asset_model.py +3 -3
  30. rapidata/api_client/models/null_asset_model1.py +106 -0
  31. rapidata/api_client/models/null_asset_model2.py +106 -0
  32. rapidata/api_client/models/original_filename_metadata_model.py +98 -0
  33. rapidata/api_client/models/prompt_metadata_model.py +98 -0
  34. rapidata/api_client/models/query_validation_rapids_result_asset.py +40 -40
  35. rapidata/api_client/models/ranked_datapoint_model.py +3 -3
  36. rapidata/api_client/models/simple_workflow_config.py +6 -6
  37. rapidata/api_client/models/simple_workflow_config_model.py +3 -3
  38. rapidata/api_client/models/simple_workflow_model1.py +7 -21
  39. rapidata/api_client/models/simple_workflow_model1_blueprint.py +238 -0
  40. rapidata/api_client/models/text_asset_model.py +3 -3
  41. rapidata/api_client/models/text_asset_model1.py +108 -0
  42. rapidata/api_client/models/text_asset_model2.py +108 -0
  43. rapidata/api_client/models/text_metadata_model.py +98 -0
  44. rapidata/api_client/models/transcription_metadata_model.py +98 -0
  45. rapidata/api_client/models/translated_prompt_metadata_model.py +102 -0
  46. rapidata/api_client/models/translated_string.py +93 -0
  47. rapidata/api_client_README.md +26 -10
  48. rapidata/rapidata_client/__init__.py +10 -0
  49. rapidata/rapidata_client/assets/media_asset.py +1 -1
  50. rapidata/rapidata_client/assets/multi_asset.py +12 -3
  51. rapidata/rapidata_client/dataset/rapidata_dataset.py +43 -9
  52. rapidata/rapidata_client/dataset/rapidata_validation_set.py +26 -6
  53. rapidata/rapidata_client/dataset/validation_set_builder.py +1 -1
  54. rapidata/rapidata_client/filter/__init__.py +7 -0
  55. rapidata/rapidata_client/filter/age_filter.py +16 -0
  56. rapidata/rapidata_client/filter/base_filter.py +9 -0
  57. rapidata/rapidata_client/filter/campaign_filter.py +17 -0
  58. rapidata/rapidata_client/filter/country_filter.py +16 -0
  59. rapidata/rapidata_client/filter/gender_filter.py +16 -0
  60. rapidata/rapidata_client/filter/language_filter.py +18 -0
  61. rapidata/rapidata_client/filter/user_score_filter.py +19 -0
  62. rapidata/rapidata_client/order/rapidata_order_builder.py +141 -44
  63. rapidata/rapidata_client/selection/demographic_selection.py +3 -2
  64. {rapidata-1.2.0.dist-info → rapidata-1.2.2.dist-info}/METADATA +1 -1
  65. {rapidata-1.2.0.dist-info → rapidata-1.2.2.dist-info}/RECORD +67 -34
  66. {rapidata-1.2.0.dist-info → rapidata-1.2.2.dist-info}/LICENSE +0 -0
  67. {rapidata-1.2.0.dist-info → rapidata-1.2.2.dist-info}/WHEEL +0 -0
@@ -45,10 +45,9 @@ class DatasetApi:
45
45
 
46
46
 
47
47
  @validate_call
48
- def dataset_create_datapoint_post(
48
+ def dataset_creat_text_datapoint_post(
49
49
  self,
50
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
51
- model: Optional[DatapointMetadataModel] = None,
50
+ upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
52
51
  _request_timeout: Union[
53
52
  None,
54
53
  Annotated[StrictFloat, Field(gt=0)],
@@ -62,14 +61,12 @@ class DatasetApi:
62
61
  _headers: Optional[Dict[StrictStr, Any]] = None,
63
62
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
64
63
  ) -> UploadDatapointsResult:
65
- """Creates a single datapoint.
64
+ """Creates new datapoints from text sources.
66
65
 
67
- If multiple files are uploaded, a multi asset datapoint will be created.
66
+ If multiple text sources are uploaded, a new datapoint will be created for each text source.
68
67
 
69
- :param files: The image files to upload.
70
- :type files: List[bytearray]
71
- :param model:
72
- :type model: DatapointMetadataModel
68
+ :param upload_text_sources_to_dataset_model: The body of the request.
69
+ :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
73
70
  :param _request_timeout: timeout setting for this request. If one
74
71
  number provided, it will be total request
75
72
  timeout. It can also be a pair (tuple) of
@@ -92,9 +89,8 @@ class DatasetApi:
92
89
  :return: Returns the result object.
93
90
  """ # noqa: E501
94
91
 
95
- _param = self._dataset_create_datapoint_post_serialize(
96
- files=files,
97
- model=model,
92
+ _param = self._dataset_creat_text_datapoint_post_serialize(
93
+ upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
98
94
  _request_auth=_request_auth,
99
95
  _content_type=_content_type,
100
96
  _headers=_headers,
@@ -116,10 +112,9 @@ class DatasetApi:
116
112
 
117
113
 
118
114
  @validate_call
119
- def dataset_create_datapoint_post_with_http_info(
115
+ def dataset_creat_text_datapoint_post_with_http_info(
120
116
  self,
121
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
122
- model: Optional[DatapointMetadataModel] = None,
117
+ upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
123
118
  _request_timeout: Union[
124
119
  None,
125
120
  Annotated[StrictFloat, Field(gt=0)],
@@ -133,14 +128,12 @@ class DatasetApi:
133
128
  _headers: Optional[Dict[StrictStr, Any]] = None,
134
129
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
135
130
  ) -> ApiResponse[UploadDatapointsResult]:
136
- """Creates a single datapoint.
131
+ """Creates new datapoints from text sources.
137
132
 
138
- If multiple files are uploaded, a multi asset datapoint will be created.
133
+ If multiple text sources are uploaded, a new datapoint will be created for each text source.
139
134
 
140
- :param files: The image files to upload.
141
- :type files: List[bytearray]
142
- :param model:
143
- :type model: DatapointMetadataModel
135
+ :param upload_text_sources_to_dataset_model: The body of the request.
136
+ :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
144
137
  :param _request_timeout: timeout setting for this request. If one
145
138
  number provided, it will be total request
146
139
  timeout. It can also be a pair (tuple) of
@@ -163,9 +156,8 @@ class DatasetApi:
163
156
  :return: Returns the result object.
164
157
  """ # noqa: E501
165
158
 
166
- _param = self._dataset_create_datapoint_post_serialize(
167
- files=files,
168
- model=model,
159
+ _param = self._dataset_creat_text_datapoint_post_serialize(
160
+ upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
169
161
  _request_auth=_request_auth,
170
162
  _content_type=_content_type,
171
163
  _headers=_headers,
@@ -187,10 +179,9 @@ class DatasetApi:
187
179
 
188
180
 
189
181
  @validate_call
190
- def dataset_create_datapoint_post_without_preload_content(
182
+ def dataset_creat_text_datapoint_post_without_preload_content(
191
183
  self,
192
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
193
- model: Optional[DatapointMetadataModel] = None,
184
+ upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
194
185
  _request_timeout: Union[
195
186
  None,
196
187
  Annotated[StrictFloat, Field(gt=0)],
@@ -204,14 +195,12 @@ class DatasetApi:
204
195
  _headers: Optional[Dict[StrictStr, Any]] = None,
205
196
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
206
197
  ) -> RESTResponseType:
207
- """Creates a single datapoint.
198
+ """Creates new datapoints from text sources.
208
199
 
209
- If multiple files are uploaded, a multi asset datapoint will be created.
200
+ If multiple text sources are uploaded, a new datapoint will be created for each text source.
210
201
 
211
- :param files: The image files to upload.
212
- :type files: List[bytearray]
213
- :param model:
214
- :type model: DatapointMetadataModel
202
+ :param upload_text_sources_to_dataset_model: The body of the request.
203
+ :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
215
204
  :param _request_timeout: timeout setting for this request. If one
216
205
  number provided, it will be total request
217
206
  timeout. It can also be a pair (tuple) of
@@ -234,9 +223,8 @@ class DatasetApi:
234
223
  :return: Returns the result object.
235
224
  """ # noqa: E501
236
225
 
237
- _param = self._dataset_create_datapoint_post_serialize(
238
- files=files,
239
- model=model,
226
+ _param = self._dataset_creat_text_datapoint_post_serialize(
227
+ upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
240
228
  _request_auth=_request_auth,
241
229
  _content_type=_content_type,
242
230
  _headers=_headers,
@@ -253,10 +241,9 @@ class DatasetApi:
253
241
  return response_data.response
254
242
 
255
243
 
256
- def _dataset_create_datapoint_post_serialize(
244
+ def _dataset_creat_text_datapoint_post_serialize(
257
245
  self,
258
- files,
259
- model,
246
+ upload_text_sources_to_dataset_model,
260
247
  _request_auth,
261
248
  _content_type,
262
249
  _headers,
@@ -266,7 +253,6 @@ class DatasetApi:
266
253
  _host = None
267
254
 
268
255
  _collection_formats: Dict[str, str] = {
269
- 'files': 'multi',
270
256
  }
271
257
 
272
258
  _path_params: Dict[str, str] = {}
@@ -282,11 +268,9 @@ class DatasetApi:
282
268
  # process the query parameters
283
269
  # process the header parameters
284
270
  # process the form parameters
285
- if files is not None:
286
- _files['files'] = files
287
- if model is not None:
288
- _form_params.append(('model', model))
289
271
  # process the body parameter
272
+ if upload_text_sources_to_dataset_model is not None:
273
+ _body_params = upload_text_sources_to_dataset_model
290
274
 
291
275
 
292
276
  # set the HTTP header `Accept`
@@ -306,7 +290,9 @@ class DatasetApi:
306
290
  _default_content_type = (
307
291
  self.api_client.select_header_content_type(
308
292
  [
309
- 'multipart/form-data'
293
+ 'application/json',
294
+ 'text/json',
295
+ 'application/*+json'
310
296
  ]
311
297
  )
312
298
  )
@@ -321,7 +307,7 @@ class DatasetApi:
321
307
 
322
308
  return self.api_client.param_serialize(
323
309
  method='POST',
324
- resource_path='/Dataset/CreateDatapoint',
310
+ resource_path='/Dataset/CreatTextDatapoint',
325
311
  path_params=_path_params,
326
312
  query_params=_query_params,
327
313
  header_params=_header_params,
@@ -338,9 +324,10 @@ class DatasetApi:
338
324
 
339
325
 
340
326
  @validate_call
341
- def dataset_get_by_id_get(
327
+ def dataset_create_datapoint_post(
342
328
  self,
343
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
329
+ files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
330
+ model: Optional[DatapointMetadataModel] = None,
344
331
  _request_timeout: Union[
345
332
  None,
346
333
  Annotated[StrictFloat, Field(gt=0)],
@@ -353,12 +340,15 @@ class DatasetApi:
353
340
  _content_type: Optional[StrictStr] = None,
354
341
  _headers: Optional[Dict[StrictStr, Any]] = None,
355
342
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
356
- ) -> GetDatasetByIdResult:
357
- """Gets a dataset by its id.
343
+ ) -> UploadDatapointsResult:
344
+ """Creates a single datapoint.
358
345
 
346
+ If multiple files are uploaded, a multi asset datapoint will be created.
359
347
 
360
- :param id: The id of the dataset to get.
361
- :type id: str
348
+ :param files: The image files to upload.
349
+ :type files: List[bytearray]
350
+ :param model:
351
+ :type model: DatapointMetadataModel
362
352
  :param _request_timeout: timeout setting for this request. If one
363
353
  number provided, it will be total request
364
354
  timeout. It can also be a pair (tuple) of
@@ -381,8 +371,9 @@ class DatasetApi:
381
371
  :return: Returns the result object.
382
372
  """ # noqa: E501
383
373
 
384
- _param = self._dataset_get_by_id_get_serialize(
385
- id=id,
374
+ _param = self._dataset_create_datapoint_post_serialize(
375
+ files=files,
376
+ model=model,
386
377
  _request_auth=_request_auth,
387
378
  _content_type=_content_type,
388
379
  _headers=_headers,
@@ -390,7 +381,7 @@ class DatasetApi:
390
381
  )
391
382
 
392
383
  _response_types_map: Dict[str, Optional[str]] = {
393
- '200': "GetDatasetByIdResult",
384
+ '200': "UploadDatapointsResult",
394
385
  }
395
386
  response_data = self.api_client.call_api(
396
387
  *_param,
@@ -404,9 +395,10 @@ class DatasetApi:
404
395
 
405
396
 
406
397
  @validate_call
407
- def dataset_get_by_id_get_with_http_info(
398
+ def dataset_create_datapoint_post_with_http_info(
408
399
  self,
409
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
400
+ files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
401
+ model: Optional[DatapointMetadataModel] = None,
410
402
  _request_timeout: Union[
411
403
  None,
412
404
  Annotated[StrictFloat, Field(gt=0)],
@@ -419,12 +411,15 @@ class DatasetApi:
419
411
  _content_type: Optional[StrictStr] = None,
420
412
  _headers: Optional[Dict[StrictStr, Any]] = None,
421
413
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
422
- ) -> ApiResponse[GetDatasetByIdResult]:
423
- """Gets a dataset by its id.
414
+ ) -> ApiResponse[UploadDatapointsResult]:
415
+ """Creates a single datapoint.
424
416
 
417
+ If multiple files are uploaded, a multi asset datapoint will be created.
425
418
 
426
- :param id: The id of the dataset to get.
427
- :type id: str
419
+ :param files: The image files to upload.
420
+ :type files: List[bytearray]
421
+ :param model:
422
+ :type model: DatapointMetadataModel
428
423
  :param _request_timeout: timeout setting for this request. If one
429
424
  number provided, it will be total request
430
425
  timeout. It can also be a pair (tuple) of
@@ -447,8 +442,9 @@ class DatasetApi:
447
442
  :return: Returns the result object.
448
443
  """ # noqa: E501
449
444
 
450
- _param = self._dataset_get_by_id_get_serialize(
451
- id=id,
445
+ _param = self._dataset_create_datapoint_post_serialize(
446
+ files=files,
447
+ model=model,
452
448
  _request_auth=_request_auth,
453
449
  _content_type=_content_type,
454
450
  _headers=_headers,
@@ -456,7 +452,7 @@ class DatasetApi:
456
452
  )
457
453
 
458
454
  _response_types_map: Dict[str, Optional[str]] = {
459
- '200': "GetDatasetByIdResult",
455
+ '200': "UploadDatapointsResult",
460
456
  }
461
457
  response_data = self.api_client.call_api(
462
458
  *_param,
@@ -470,9 +466,10 @@ class DatasetApi:
470
466
 
471
467
 
472
468
  @validate_call
473
- def dataset_get_by_id_get_without_preload_content(
469
+ def dataset_create_datapoint_post_without_preload_content(
474
470
  self,
475
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
471
+ files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
472
+ model: Optional[DatapointMetadataModel] = None,
476
473
  _request_timeout: Union[
477
474
  None,
478
475
  Annotated[StrictFloat, Field(gt=0)],
@@ -486,11 +483,14 @@ class DatasetApi:
486
483
  _headers: Optional[Dict[StrictStr, Any]] = None,
487
484
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
488
485
  ) -> RESTResponseType:
489
- """Gets a dataset by its id.
486
+ """Creates a single datapoint.
490
487
 
488
+ If multiple files are uploaded, a multi asset datapoint will be created.
491
489
 
492
- :param id: The id of the dataset to get.
493
- :type id: str
490
+ :param files: The image files to upload.
491
+ :type files: List[bytearray]
492
+ :param model:
493
+ :type model: DatapointMetadataModel
494
494
  :param _request_timeout: timeout setting for this request. If one
495
495
  number provided, it will be total request
496
496
  timeout. It can also be a pair (tuple) of
@@ -513,8 +513,9 @@ class DatasetApi:
513
513
  :return: Returns the result object.
514
514
  """ # noqa: E501
515
515
 
516
- _param = self._dataset_get_by_id_get_serialize(
517
- id=id,
516
+ _param = self._dataset_create_datapoint_post_serialize(
517
+ files=files,
518
+ model=model,
518
519
  _request_auth=_request_auth,
519
520
  _content_type=_content_type,
520
521
  _headers=_headers,
@@ -522,7 +523,7 @@ class DatasetApi:
522
523
  )
523
524
 
524
525
  _response_types_map: Dict[str, Optional[str]] = {
525
- '200': "GetDatasetByIdResult",
526
+ '200': "UploadDatapointsResult",
526
527
  }
527
528
  response_data = self.api_client.call_api(
528
529
  *_param,
@@ -531,9 +532,10 @@ class DatasetApi:
531
532
  return response_data.response
532
533
 
533
534
 
534
- def _dataset_get_by_id_get_serialize(
535
+ def _dataset_create_datapoint_post_serialize(
535
536
  self,
536
- id,
537
+ files,
538
+ model,
537
539
  _request_auth,
538
540
  _content_type,
539
541
  _headers,
@@ -543,6 +545,7 @@ class DatasetApi:
543
545
  _host = None
544
546
 
545
547
  _collection_formats: Dict[str, str] = {
548
+ 'files': 'multi',
546
549
  }
547
550
 
548
551
  _path_params: Dict[str, str] = {}
@@ -556,12 +559,12 @@ class DatasetApi:
556
559
 
557
560
  # process the path parameters
558
561
  # process the query parameters
559
- if id is not None:
560
-
561
- _query_params.append(('id', id))
562
-
563
562
  # process the header parameters
564
563
  # process the form parameters
564
+ if files is not None:
565
+ _files['files'] = files
566
+ if model is not None:
567
+ _form_params.append(('model', model))
565
568
  # process the body parameter
566
569
 
567
570
 
@@ -575,6 +578,19 @@ class DatasetApi:
575
578
  ]
576
579
  )
577
580
 
581
+ # set the HTTP header `Content-Type`
582
+ if _content_type:
583
+ _header_params['Content-Type'] = _content_type
584
+ else:
585
+ _default_content_type = (
586
+ self.api_client.select_header_content_type(
587
+ [
588
+ 'multipart/form-data'
589
+ ]
590
+ )
591
+ )
592
+ if _default_content_type is not None:
593
+ _header_params['Content-Type'] = _default_content_type
578
594
 
579
595
  # authentication setting
580
596
  _auth_settings: List[str] = [
@@ -583,8 +599,8 @@ class DatasetApi:
583
599
  ]
584
600
 
585
601
  return self.api_client.param_serialize(
586
- method='GET',
587
- resource_path='/Dataset/GetById',
602
+ method='POST',
603
+ resource_path='/Dataset/CreateDatapoint',
588
604
  path_params=_path_params,
589
605
  query_params=_query_params,
590
606
  header_params=_header_params,
@@ -601,10 +617,9 @@ class DatasetApi:
601
617
 
602
618
 
603
619
  @validate_call
604
- def dataset_import_post(
620
+ def dataset_get_by_id_get(
605
621
  self,
606
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
607
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
622
+ id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
608
623
  _request_timeout: Union[
609
624
  None,
610
625
  Annotated[StrictFloat, Field(gt=0)],
@@ -617,14 +632,12 @@ class DatasetApi:
617
632
  _content_type: Optional[StrictStr] = None,
618
633
  _headers: Optional[Dict[StrictStr, Any]] = None,
619
634
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
620
- ) -> ImportFromFileResult:
621
- """Imports datapoints from a csv file.
635
+ ) -> GetDatasetByIdResult:
636
+ """Gets a dataset by its id.
622
637
 
623
638
 
624
- :param dataset_id: The id of the dataset to import the datapoints to.
625
- :type dataset_id: str
626
- :param file: The csv file to import.
627
- :type file: bytearray
639
+ :param id: The id of the dataset to get.
640
+ :type id: str
628
641
  :param _request_timeout: timeout setting for this request. If one
629
642
  number provided, it will be total request
630
643
  timeout. It can also be a pair (tuple) of
@@ -647,9 +660,8 @@ class DatasetApi:
647
660
  :return: Returns the result object.
648
661
  """ # noqa: E501
649
662
 
650
- _param = self._dataset_import_post_serialize(
651
- dataset_id=dataset_id,
652
- file=file,
663
+ _param = self._dataset_get_by_id_get_serialize(
664
+ id=id,
653
665
  _request_auth=_request_auth,
654
666
  _content_type=_content_type,
655
667
  _headers=_headers,
@@ -657,7 +669,7 @@ class DatasetApi:
657
669
  )
658
670
 
659
671
  _response_types_map: Dict[str, Optional[str]] = {
660
- '200': "ImportFromFileResult",
672
+ '200': "GetDatasetByIdResult",
661
673
  }
662
674
  response_data = self.api_client.call_api(
663
675
  *_param,
@@ -671,10 +683,9 @@ class DatasetApi:
671
683
 
672
684
 
673
685
  @validate_call
674
- def dataset_import_post_with_http_info(
686
+ def dataset_get_by_id_get_with_http_info(
675
687
  self,
676
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
677
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
688
+ id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
678
689
  _request_timeout: Union[
679
690
  None,
680
691
  Annotated[StrictFloat, Field(gt=0)],
@@ -687,14 +698,12 @@ class DatasetApi:
687
698
  _content_type: Optional[StrictStr] = None,
688
699
  _headers: Optional[Dict[StrictStr, Any]] = None,
689
700
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
690
- ) -> ApiResponse[ImportFromFileResult]:
691
- """Imports datapoints from a csv file.
701
+ ) -> ApiResponse[GetDatasetByIdResult]:
702
+ """Gets a dataset by its id.
692
703
 
693
704
 
694
- :param dataset_id: The id of the dataset to import the datapoints to.
695
- :type dataset_id: str
696
- :param file: The csv file to import.
697
- :type file: bytearray
705
+ :param id: The id of the dataset to get.
706
+ :type id: str
698
707
  :param _request_timeout: timeout setting for this request. If one
699
708
  number provided, it will be total request
700
709
  timeout. It can also be a pair (tuple) of
@@ -717,9 +726,8 @@ class DatasetApi:
717
726
  :return: Returns the result object.
718
727
  """ # noqa: E501
719
728
 
720
- _param = self._dataset_import_post_serialize(
721
- dataset_id=dataset_id,
722
- file=file,
729
+ _param = self._dataset_get_by_id_get_serialize(
730
+ id=id,
723
731
  _request_auth=_request_auth,
724
732
  _content_type=_content_type,
725
733
  _headers=_headers,
@@ -727,7 +735,7 @@ class DatasetApi:
727
735
  )
728
736
 
729
737
  _response_types_map: Dict[str, Optional[str]] = {
730
- '200': "ImportFromFileResult",
738
+ '200': "GetDatasetByIdResult",
731
739
  }
732
740
  response_data = self.api_client.call_api(
733
741
  *_param,
@@ -741,10 +749,9 @@ class DatasetApi:
741
749
 
742
750
 
743
751
  @validate_call
744
- def dataset_import_post_without_preload_content(
752
+ def dataset_get_by_id_get_without_preload_content(
745
753
  self,
746
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
747
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
754
+ id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
748
755
  _request_timeout: Union[
749
756
  None,
750
757
  Annotated[StrictFloat, Field(gt=0)],
@@ -758,13 +765,11 @@ class DatasetApi:
758
765
  _headers: Optional[Dict[StrictStr, Any]] = None,
759
766
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
760
767
  ) -> RESTResponseType:
761
- """Imports datapoints from a csv file.
768
+ """Gets a dataset by its id.
762
769
 
763
770
 
764
- :param dataset_id: The id of the dataset to import the datapoints to.
765
- :type dataset_id: str
766
- :param file: The csv file to import.
767
- :type file: bytearray
771
+ :param id: The id of the dataset to get.
772
+ :type id: str
768
773
  :param _request_timeout: timeout setting for this request. If one
769
774
  number provided, it will be total request
770
775
  timeout. It can also be a pair (tuple) of
@@ -787,9 +792,8 @@ class DatasetApi:
787
792
  :return: Returns the result object.
788
793
  """ # noqa: E501
789
794
 
790
- _param = self._dataset_import_post_serialize(
791
- dataset_id=dataset_id,
792
- file=file,
795
+ _param = self._dataset_get_by_id_get_serialize(
796
+ id=id,
793
797
  _request_auth=_request_auth,
794
798
  _content_type=_content_type,
795
799
  _headers=_headers,
@@ -797,7 +801,7 @@ class DatasetApi:
797
801
  )
798
802
 
799
803
  _response_types_map: Dict[str, Optional[str]] = {
800
- '200': "ImportFromFileResult",
804
+ '200': "GetDatasetByIdResult",
801
805
  }
802
806
  response_data = self.api_client.call_api(
803
807
  *_param,
@@ -806,10 +810,9 @@ class DatasetApi:
806
810
  return response_data.response
807
811
 
808
812
 
809
- def _dataset_import_post_serialize(
813
+ def _dataset_get_by_id_get_serialize(
810
814
  self,
811
- dataset_id,
812
- file,
815
+ id,
813
816
  _request_auth,
814
817
  _content_type,
815
818
  _headers,
@@ -832,14 +835,12 @@ class DatasetApi:
832
835
 
833
836
  # process the path parameters
834
837
  # process the query parameters
835
- if dataset_id is not None:
838
+ if id is not None:
836
839
 
837
- _query_params.append(('datasetId', dataset_id))
840
+ _query_params.append(('id', id))
838
841
 
839
842
  # process the header parameters
840
843
  # process the form parameters
841
- if file is not None:
842
- _files['file'] = file
843
844
  # process the body parameter
844
845
 
845
846
 
@@ -853,19 +854,6 @@ class DatasetApi:
853
854
  ]
854
855
  )
855
856
 
856
- # set the HTTP header `Content-Type`
857
- if _content_type:
858
- _header_params['Content-Type'] = _content_type
859
- else:
860
- _default_content_type = (
861
- self.api_client.select_header_content_type(
862
- [
863
- 'multipart/form-data'
864
- ]
865
- )
866
- )
867
- if _default_content_type is not None:
868
- _header_params['Content-Type'] = _default_content_type
869
857
 
870
858
  # authentication setting
871
859
  _auth_settings: List[str] = [
@@ -874,8 +862,8 @@ class DatasetApi:
874
862
  ]
875
863
 
876
864
  return self.api_client.param_serialize(
877
- method='POST',
878
- resource_path='/Dataset/Import',
865
+ method='GET',
866
+ resource_path='/Dataset/GetById',
879
867
  path_params=_path_params,
880
868
  query_params=_query_params,
881
869
  header_params=_header_params,
@@ -892,10 +880,10 @@ class DatasetApi:
892
880
 
893
881
 
894
882
  @validate_call
895
- def dataset_update_name_post(
883
+ def dataset_import_post(
896
884
  self,
897
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
898
- name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
885
+ dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
886
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
899
887
  _request_timeout: Union[
900
888
  None,
901
889
  Annotated[StrictFloat, Field(gt=0)],
@@ -908,14 +896,14 @@ class DatasetApi:
908
896
  _content_type: Optional[StrictStr] = None,
909
897
  _headers: Optional[Dict[StrictStr, Any]] = None,
910
898
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
911
- ) -> None:
912
- """Updates the name of a dataset.
899
+ ) -> ImportFromFileResult:
900
+ """Imports datapoints from a csv file.
913
901
 
914
902
 
915
- :param id: The id of the dataset to update.
916
- :type id: str
917
- :param name: The new name of the dataset.
918
- :type name: str
903
+ :param dataset_id: The id of the dataset to import the datapoints to.
904
+ :type dataset_id: str
905
+ :param file: The csv file to import.
906
+ :type file: bytearray
919
907
  :param _request_timeout: timeout setting for this request. If one
920
908
  number provided, it will be total request
921
909
  timeout. It can also be a pair (tuple) of
@@ -938,9 +926,9 @@ class DatasetApi:
938
926
  :return: Returns the result object.
939
927
  """ # noqa: E501
940
928
 
941
- _param = self._dataset_update_name_post_serialize(
942
- id=id,
943
- name=name,
929
+ _param = self._dataset_import_post_serialize(
930
+ dataset_id=dataset_id,
931
+ file=file,
944
932
  _request_auth=_request_auth,
945
933
  _content_type=_content_type,
946
934
  _headers=_headers,
@@ -948,7 +936,7 @@ class DatasetApi:
948
936
  )
949
937
 
950
938
  _response_types_map: Dict[str, Optional[str]] = {
951
- '200': None,
939
+ '200': "ImportFromFileResult",
952
940
  }
953
941
  response_data = self.api_client.call_api(
954
942
  *_param,
@@ -962,10 +950,10 @@ class DatasetApi:
962
950
 
963
951
 
964
952
  @validate_call
965
- def dataset_update_name_post_with_http_info(
953
+ def dataset_import_post_with_http_info(
966
954
  self,
967
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
968
- name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
955
+ dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
956
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
969
957
  _request_timeout: Union[
970
958
  None,
971
959
  Annotated[StrictFloat, Field(gt=0)],
@@ -978,14 +966,14 @@ class DatasetApi:
978
966
  _content_type: Optional[StrictStr] = None,
979
967
  _headers: Optional[Dict[StrictStr, Any]] = None,
980
968
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
981
- ) -> ApiResponse[None]:
982
- """Updates the name of a dataset.
969
+ ) -> ApiResponse[ImportFromFileResult]:
970
+ """Imports datapoints from a csv file.
983
971
 
984
972
 
985
- :param id: The id of the dataset to update.
986
- :type id: str
987
- :param name: The new name of the dataset.
988
- :type name: str
973
+ :param dataset_id: The id of the dataset to import the datapoints to.
974
+ :type dataset_id: str
975
+ :param file: The csv file to import.
976
+ :type file: bytearray
989
977
  :param _request_timeout: timeout setting for this request. If one
990
978
  number provided, it will be total request
991
979
  timeout. It can also be a pair (tuple) of
@@ -1008,9 +996,9 @@ class DatasetApi:
1008
996
  :return: Returns the result object.
1009
997
  """ # noqa: E501
1010
998
 
1011
- _param = self._dataset_update_name_post_serialize(
1012
- id=id,
1013
- name=name,
999
+ _param = self._dataset_import_post_serialize(
1000
+ dataset_id=dataset_id,
1001
+ file=file,
1014
1002
  _request_auth=_request_auth,
1015
1003
  _content_type=_content_type,
1016
1004
  _headers=_headers,
@@ -1018,7 +1006,7 @@ class DatasetApi:
1018
1006
  )
1019
1007
 
1020
1008
  _response_types_map: Dict[str, Optional[str]] = {
1021
- '200': None,
1009
+ '200': "ImportFromFileResult",
1022
1010
  }
1023
1011
  response_data = self.api_client.call_api(
1024
1012
  *_param,
@@ -1032,10 +1020,10 @@ class DatasetApi:
1032
1020
 
1033
1021
 
1034
1022
  @validate_call
1035
- def dataset_update_name_post_without_preload_content(
1023
+ def dataset_import_post_without_preload_content(
1036
1024
  self,
1037
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
1038
- name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
1025
+ dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
1026
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
1039
1027
  _request_timeout: Union[
1040
1028
  None,
1041
1029
  Annotated[StrictFloat, Field(gt=0)],
@@ -1049,13 +1037,13 @@ class DatasetApi:
1049
1037
  _headers: Optional[Dict[StrictStr, Any]] = None,
1050
1038
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1051
1039
  ) -> RESTResponseType:
1052
- """Updates the name of a dataset.
1040
+ """Imports datapoints from a csv file.
1053
1041
 
1054
1042
 
1055
- :param id: The id of the dataset to update.
1056
- :type id: str
1057
- :param name: The new name of the dataset.
1058
- :type name: str
1043
+ :param dataset_id: The id of the dataset to import the datapoints to.
1044
+ :type dataset_id: str
1045
+ :param file: The csv file to import.
1046
+ :type file: bytearray
1059
1047
  :param _request_timeout: timeout setting for this request. If one
1060
1048
  number provided, it will be total request
1061
1049
  timeout. It can also be a pair (tuple) of
@@ -1078,9 +1066,9 @@ class DatasetApi:
1078
1066
  :return: Returns the result object.
1079
1067
  """ # noqa: E501
1080
1068
 
1081
- _param = self._dataset_update_name_post_serialize(
1082
- id=id,
1083
- name=name,
1069
+ _param = self._dataset_import_post_serialize(
1070
+ dataset_id=dataset_id,
1071
+ file=file,
1084
1072
  _request_auth=_request_auth,
1085
1073
  _content_type=_content_type,
1086
1074
  _headers=_headers,
@@ -1088,7 +1076,7 @@ class DatasetApi:
1088
1076
  )
1089
1077
 
1090
1078
  _response_types_map: Dict[str, Optional[str]] = {
1091
- '200': None,
1079
+ '200': "ImportFromFileResult",
1092
1080
  }
1093
1081
  response_data = self.api_client.call_api(
1094
1082
  *_param,
@@ -1097,10 +1085,10 @@ class DatasetApi:
1097
1085
  return response_data.response
1098
1086
 
1099
1087
 
1100
- def _dataset_update_name_post_serialize(
1088
+ def _dataset_import_post_serialize(
1101
1089
  self,
1102
- id,
1103
- name,
1090
+ dataset_id,
1091
+ file,
1104
1092
  _request_auth,
1105
1093
  _content_type,
1106
1094
  _headers,
@@ -1123,20 +1111,40 @@ class DatasetApi:
1123
1111
 
1124
1112
  # process the path parameters
1125
1113
  # process the query parameters
1126
- if id is not None:
1127
-
1128
- _query_params.append(('id', id))
1129
-
1130
- if name is not None:
1114
+ if dataset_id is not None:
1131
1115
 
1132
- _query_params.append(('name', name))
1116
+ _query_params.append(('datasetId', dataset_id))
1133
1117
 
1134
1118
  # process the header parameters
1135
1119
  # process the form parameters
1120
+ if file is not None:
1121
+ _files['file'] = file
1136
1122
  # process the body parameter
1137
1123
 
1138
1124
 
1125
+ # set the HTTP header `Accept`
1126
+ if 'Accept' not in _header_params:
1127
+ _header_params['Accept'] = self.api_client.select_header_accept(
1128
+ [
1129
+ 'text/plain',
1130
+ 'application/json',
1131
+ 'text/json'
1132
+ ]
1133
+ )
1139
1134
 
1135
+ # set the HTTP header `Content-Type`
1136
+ if _content_type:
1137
+ _header_params['Content-Type'] = _content_type
1138
+ else:
1139
+ _default_content_type = (
1140
+ self.api_client.select_header_content_type(
1141
+ [
1142
+ 'multipart/form-data'
1143
+ ]
1144
+ )
1145
+ )
1146
+ if _default_content_type is not None:
1147
+ _header_params['Content-Type'] = _default_content_type
1140
1148
 
1141
1149
  # authentication setting
1142
1150
  _auth_settings: List[str] = [
@@ -1146,7 +1154,7 @@ class DatasetApi:
1146
1154
 
1147
1155
  return self.api_client.param_serialize(
1148
1156
  method='POST',
1149
- resource_path='/Dataset/UpdateName',
1157
+ resource_path='/Dataset/Import',
1150
1158
  path_params=_path_params,
1151
1159
  query_params=_query_params,
1152
1160
  header_params=_header_params,
@@ -1163,10 +1171,10 @@ class DatasetApi:
1163
1171
 
1164
1172
 
1165
1173
  @validate_call
1166
- def dataset_upload_datapoint_post(
1174
+ def dataset_update_name_post(
1167
1175
  self,
1168
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1169
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
1176
+ id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
1177
+ name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
1170
1178
  _request_timeout: Union[
1171
1179
  None,
1172
1180
  Annotated[StrictFloat, Field(gt=0)],
@@ -1179,14 +1187,14 @@ class DatasetApi:
1179
1187
  _content_type: Optional[StrictStr] = None,
1180
1188
  _headers: Optional[Dict[StrictStr, Any]] = None,
1181
1189
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1182
- ) -> UploadDatapointsResult:
1183
- """Creates a new multi asset datapoint.
1190
+ ) -> None:
1191
+ """Updates the name of a dataset.
1184
1192
 
1185
1193
 
1186
- :param dataset_id: The id of the dataset to upload the datapoint to.
1187
- :type dataset_id: str
1188
- :param files: The image files to create the asset from.
1189
- :type files: List[bytearray]
1194
+ :param id: The id of the dataset to update.
1195
+ :type id: str
1196
+ :param name: The new name of the dataset.
1197
+ :type name: str
1190
1198
  :param _request_timeout: timeout setting for this request. If one
1191
1199
  number provided, it will be total request
1192
1200
  timeout. It can also be a pair (tuple) of
@@ -1209,9 +1217,9 @@ class DatasetApi:
1209
1217
  :return: Returns the result object.
1210
1218
  """ # noqa: E501
1211
1219
 
1212
- _param = self._dataset_upload_datapoint_post_serialize(
1213
- dataset_id=dataset_id,
1214
- files=files,
1220
+ _param = self._dataset_update_name_post_serialize(
1221
+ id=id,
1222
+ name=name,
1215
1223
  _request_auth=_request_auth,
1216
1224
  _content_type=_content_type,
1217
1225
  _headers=_headers,
@@ -1219,7 +1227,7 @@ class DatasetApi:
1219
1227
  )
1220
1228
 
1221
1229
  _response_types_map: Dict[str, Optional[str]] = {
1222
- '200': "UploadDatapointsResult",
1230
+ '200': None,
1223
1231
  }
1224
1232
  response_data = self.api_client.call_api(
1225
1233
  *_param,
@@ -1233,10 +1241,10 @@ class DatasetApi:
1233
1241
 
1234
1242
 
1235
1243
  @validate_call
1236
- def dataset_upload_datapoint_post_with_http_info(
1244
+ def dataset_update_name_post_with_http_info(
1237
1245
  self,
1238
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1239
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
1246
+ id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
1247
+ name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
1240
1248
  _request_timeout: Union[
1241
1249
  None,
1242
1250
  Annotated[StrictFloat, Field(gt=0)],
@@ -1249,14 +1257,14 @@ class DatasetApi:
1249
1257
  _content_type: Optional[StrictStr] = None,
1250
1258
  _headers: Optional[Dict[StrictStr, Any]] = None,
1251
1259
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1252
- ) -> ApiResponse[UploadDatapointsResult]:
1253
- """Creates a new multi asset datapoint.
1260
+ ) -> ApiResponse[None]:
1261
+ """Updates the name of a dataset.
1254
1262
 
1255
1263
 
1256
- :param dataset_id: The id of the dataset to upload the datapoint to.
1257
- :type dataset_id: str
1258
- :param files: The image files to create the asset from.
1259
- :type files: List[bytearray]
1264
+ :param id: The id of the dataset to update.
1265
+ :type id: str
1266
+ :param name: The new name of the dataset.
1267
+ :type name: str
1260
1268
  :param _request_timeout: timeout setting for this request. If one
1261
1269
  number provided, it will be total request
1262
1270
  timeout. It can also be a pair (tuple) of
@@ -1279,9 +1287,9 @@ class DatasetApi:
1279
1287
  :return: Returns the result object.
1280
1288
  """ # noqa: E501
1281
1289
 
1282
- _param = self._dataset_upload_datapoint_post_serialize(
1283
- dataset_id=dataset_id,
1284
- files=files,
1290
+ _param = self._dataset_update_name_post_serialize(
1291
+ id=id,
1292
+ name=name,
1285
1293
  _request_auth=_request_auth,
1286
1294
  _content_type=_content_type,
1287
1295
  _headers=_headers,
@@ -1289,7 +1297,7 @@ class DatasetApi:
1289
1297
  )
1290
1298
 
1291
1299
  _response_types_map: Dict[str, Optional[str]] = {
1292
- '200': "UploadDatapointsResult",
1300
+ '200': None,
1293
1301
  }
1294
1302
  response_data = self.api_client.call_api(
1295
1303
  *_param,
@@ -1303,10 +1311,10 @@ class DatasetApi:
1303
1311
 
1304
1312
 
1305
1313
  @validate_call
1306
- def dataset_upload_datapoint_post_without_preload_content(
1314
+ def dataset_update_name_post_without_preload_content(
1307
1315
  self,
1308
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1309
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
1316
+ id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
1317
+ name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
1310
1318
  _request_timeout: Union[
1311
1319
  None,
1312
1320
  Annotated[StrictFloat, Field(gt=0)],
@@ -1320,13 +1328,13 @@ class DatasetApi:
1320
1328
  _headers: Optional[Dict[StrictStr, Any]] = None,
1321
1329
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1322
1330
  ) -> RESTResponseType:
1323
- """Creates a new multi asset datapoint.
1331
+ """Updates the name of a dataset.
1324
1332
 
1325
1333
 
1326
- :param dataset_id: The id of the dataset to upload the datapoint to.
1327
- :type dataset_id: str
1328
- :param files: The image files to create the asset from.
1329
- :type files: List[bytearray]
1334
+ :param id: The id of the dataset to update.
1335
+ :type id: str
1336
+ :param name: The new name of the dataset.
1337
+ :type name: str
1330
1338
  :param _request_timeout: timeout setting for this request. If one
1331
1339
  number provided, it will be total request
1332
1340
  timeout. It can also be a pair (tuple) of
@@ -1349,9 +1357,9 @@ class DatasetApi:
1349
1357
  :return: Returns the result object.
1350
1358
  """ # noqa: E501
1351
1359
 
1352
- _param = self._dataset_upload_datapoint_post_serialize(
1353
- dataset_id=dataset_id,
1354
- files=files,
1360
+ _param = self._dataset_update_name_post_serialize(
1361
+ id=id,
1362
+ name=name,
1355
1363
  _request_auth=_request_auth,
1356
1364
  _content_type=_content_type,
1357
1365
  _headers=_headers,
@@ -1359,7 +1367,7 @@ class DatasetApi:
1359
1367
  )
1360
1368
 
1361
1369
  _response_types_map: Dict[str, Optional[str]] = {
1362
- '200': "UploadDatapointsResult",
1370
+ '200': None,
1363
1371
  }
1364
1372
  response_data = self.api_client.call_api(
1365
1373
  *_param,
@@ -1368,10 +1376,10 @@ class DatasetApi:
1368
1376
  return response_data.response
1369
1377
 
1370
1378
 
1371
- def _dataset_upload_datapoint_post_serialize(
1379
+ def _dataset_update_name_post_serialize(
1372
1380
  self,
1373
- dataset_id,
1374
- files,
1381
+ id,
1382
+ name,
1375
1383
  _request_auth,
1376
1384
  _content_type,
1377
1385
  _headers,
@@ -1381,7 +1389,6 @@ class DatasetApi:
1381
1389
  _host = None
1382
1390
 
1383
1391
  _collection_formats: Dict[str, str] = {
1384
- 'files': 'multi',
1385
1392
  }
1386
1393
 
1387
1394
  _path_params: Dict[str, str] = {}
@@ -1395,40 +1402,20 @@ class DatasetApi:
1395
1402
 
1396
1403
  # process the path parameters
1397
1404
  # process the query parameters
1398
- if dataset_id is not None:
1405
+ if id is not None:
1399
1406
 
1400
- _query_params.append(('datasetId', dataset_id))
1407
+ _query_params.append(('id', id))
1408
+
1409
+ if name is not None:
1410
+
1411
+ _query_params.append(('name', name))
1401
1412
 
1402
1413
  # process the header parameters
1403
1414
  # process the form parameters
1404
- if files is not None:
1405
- _files['files'] = files
1406
1415
  # process the body parameter
1407
1416
 
1408
1417
 
1409
- # set the HTTP header `Accept`
1410
- if 'Accept' not in _header_params:
1411
- _header_params['Accept'] = self.api_client.select_header_accept(
1412
- [
1413
- 'text/plain',
1414
- 'application/json',
1415
- 'text/json'
1416
- ]
1417
- )
1418
1418
 
1419
- # set the HTTP header `Content-Type`
1420
- if _content_type:
1421
- _header_params['Content-Type'] = _content_type
1422
- else:
1423
- _default_content_type = (
1424
- self.api_client.select_header_content_type(
1425
- [
1426
- 'multipart/form-data'
1427
- ]
1428
- )
1429
- )
1430
- if _default_content_type is not None:
1431
- _header_params['Content-Type'] = _default_content_type
1432
1419
 
1433
1420
  # authentication setting
1434
1421
  _auth_settings: List[str] = [
@@ -1438,7 +1425,7 @@ class DatasetApi:
1438
1425
 
1439
1426
  return self.api_client.param_serialize(
1440
1427
  method='POST',
1441
- resource_path='/Dataset/UploadDatapoint',
1428
+ resource_path='/Dataset/UpdateName',
1442
1429
  path_params=_path_params,
1443
1430
  query_params=_query_params,
1444
1431
  header_params=_header_params,
@@ -1455,9 +1442,10 @@ class DatasetApi:
1455
1442
 
1456
1443
 
1457
1444
  @validate_call
1458
- def dataset_upload_files_from_s3_post(
1445
+ def dataset_upload_datapoint_post(
1459
1446
  self,
1460
- upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
1447
+ dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1448
+ files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
1461
1449
  _request_timeout: Union[
1462
1450
  None,
1463
1451
  Annotated[StrictFloat, Field(gt=0)],
@@ -1471,12 +1459,13 @@ class DatasetApi:
1471
1459
  _headers: Optional[Dict[StrictStr, Any]] = None,
1472
1460
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1473
1461
  ) -> UploadDatapointsResult:
1474
- """Uploads files from an S3 bucket to a dataset.
1462
+ """Creates a new multi asset datapoint.
1475
1463
 
1476
- A new datapoint will be created for each file in the bucket.
1477
1464
 
1478
- :param upload_files_from_s3_bucket_model: The body of the request.
1479
- :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
1465
+ :param dataset_id: The id of the dataset to upload the datapoint to.
1466
+ :type dataset_id: str
1467
+ :param files: The image files to create the asset from.
1468
+ :type files: List[bytearray]
1480
1469
  :param _request_timeout: timeout setting for this request. If one
1481
1470
  number provided, it will be total request
1482
1471
  timeout. It can also be a pair (tuple) of
@@ -1499,8 +1488,9 @@ class DatasetApi:
1499
1488
  :return: Returns the result object.
1500
1489
  """ # noqa: E501
1501
1490
 
1502
- _param = self._dataset_upload_files_from_s3_post_serialize(
1503
- upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
1491
+ _param = self._dataset_upload_datapoint_post_serialize(
1492
+ dataset_id=dataset_id,
1493
+ files=files,
1504
1494
  _request_auth=_request_auth,
1505
1495
  _content_type=_content_type,
1506
1496
  _headers=_headers,
@@ -1522,9 +1512,10 @@ class DatasetApi:
1522
1512
 
1523
1513
 
1524
1514
  @validate_call
1525
- def dataset_upload_files_from_s3_post_with_http_info(
1515
+ def dataset_upload_datapoint_post_with_http_info(
1526
1516
  self,
1527
- upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
1517
+ dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1518
+ files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
1528
1519
  _request_timeout: Union[
1529
1520
  None,
1530
1521
  Annotated[StrictFloat, Field(gt=0)],
@@ -1538,12 +1529,13 @@ class DatasetApi:
1538
1529
  _headers: Optional[Dict[StrictStr, Any]] = None,
1539
1530
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1540
1531
  ) -> ApiResponse[UploadDatapointsResult]:
1541
- """Uploads files from an S3 bucket to a dataset.
1532
+ """Creates a new multi asset datapoint.
1542
1533
 
1543
- A new datapoint will be created for each file in the bucket.
1544
1534
 
1545
- :param upload_files_from_s3_bucket_model: The body of the request.
1546
- :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
1535
+ :param dataset_id: The id of the dataset to upload the datapoint to.
1536
+ :type dataset_id: str
1537
+ :param files: The image files to create the asset from.
1538
+ :type files: List[bytearray]
1547
1539
  :param _request_timeout: timeout setting for this request. If one
1548
1540
  number provided, it will be total request
1549
1541
  timeout. It can also be a pair (tuple) of
@@ -1566,8 +1558,9 @@ class DatasetApi:
1566
1558
  :return: Returns the result object.
1567
1559
  """ # noqa: E501
1568
1560
 
1569
- _param = self._dataset_upload_files_from_s3_post_serialize(
1570
- upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
1561
+ _param = self._dataset_upload_datapoint_post_serialize(
1562
+ dataset_id=dataset_id,
1563
+ files=files,
1571
1564
  _request_auth=_request_auth,
1572
1565
  _content_type=_content_type,
1573
1566
  _headers=_headers,
@@ -1589,9 +1582,10 @@ class DatasetApi:
1589
1582
 
1590
1583
 
1591
1584
  @validate_call
1592
- def dataset_upload_files_from_s3_post_without_preload_content(
1585
+ def dataset_upload_datapoint_post_without_preload_content(
1593
1586
  self,
1594
- upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
1587
+ dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1588
+ files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
1595
1589
  _request_timeout: Union[
1596
1590
  None,
1597
1591
  Annotated[StrictFloat, Field(gt=0)],
@@ -1605,12 +1599,13 @@ class DatasetApi:
1605
1599
  _headers: Optional[Dict[StrictStr, Any]] = None,
1606
1600
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1607
1601
  ) -> RESTResponseType:
1608
- """Uploads files from an S3 bucket to a dataset.
1602
+ """Creates a new multi asset datapoint.
1609
1603
 
1610
- A new datapoint will be created for each file in the bucket.
1611
1604
 
1612
- :param upload_files_from_s3_bucket_model: The body of the request.
1613
- :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
1605
+ :param dataset_id: The id of the dataset to upload the datapoint to.
1606
+ :type dataset_id: str
1607
+ :param files: The image files to create the asset from.
1608
+ :type files: List[bytearray]
1614
1609
  :param _request_timeout: timeout setting for this request. If one
1615
1610
  number provided, it will be total request
1616
1611
  timeout. It can also be a pair (tuple) of
@@ -1633,8 +1628,9 @@ class DatasetApi:
1633
1628
  :return: Returns the result object.
1634
1629
  """ # noqa: E501
1635
1630
 
1636
- _param = self._dataset_upload_files_from_s3_post_serialize(
1637
- upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
1631
+ _param = self._dataset_upload_datapoint_post_serialize(
1632
+ dataset_id=dataset_id,
1633
+ files=files,
1638
1634
  _request_auth=_request_auth,
1639
1635
  _content_type=_content_type,
1640
1636
  _headers=_headers,
@@ -1651,9 +1647,10 @@ class DatasetApi:
1651
1647
  return response_data.response
1652
1648
 
1653
1649
 
1654
- def _dataset_upload_files_from_s3_post_serialize(
1650
+ def _dataset_upload_datapoint_post_serialize(
1655
1651
  self,
1656
- upload_files_from_s3_bucket_model,
1652
+ dataset_id,
1653
+ files,
1657
1654
  _request_auth,
1658
1655
  _content_type,
1659
1656
  _headers,
@@ -1663,6 +1660,7 @@ class DatasetApi:
1663
1660
  _host = None
1664
1661
 
1665
1662
  _collection_formats: Dict[str, str] = {
1663
+ 'files': 'multi',
1666
1664
  }
1667
1665
 
1668
1666
  _path_params: Dict[str, str] = {}
@@ -1676,11 +1674,15 @@ class DatasetApi:
1676
1674
 
1677
1675
  # process the path parameters
1678
1676
  # process the query parameters
1677
+ if dataset_id is not None:
1678
+
1679
+ _query_params.append(('datasetId', dataset_id))
1680
+
1679
1681
  # process the header parameters
1680
1682
  # process the form parameters
1683
+ if files is not None:
1684
+ _files['files'] = files
1681
1685
  # process the body parameter
1682
- if upload_files_from_s3_bucket_model is not None:
1683
- _body_params = upload_files_from_s3_bucket_model
1684
1686
 
1685
1687
 
1686
1688
  # set the HTTP header `Accept`
@@ -1700,9 +1702,7 @@ class DatasetApi:
1700
1702
  _default_content_type = (
1701
1703
  self.api_client.select_header_content_type(
1702
1704
  [
1703
- 'application/json',
1704
- 'text/json',
1705
- 'application/*+json'
1705
+ 'multipart/form-data'
1706
1706
  ]
1707
1707
  )
1708
1708
  )
@@ -1717,7 +1717,7 @@ class DatasetApi:
1717
1717
 
1718
1718
  return self.api_client.param_serialize(
1719
1719
  method='POST',
1720
- resource_path='/Dataset/UploadFilesFromS3',
1720
+ resource_path='/Dataset/UploadDatapoint',
1721
1721
  path_params=_path_params,
1722
1722
  query_params=_query_params,
1723
1723
  header_params=_header_params,
@@ -1734,10 +1734,9 @@ class DatasetApi:
1734
1734
 
1735
1735
 
1736
1736
  @validate_call
1737
- def dataset_upload_images_to_dataset_post(
1737
+ def dataset_upload_files_from_s3_post(
1738
1738
  self,
1739
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
1740
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
1739
+ upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
1741
1740
  _request_timeout: Union[
1742
1741
  None,
1743
1742
  Annotated[StrictFloat, Field(gt=0)],
@@ -1750,15 +1749,13 @@ class DatasetApi:
1750
1749
  _content_type: Optional[StrictStr] = None,
1751
1750
  _headers: Optional[Dict[StrictStr, Any]] = None,
1752
1751
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1753
- ) -> None:
1754
- """Uploads images to a dataset.
1752
+ ) -> UploadDatapointsResult:
1753
+ """Uploads files from an S3 bucket to a dataset.
1755
1754
 
1756
- If multiple files are uploaded, a new datapoint will be created for each file.
1755
+ A new datapoint will be created for each file in the bucket.
1757
1756
 
1758
- :param dataset_id: The id of the dataset to upload the images to.
1759
- :type dataset_id: str
1760
- :param files: The image files to upload.
1761
- :type files: List[bytearray]
1757
+ :param upload_files_from_s3_bucket_model: The body of the request.
1758
+ :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
1762
1759
  :param _request_timeout: timeout setting for this request. If one
1763
1760
  number provided, it will be total request
1764
1761
  timeout. It can also be a pair (tuple) of
@@ -1781,9 +1778,8 @@ class DatasetApi:
1781
1778
  :return: Returns the result object.
1782
1779
  """ # noqa: E501
1783
1780
 
1784
- _param = self._dataset_upload_images_to_dataset_post_serialize(
1785
- dataset_id=dataset_id,
1786
- files=files,
1781
+ _param = self._dataset_upload_files_from_s3_post_serialize(
1782
+ upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
1787
1783
  _request_auth=_request_auth,
1788
1784
  _content_type=_content_type,
1789
1785
  _headers=_headers,
@@ -1791,7 +1787,7 @@ class DatasetApi:
1791
1787
  )
1792
1788
 
1793
1789
  _response_types_map: Dict[str, Optional[str]] = {
1794
- '200': None,
1790
+ '200': "UploadDatapointsResult",
1795
1791
  }
1796
1792
  response_data = self.api_client.call_api(
1797
1793
  *_param,
@@ -1805,10 +1801,9 @@ class DatasetApi:
1805
1801
 
1806
1802
 
1807
1803
  @validate_call
1808
- def dataset_upload_images_to_dataset_post_with_http_info(
1804
+ def dataset_upload_files_from_s3_post_with_http_info(
1809
1805
  self,
1810
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
1811
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
1806
+ upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
1812
1807
  _request_timeout: Union[
1813
1808
  None,
1814
1809
  Annotated[StrictFloat, Field(gt=0)],
@@ -1821,15 +1816,13 @@ class DatasetApi:
1821
1816
  _content_type: Optional[StrictStr] = None,
1822
1817
  _headers: Optional[Dict[StrictStr, Any]] = None,
1823
1818
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1824
- ) -> ApiResponse[None]:
1825
- """Uploads images to a dataset.
1819
+ ) -> ApiResponse[UploadDatapointsResult]:
1820
+ """Uploads files from an S3 bucket to a dataset.
1826
1821
 
1827
- If multiple files are uploaded, a new datapoint will be created for each file.
1822
+ A new datapoint will be created for each file in the bucket.
1828
1823
 
1829
- :param dataset_id: The id of the dataset to upload the images to.
1830
- :type dataset_id: str
1831
- :param files: The image files to upload.
1832
- :type files: List[bytearray]
1824
+ :param upload_files_from_s3_bucket_model: The body of the request.
1825
+ :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
1833
1826
  :param _request_timeout: timeout setting for this request. If one
1834
1827
  number provided, it will be total request
1835
1828
  timeout. It can also be a pair (tuple) of
@@ -1852,9 +1845,8 @@ class DatasetApi:
1852
1845
  :return: Returns the result object.
1853
1846
  """ # noqa: E501
1854
1847
 
1855
- _param = self._dataset_upload_images_to_dataset_post_serialize(
1856
- dataset_id=dataset_id,
1857
- files=files,
1848
+ _param = self._dataset_upload_files_from_s3_post_serialize(
1849
+ upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
1858
1850
  _request_auth=_request_auth,
1859
1851
  _content_type=_content_type,
1860
1852
  _headers=_headers,
@@ -1862,7 +1854,7 @@ class DatasetApi:
1862
1854
  )
1863
1855
 
1864
1856
  _response_types_map: Dict[str, Optional[str]] = {
1865
- '200': None,
1857
+ '200': "UploadDatapointsResult",
1866
1858
  }
1867
1859
  response_data = self.api_client.call_api(
1868
1860
  *_param,
@@ -1876,10 +1868,9 @@ class DatasetApi:
1876
1868
 
1877
1869
 
1878
1870
  @validate_call
1879
- def dataset_upload_images_to_dataset_post_without_preload_content(
1871
+ def dataset_upload_files_from_s3_post_without_preload_content(
1880
1872
  self,
1881
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
1882
- files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
1873
+ upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
1883
1874
  _request_timeout: Union[
1884
1875
  None,
1885
1876
  Annotated[StrictFloat, Field(gt=0)],
@@ -1893,14 +1884,12 @@ class DatasetApi:
1893
1884
  _headers: Optional[Dict[StrictStr, Any]] = None,
1894
1885
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1895
1886
  ) -> RESTResponseType:
1896
- """Uploads images to a dataset.
1887
+ """Uploads files from an S3 bucket to a dataset.
1897
1888
 
1898
- If multiple files are uploaded, a new datapoint will be created for each file.
1889
+ A new datapoint will be created for each file in the bucket.
1899
1890
 
1900
- :param dataset_id: The id of the dataset to upload the images to.
1901
- :type dataset_id: str
1902
- :param files: The image files to upload.
1903
- :type files: List[bytearray]
1891
+ :param upload_files_from_s3_bucket_model: The body of the request.
1892
+ :type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
1904
1893
  :param _request_timeout: timeout setting for this request. If one
1905
1894
  number provided, it will be total request
1906
1895
  timeout. It can also be a pair (tuple) of
@@ -1923,9 +1912,8 @@ class DatasetApi:
1923
1912
  :return: Returns the result object.
1924
1913
  """ # noqa: E501
1925
1914
 
1926
- _param = self._dataset_upload_images_to_dataset_post_serialize(
1927
- dataset_id=dataset_id,
1928
- files=files,
1915
+ _param = self._dataset_upload_files_from_s3_post_serialize(
1916
+ upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
1929
1917
  _request_auth=_request_auth,
1930
1918
  _content_type=_content_type,
1931
1919
  _headers=_headers,
@@ -1933,7 +1921,7 @@ class DatasetApi:
1933
1921
  )
1934
1922
 
1935
1923
  _response_types_map: Dict[str, Optional[str]] = {
1936
- '200': None,
1924
+ '200': "UploadDatapointsResult",
1937
1925
  }
1938
1926
  response_data = self.api_client.call_api(
1939
1927
  *_param,
@@ -1942,10 +1930,9 @@ class DatasetApi:
1942
1930
  return response_data.response
1943
1931
 
1944
1932
 
1945
- def _dataset_upload_images_to_dataset_post_serialize(
1933
+ def _dataset_upload_files_from_s3_post_serialize(
1946
1934
  self,
1947
- dataset_id,
1948
- files,
1935
+ upload_files_from_s3_bucket_model,
1949
1936
  _request_auth,
1950
1937
  _content_type,
1951
1938
  _headers,
@@ -1955,7 +1942,6 @@ class DatasetApi:
1955
1942
  _host = None
1956
1943
 
1957
1944
  _collection_formats: Dict[str, str] = {
1958
- 'files': 'multi',
1959
1945
  }
1960
1946
 
1961
1947
  _path_params: Dict[str, str] = {}
@@ -1969,17 +1955,22 @@ class DatasetApi:
1969
1955
 
1970
1956
  # process the path parameters
1971
1957
  # process the query parameters
1972
- if dataset_id is not None:
1973
-
1974
- _query_params.append(('datasetId', dataset_id))
1975
-
1976
1958
  # process the header parameters
1977
1959
  # process the form parameters
1978
- if files is not None:
1979
- _files['files'] = files
1980
1960
  # process the body parameter
1961
+ if upload_files_from_s3_bucket_model is not None:
1962
+ _body_params = upload_files_from_s3_bucket_model
1981
1963
 
1982
1964
 
1965
+ # set the HTTP header `Accept`
1966
+ if 'Accept' not in _header_params:
1967
+ _header_params['Accept'] = self.api_client.select_header_accept(
1968
+ [
1969
+ 'text/plain',
1970
+ 'application/json',
1971
+ 'text/json'
1972
+ ]
1973
+ )
1983
1974
 
1984
1975
  # set the HTTP header `Content-Type`
1985
1976
  if _content_type:
@@ -1988,7 +1979,9 @@ class DatasetApi:
1988
1979
  _default_content_type = (
1989
1980
  self.api_client.select_header_content_type(
1990
1981
  [
1991
- 'multipart/form-data'
1982
+ 'application/json',
1983
+ 'text/json',
1984
+ 'application/*+json'
1992
1985
  ]
1993
1986
  )
1994
1987
  )
@@ -2003,7 +1996,7 @@ class DatasetApi:
2003
1996
 
2004
1997
  return self.api_client.param_serialize(
2005
1998
  method='POST',
2006
- resource_path='/Dataset/UploadImagesToDataset',
1999
+ resource_path='/Dataset/UploadFilesFromS3',
2007
2000
  path_params=_path_params,
2008
2001
  query_params=_query_params,
2009
2002
  header_params=_header_params,
@@ -2020,9 +2013,10 @@ class DatasetApi:
2020
2013
 
2021
2014
 
2022
2015
  @validate_call
2023
- def dataset_upload_text_sources_to_dataset_post(
2016
+ def dataset_upload_images_to_dataset_post(
2024
2017
  self,
2025
- upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
2018
+ dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
2019
+ files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
2026
2020
  _request_timeout: Union[
2027
2021
  None,
2028
2022
  Annotated[StrictFloat, Field(gt=0)],
@@ -2035,13 +2029,15 @@ class DatasetApi:
2035
2029
  _content_type: Optional[StrictStr] = None,
2036
2030
  _headers: Optional[Dict[StrictStr, Any]] = None,
2037
2031
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2038
- ) -> UploadDatapointsResult:
2039
- """Creates new datapoints from text sources.
2032
+ ) -> None:
2033
+ """Uploads images to a dataset.
2040
2034
 
2041
- If multiple text sources are uploaded, a new datapoint will be created for each text source.
2035
+ If multiple files are uploaded, a new datapoint will be created for each file.
2042
2036
 
2043
- :param upload_text_sources_to_dataset_model: The body of the request.
2044
- :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
2037
+ :param dataset_id: The id of the dataset to upload the images to.
2038
+ :type dataset_id: str
2039
+ :param files: The image files to upload.
2040
+ :type files: List[bytearray]
2045
2041
  :param _request_timeout: timeout setting for this request. If one
2046
2042
  number provided, it will be total request
2047
2043
  timeout. It can also be a pair (tuple) of
@@ -2064,8 +2060,9 @@ class DatasetApi:
2064
2060
  :return: Returns the result object.
2065
2061
  """ # noqa: E501
2066
2062
 
2067
- _param = self._dataset_upload_text_sources_to_dataset_post_serialize(
2068
- upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
2063
+ _param = self._dataset_upload_images_to_dataset_post_serialize(
2064
+ dataset_id=dataset_id,
2065
+ files=files,
2069
2066
  _request_auth=_request_auth,
2070
2067
  _content_type=_content_type,
2071
2068
  _headers=_headers,
@@ -2073,7 +2070,7 @@ class DatasetApi:
2073
2070
  )
2074
2071
 
2075
2072
  _response_types_map: Dict[str, Optional[str]] = {
2076
- '200': "UploadDatapointsResult",
2073
+ '200': None,
2077
2074
  }
2078
2075
  response_data = self.api_client.call_api(
2079
2076
  *_param,
@@ -2087,9 +2084,10 @@ class DatasetApi:
2087
2084
 
2088
2085
 
2089
2086
  @validate_call
2090
- def dataset_upload_text_sources_to_dataset_post_with_http_info(
2087
+ def dataset_upload_images_to_dataset_post_with_http_info(
2091
2088
  self,
2092
- upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
2089
+ dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
2090
+ files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
2093
2091
  _request_timeout: Union[
2094
2092
  None,
2095
2093
  Annotated[StrictFloat, Field(gt=0)],
@@ -2102,13 +2100,15 @@ class DatasetApi:
2102
2100
  _content_type: Optional[StrictStr] = None,
2103
2101
  _headers: Optional[Dict[StrictStr, Any]] = None,
2104
2102
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2105
- ) -> ApiResponse[UploadDatapointsResult]:
2106
- """Creates new datapoints from text sources.
2103
+ ) -> ApiResponse[None]:
2104
+ """Uploads images to a dataset.
2107
2105
 
2108
- If multiple text sources are uploaded, a new datapoint will be created for each text source.
2106
+ If multiple files are uploaded, a new datapoint will be created for each file.
2109
2107
 
2110
- :param upload_text_sources_to_dataset_model: The body of the request.
2111
- :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
2108
+ :param dataset_id: The id of the dataset to upload the images to.
2109
+ :type dataset_id: str
2110
+ :param files: The image files to upload.
2111
+ :type files: List[bytearray]
2112
2112
  :param _request_timeout: timeout setting for this request. If one
2113
2113
  number provided, it will be total request
2114
2114
  timeout. It can also be a pair (tuple) of
@@ -2131,8 +2131,9 @@ class DatasetApi:
2131
2131
  :return: Returns the result object.
2132
2132
  """ # noqa: E501
2133
2133
 
2134
- _param = self._dataset_upload_text_sources_to_dataset_post_serialize(
2135
- upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
2134
+ _param = self._dataset_upload_images_to_dataset_post_serialize(
2135
+ dataset_id=dataset_id,
2136
+ files=files,
2136
2137
  _request_auth=_request_auth,
2137
2138
  _content_type=_content_type,
2138
2139
  _headers=_headers,
@@ -2140,7 +2141,7 @@ class DatasetApi:
2140
2141
  )
2141
2142
 
2142
2143
  _response_types_map: Dict[str, Optional[str]] = {
2143
- '200': "UploadDatapointsResult",
2144
+ '200': None,
2144
2145
  }
2145
2146
  response_data = self.api_client.call_api(
2146
2147
  *_param,
@@ -2154,9 +2155,10 @@ class DatasetApi:
2154
2155
 
2155
2156
 
2156
2157
  @validate_call
2157
- def dataset_upload_text_sources_to_dataset_post_without_preload_content(
2158
+ def dataset_upload_images_to_dataset_post_without_preload_content(
2158
2159
  self,
2159
- upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
2160
+ dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
2161
+ files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
2160
2162
  _request_timeout: Union[
2161
2163
  None,
2162
2164
  Annotated[StrictFloat, Field(gt=0)],
@@ -2170,12 +2172,14 @@ class DatasetApi:
2170
2172
  _headers: Optional[Dict[StrictStr, Any]] = None,
2171
2173
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2172
2174
  ) -> RESTResponseType:
2173
- """Creates new datapoints from text sources.
2175
+ """Uploads images to a dataset.
2174
2176
 
2175
- If multiple text sources are uploaded, a new datapoint will be created for each text source.
2177
+ If multiple files are uploaded, a new datapoint will be created for each file.
2176
2178
 
2177
- :param upload_text_sources_to_dataset_model: The body of the request.
2178
- :type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
2179
+ :param dataset_id: The id of the dataset to upload the images to.
2180
+ :type dataset_id: str
2181
+ :param files: The image files to upload.
2182
+ :type files: List[bytearray]
2179
2183
  :param _request_timeout: timeout setting for this request. If one
2180
2184
  number provided, it will be total request
2181
2185
  timeout. It can also be a pair (tuple) of
@@ -2198,8 +2202,9 @@ class DatasetApi:
2198
2202
  :return: Returns the result object.
2199
2203
  """ # noqa: E501
2200
2204
 
2201
- _param = self._dataset_upload_text_sources_to_dataset_post_serialize(
2202
- upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
2205
+ _param = self._dataset_upload_images_to_dataset_post_serialize(
2206
+ dataset_id=dataset_id,
2207
+ files=files,
2203
2208
  _request_auth=_request_auth,
2204
2209
  _content_type=_content_type,
2205
2210
  _headers=_headers,
@@ -2207,7 +2212,7 @@ class DatasetApi:
2207
2212
  )
2208
2213
 
2209
2214
  _response_types_map: Dict[str, Optional[str]] = {
2210
- '200': "UploadDatapointsResult",
2215
+ '200': None,
2211
2216
  }
2212
2217
  response_data = self.api_client.call_api(
2213
2218
  *_param,
@@ -2216,9 +2221,10 @@ class DatasetApi:
2216
2221
  return response_data.response
2217
2222
 
2218
2223
 
2219
- def _dataset_upload_text_sources_to_dataset_post_serialize(
2224
+ def _dataset_upload_images_to_dataset_post_serialize(
2220
2225
  self,
2221
- upload_text_sources_to_dataset_model,
2226
+ dataset_id,
2227
+ files,
2222
2228
  _request_auth,
2223
2229
  _content_type,
2224
2230
  _headers,
@@ -2228,6 +2234,7 @@ class DatasetApi:
2228
2234
  _host = None
2229
2235
 
2230
2236
  _collection_formats: Dict[str, str] = {
2237
+ 'files': 'multi',
2231
2238
  }
2232
2239
 
2233
2240
  _path_params: Dict[str, str] = {}
@@ -2241,22 +2248,17 @@ class DatasetApi:
2241
2248
 
2242
2249
  # process the path parameters
2243
2250
  # process the query parameters
2251
+ if dataset_id is not None:
2252
+
2253
+ _query_params.append(('datasetId', dataset_id))
2254
+
2244
2255
  # process the header parameters
2245
2256
  # process the form parameters
2257
+ if files is not None:
2258
+ _files['files'] = files
2246
2259
  # process the body parameter
2247
- if upload_text_sources_to_dataset_model is not None:
2248
- _body_params = upload_text_sources_to_dataset_model
2249
2260
 
2250
2261
 
2251
- # set the HTTP header `Accept`
2252
- if 'Accept' not in _header_params:
2253
- _header_params['Accept'] = self.api_client.select_header_accept(
2254
- [
2255
- 'text/plain',
2256
- 'application/json',
2257
- 'text/json'
2258
- ]
2259
- )
2260
2262
 
2261
2263
  # set the HTTP header `Content-Type`
2262
2264
  if _content_type:
@@ -2265,9 +2267,7 @@ class DatasetApi:
2265
2267
  _default_content_type = (
2266
2268
  self.api_client.select_header_content_type(
2267
2269
  [
2268
- 'application/json',
2269
- 'text/json',
2270
- 'application/*+json'
2270
+ 'multipart/form-data'
2271
2271
  ]
2272
2272
  )
2273
2273
  )
@@ -2282,7 +2282,7 @@ class DatasetApi:
2282
2282
 
2283
2283
  return self.api_client.param_serialize(
2284
2284
  method='POST',
2285
- resource_path='/Dataset/UploadTextSourcesToDataset',
2285
+ resource_path='/Dataset/UploadImagesToDataset',
2286
2286
  path_params=_path_params,
2287
2287
  query_params=_query_params,
2288
2288
  header_params=_header_params,