rapidata 1.1.0__py3-none-any.whl → 1.2.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.
Files changed (82) hide show
  1. rapidata/__init__.py +1 -0
  2. rapidata/api_client/__init__.py +30 -8
  3. rapidata/api_client/api/__init__.py +2 -0
  4. rapidata/api_client/api/campaign_api.py +8 -4
  5. rapidata/api_client/api/coco_api.py +4 -2
  6. rapidata/api_client/api/compare_workflow_api.py +2 -1
  7. rapidata/api_client/api/datapoint_api.py +6 -3
  8. rapidata/api_client/api/dataset_api.py +404 -396
  9. rapidata/api_client/api/identity_api.py +329 -50
  10. rapidata/api_client/api/newsletter_api.py +4 -2
  11. rapidata/api_client/api/order_api.py +40 -20
  12. rapidata/api_client/api/pipeline_api.py +6 -3
  13. rapidata/api_client/api/rapid_api.py +10 -5
  14. rapidata/api_client/api/rapidata_identity_api_api.py +272 -0
  15. rapidata/api_client/api/simple_workflow_api.py +2 -1
  16. rapidata/api_client/api/user_info_api.py +272 -0
  17. rapidata/api_client/api/validation_api.py +14 -7
  18. rapidata/api_client/api/workflow_api.py +30 -1067
  19. rapidata/api_client/models/__init__.py +28 -8
  20. rapidata/api_client/models/classification_metadata_model.py +98 -0
  21. rapidata/api_client/models/compare_workflow_config.py +3 -3
  22. rapidata/api_client/models/compare_workflow_config_model.py +3 -3
  23. rapidata/api_client/models/compare_workflow_model1.py +4 -18
  24. rapidata/api_client/models/compare_workflow_model1_referee.py +154 -0
  25. rapidata/api_client/models/completed_rapid_model.py +3 -3
  26. rapidata/api_client/models/completed_rapid_model_asset.py +170 -0
  27. rapidata/api_client/models/count_metadata_model.py +98 -0
  28. rapidata/api_client/models/demographic_metadata_model.py +100 -0
  29. rapidata/api_client/models/file_asset_model.py +3 -3
  30. rapidata/api_client/models/file_asset_model1.py +108 -0
  31. rapidata/api_client/models/file_asset_model1_metadata_inner.py +252 -0
  32. rapidata/api_client/models/file_asset_model2.py +108 -0
  33. rapidata/api_client/models/file_asset_model_metadata_inner.py +252 -0
  34. rapidata/api_client/models/image_dimension_metadata_model.py +100 -0
  35. rapidata/api_client/models/in_progress_rapid_model.py +3 -3
  36. rapidata/api_client/models/issue_auth_token_result.py +1 -1
  37. rapidata/api_client/models/legacy_issue_client_auth_token_result.py +87 -0
  38. rapidata/api_client/models/legacy_request_password_reset_command.py +98 -0
  39. rapidata/api_client/models/legacy_submit_password_reset_command.py +102 -0
  40. rapidata/api_client/models/location_metadata_model.py +100 -0
  41. rapidata/api_client/models/multi_asset_model.py +3 -3
  42. rapidata/api_client/models/multi_asset_model1.py +118 -0
  43. rapidata/api_client/models/multi_asset_model1_assets_inner.py +170 -0
  44. rapidata/api_client/models/multi_asset_model2.py +118 -0
  45. rapidata/api_client/models/not_started_rapid_model.py +3 -3
  46. rapidata/api_client/models/null_asset_model.py +3 -3
  47. rapidata/api_client/models/null_asset_model1.py +106 -0
  48. rapidata/api_client/models/null_asset_model2.py +106 -0
  49. rapidata/api_client/models/original_filename_metadata_model.py +98 -0
  50. rapidata/api_client/models/prompt_metadata_model.py +98 -0
  51. rapidata/api_client/models/query_validation_rapids_result_asset.py +40 -40
  52. rapidata/api_client/models/ranked_datapoint_model.py +3 -3
  53. rapidata/api_client/models/simple_workflow_config.py +6 -6
  54. rapidata/api_client/models/simple_workflow_config_model.py +3 -3
  55. rapidata/api_client/models/simple_workflow_model1.py +7 -21
  56. rapidata/api_client/models/simple_workflow_model1_blueprint.py +238 -0
  57. rapidata/api_client/models/text_asset_model.py +3 -3
  58. rapidata/api_client/models/text_asset_model1.py +108 -0
  59. rapidata/api_client/models/text_asset_model2.py +108 -0
  60. rapidata/api_client/models/text_metadata_model.py +98 -0
  61. rapidata/api_client/models/transcription_metadata_model.py +98 -0
  62. rapidata/api_client/models/translated_prompt_metadata_model.py +102 -0
  63. rapidata/api_client/models/translated_string.py +93 -0
  64. rapidata/api_client_README.md +36 -13
  65. rapidata/rapidata_client/__init__.py +13 -2
  66. rapidata/rapidata_client/assets/media_asset.py +1 -1
  67. rapidata/rapidata_client/assets/multi_asset.py +14 -3
  68. rapidata/rapidata_client/dataset/rapidata_dataset.py +59 -21
  69. rapidata/rapidata_client/dataset/validation_set_builder.py +1 -1
  70. rapidata/rapidata_client/order/rapidata_order.py +49 -18
  71. rapidata/rapidata_client/order/rapidata_order_builder.py +99 -41
  72. rapidata/rapidata_client/selection/__init__.py +1 -0
  73. rapidata/rapidata_client/selection/capped_selection.py +25 -0
  74. rapidata/rapidata_client/selection/demographic_selection.py +3 -2
  75. rapidata/rapidata_client/simple_builders/__init__.py +0 -0
  76. rapidata/rapidata_client/simple_builders/simple_classification_builders.py +14 -9
  77. rapidata/rapidata_client/simple_builders/simple_compare_builders.py +6 -3
  78. rapidata/service/openapi_service.py +15 -0
  79. {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/METADATA +1 -1
  80. {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/RECORD +82 -50
  81. {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/LICENSE +0 -0
  82. {rapidata-1.1.0.dist-info → rapidata-1.2.1.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
  )
@@ -315,12 +301,13 @@ class DatasetApi:
315
301
 
316
302
  # authentication setting
317
303
  _auth_settings: List[str] = [
318
- 'bearer'
304
+ 'bearer',
305
+ 'oauth2'
319
306
  ]
320
307
 
321
308
  return self.api_client.param_serialize(
322
309
  method='POST',
323
- resource_path='/Dataset/CreateDatapoint',
310
+ resource_path='/Dataset/CreatTextDatapoint',
324
311
  path_params=_path_params,
325
312
  query_params=_query_params,
326
313
  header_params=_header_params,
@@ -337,9 +324,10 @@ class DatasetApi:
337
324
 
338
325
 
339
326
  @validate_call
340
- def dataset_get_by_id_get(
327
+ def dataset_create_datapoint_post(
341
328
  self,
342
- 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,
343
331
  _request_timeout: Union[
344
332
  None,
345
333
  Annotated[StrictFloat, Field(gt=0)],
@@ -352,12 +340,15 @@ class DatasetApi:
352
340
  _content_type: Optional[StrictStr] = None,
353
341
  _headers: Optional[Dict[StrictStr, Any]] = None,
354
342
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
355
- ) -> GetDatasetByIdResult:
356
- """Gets a dataset by its id.
343
+ ) -> UploadDatapointsResult:
344
+ """Creates a single datapoint.
357
345
 
346
+ If multiple files are uploaded, a multi asset datapoint will be created.
358
347
 
359
- :param id: The id of the dataset to get.
360
- :type id: str
348
+ :param files: The image files to upload.
349
+ :type files: List[bytearray]
350
+ :param model:
351
+ :type model: DatapointMetadataModel
361
352
  :param _request_timeout: timeout setting for this request. If one
362
353
  number provided, it will be total request
363
354
  timeout. It can also be a pair (tuple) of
@@ -380,8 +371,9 @@ class DatasetApi:
380
371
  :return: Returns the result object.
381
372
  """ # noqa: E501
382
373
 
383
- _param = self._dataset_get_by_id_get_serialize(
384
- id=id,
374
+ _param = self._dataset_create_datapoint_post_serialize(
375
+ files=files,
376
+ model=model,
385
377
  _request_auth=_request_auth,
386
378
  _content_type=_content_type,
387
379
  _headers=_headers,
@@ -389,7 +381,7 @@ class DatasetApi:
389
381
  )
390
382
 
391
383
  _response_types_map: Dict[str, Optional[str]] = {
392
- '200': "GetDatasetByIdResult",
384
+ '200': "UploadDatapointsResult",
393
385
  }
394
386
  response_data = self.api_client.call_api(
395
387
  *_param,
@@ -403,9 +395,10 @@ class DatasetApi:
403
395
 
404
396
 
405
397
  @validate_call
406
- def dataset_get_by_id_get_with_http_info(
398
+ def dataset_create_datapoint_post_with_http_info(
407
399
  self,
408
- 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,
409
402
  _request_timeout: Union[
410
403
  None,
411
404
  Annotated[StrictFloat, Field(gt=0)],
@@ -418,12 +411,15 @@ class DatasetApi:
418
411
  _content_type: Optional[StrictStr] = None,
419
412
  _headers: Optional[Dict[StrictStr, Any]] = None,
420
413
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
421
- ) -> ApiResponse[GetDatasetByIdResult]:
422
- """Gets a dataset by its id.
414
+ ) -> ApiResponse[UploadDatapointsResult]:
415
+ """Creates a single datapoint.
423
416
 
417
+ If multiple files are uploaded, a multi asset datapoint will be created.
424
418
 
425
- :param id: The id of the dataset to get.
426
- :type id: str
419
+ :param files: The image files to upload.
420
+ :type files: List[bytearray]
421
+ :param model:
422
+ :type model: DatapointMetadataModel
427
423
  :param _request_timeout: timeout setting for this request. If one
428
424
  number provided, it will be total request
429
425
  timeout. It can also be a pair (tuple) of
@@ -446,8 +442,9 @@ class DatasetApi:
446
442
  :return: Returns the result object.
447
443
  """ # noqa: E501
448
444
 
449
- _param = self._dataset_get_by_id_get_serialize(
450
- id=id,
445
+ _param = self._dataset_create_datapoint_post_serialize(
446
+ files=files,
447
+ model=model,
451
448
  _request_auth=_request_auth,
452
449
  _content_type=_content_type,
453
450
  _headers=_headers,
@@ -455,7 +452,7 @@ class DatasetApi:
455
452
  )
456
453
 
457
454
  _response_types_map: Dict[str, Optional[str]] = {
458
- '200': "GetDatasetByIdResult",
455
+ '200': "UploadDatapointsResult",
459
456
  }
460
457
  response_data = self.api_client.call_api(
461
458
  *_param,
@@ -469,9 +466,10 @@ class DatasetApi:
469
466
 
470
467
 
471
468
  @validate_call
472
- def dataset_get_by_id_get_without_preload_content(
469
+ def dataset_create_datapoint_post_without_preload_content(
473
470
  self,
474
- 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,
475
473
  _request_timeout: Union[
476
474
  None,
477
475
  Annotated[StrictFloat, Field(gt=0)],
@@ -485,11 +483,14 @@ class DatasetApi:
485
483
  _headers: Optional[Dict[StrictStr, Any]] = None,
486
484
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
487
485
  ) -> RESTResponseType:
488
- """Gets a dataset by its id.
486
+ """Creates a single datapoint.
489
487
 
488
+ If multiple files are uploaded, a multi asset datapoint will be created.
490
489
 
491
- :param id: The id of the dataset to get.
492
- :type id: str
490
+ :param files: The image files to upload.
491
+ :type files: List[bytearray]
492
+ :param model:
493
+ :type model: DatapointMetadataModel
493
494
  :param _request_timeout: timeout setting for this request. If one
494
495
  number provided, it will be total request
495
496
  timeout. It can also be a pair (tuple) of
@@ -512,8 +513,9 @@ class DatasetApi:
512
513
  :return: Returns the result object.
513
514
  """ # noqa: E501
514
515
 
515
- _param = self._dataset_get_by_id_get_serialize(
516
- id=id,
516
+ _param = self._dataset_create_datapoint_post_serialize(
517
+ files=files,
518
+ model=model,
517
519
  _request_auth=_request_auth,
518
520
  _content_type=_content_type,
519
521
  _headers=_headers,
@@ -521,7 +523,7 @@ class DatasetApi:
521
523
  )
522
524
 
523
525
  _response_types_map: Dict[str, Optional[str]] = {
524
- '200': "GetDatasetByIdResult",
526
+ '200': "UploadDatapointsResult",
525
527
  }
526
528
  response_data = self.api_client.call_api(
527
529
  *_param,
@@ -530,9 +532,10 @@ class DatasetApi:
530
532
  return response_data.response
531
533
 
532
534
 
533
- def _dataset_get_by_id_get_serialize(
535
+ def _dataset_create_datapoint_post_serialize(
534
536
  self,
535
- id,
537
+ files,
538
+ model,
536
539
  _request_auth,
537
540
  _content_type,
538
541
  _headers,
@@ -542,6 +545,7 @@ class DatasetApi:
542
545
  _host = None
543
546
 
544
547
  _collection_formats: Dict[str, str] = {
548
+ 'files': 'multi',
545
549
  }
546
550
 
547
551
  _path_params: Dict[str, str] = {}
@@ -555,12 +559,12 @@ class DatasetApi:
555
559
 
556
560
  # process the path parameters
557
561
  # process the query parameters
558
- if id is not None:
559
-
560
- _query_params.append(('id', id))
561
-
562
562
  # process the header parameters
563
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))
564
568
  # process the body parameter
565
569
 
566
570
 
@@ -574,15 +578,29 @@ class DatasetApi:
574
578
  ]
575
579
  )
576
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
577
594
 
578
595
  # authentication setting
579
596
  _auth_settings: List[str] = [
580
- 'bearer'
597
+ 'bearer',
598
+ 'oauth2'
581
599
  ]
582
600
 
583
601
  return self.api_client.param_serialize(
584
- method='GET',
585
- resource_path='/Dataset/GetById',
602
+ method='POST',
603
+ resource_path='/Dataset/CreateDatapoint',
586
604
  path_params=_path_params,
587
605
  query_params=_query_params,
588
606
  header_params=_header_params,
@@ -599,10 +617,9 @@ class DatasetApi:
599
617
 
600
618
 
601
619
  @validate_call
602
- def dataset_import_post(
620
+ def dataset_get_by_id_get(
603
621
  self,
604
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
605
- 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,
606
623
  _request_timeout: Union[
607
624
  None,
608
625
  Annotated[StrictFloat, Field(gt=0)],
@@ -615,14 +632,12 @@ class DatasetApi:
615
632
  _content_type: Optional[StrictStr] = None,
616
633
  _headers: Optional[Dict[StrictStr, Any]] = None,
617
634
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
618
- ) -> ImportFromFileResult:
619
- """Imports datapoints from a csv file.
635
+ ) -> GetDatasetByIdResult:
636
+ """Gets a dataset by its id.
620
637
 
621
638
 
622
- :param dataset_id: The id of the dataset to import the datapoints to.
623
- :type dataset_id: str
624
- :param file: The csv file to import.
625
- :type file: bytearray
639
+ :param id: The id of the dataset to get.
640
+ :type id: str
626
641
  :param _request_timeout: timeout setting for this request. If one
627
642
  number provided, it will be total request
628
643
  timeout. It can also be a pair (tuple) of
@@ -645,9 +660,8 @@ class DatasetApi:
645
660
  :return: Returns the result object.
646
661
  """ # noqa: E501
647
662
 
648
- _param = self._dataset_import_post_serialize(
649
- dataset_id=dataset_id,
650
- file=file,
663
+ _param = self._dataset_get_by_id_get_serialize(
664
+ id=id,
651
665
  _request_auth=_request_auth,
652
666
  _content_type=_content_type,
653
667
  _headers=_headers,
@@ -655,7 +669,7 @@ class DatasetApi:
655
669
  )
656
670
 
657
671
  _response_types_map: Dict[str, Optional[str]] = {
658
- '200': "ImportFromFileResult",
672
+ '200': "GetDatasetByIdResult",
659
673
  }
660
674
  response_data = self.api_client.call_api(
661
675
  *_param,
@@ -669,10 +683,9 @@ class DatasetApi:
669
683
 
670
684
 
671
685
  @validate_call
672
- def dataset_import_post_with_http_info(
686
+ def dataset_get_by_id_get_with_http_info(
673
687
  self,
674
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
675
- 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,
676
689
  _request_timeout: Union[
677
690
  None,
678
691
  Annotated[StrictFloat, Field(gt=0)],
@@ -685,14 +698,12 @@ class DatasetApi:
685
698
  _content_type: Optional[StrictStr] = None,
686
699
  _headers: Optional[Dict[StrictStr, Any]] = None,
687
700
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
688
- ) -> ApiResponse[ImportFromFileResult]:
689
- """Imports datapoints from a csv file.
701
+ ) -> ApiResponse[GetDatasetByIdResult]:
702
+ """Gets a dataset by its id.
690
703
 
691
704
 
692
- :param dataset_id: The id of the dataset to import the datapoints to.
693
- :type dataset_id: str
694
- :param file: The csv file to import.
695
- :type file: bytearray
705
+ :param id: The id of the dataset to get.
706
+ :type id: str
696
707
  :param _request_timeout: timeout setting for this request. If one
697
708
  number provided, it will be total request
698
709
  timeout. It can also be a pair (tuple) of
@@ -715,9 +726,8 @@ class DatasetApi:
715
726
  :return: Returns the result object.
716
727
  """ # noqa: E501
717
728
 
718
- _param = self._dataset_import_post_serialize(
719
- dataset_id=dataset_id,
720
- file=file,
729
+ _param = self._dataset_get_by_id_get_serialize(
730
+ id=id,
721
731
  _request_auth=_request_auth,
722
732
  _content_type=_content_type,
723
733
  _headers=_headers,
@@ -725,7 +735,7 @@ class DatasetApi:
725
735
  )
726
736
 
727
737
  _response_types_map: Dict[str, Optional[str]] = {
728
- '200': "ImportFromFileResult",
738
+ '200': "GetDatasetByIdResult",
729
739
  }
730
740
  response_data = self.api_client.call_api(
731
741
  *_param,
@@ -739,10 +749,9 @@ class DatasetApi:
739
749
 
740
750
 
741
751
  @validate_call
742
- def dataset_import_post_without_preload_content(
752
+ def dataset_get_by_id_get_without_preload_content(
743
753
  self,
744
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
745
- 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,
746
755
  _request_timeout: Union[
747
756
  None,
748
757
  Annotated[StrictFloat, Field(gt=0)],
@@ -756,13 +765,11 @@ class DatasetApi:
756
765
  _headers: Optional[Dict[StrictStr, Any]] = None,
757
766
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
758
767
  ) -> RESTResponseType:
759
- """Imports datapoints from a csv file.
768
+ """Gets a dataset by its id.
760
769
 
761
770
 
762
- :param dataset_id: The id of the dataset to import the datapoints to.
763
- :type dataset_id: str
764
- :param file: The csv file to import.
765
- :type file: bytearray
771
+ :param id: The id of the dataset to get.
772
+ :type id: str
766
773
  :param _request_timeout: timeout setting for this request. If one
767
774
  number provided, it will be total request
768
775
  timeout. It can also be a pair (tuple) of
@@ -785,9 +792,8 @@ class DatasetApi:
785
792
  :return: Returns the result object.
786
793
  """ # noqa: E501
787
794
 
788
- _param = self._dataset_import_post_serialize(
789
- dataset_id=dataset_id,
790
- file=file,
795
+ _param = self._dataset_get_by_id_get_serialize(
796
+ id=id,
791
797
  _request_auth=_request_auth,
792
798
  _content_type=_content_type,
793
799
  _headers=_headers,
@@ -795,7 +801,7 @@ class DatasetApi:
795
801
  )
796
802
 
797
803
  _response_types_map: Dict[str, Optional[str]] = {
798
- '200': "ImportFromFileResult",
804
+ '200': "GetDatasetByIdResult",
799
805
  }
800
806
  response_data = self.api_client.call_api(
801
807
  *_param,
@@ -804,10 +810,9 @@ class DatasetApi:
804
810
  return response_data.response
805
811
 
806
812
 
807
- def _dataset_import_post_serialize(
813
+ def _dataset_get_by_id_get_serialize(
808
814
  self,
809
- dataset_id,
810
- file,
815
+ id,
811
816
  _request_auth,
812
817
  _content_type,
813
818
  _headers,
@@ -830,14 +835,12 @@ class DatasetApi:
830
835
 
831
836
  # process the path parameters
832
837
  # process the query parameters
833
- if dataset_id is not None:
838
+ if id is not None:
834
839
 
835
- _query_params.append(('datasetId', dataset_id))
840
+ _query_params.append(('id', id))
836
841
 
837
842
  # process the header parameters
838
843
  # process the form parameters
839
- if file is not None:
840
- _files['file'] = file
841
844
  # process the body parameter
842
845
 
843
846
 
@@ -851,28 +854,16 @@ class DatasetApi:
851
854
  ]
852
855
  )
853
856
 
854
- # set the HTTP header `Content-Type`
855
- if _content_type:
856
- _header_params['Content-Type'] = _content_type
857
- else:
858
- _default_content_type = (
859
- self.api_client.select_header_content_type(
860
- [
861
- 'multipart/form-data'
862
- ]
863
- )
864
- )
865
- if _default_content_type is not None:
866
- _header_params['Content-Type'] = _default_content_type
867
857
 
868
858
  # authentication setting
869
859
  _auth_settings: List[str] = [
870
- 'bearer'
860
+ 'bearer',
861
+ 'oauth2'
871
862
  ]
872
863
 
873
864
  return self.api_client.param_serialize(
874
- method='POST',
875
- resource_path='/Dataset/Import',
865
+ method='GET',
866
+ resource_path='/Dataset/GetById',
876
867
  path_params=_path_params,
877
868
  query_params=_query_params,
878
869
  header_params=_header_params,
@@ -889,10 +880,10 @@ class DatasetApi:
889
880
 
890
881
 
891
882
  @validate_call
892
- def dataset_update_name_post(
883
+ def dataset_import_post(
893
884
  self,
894
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
895
- 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,
896
887
  _request_timeout: Union[
897
888
  None,
898
889
  Annotated[StrictFloat, Field(gt=0)],
@@ -905,14 +896,14 @@ class DatasetApi:
905
896
  _content_type: Optional[StrictStr] = None,
906
897
  _headers: Optional[Dict[StrictStr, Any]] = None,
907
898
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
908
- ) -> None:
909
- """Updates the name of a dataset.
899
+ ) -> ImportFromFileResult:
900
+ """Imports datapoints from a csv file.
910
901
 
911
902
 
912
- :param id: The id of the dataset to update.
913
- :type id: str
914
- :param name: The new name of the dataset.
915
- :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
916
907
  :param _request_timeout: timeout setting for this request. If one
917
908
  number provided, it will be total request
918
909
  timeout. It can also be a pair (tuple) of
@@ -935,9 +926,9 @@ class DatasetApi:
935
926
  :return: Returns the result object.
936
927
  """ # noqa: E501
937
928
 
938
- _param = self._dataset_update_name_post_serialize(
939
- id=id,
940
- name=name,
929
+ _param = self._dataset_import_post_serialize(
930
+ dataset_id=dataset_id,
931
+ file=file,
941
932
  _request_auth=_request_auth,
942
933
  _content_type=_content_type,
943
934
  _headers=_headers,
@@ -945,7 +936,7 @@ class DatasetApi:
945
936
  )
946
937
 
947
938
  _response_types_map: Dict[str, Optional[str]] = {
948
- '200': None,
939
+ '200': "ImportFromFileResult",
949
940
  }
950
941
  response_data = self.api_client.call_api(
951
942
  *_param,
@@ -959,10 +950,10 @@ class DatasetApi:
959
950
 
960
951
 
961
952
  @validate_call
962
- def dataset_update_name_post_with_http_info(
953
+ def dataset_import_post_with_http_info(
963
954
  self,
964
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
965
- 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,
966
957
  _request_timeout: Union[
967
958
  None,
968
959
  Annotated[StrictFloat, Field(gt=0)],
@@ -975,14 +966,14 @@ class DatasetApi:
975
966
  _content_type: Optional[StrictStr] = None,
976
967
  _headers: Optional[Dict[StrictStr, Any]] = None,
977
968
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
978
- ) -> ApiResponse[None]:
979
- """Updates the name of a dataset.
969
+ ) -> ApiResponse[ImportFromFileResult]:
970
+ """Imports datapoints from a csv file.
980
971
 
981
972
 
982
- :param id: The id of the dataset to update.
983
- :type id: str
984
- :param name: The new name of the dataset.
985
- :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
986
977
  :param _request_timeout: timeout setting for this request. If one
987
978
  number provided, it will be total request
988
979
  timeout. It can also be a pair (tuple) of
@@ -1005,9 +996,9 @@ class DatasetApi:
1005
996
  :return: Returns the result object.
1006
997
  """ # noqa: E501
1007
998
 
1008
- _param = self._dataset_update_name_post_serialize(
1009
- id=id,
1010
- name=name,
999
+ _param = self._dataset_import_post_serialize(
1000
+ dataset_id=dataset_id,
1001
+ file=file,
1011
1002
  _request_auth=_request_auth,
1012
1003
  _content_type=_content_type,
1013
1004
  _headers=_headers,
@@ -1015,7 +1006,7 @@ class DatasetApi:
1015
1006
  )
1016
1007
 
1017
1008
  _response_types_map: Dict[str, Optional[str]] = {
1018
- '200': None,
1009
+ '200': "ImportFromFileResult",
1019
1010
  }
1020
1011
  response_data = self.api_client.call_api(
1021
1012
  *_param,
@@ -1029,10 +1020,10 @@ class DatasetApi:
1029
1020
 
1030
1021
 
1031
1022
  @validate_call
1032
- def dataset_update_name_post_without_preload_content(
1023
+ def dataset_import_post_without_preload_content(
1033
1024
  self,
1034
- id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
1035
- 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,
1036
1027
  _request_timeout: Union[
1037
1028
  None,
1038
1029
  Annotated[StrictFloat, Field(gt=0)],
@@ -1046,13 +1037,13 @@ class DatasetApi:
1046
1037
  _headers: Optional[Dict[StrictStr, Any]] = None,
1047
1038
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1048
1039
  ) -> RESTResponseType:
1049
- """Updates the name of a dataset.
1040
+ """Imports datapoints from a csv file.
1050
1041
 
1051
1042
 
1052
- :param id: The id of the dataset to update.
1053
- :type id: str
1054
- :param name: The new name of the dataset.
1055
- :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
1056
1047
  :param _request_timeout: timeout setting for this request. If one
1057
1048
  number provided, it will be total request
1058
1049
  timeout. It can also be a pair (tuple) of
@@ -1075,9 +1066,9 @@ class DatasetApi:
1075
1066
  :return: Returns the result object.
1076
1067
  """ # noqa: E501
1077
1068
 
1078
- _param = self._dataset_update_name_post_serialize(
1079
- id=id,
1080
- name=name,
1069
+ _param = self._dataset_import_post_serialize(
1070
+ dataset_id=dataset_id,
1071
+ file=file,
1081
1072
  _request_auth=_request_auth,
1082
1073
  _content_type=_content_type,
1083
1074
  _headers=_headers,
@@ -1085,7 +1076,7 @@ class DatasetApi:
1085
1076
  )
1086
1077
 
1087
1078
  _response_types_map: Dict[str, Optional[str]] = {
1088
- '200': None,
1079
+ '200': "ImportFromFileResult",
1089
1080
  }
1090
1081
  response_data = self.api_client.call_api(
1091
1082
  *_param,
@@ -1094,10 +1085,10 @@ class DatasetApi:
1094
1085
  return response_data.response
1095
1086
 
1096
1087
 
1097
- def _dataset_update_name_post_serialize(
1088
+ def _dataset_import_post_serialize(
1098
1089
  self,
1099
- id,
1100
- name,
1090
+ dataset_id,
1091
+ file,
1101
1092
  _request_auth,
1102
1093
  _content_type,
1103
1094
  _headers,
@@ -1120,29 +1111,50 @@ class DatasetApi:
1120
1111
 
1121
1112
  # process the path parameters
1122
1113
  # process the query parameters
1123
- if id is not None:
1124
-
1125
- _query_params.append(('id', id))
1126
-
1127
- if name is not None:
1114
+ if dataset_id is not None:
1128
1115
 
1129
- _query_params.append(('name', name))
1116
+ _query_params.append(('datasetId', dataset_id))
1130
1117
 
1131
1118
  # process the header parameters
1132
1119
  # process the form parameters
1120
+ if file is not None:
1121
+ _files['file'] = file
1133
1122
  # process the body parameter
1134
1123
 
1135
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
+ )
1136
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
1137
1148
 
1138
1149
  # authentication setting
1139
1150
  _auth_settings: List[str] = [
1140
- 'bearer'
1151
+ 'bearer',
1152
+ 'oauth2'
1141
1153
  ]
1142
1154
 
1143
1155
  return self.api_client.param_serialize(
1144
1156
  method='POST',
1145
- resource_path='/Dataset/UpdateName',
1157
+ resource_path='/Dataset/Import',
1146
1158
  path_params=_path_params,
1147
1159
  query_params=_query_params,
1148
1160
  header_params=_header_params,
@@ -1159,10 +1171,10 @@ class DatasetApi:
1159
1171
 
1160
1172
 
1161
1173
  @validate_call
1162
- def dataset_upload_datapoint_post(
1174
+ def dataset_update_name_post(
1163
1175
  self,
1164
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1165
- 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,
1166
1178
  _request_timeout: Union[
1167
1179
  None,
1168
1180
  Annotated[StrictFloat, Field(gt=0)],
@@ -1175,14 +1187,14 @@ class DatasetApi:
1175
1187
  _content_type: Optional[StrictStr] = None,
1176
1188
  _headers: Optional[Dict[StrictStr, Any]] = None,
1177
1189
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1178
- ) -> UploadDatapointsResult:
1179
- """Creates a new multi asset datapoint.
1190
+ ) -> None:
1191
+ """Updates the name of a dataset.
1180
1192
 
1181
1193
 
1182
- :param dataset_id: The id of the dataset to upload the datapoint to.
1183
- :type dataset_id: str
1184
- :param files: The image files to create the asset from.
1185
- :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
1186
1198
  :param _request_timeout: timeout setting for this request. If one
1187
1199
  number provided, it will be total request
1188
1200
  timeout. It can also be a pair (tuple) of
@@ -1205,9 +1217,9 @@ class DatasetApi:
1205
1217
  :return: Returns the result object.
1206
1218
  """ # noqa: E501
1207
1219
 
1208
- _param = self._dataset_upload_datapoint_post_serialize(
1209
- dataset_id=dataset_id,
1210
- files=files,
1220
+ _param = self._dataset_update_name_post_serialize(
1221
+ id=id,
1222
+ name=name,
1211
1223
  _request_auth=_request_auth,
1212
1224
  _content_type=_content_type,
1213
1225
  _headers=_headers,
@@ -1215,7 +1227,7 @@ class DatasetApi:
1215
1227
  )
1216
1228
 
1217
1229
  _response_types_map: Dict[str, Optional[str]] = {
1218
- '200': "UploadDatapointsResult",
1230
+ '200': None,
1219
1231
  }
1220
1232
  response_data = self.api_client.call_api(
1221
1233
  *_param,
@@ -1229,10 +1241,10 @@ class DatasetApi:
1229
1241
 
1230
1242
 
1231
1243
  @validate_call
1232
- def dataset_upload_datapoint_post_with_http_info(
1244
+ def dataset_update_name_post_with_http_info(
1233
1245
  self,
1234
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1235
- 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,
1236
1248
  _request_timeout: Union[
1237
1249
  None,
1238
1250
  Annotated[StrictFloat, Field(gt=0)],
@@ -1245,14 +1257,14 @@ class DatasetApi:
1245
1257
  _content_type: Optional[StrictStr] = None,
1246
1258
  _headers: Optional[Dict[StrictStr, Any]] = None,
1247
1259
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1248
- ) -> ApiResponse[UploadDatapointsResult]:
1249
- """Creates a new multi asset datapoint.
1260
+ ) -> ApiResponse[None]:
1261
+ """Updates the name of a dataset.
1250
1262
 
1251
1263
 
1252
- :param dataset_id: The id of the dataset to upload the datapoint to.
1253
- :type dataset_id: str
1254
- :param files: The image files to create the asset from.
1255
- :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
1256
1268
  :param _request_timeout: timeout setting for this request. If one
1257
1269
  number provided, it will be total request
1258
1270
  timeout. It can also be a pair (tuple) of
@@ -1275,9 +1287,9 @@ class DatasetApi:
1275
1287
  :return: Returns the result object.
1276
1288
  """ # noqa: E501
1277
1289
 
1278
- _param = self._dataset_upload_datapoint_post_serialize(
1279
- dataset_id=dataset_id,
1280
- files=files,
1290
+ _param = self._dataset_update_name_post_serialize(
1291
+ id=id,
1292
+ name=name,
1281
1293
  _request_auth=_request_auth,
1282
1294
  _content_type=_content_type,
1283
1295
  _headers=_headers,
@@ -1285,7 +1297,7 @@ class DatasetApi:
1285
1297
  )
1286
1298
 
1287
1299
  _response_types_map: Dict[str, Optional[str]] = {
1288
- '200': "UploadDatapointsResult",
1300
+ '200': None,
1289
1301
  }
1290
1302
  response_data = self.api_client.call_api(
1291
1303
  *_param,
@@ -1299,10 +1311,10 @@ class DatasetApi:
1299
1311
 
1300
1312
 
1301
1313
  @validate_call
1302
- def dataset_upload_datapoint_post_without_preload_content(
1314
+ def dataset_update_name_post_without_preload_content(
1303
1315
  self,
1304
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the datapoint to.")] = None,
1305
- 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,
1306
1318
  _request_timeout: Union[
1307
1319
  None,
1308
1320
  Annotated[StrictFloat, Field(gt=0)],
@@ -1316,13 +1328,13 @@ class DatasetApi:
1316
1328
  _headers: Optional[Dict[StrictStr, Any]] = None,
1317
1329
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1318
1330
  ) -> RESTResponseType:
1319
- """Creates a new multi asset datapoint.
1331
+ """Updates the name of a dataset.
1320
1332
 
1321
1333
 
1322
- :param dataset_id: The id of the dataset to upload the datapoint to.
1323
- :type dataset_id: str
1324
- :param files: The image files to create the asset from.
1325
- :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
1326
1338
  :param _request_timeout: timeout setting for this request. If one
1327
1339
  number provided, it will be total request
1328
1340
  timeout. It can also be a pair (tuple) of
@@ -1345,9 +1357,9 @@ class DatasetApi:
1345
1357
  :return: Returns the result object.
1346
1358
  """ # noqa: E501
1347
1359
 
1348
- _param = self._dataset_upload_datapoint_post_serialize(
1349
- dataset_id=dataset_id,
1350
- files=files,
1360
+ _param = self._dataset_update_name_post_serialize(
1361
+ id=id,
1362
+ name=name,
1351
1363
  _request_auth=_request_auth,
1352
1364
  _content_type=_content_type,
1353
1365
  _headers=_headers,
@@ -1355,7 +1367,7 @@ class DatasetApi:
1355
1367
  )
1356
1368
 
1357
1369
  _response_types_map: Dict[str, Optional[str]] = {
1358
- '200': "UploadDatapointsResult",
1370
+ '200': None,
1359
1371
  }
1360
1372
  response_data = self.api_client.call_api(
1361
1373
  *_param,
@@ -1364,10 +1376,10 @@ class DatasetApi:
1364
1376
  return response_data.response
1365
1377
 
1366
1378
 
1367
- def _dataset_upload_datapoint_post_serialize(
1379
+ def _dataset_update_name_post_serialize(
1368
1380
  self,
1369
- dataset_id,
1370
- files,
1381
+ id,
1382
+ name,
1371
1383
  _request_auth,
1372
1384
  _content_type,
1373
1385
  _headers,
@@ -1377,7 +1389,6 @@ class DatasetApi:
1377
1389
  _host = None
1378
1390
 
1379
1391
  _collection_formats: Dict[str, str] = {
1380
- 'files': 'multi',
1381
1392
  }
1382
1393
 
1383
1394
  _path_params: Dict[str, str] = {}
@@ -1391,49 +1402,30 @@ class DatasetApi:
1391
1402
 
1392
1403
  # process the path parameters
1393
1404
  # process the query parameters
1394
- if dataset_id is not None:
1405
+ if id is not None:
1395
1406
 
1396
- _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))
1397
1412
 
1398
1413
  # process the header parameters
1399
1414
  # process the form parameters
1400
- if files is not None:
1401
- _files['files'] = files
1402
1415
  # process the body parameter
1403
1416
 
1404
1417
 
1405
- # set the HTTP header `Accept`
1406
- if 'Accept' not in _header_params:
1407
- _header_params['Accept'] = self.api_client.select_header_accept(
1408
- [
1409
- 'text/plain',
1410
- 'application/json',
1411
- 'text/json'
1412
- ]
1413
- )
1414
1418
 
1415
- # set the HTTP header `Content-Type`
1416
- if _content_type:
1417
- _header_params['Content-Type'] = _content_type
1418
- else:
1419
- _default_content_type = (
1420
- self.api_client.select_header_content_type(
1421
- [
1422
- 'multipart/form-data'
1423
- ]
1424
- )
1425
- )
1426
- if _default_content_type is not None:
1427
- _header_params['Content-Type'] = _default_content_type
1428
1419
 
1429
1420
  # authentication setting
1430
1421
  _auth_settings: List[str] = [
1431
- 'bearer'
1422
+ 'bearer',
1423
+ 'oauth2'
1432
1424
  ]
1433
1425
 
1434
1426
  return self.api_client.param_serialize(
1435
1427
  method='POST',
1436
- resource_path='/Dataset/UploadDatapoint',
1428
+ resource_path='/Dataset/UpdateName',
1437
1429
  path_params=_path_params,
1438
1430
  query_params=_query_params,
1439
1431
  header_params=_header_params,
@@ -1450,9 +1442,10 @@ class DatasetApi:
1450
1442
 
1451
1443
 
1452
1444
  @validate_call
1453
- def dataset_upload_files_from_s3_post(
1445
+ def dataset_upload_datapoint_post(
1454
1446
  self,
1455
- 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,
1456
1449
  _request_timeout: Union[
1457
1450
  None,
1458
1451
  Annotated[StrictFloat, Field(gt=0)],
@@ -1466,12 +1459,13 @@ class DatasetApi:
1466
1459
  _headers: Optional[Dict[StrictStr, Any]] = None,
1467
1460
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1468
1461
  ) -> UploadDatapointsResult:
1469
- """Uploads files from an S3 bucket to a dataset.
1462
+ """Creates a new multi asset datapoint.
1470
1463
 
1471
- A new datapoint will be created for each file in the bucket.
1472
1464
 
1473
- :param upload_files_from_s3_bucket_model: The body of the request.
1474
- :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]
1475
1469
  :param _request_timeout: timeout setting for this request. If one
1476
1470
  number provided, it will be total request
1477
1471
  timeout. It can also be a pair (tuple) of
@@ -1494,8 +1488,9 @@ class DatasetApi:
1494
1488
  :return: Returns the result object.
1495
1489
  """ # noqa: E501
1496
1490
 
1497
- _param = self._dataset_upload_files_from_s3_post_serialize(
1498
- 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,
1499
1494
  _request_auth=_request_auth,
1500
1495
  _content_type=_content_type,
1501
1496
  _headers=_headers,
@@ -1517,9 +1512,10 @@ class DatasetApi:
1517
1512
 
1518
1513
 
1519
1514
  @validate_call
1520
- def dataset_upload_files_from_s3_post_with_http_info(
1515
+ def dataset_upload_datapoint_post_with_http_info(
1521
1516
  self,
1522
- 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,
1523
1519
  _request_timeout: Union[
1524
1520
  None,
1525
1521
  Annotated[StrictFloat, Field(gt=0)],
@@ -1533,12 +1529,13 @@ class DatasetApi:
1533
1529
  _headers: Optional[Dict[StrictStr, Any]] = None,
1534
1530
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1535
1531
  ) -> ApiResponse[UploadDatapointsResult]:
1536
- """Uploads files from an S3 bucket to a dataset.
1532
+ """Creates a new multi asset datapoint.
1537
1533
 
1538
- A new datapoint will be created for each file in the bucket.
1539
1534
 
1540
- :param upload_files_from_s3_bucket_model: The body of the request.
1541
- :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]
1542
1539
  :param _request_timeout: timeout setting for this request. If one
1543
1540
  number provided, it will be total request
1544
1541
  timeout. It can also be a pair (tuple) of
@@ -1561,8 +1558,9 @@ class DatasetApi:
1561
1558
  :return: Returns the result object.
1562
1559
  """ # noqa: E501
1563
1560
 
1564
- _param = self._dataset_upload_files_from_s3_post_serialize(
1565
- 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,
1566
1564
  _request_auth=_request_auth,
1567
1565
  _content_type=_content_type,
1568
1566
  _headers=_headers,
@@ -1584,9 +1582,10 @@ class DatasetApi:
1584
1582
 
1585
1583
 
1586
1584
  @validate_call
1587
- def dataset_upload_files_from_s3_post_without_preload_content(
1585
+ def dataset_upload_datapoint_post_without_preload_content(
1588
1586
  self,
1589
- 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,
1590
1589
  _request_timeout: Union[
1591
1590
  None,
1592
1591
  Annotated[StrictFloat, Field(gt=0)],
@@ -1600,12 +1599,13 @@ class DatasetApi:
1600
1599
  _headers: Optional[Dict[StrictStr, Any]] = None,
1601
1600
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1602
1601
  ) -> RESTResponseType:
1603
- """Uploads files from an S3 bucket to a dataset.
1602
+ """Creates a new multi asset datapoint.
1604
1603
 
1605
- A new datapoint will be created for each file in the bucket.
1606
1604
 
1607
- :param upload_files_from_s3_bucket_model: The body of the request.
1608
- :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]
1609
1609
  :param _request_timeout: timeout setting for this request. If one
1610
1610
  number provided, it will be total request
1611
1611
  timeout. It can also be a pair (tuple) of
@@ -1628,8 +1628,9 @@ class DatasetApi:
1628
1628
  :return: Returns the result object.
1629
1629
  """ # noqa: E501
1630
1630
 
1631
- _param = self._dataset_upload_files_from_s3_post_serialize(
1632
- 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,
1633
1634
  _request_auth=_request_auth,
1634
1635
  _content_type=_content_type,
1635
1636
  _headers=_headers,
@@ -1646,9 +1647,10 @@ class DatasetApi:
1646
1647
  return response_data.response
1647
1648
 
1648
1649
 
1649
- def _dataset_upload_files_from_s3_post_serialize(
1650
+ def _dataset_upload_datapoint_post_serialize(
1650
1651
  self,
1651
- upload_files_from_s3_bucket_model,
1652
+ dataset_id,
1653
+ files,
1652
1654
  _request_auth,
1653
1655
  _content_type,
1654
1656
  _headers,
@@ -1658,6 +1660,7 @@ class DatasetApi:
1658
1660
  _host = None
1659
1661
 
1660
1662
  _collection_formats: Dict[str, str] = {
1663
+ 'files': 'multi',
1661
1664
  }
1662
1665
 
1663
1666
  _path_params: Dict[str, str] = {}
@@ -1671,11 +1674,15 @@ class DatasetApi:
1671
1674
 
1672
1675
  # process the path parameters
1673
1676
  # process the query parameters
1677
+ if dataset_id is not None:
1678
+
1679
+ _query_params.append(('datasetId', dataset_id))
1680
+
1674
1681
  # process the header parameters
1675
1682
  # process the form parameters
1683
+ if files is not None:
1684
+ _files['files'] = files
1676
1685
  # process the body parameter
1677
- if upload_files_from_s3_bucket_model is not None:
1678
- _body_params = upload_files_from_s3_bucket_model
1679
1686
 
1680
1687
 
1681
1688
  # set the HTTP header `Accept`
@@ -1695,9 +1702,7 @@ class DatasetApi:
1695
1702
  _default_content_type = (
1696
1703
  self.api_client.select_header_content_type(
1697
1704
  [
1698
- 'application/json',
1699
- 'text/json',
1700
- 'application/*+json'
1705
+ 'multipart/form-data'
1701
1706
  ]
1702
1707
  )
1703
1708
  )
@@ -1706,12 +1711,13 @@ class DatasetApi:
1706
1711
 
1707
1712
  # authentication setting
1708
1713
  _auth_settings: List[str] = [
1709
- 'bearer'
1714
+ 'bearer',
1715
+ 'oauth2'
1710
1716
  ]
1711
1717
 
1712
1718
  return self.api_client.param_serialize(
1713
1719
  method='POST',
1714
- resource_path='/Dataset/UploadFilesFromS3',
1720
+ resource_path='/Dataset/UploadDatapoint',
1715
1721
  path_params=_path_params,
1716
1722
  query_params=_query_params,
1717
1723
  header_params=_header_params,
@@ -1728,10 +1734,9 @@ class DatasetApi:
1728
1734
 
1729
1735
 
1730
1736
  @validate_call
1731
- def dataset_upload_images_to_dataset_post(
1737
+ def dataset_upload_files_from_s3_post(
1732
1738
  self,
1733
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
1734
- 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,
1735
1740
  _request_timeout: Union[
1736
1741
  None,
1737
1742
  Annotated[StrictFloat, Field(gt=0)],
@@ -1744,15 +1749,13 @@ class DatasetApi:
1744
1749
  _content_type: Optional[StrictStr] = None,
1745
1750
  _headers: Optional[Dict[StrictStr, Any]] = None,
1746
1751
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1747
- ) -> None:
1748
- """Uploads images to a dataset.
1752
+ ) -> UploadDatapointsResult:
1753
+ """Uploads files from an S3 bucket to a dataset.
1749
1754
 
1750
- 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.
1751
1756
 
1752
- :param dataset_id: The id of the dataset to upload the images to.
1753
- :type dataset_id: str
1754
- :param files: The image files to upload.
1755
- :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
1756
1759
  :param _request_timeout: timeout setting for this request. If one
1757
1760
  number provided, it will be total request
1758
1761
  timeout. It can also be a pair (tuple) of
@@ -1775,9 +1778,8 @@ class DatasetApi:
1775
1778
  :return: Returns the result object.
1776
1779
  """ # noqa: E501
1777
1780
 
1778
- _param = self._dataset_upload_images_to_dataset_post_serialize(
1779
- dataset_id=dataset_id,
1780
- 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,
1781
1783
  _request_auth=_request_auth,
1782
1784
  _content_type=_content_type,
1783
1785
  _headers=_headers,
@@ -1785,7 +1787,7 @@ class DatasetApi:
1785
1787
  )
1786
1788
 
1787
1789
  _response_types_map: Dict[str, Optional[str]] = {
1788
- '200': None,
1790
+ '200': "UploadDatapointsResult",
1789
1791
  }
1790
1792
  response_data = self.api_client.call_api(
1791
1793
  *_param,
@@ -1799,10 +1801,9 @@ class DatasetApi:
1799
1801
 
1800
1802
 
1801
1803
  @validate_call
1802
- def dataset_upload_images_to_dataset_post_with_http_info(
1804
+ def dataset_upload_files_from_s3_post_with_http_info(
1803
1805
  self,
1804
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
1805
- 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,
1806
1807
  _request_timeout: Union[
1807
1808
  None,
1808
1809
  Annotated[StrictFloat, Field(gt=0)],
@@ -1815,15 +1816,13 @@ class DatasetApi:
1815
1816
  _content_type: Optional[StrictStr] = None,
1816
1817
  _headers: Optional[Dict[StrictStr, Any]] = None,
1817
1818
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1818
- ) -> ApiResponse[None]:
1819
- """Uploads images to a dataset.
1819
+ ) -> ApiResponse[UploadDatapointsResult]:
1820
+ """Uploads files from an S3 bucket to a dataset.
1820
1821
 
1821
- 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.
1822
1823
 
1823
- :param dataset_id: The id of the dataset to upload the images to.
1824
- :type dataset_id: str
1825
- :param files: The image files to upload.
1826
- :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
1827
1826
  :param _request_timeout: timeout setting for this request. If one
1828
1827
  number provided, it will be total request
1829
1828
  timeout. It can also be a pair (tuple) of
@@ -1846,9 +1845,8 @@ class DatasetApi:
1846
1845
  :return: Returns the result object.
1847
1846
  """ # noqa: E501
1848
1847
 
1849
- _param = self._dataset_upload_images_to_dataset_post_serialize(
1850
- dataset_id=dataset_id,
1851
- 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,
1852
1850
  _request_auth=_request_auth,
1853
1851
  _content_type=_content_type,
1854
1852
  _headers=_headers,
@@ -1856,7 +1854,7 @@ class DatasetApi:
1856
1854
  )
1857
1855
 
1858
1856
  _response_types_map: Dict[str, Optional[str]] = {
1859
- '200': None,
1857
+ '200': "UploadDatapointsResult",
1860
1858
  }
1861
1859
  response_data = self.api_client.call_api(
1862
1860
  *_param,
@@ -1870,10 +1868,9 @@ class DatasetApi:
1870
1868
 
1871
1869
 
1872
1870
  @validate_call
1873
- def dataset_upload_images_to_dataset_post_without_preload_content(
1871
+ def dataset_upload_files_from_s3_post_without_preload_content(
1874
1872
  self,
1875
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
1876
- 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,
1877
1874
  _request_timeout: Union[
1878
1875
  None,
1879
1876
  Annotated[StrictFloat, Field(gt=0)],
@@ -1887,14 +1884,12 @@ class DatasetApi:
1887
1884
  _headers: Optional[Dict[StrictStr, Any]] = None,
1888
1885
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1889
1886
  ) -> RESTResponseType:
1890
- """Uploads images to a dataset.
1887
+ """Uploads files from an S3 bucket to a dataset.
1891
1888
 
1892
- 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.
1893
1890
 
1894
- :param dataset_id: The id of the dataset to upload the images to.
1895
- :type dataset_id: str
1896
- :param files: The image files to upload.
1897
- :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
1898
1893
  :param _request_timeout: timeout setting for this request. If one
1899
1894
  number provided, it will be total request
1900
1895
  timeout. It can also be a pair (tuple) of
@@ -1917,9 +1912,8 @@ class DatasetApi:
1917
1912
  :return: Returns the result object.
1918
1913
  """ # noqa: E501
1919
1914
 
1920
- _param = self._dataset_upload_images_to_dataset_post_serialize(
1921
- dataset_id=dataset_id,
1922
- 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,
1923
1917
  _request_auth=_request_auth,
1924
1918
  _content_type=_content_type,
1925
1919
  _headers=_headers,
@@ -1927,7 +1921,7 @@ class DatasetApi:
1927
1921
  )
1928
1922
 
1929
1923
  _response_types_map: Dict[str, Optional[str]] = {
1930
- '200': None,
1924
+ '200': "UploadDatapointsResult",
1931
1925
  }
1932
1926
  response_data = self.api_client.call_api(
1933
1927
  *_param,
@@ -1936,10 +1930,9 @@ class DatasetApi:
1936
1930
  return response_data.response
1937
1931
 
1938
1932
 
1939
- def _dataset_upload_images_to_dataset_post_serialize(
1933
+ def _dataset_upload_files_from_s3_post_serialize(
1940
1934
  self,
1941
- dataset_id,
1942
- files,
1935
+ upload_files_from_s3_bucket_model,
1943
1936
  _request_auth,
1944
1937
  _content_type,
1945
1938
  _headers,
@@ -1949,7 +1942,6 @@ class DatasetApi:
1949
1942
  _host = None
1950
1943
 
1951
1944
  _collection_formats: Dict[str, str] = {
1952
- 'files': 'multi',
1953
1945
  }
1954
1946
 
1955
1947
  _path_params: Dict[str, str] = {}
@@ -1963,17 +1955,22 @@ class DatasetApi:
1963
1955
 
1964
1956
  # process the path parameters
1965
1957
  # process the query parameters
1966
- if dataset_id is not None:
1967
-
1968
- _query_params.append(('datasetId', dataset_id))
1969
-
1970
1958
  # process the header parameters
1971
1959
  # process the form parameters
1972
- if files is not None:
1973
- _files['files'] = files
1974
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
1975
1963
 
1976
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
+ )
1977
1974
 
1978
1975
  # set the HTTP header `Content-Type`
1979
1976
  if _content_type:
@@ -1982,7 +1979,9 @@ class DatasetApi:
1982
1979
  _default_content_type = (
1983
1980
  self.api_client.select_header_content_type(
1984
1981
  [
1985
- 'multipart/form-data'
1982
+ 'application/json',
1983
+ 'text/json',
1984
+ 'application/*+json'
1986
1985
  ]
1987
1986
  )
1988
1987
  )
@@ -1991,12 +1990,13 @@ class DatasetApi:
1991
1990
 
1992
1991
  # authentication setting
1993
1992
  _auth_settings: List[str] = [
1994
- 'bearer'
1993
+ 'bearer',
1994
+ 'oauth2'
1995
1995
  ]
1996
1996
 
1997
1997
  return self.api_client.param_serialize(
1998
1998
  method='POST',
1999
- resource_path='/Dataset/UploadImagesToDataset',
1999
+ resource_path='/Dataset/UploadFilesFromS3',
2000
2000
  path_params=_path_params,
2001
2001
  query_params=_query_params,
2002
2002
  header_params=_header_params,
@@ -2013,9 +2013,10 @@ class DatasetApi:
2013
2013
 
2014
2014
 
2015
2015
  @validate_call
2016
- def dataset_upload_text_sources_to_dataset_post(
2016
+ def dataset_upload_images_to_dataset_post(
2017
2017
  self,
2018
- 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,
2019
2020
  _request_timeout: Union[
2020
2021
  None,
2021
2022
  Annotated[StrictFloat, Field(gt=0)],
@@ -2028,13 +2029,15 @@ class DatasetApi:
2028
2029
  _content_type: Optional[StrictStr] = None,
2029
2030
  _headers: Optional[Dict[StrictStr, Any]] = None,
2030
2031
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2031
- ) -> UploadDatapointsResult:
2032
- """Creates new datapoints from text sources.
2032
+ ) -> None:
2033
+ """Uploads images to a dataset.
2033
2034
 
2034
- 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.
2035
2036
 
2036
- :param upload_text_sources_to_dataset_model: The body of the request.
2037
- :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]
2038
2041
  :param _request_timeout: timeout setting for this request. If one
2039
2042
  number provided, it will be total request
2040
2043
  timeout. It can also be a pair (tuple) of
@@ -2057,8 +2060,9 @@ class DatasetApi:
2057
2060
  :return: Returns the result object.
2058
2061
  """ # noqa: E501
2059
2062
 
2060
- _param = self._dataset_upload_text_sources_to_dataset_post_serialize(
2061
- 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,
2062
2066
  _request_auth=_request_auth,
2063
2067
  _content_type=_content_type,
2064
2068
  _headers=_headers,
@@ -2066,7 +2070,7 @@ class DatasetApi:
2066
2070
  )
2067
2071
 
2068
2072
  _response_types_map: Dict[str, Optional[str]] = {
2069
- '200': "UploadDatapointsResult",
2073
+ '200': None,
2070
2074
  }
2071
2075
  response_data = self.api_client.call_api(
2072
2076
  *_param,
@@ -2080,9 +2084,10 @@ class DatasetApi:
2080
2084
 
2081
2085
 
2082
2086
  @validate_call
2083
- def dataset_upload_text_sources_to_dataset_post_with_http_info(
2087
+ def dataset_upload_images_to_dataset_post_with_http_info(
2084
2088
  self,
2085
- 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,
2086
2091
  _request_timeout: Union[
2087
2092
  None,
2088
2093
  Annotated[StrictFloat, Field(gt=0)],
@@ -2095,13 +2100,15 @@ class DatasetApi:
2095
2100
  _content_type: Optional[StrictStr] = None,
2096
2101
  _headers: Optional[Dict[StrictStr, Any]] = None,
2097
2102
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2098
- ) -> ApiResponse[UploadDatapointsResult]:
2099
- """Creates new datapoints from text sources.
2103
+ ) -> ApiResponse[None]:
2104
+ """Uploads images to a dataset.
2100
2105
 
2101
- 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.
2102
2107
 
2103
- :param upload_text_sources_to_dataset_model: The body of the request.
2104
- :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]
2105
2112
  :param _request_timeout: timeout setting for this request. If one
2106
2113
  number provided, it will be total request
2107
2114
  timeout. It can also be a pair (tuple) of
@@ -2124,8 +2131,9 @@ class DatasetApi:
2124
2131
  :return: Returns the result object.
2125
2132
  """ # noqa: E501
2126
2133
 
2127
- _param = self._dataset_upload_text_sources_to_dataset_post_serialize(
2128
- 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,
2129
2137
  _request_auth=_request_auth,
2130
2138
  _content_type=_content_type,
2131
2139
  _headers=_headers,
@@ -2133,7 +2141,7 @@ class DatasetApi:
2133
2141
  )
2134
2142
 
2135
2143
  _response_types_map: Dict[str, Optional[str]] = {
2136
- '200': "UploadDatapointsResult",
2144
+ '200': None,
2137
2145
  }
2138
2146
  response_data = self.api_client.call_api(
2139
2147
  *_param,
@@ -2147,9 +2155,10 @@ class DatasetApi:
2147
2155
 
2148
2156
 
2149
2157
  @validate_call
2150
- def dataset_upload_text_sources_to_dataset_post_without_preload_content(
2158
+ def dataset_upload_images_to_dataset_post_without_preload_content(
2151
2159
  self,
2152
- 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,
2153
2162
  _request_timeout: Union[
2154
2163
  None,
2155
2164
  Annotated[StrictFloat, Field(gt=0)],
@@ -2163,12 +2172,14 @@ class DatasetApi:
2163
2172
  _headers: Optional[Dict[StrictStr, Any]] = None,
2164
2173
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2165
2174
  ) -> RESTResponseType:
2166
- """Creates new datapoints from text sources.
2175
+ """Uploads images to a dataset.
2167
2176
 
2168
- 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.
2169
2178
 
2170
- :param upload_text_sources_to_dataset_model: The body of the request.
2171
- :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]
2172
2183
  :param _request_timeout: timeout setting for this request. If one
2173
2184
  number provided, it will be total request
2174
2185
  timeout. It can also be a pair (tuple) of
@@ -2191,8 +2202,9 @@ class DatasetApi:
2191
2202
  :return: Returns the result object.
2192
2203
  """ # noqa: E501
2193
2204
 
2194
- _param = self._dataset_upload_text_sources_to_dataset_post_serialize(
2195
- 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,
2196
2208
  _request_auth=_request_auth,
2197
2209
  _content_type=_content_type,
2198
2210
  _headers=_headers,
@@ -2200,7 +2212,7 @@ class DatasetApi:
2200
2212
  )
2201
2213
 
2202
2214
  _response_types_map: Dict[str, Optional[str]] = {
2203
- '200': "UploadDatapointsResult",
2215
+ '200': None,
2204
2216
  }
2205
2217
  response_data = self.api_client.call_api(
2206
2218
  *_param,
@@ -2209,9 +2221,10 @@ class DatasetApi:
2209
2221
  return response_data.response
2210
2222
 
2211
2223
 
2212
- def _dataset_upload_text_sources_to_dataset_post_serialize(
2224
+ def _dataset_upload_images_to_dataset_post_serialize(
2213
2225
  self,
2214
- upload_text_sources_to_dataset_model,
2226
+ dataset_id,
2227
+ files,
2215
2228
  _request_auth,
2216
2229
  _content_type,
2217
2230
  _headers,
@@ -2221,6 +2234,7 @@ class DatasetApi:
2221
2234
  _host = None
2222
2235
 
2223
2236
  _collection_formats: Dict[str, str] = {
2237
+ 'files': 'multi',
2224
2238
  }
2225
2239
 
2226
2240
  _path_params: Dict[str, str] = {}
@@ -2234,22 +2248,17 @@ class DatasetApi:
2234
2248
 
2235
2249
  # process the path parameters
2236
2250
  # process the query parameters
2251
+ if dataset_id is not None:
2252
+
2253
+ _query_params.append(('datasetId', dataset_id))
2254
+
2237
2255
  # process the header parameters
2238
2256
  # process the form parameters
2257
+ if files is not None:
2258
+ _files['files'] = files
2239
2259
  # process the body parameter
2240
- if upload_text_sources_to_dataset_model is not None:
2241
- _body_params = upload_text_sources_to_dataset_model
2242
2260
 
2243
2261
 
2244
- # set the HTTP header `Accept`
2245
- if 'Accept' not in _header_params:
2246
- _header_params['Accept'] = self.api_client.select_header_accept(
2247
- [
2248
- 'text/plain',
2249
- 'application/json',
2250
- 'text/json'
2251
- ]
2252
- )
2253
2262
 
2254
2263
  # set the HTTP header `Content-Type`
2255
2264
  if _content_type:
@@ -2258,9 +2267,7 @@ class DatasetApi:
2258
2267
  _default_content_type = (
2259
2268
  self.api_client.select_header_content_type(
2260
2269
  [
2261
- 'application/json',
2262
- 'text/json',
2263
- 'application/*+json'
2270
+ 'multipart/form-data'
2264
2271
  ]
2265
2272
  )
2266
2273
  )
@@ -2269,12 +2276,13 @@ class DatasetApi:
2269
2276
 
2270
2277
  # authentication setting
2271
2278
  _auth_settings: List[str] = [
2272
- 'bearer'
2279
+ 'bearer',
2280
+ 'oauth2'
2273
2281
  ]
2274
2282
 
2275
2283
  return self.api_client.param_serialize(
2276
2284
  method='POST',
2277
- resource_path='/Dataset/UploadTextSourcesToDataset',
2285
+ resource_path='/Dataset/UploadImagesToDataset',
2278
2286
  path_params=_path_params,
2279
2287
  query_params=_query_params,
2280
2288
  header_params=_header_params,