rapidata 2.14.1__py3-none-any.whl → 2.16.0__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.
- rapidata/api_client/__init__.py +18 -7
- rapidata/api_client/api/__init__.py +2 -1
- rapidata/api_client/api/campaign_api.py +868 -92
- rapidata/api_client/api/client_api.py +292 -20
- rapidata/api_client/api/coco_api.py +594 -8
- rapidata/api_client/api/compare_workflow_api.py +23 -23
- rapidata/api_client/api/datapoint_api.py +548 -26
- rapidata/api_client/api/dataset_api.py +2198 -186
- rapidata/api_client/api/feedback_api.py +306 -0
- rapidata/api_client/api/identity_api.py +1143 -78
- rapidata/api_client/api/newsletter_api.py +299 -11
- rapidata/api_client/api/order_api.py +5570 -516
- rapidata/api_client/api/pipeline_api.py +263 -524
- rapidata/api_client/api/rapid_api.py +1930 -254
- rapidata/api_client/api/simple_workflow_api.py +23 -23
- rapidata/api_client/api/validation_api.py +283 -0
- rapidata/api_client/api/validation_set_api.py +5259 -0
- rapidata/api_client/api/workflow_api.py +929 -134
- rapidata/api_client/models/__init__.py +16 -6
- rapidata/api_client/models/ab_test_selection_a_inner.py +24 -10
- rapidata/api_client/models/add_campaign_model.py +9 -2
- rapidata/api_client/models/add_user_response_result.py +106 -0
- rapidata/api_client/models/add_user_response_result_validation_truth.py +258 -0
- rapidata/api_client/models/add_validation_rapid_model.py +3 -3
- rapidata/api_client/models/add_validation_text_rapid_model.py +3 -3
- rapidata/api_client/models/are_rapids_active_result.py +87 -0
- rapidata/api_client/models/campaign_query_result.py +2 -2
- rapidata/api_client/models/campaign_status.py +1 -0
- rapidata/api_client/models/compare_workflow_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_files_model.py +102 -0
- rapidata/api_client/models/create_datapoint_from_files_model_metadata_inner.py +168 -0
- rapidata/api_client/models/create_datapoint_from_text_sources_model.py +109 -0
- rapidata/api_client/models/create_datapoint_from_urls_model.py +4 -4
- rapidata/api_client/models/create_datapoints_from_s3_bucket_model.py +124 -0
- rapidata/api_client/models/create_order_model.py +15 -1
- rapidata/api_client/models/create_rapid_result.py +87 -0
- rapidata/api_client/models/create_validation_set_model.py +87 -0
- rapidata/api_client/models/datapoint_metadata_model.py +3 -3
- rapidata/api_client/models/evaluation_workflow_model.py +1 -1
- rapidata/api_client/models/get_validation_rapids_query.py +123 -0
- rapidata/api_client/models/get_validation_rapids_query_paged_result.py +105 -0
- rapidata/api_client/models/order_model.py +2 -2
- rapidata/api_client/models/order_state.py +1 -0
- rapidata/api_client/models/pipeline_id_workflow_artifact_id_put_request.py +140 -0
- rapidata/api_client/models/query_validation_rapids_result.py +3 -3
- rapidata/api_client/models/rapid_issue.py +4 -0
- rapidata/api_client/models/report_model.py +4 -4
- rapidata/api_client/models/shuffling_selection.py +106 -0
- rapidata/api_client/models/update_dataset_name_model.py +87 -0
- rapidata/api_client/models/update_dimensions_model.py +87 -0
- rapidata/api_client/models/update_order_name_model.py +87 -0
- rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
- rapidata/api_client/models/user_score_user_filter_model.py +9 -2
- rapidata/api_client_README.md +154 -84
- rapidata/rapidata_client/demographic/demographic_manager.py +36 -1
- rapidata/rapidata_client/filter/user_score_filter.py +4 -1
- rapidata/rapidata_client/order/_rapidata_dataset.py +10 -11
- rapidata/rapidata_client/order/_rapidata_order_builder.py +3 -1
- rapidata/rapidata_client/order/rapidata_order.py +8 -10
- rapidata/rapidata_client/order/rapidata_order_manager.py +11 -2
- rapidata/rapidata_client/order/rapidata_results.py +1 -1
- rapidata/rapidata_client/validation/rapidata_validation_set.py +11 -0
- rapidata/rapidata_client/validation/rapids/rapids.py +3 -5
- rapidata/rapidata_client/validation/validation_set_manager.py +36 -21
- rapidata/rapidata_client/workflow/_ranking_workflow.py +2 -2
- {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/METADATA +1 -1
- {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/RECORD +69 -51
- {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/LICENSE +0 -0
- {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/WHEEL +0 -0
|
@@ -19,13 +19,18 @@ from typing_extensions import Annotated
|
|
|
19
19
|
from pydantic import Field, StrictBytes, StrictStr
|
|
20
20
|
from typing import List, Optional, Tuple, Union
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
|
+
from rapidata.api_client.models.create_datapoint_from_files_model import CreateDatapointFromFilesModel
|
|
23
|
+
from rapidata.api_client.models.create_datapoint_from_text_sources_model import CreateDatapointFromTextSourcesModel
|
|
22
24
|
from rapidata.api_client.models.create_datapoint_from_urls_model import CreateDatapointFromUrlsModel
|
|
23
25
|
from rapidata.api_client.models.create_datapoint_result import CreateDatapointResult
|
|
26
|
+
from rapidata.api_client.models.create_datapoints_from_s3_bucket_model import CreateDatapointsFromS3BucketModel
|
|
24
27
|
from rapidata.api_client.models.datapoint_metadata_model import DatapointMetadataModel
|
|
28
|
+
from rapidata.api_client.models.get_datapoints_by_dataset_id_result import GetDatapointsByDatasetIdResult
|
|
25
29
|
from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
|
|
26
30
|
from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
|
|
27
31
|
from rapidata.api_client.models.get_failed_datapoints_result import GetFailedDatapointsResult
|
|
28
32
|
from rapidata.api_client.models.import_from_file_result import ImportFromFileResult
|
|
33
|
+
from rapidata.api_client.models.update_dataset_name_model import UpdateDatasetNameModel
|
|
29
34
|
from rapidata.api_client.models.upload_files_from_s3_bucket_model import UploadFilesFromS3BucketModel
|
|
30
35
|
from rapidata.api_client.models.upload_from_s3_result import UploadFromS3Result
|
|
31
36
|
from rapidata.api_client.models.upload_text_sources_to_dataset_model import UploadTextSourcesToDatasetModel
|
|
@@ -49,7 +54,439 @@ class DatasetApi:
|
|
|
49
54
|
|
|
50
55
|
|
|
51
56
|
@validate_call
|
|
52
|
-
def
|
|
57
|
+
def dataset_createdatapoint_post(
|
|
58
|
+
self,
|
|
59
|
+
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
60
|
+
model: Optional[DatapointMetadataModel] = None,
|
|
61
|
+
_request_timeout: Union[
|
|
62
|
+
None,
|
|
63
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
64
|
+
Tuple[
|
|
65
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
66
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
67
|
+
]
|
|
68
|
+
] = None,
|
|
69
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
70
|
+
_content_type: Optional[StrictStr] = None,
|
|
71
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
72
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
73
|
+
) -> CreateDatapointResult:
|
|
74
|
+
"""(Deprecated) Creates a single datapoint.
|
|
75
|
+
|
|
76
|
+
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
77
|
+
|
|
78
|
+
:param files:
|
|
79
|
+
:type files: List[bytearray]
|
|
80
|
+
:param model:
|
|
81
|
+
:type model: DatapointMetadataModel
|
|
82
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
83
|
+
number provided, it will be total request
|
|
84
|
+
timeout. It can also be a pair (tuple) of
|
|
85
|
+
(connection, read) timeouts.
|
|
86
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
87
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
88
|
+
request; this effectively ignores the
|
|
89
|
+
authentication in the spec for a single request.
|
|
90
|
+
:type _request_auth: dict, optional
|
|
91
|
+
:param _content_type: force content-type for the request.
|
|
92
|
+
:type _content_type: str, Optional
|
|
93
|
+
:param _headers: set to override the headers for a single
|
|
94
|
+
request; this effectively ignores the headers
|
|
95
|
+
in the spec for a single request.
|
|
96
|
+
:type _headers: dict, optional
|
|
97
|
+
:param _host_index: set to override the host_index for a single
|
|
98
|
+
request; this effectively ignores the host_index
|
|
99
|
+
in the spec for a single request.
|
|
100
|
+
:type _host_index: int, optional
|
|
101
|
+
:return: Returns the result object.
|
|
102
|
+
""" # noqa: E501
|
|
103
|
+
warnings.warn("POST /dataset/createdatapoint is deprecated.", DeprecationWarning)
|
|
104
|
+
|
|
105
|
+
_param = self._dataset_createdatapoint_post_serialize(
|
|
106
|
+
files=files,
|
|
107
|
+
model=model,
|
|
108
|
+
_request_auth=_request_auth,
|
|
109
|
+
_content_type=_content_type,
|
|
110
|
+
_headers=_headers,
|
|
111
|
+
_host_index=_host_index
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
115
|
+
'200': "CreateDatapointResult",
|
|
116
|
+
}
|
|
117
|
+
response_data = self.api_client.call_api(
|
|
118
|
+
*_param,
|
|
119
|
+
_request_timeout=_request_timeout
|
|
120
|
+
)
|
|
121
|
+
response_data.read()
|
|
122
|
+
return self.api_client.response_deserialize(
|
|
123
|
+
response_data=response_data,
|
|
124
|
+
response_types_map=_response_types_map,
|
|
125
|
+
).data
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
@validate_call
|
|
129
|
+
def dataset_createdatapoint_post_with_http_info(
|
|
130
|
+
self,
|
|
131
|
+
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
132
|
+
model: Optional[DatapointMetadataModel] = None,
|
|
133
|
+
_request_timeout: Union[
|
|
134
|
+
None,
|
|
135
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
136
|
+
Tuple[
|
|
137
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
138
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
139
|
+
]
|
|
140
|
+
] = None,
|
|
141
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
142
|
+
_content_type: Optional[StrictStr] = None,
|
|
143
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
144
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
145
|
+
) -> ApiResponse[CreateDatapointResult]:
|
|
146
|
+
"""(Deprecated) Creates a single datapoint.
|
|
147
|
+
|
|
148
|
+
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
149
|
+
|
|
150
|
+
:param files:
|
|
151
|
+
:type files: List[bytearray]
|
|
152
|
+
:param model:
|
|
153
|
+
:type model: DatapointMetadataModel
|
|
154
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
155
|
+
number provided, it will be total request
|
|
156
|
+
timeout. It can also be a pair (tuple) of
|
|
157
|
+
(connection, read) timeouts.
|
|
158
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
159
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
160
|
+
request; this effectively ignores the
|
|
161
|
+
authentication in the spec for a single request.
|
|
162
|
+
:type _request_auth: dict, optional
|
|
163
|
+
:param _content_type: force content-type for the request.
|
|
164
|
+
:type _content_type: str, Optional
|
|
165
|
+
:param _headers: set to override the headers for a single
|
|
166
|
+
request; this effectively ignores the headers
|
|
167
|
+
in the spec for a single request.
|
|
168
|
+
:type _headers: dict, optional
|
|
169
|
+
:param _host_index: set to override the host_index for a single
|
|
170
|
+
request; this effectively ignores the host_index
|
|
171
|
+
in the spec for a single request.
|
|
172
|
+
:type _host_index: int, optional
|
|
173
|
+
:return: Returns the result object.
|
|
174
|
+
""" # noqa: E501
|
|
175
|
+
warnings.warn("POST /dataset/createdatapoint is deprecated.", DeprecationWarning)
|
|
176
|
+
|
|
177
|
+
_param = self._dataset_createdatapoint_post_serialize(
|
|
178
|
+
files=files,
|
|
179
|
+
model=model,
|
|
180
|
+
_request_auth=_request_auth,
|
|
181
|
+
_content_type=_content_type,
|
|
182
|
+
_headers=_headers,
|
|
183
|
+
_host_index=_host_index
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
187
|
+
'200': "CreateDatapointResult",
|
|
188
|
+
}
|
|
189
|
+
response_data = self.api_client.call_api(
|
|
190
|
+
*_param,
|
|
191
|
+
_request_timeout=_request_timeout
|
|
192
|
+
)
|
|
193
|
+
response_data.read()
|
|
194
|
+
return self.api_client.response_deserialize(
|
|
195
|
+
response_data=response_data,
|
|
196
|
+
response_types_map=_response_types_map,
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
@validate_call
|
|
201
|
+
def dataset_createdatapoint_post_without_preload_content(
|
|
202
|
+
self,
|
|
203
|
+
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
204
|
+
model: Optional[DatapointMetadataModel] = None,
|
|
205
|
+
_request_timeout: Union[
|
|
206
|
+
None,
|
|
207
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
208
|
+
Tuple[
|
|
209
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
210
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
211
|
+
]
|
|
212
|
+
] = None,
|
|
213
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
214
|
+
_content_type: Optional[StrictStr] = None,
|
|
215
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
216
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
217
|
+
) -> RESTResponseType:
|
|
218
|
+
"""(Deprecated) Creates a single datapoint.
|
|
219
|
+
|
|
220
|
+
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
221
|
+
|
|
222
|
+
:param files:
|
|
223
|
+
:type files: List[bytearray]
|
|
224
|
+
:param model:
|
|
225
|
+
:type model: DatapointMetadataModel
|
|
226
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
227
|
+
number provided, it will be total request
|
|
228
|
+
timeout. It can also be a pair (tuple) of
|
|
229
|
+
(connection, read) timeouts.
|
|
230
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
231
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
232
|
+
request; this effectively ignores the
|
|
233
|
+
authentication in the spec for a single request.
|
|
234
|
+
:type _request_auth: dict, optional
|
|
235
|
+
:param _content_type: force content-type for the request.
|
|
236
|
+
:type _content_type: str, Optional
|
|
237
|
+
:param _headers: set to override the headers for a single
|
|
238
|
+
request; this effectively ignores the headers
|
|
239
|
+
in the spec for a single request.
|
|
240
|
+
:type _headers: dict, optional
|
|
241
|
+
:param _host_index: set to override the host_index for a single
|
|
242
|
+
request; this effectively ignores the host_index
|
|
243
|
+
in the spec for a single request.
|
|
244
|
+
:type _host_index: int, optional
|
|
245
|
+
:return: Returns the result object.
|
|
246
|
+
""" # noqa: E501
|
|
247
|
+
warnings.warn("POST /dataset/createdatapoint is deprecated.", DeprecationWarning)
|
|
248
|
+
|
|
249
|
+
_param = self._dataset_createdatapoint_post_serialize(
|
|
250
|
+
files=files,
|
|
251
|
+
model=model,
|
|
252
|
+
_request_auth=_request_auth,
|
|
253
|
+
_content_type=_content_type,
|
|
254
|
+
_headers=_headers,
|
|
255
|
+
_host_index=_host_index
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
259
|
+
'200': "CreateDatapointResult",
|
|
260
|
+
}
|
|
261
|
+
response_data = self.api_client.call_api(
|
|
262
|
+
*_param,
|
|
263
|
+
_request_timeout=_request_timeout
|
|
264
|
+
)
|
|
265
|
+
return response_data.response
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
def _dataset_createdatapoint_post_serialize(
|
|
269
|
+
self,
|
|
270
|
+
files,
|
|
271
|
+
model,
|
|
272
|
+
_request_auth,
|
|
273
|
+
_content_type,
|
|
274
|
+
_headers,
|
|
275
|
+
_host_index,
|
|
276
|
+
) -> RequestSerialized:
|
|
277
|
+
|
|
278
|
+
_host = None
|
|
279
|
+
|
|
280
|
+
_collection_formats: Dict[str, str] = {
|
|
281
|
+
'files': 'multi',
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
_path_params: Dict[str, str] = {}
|
|
285
|
+
_query_params: List[Tuple[str, str]] = []
|
|
286
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
287
|
+
_form_params: List[Tuple[str, str]] = []
|
|
288
|
+
_files: Dict[
|
|
289
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
290
|
+
] = {}
|
|
291
|
+
_body_params: Optional[bytes] = None
|
|
292
|
+
|
|
293
|
+
# process the path parameters
|
|
294
|
+
# process the query parameters
|
|
295
|
+
# process the header parameters
|
|
296
|
+
# process the form parameters
|
|
297
|
+
if files is not None:
|
|
298
|
+
_files['files'] = files
|
|
299
|
+
if model is not None:
|
|
300
|
+
_form_params.append(('model', model))
|
|
301
|
+
# process the body parameter
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
# set the HTTP header `Accept`
|
|
305
|
+
if 'Accept' not in _header_params:
|
|
306
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
307
|
+
[
|
|
308
|
+
'text/plain',
|
|
309
|
+
'application/json',
|
|
310
|
+
'text/json'
|
|
311
|
+
]
|
|
312
|
+
)
|
|
313
|
+
|
|
314
|
+
# set the HTTP header `Content-Type`
|
|
315
|
+
if _content_type:
|
|
316
|
+
_header_params['Content-Type'] = _content_type
|
|
317
|
+
else:
|
|
318
|
+
_default_content_type = (
|
|
319
|
+
self.api_client.select_header_content_type(
|
|
320
|
+
[
|
|
321
|
+
'multipart/form-data'
|
|
322
|
+
]
|
|
323
|
+
)
|
|
324
|
+
)
|
|
325
|
+
if _default_content_type is not None:
|
|
326
|
+
_header_params['Content-Type'] = _default_content_type
|
|
327
|
+
|
|
328
|
+
# authentication setting
|
|
329
|
+
_auth_settings: List[str] = [
|
|
330
|
+
'bearer',
|
|
331
|
+
'oauth2'
|
|
332
|
+
]
|
|
333
|
+
|
|
334
|
+
return self.api_client.param_serialize(
|
|
335
|
+
method='POST',
|
|
336
|
+
resource_path='/dataset/createdatapoint',
|
|
337
|
+
path_params=_path_params,
|
|
338
|
+
query_params=_query_params,
|
|
339
|
+
header_params=_header_params,
|
|
340
|
+
body=_body_params,
|
|
341
|
+
post_params=_form_params,
|
|
342
|
+
files=_files,
|
|
343
|
+
auth_settings=_auth_settings,
|
|
344
|
+
collection_formats=_collection_formats,
|
|
345
|
+
_host=_host,
|
|
346
|
+
_request_auth=_request_auth
|
|
347
|
+
)
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
@validate_call
|
|
353
|
+
def dataset_creattextdatapoint_post(
|
|
354
|
+
self,
|
|
355
|
+
upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
|
|
356
|
+
_request_timeout: Union[
|
|
357
|
+
None,
|
|
358
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
359
|
+
Tuple[
|
|
360
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
361
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
362
|
+
]
|
|
363
|
+
] = None,
|
|
364
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
365
|
+
_content_type: Optional[StrictStr] = None,
|
|
366
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
367
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
368
|
+
) -> CreateDatapointResult:
|
|
369
|
+
"""(Deprecated) Creates new datapoints from text sources.
|
|
370
|
+
|
|
371
|
+
If multiple text sources are uploaded, a new datapoint will be created for each text source.
|
|
372
|
+
|
|
373
|
+
:param upload_text_sources_to_dataset_model: The body of the request.
|
|
374
|
+
:type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
|
|
375
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
376
|
+
number provided, it will be total request
|
|
377
|
+
timeout. It can also be a pair (tuple) of
|
|
378
|
+
(connection, read) timeouts.
|
|
379
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
380
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
381
|
+
request; this effectively ignores the
|
|
382
|
+
authentication in the spec for a single request.
|
|
383
|
+
:type _request_auth: dict, optional
|
|
384
|
+
:param _content_type: force content-type for the request.
|
|
385
|
+
:type _content_type: str, Optional
|
|
386
|
+
:param _headers: set to override the headers for a single
|
|
387
|
+
request; this effectively ignores the headers
|
|
388
|
+
in the spec for a single request.
|
|
389
|
+
:type _headers: dict, optional
|
|
390
|
+
:param _host_index: set to override the host_index for a single
|
|
391
|
+
request; this effectively ignores the host_index
|
|
392
|
+
in the spec for a single request.
|
|
393
|
+
:type _host_index: int, optional
|
|
394
|
+
:return: Returns the result object.
|
|
395
|
+
""" # noqa: E501
|
|
396
|
+
warnings.warn("POST /dataset/creattextdatapoint is deprecated.", DeprecationWarning)
|
|
397
|
+
|
|
398
|
+
_param = self._dataset_creattextdatapoint_post_serialize(
|
|
399
|
+
upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
|
|
400
|
+
_request_auth=_request_auth,
|
|
401
|
+
_content_type=_content_type,
|
|
402
|
+
_headers=_headers,
|
|
403
|
+
_host_index=_host_index
|
|
404
|
+
)
|
|
405
|
+
|
|
406
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
407
|
+
'200': "CreateDatapointResult",
|
|
408
|
+
}
|
|
409
|
+
response_data = self.api_client.call_api(
|
|
410
|
+
*_param,
|
|
411
|
+
_request_timeout=_request_timeout
|
|
412
|
+
)
|
|
413
|
+
response_data.read()
|
|
414
|
+
return self.api_client.response_deserialize(
|
|
415
|
+
response_data=response_data,
|
|
416
|
+
response_types_map=_response_types_map,
|
|
417
|
+
).data
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
@validate_call
|
|
421
|
+
def dataset_creattextdatapoint_post_with_http_info(
|
|
422
|
+
self,
|
|
423
|
+
upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
|
|
424
|
+
_request_timeout: Union[
|
|
425
|
+
None,
|
|
426
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
427
|
+
Tuple[
|
|
428
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
429
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
430
|
+
]
|
|
431
|
+
] = None,
|
|
432
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
433
|
+
_content_type: Optional[StrictStr] = None,
|
|
434
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
435
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
436
|
+
) -> ApiResponse[CreateDatapointResult]:
|
|
437
|
+
"""(Deprecated) Creates new datapoints from text sources.
|
|
438
|
+
|
|
439
|
+
If multiple text sources are uploaded, a new datapoint will be created for each text source.
|
|
440
|
+
|
|
441
|
+
:param upload_text_sources_to_dataset_model: The body of the request.
|
|
442
|
+
:type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
|
|
443
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
444
|
+
number provided, it will be total request
|
|
445
|
+
timeout. It can also be a pair (tuple) of
|
|
446
|
+
(connection, read) timeouts.
|
|
447
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
448
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
449
|
+
request; this effectively ignores the
|
|
450
|
+
authentication in the spec for a single request.
|
|
451
|
+
:type _request_auth: dict, optional
|
|
452
|
+
:param _content_type: force content-type for the request.
|
|
453
|
+
:type _content_type: str, Optional
|
|
454
|
+
:param _headers: set to override the headers for a single
|
|
455
|
+
request; this effectively ignores the headers
|
|
456
|
+
in the spec for a single request.
|
|
457
|
+
:type _headers: dict, optional
|
|
458
|
+
:param _host_index: set to override the host_index for a single
|
|
459
|
+
request; this effectively ignores the host_index
|
|
460
|
+
in the spec for a single request.
|
|
461
|
+
:type _host_index: int, optional
|
|
462
|
+
:return: Returns the result object.
|
|
463
|
+
""" # noqa: E501
|
|
464
|
+
warnings.warn("POST /dataset/creattextdatapoint is deprecated.", DeprecationWarning)
|
|
465
|
+
|
|
466
|
+
_param = self._dataset_creattextdatapoint_post_serialize(
|
|
467
|
+
upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
|
|
468
|
+
_request_auth=_request_auth,
|
|
469
|
+
_content_type=_content_type,
|
|
470
|
+
_headers=_headers,
|
|
471
|
+
_host_index=_host_index
|
|
472
|
+
)
|
|
473
|
+
|
|
474
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
475
|
+
'200': "CreateDatapointResult",
|
|
476
|
+
}
|
|
477
|
+
response_data = self.api_client.call_api(
|
|
478
|
+
*_param,
|
|
479
|
+
_request_timeout=_request_timeout
|
|
480
|
+
)
|
|
481
|
+
response_data.read()
|
|
482
|
+
return self.api_client.response_deserialize(
|
|
483
|
+
response_data=response_data,
|
|
484
|
+
response_types_map=_response_types_map,
|
|
485
|
+
)
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
@validate_call
|
|
489
|
+
def dataset_creattextdatapoint_post_without_preload_content(
|
|
53
490
|
self,
|
|
54
491
|
upload_text_sources_to_dataset_model: Annotated[Optional[UploadTextSourcesToDatasetModel], Field(description="The body of the request.")] = None,
|
|
55
492
|
_request_timeout: Union[
|
|
@@ -64,13 +501,1578 @@ class DatasetApi:
|
|
|
64
501
|
_content_type: Optional[StrictStr] = None,
|
|
65
502
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
66
503
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
504
|
+
) -> RESTResponseType:
|
|
505
|
+
"""(Deprecated) Creates new datapoints from text sources.
|
|
506
|
+
|
|
507
|
+
If multiple text sources are uploaded, a new datapoint will be created for each text source.
|
|
508
|
+
|
|
509
|
+
:param upload_text_sources_to_dataset_model: The body of the request.
|
|
510
|
+
:type upload_text_sources_to_dataset_model: UploadTextSourcesToDatasetModel
|
|
511
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
512
|
+
number provided, it will be total request
|
|
513
|
+
timeout. It can also be a pair (tuple) of
|
|
514
|
+
(connection, read) timeouts.
|
|
515
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
516
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
517
|
+
request; this effectively ignores the
|
|
518
|
+
authentication in the spec for a single request.
|
|
519
|
+
:type _request_auth: dict, optional
|
|
520
|
+
:param _content_type: force content-type for the request.
|
|
521
|
+
:type _content_type: str, Optional
|
|
522
|
+
:param _headers: set to override the headers for a single
|
|
523
|
+
request; this effectively ignores the headers
|
|
524
|
+
in the spec for a single request.
|
|
525
|
+
:type _headers: dict, optional
|
|
526
|
+
:param _host_index: set to override the host_index for a single
|
|
527
|
+
request; this effectively ignores the host_index
|
|
528
|
+
in the spec for a single request.
|
|
529
|
+
:type _host_index: int, optional
|
|
530
|
+
:return: Returns the result object.
|
|
531
|
+
""" # noqa: E501
|
|
532
|
+
warnings.warn("POST /dataset/creattextdatapoint is deprecated.", DeprecationWarning)
|
|
533
|
+
|
|
534
|
+
_param = self._dataset_creattextdatapoint_post_serialize(
|
|
535
|
+
upload_text_sources_to_dataset_model=upload_text_sources_to_dataset_model,
|
|
536
|
+
_request_auth=_request_auth,
|
|
537
|
+
_content_type=_content_type,
|
|
538
|
+
_headers=_headers,
|
|
539
|
+
_host_index=_host_index
|
|
540
|
+
)
|
|
541
|
+
|
|
542
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
543
|
+
'200': "CreateDatapointResult",
|
|
544
|
+
}
|
|
545
|
+
response_data = self.api_client.call_api(
|
|
546
|
+
*_param,
|
|
547
|
+
_request_timeout=_request_timeout
|
|
548
|
+
)
|
|
549
|
+
return response_data.response
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
def _dataset_creattextdatapoint_post_serialize(
|
|
553
|
+
self,
|
|
554
|
+
upload_text_sources_to_dataset_model,
|
|
555
|
+
_request_auth,
|
|
556
|
+
_content_type,
|
|
557
|
+
_headers,
|
|
558
|
+
_host_index,
|
|
559
|
+
) -> RequestSerialized:
|
|
560
|
+
|
|
561
|
+
_host = None
|
|
562
|
+
|
|
563
|
+
_collection_formats: Dict[str, str] = {
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
_path_params: Dict[str, str] = {}
|
|
567
|
+
_query_params: List[Tuple[str, str]] = []
|
|
568
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
569
|
+
_form_params: List[Tuple[str, str]] = []
|
|
570
|
+
_files: Dict[
|
|
571
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
572
|
+
] = {}
|
|
573
|
+
_body_params: Optional[bytes] = None
|
|
574
|
+
|
|
575
|
+
# process the path parameters
|
|
576
|
+
# process the query parameters
|
|
577
|
+
# process the header parameters
|
|
578
|
+
# process the form parameters
|
|
579
|
+
# process the body parameter
|
|
580
|
+
if upload_text_sources_to_dataset_model is not None:
|
|
581
|
+
_body_params = upload_text_sources_to_dataset_model
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
# set the HTTP header `Accept`
|
|
585
|
+
if 'Accept' not in _header_params:
|
|
586
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
587
|
+
[
|
|
588
|
+
'text/plain',
|
|
589
|
+
'application/json',
|
|
590
|
+
'text/json'
|
|
591
|
+
]
|
|
592
|
+
)
|
|
593
|
+
|
|
594
|
+
# set the HTTP header `Content-Type`
|
|
595
|
+
if _content_type:
|
|
596
|
+
_header_params['Content-Type'] = _content_type
|
|
597
|
+
else:
|
|
598
|
+
_default_content_type = (
|
|
599
|
+
self.api_client.select_header_content_type(
|
|
600
|
+
[
|
|
601
|
+
'application/json',
|
|
602
|
+
'text/json',
|
|
603
|
+
'application/*+json'
|
|
604
|
+
]
|
|
605
|
+
)
|
|
606
|
+
)
|
|
607
|
+
if _default_content_type is not None:
|
|
608
|
+
_header_params['Content-Type'] = _default_content_type
|
|
609
|
+
|
|
610
|
+
# authentication setting
|
|
611
|
+
_auth_settings: List[str] = [
|
|
612
|
+
'bearer',
|
|
613
|
+
'oauth2'
|
|
614
|
+
]
|
|
615
|
+
|
|
616
|
+
return self.api_client.param_serialize(
|
|
617
|
+
method='POST',
|
|
618
|
+
resource_path='/dataset/creattextdatapoint',
|
|
619
|
+
path_params=_path_params,
|
|
620
|
+
query_params=_query_params,
|
|
621
|
+
header_params=_header_params,
|
|
622
|
+
body=_body_params,
|
|
623
|
+
post_params=_form_params,
|
|
624
|
+
files=_files,
|
|
625
|
+
auth_settings=_auth_settings,
|
|
626
|
+
collection_formats=_collection_formats,
|
|
627
|
+
_host=_host,
|
|
628
|
+
_request_auth=_request_auth
|
|
629
|
+
)
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
@validate_call
|
|
635
|
+
def dataset_dataset_id_datapoints_csv_post(
|
|
636
|
+
self,
|
|
637
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to import the datapoints to.")],
|
|
638
|
+
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
|
|
639
|
+
_request_timeout: Union[
|
|
640
|
+
None,
|
|
641
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
642
|
+
Tuple[
|
|
643
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
644
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
645
|
+
]
|
|
646
|
+
] = None,
|
|
647
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
648
|
+
_content_type: Optional[StrictStr] = None,
|
|
649
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
650
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
651
|
+
) -> ImportFromFileResult:
|
|
652
|
+
"""Creates multiple datapoints from a csv.
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
:param dataset_id: The id of the dataset to import the datapoints to. (required)
|
|
656
|
+
:type dataset_id: str
|
|
657
|
+
:param file: The csv file to import.
|
|
658
|
+
:type file: bytearray
|
|
659
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
660
|
+
number provided, it will be total request
|
|
661
|
+
timeout. It can also be a pair (tuple) of
|
|
662
|
+
(connection, read) timeouts.
|
|
663
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
664
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
665
|
+
request; this effectively ignores the
|
|
666
|
+
authentication in the spec for a single request.
|
|
667
|
+
:type _request_auth: dict, optional
|
|
668
|
+
:param _content_type: force content-type for the request.
|
|
669
|
+
:type _content_type: str, Optional
|
|
670
|
+
:param _headers: set to override the headers for a single
|
|
671
|
+
request; this effectively ignores the headers
|
|
672
|
+
in the spec for a single request.
|
|
673
|
+
:type _headers: dict, optional
|
|
674
|
+
:param _host_index: set to override the host_index for a single
|
|
675
|
+
request; this effectively ignores the host_index
|
|
676
|
+
in the spec for a single request.
|
|
677
|
+
:type _host_index: int, optional
|
|
678
|
+
:return: Returns the result object.
|
|
679
|
+
""" # noqa: E501
|
|
680
|
+
|
|
681
|
+
_param = self._dataset_dataset_id_datapoints_csv_post_serialize(
|
|
682
|
+
dataset_id=dataset_id,
|
|
683
|
+
file=file,
|
|
684
|
+
_request_auth=_request_auth,
|
|
685
|
+
_content_type=_content_type,
|
|
686
|
+
_headers=_headers,
|
|
687
|
+
_host_index=_host_index
|
|
688
|
+
)
|
|
689
|
+
|
|
690
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
691
|
+
'200': "ImportFromFileResult",
|
|
692
|
+
}
|
|
693
|
+
response_data = self.api_client.call_api(
|
|
694
|
+
*_param,
|
|
695
|
+
_request_timeout=_request_timeout
|
|
696
|
+
)
|
|
697
|
+
response_data.read()
|
|
698
|
+
return self.api_client.response_deserialize(
|
|
699
|
+
response_data=response_data,
|
|
700
|
+
response_types_map=_response_types_map,
|
|
701
|
+
).data
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
@validate_call
|
|
705
|
+
def dataset_dataset_id_datapoints_csv_post_with_http_info(
|
|
706
|
+
self,
|
|
707
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to import the datapoints to.")],
|
|
708
|
+
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
|
|
709
|
+
_request_timeout: Union[
|
|
710
|
+
None,
|
|
711
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
712
|
+
Tuple[
|
|
713
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
714
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
715
|
+
]
|
|
716
|
+
] = None,
|
|
717
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
718
|
+
_content_type: Optional[StrictStr] = None,
|
|
719
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
720
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
721
|
+
) -> ApiResponse[ImportFromFileResult]:
|
|
722
|
+
"""Creates multiple datapoints from a csv.
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
:param dataset_id: The id of the dataset to import the datapoints to. (required)
|
|
726
|
+
:type dataset_id: str
|
|
727
|
+
:param file: The csv file to import.
|
|
728
|
+
:type file: bytearray
|
|
729
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
730
|
+
number provided, it will be total request
|
|
731
|
+
timeout. It can also be a pair (tuple) of
|
|
732
|
+
(connection, read) timeouts.
|
|
733
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
734
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
735
|
+
request; this effectively ignores the
|
|
736
|
+
authentication in the spec for a single request.
|
|
737
|
+
:type _request_auth: dict, optional
|
|
738
|
+
:param _content_type: force content-type for the request.
|
|
739
|
+
:type _content_type: str, Optional
|
|
740
|
+
:param _headers: set to override the headers for a single
|
|
741
|
+
request; this effectively ignores the headers
|
|
742
|
+
in the spec for a single request.
|
|
743
|
+
:type _headers: dict, optional
|
|
744
|
+
:param _host_index: set to override the host_index for a single
|
|
745
|
+
request; this effectively ignores the host_index
|
|
746
|
+
in the spec for a single request.
|
|
747
|
+
:type _host_index: int, optional
|
|
748
|
+
:return: Returns the result object.
|
|
749
|
+
""" # noqa: E501
|
|
750
|
+
|
|
751
|
+
_param = self._dataset_dataset_id_datapoints_csv_post_serialize(
|
|
752
|
+
dataset_id=dataset_id,
|
|
753
|
+
file=file,
|
|
754
|
+
_request_auth=_request_auth,
|
|
755
|
+
_content_type=_content_type,
|
|
756
|
+
_headers=_headers,
|
|
757
|
+
_host_index=_host_index
|
|
758
|
+
)
|
|
759
|
+
|
|
760
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
761
|
+
'200': "ImportFromFileResult",
|
|
762
|
+
}
|
|
763
|
+
response_data = self.api_client.call_api(
|
|
764
|
+
*_param,
|
|
765
|
+
_request_timeout=_request_timeout
|
|
766
|
+
)
|
|
767
|
+
response_data.read()
|
|
768
|
+
return self.api_client.response_deserialize(
|
|
769
|
+
response_data=response_data,
|
|
770
|
+
response_types_map=_response_types_map,
|
|
771
|
+
)
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
@validate_call
|
|
775
|
+
def dataset_dataset_id_datapoints_csv_post_without_preload_content(
|
|
776
|
+
self,
|
|
777
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to import the datapoints to.")],
|
|
778
|
+
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
|
|
779
|
+
_request_timeout: Union[
|
|
780
|
+
None,
|
|
781
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
782
|
+
Tuple[
|
|
783
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
784
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
785
|
+
]
|
|
786
|
+
] = None,
|
|
787
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
788
|
+
_content_type: Optional[StrictStr] = None,
|
|
789
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
790
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
791
|
+
) -> RESTResponseType:
|
|
792
|
+
"""Creates multiple datapoints from a csv.
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
:param dataset_id: The id of the dataset to import the datapoints to. (required)
|
|
796
|
+
:type dataset_id: str
|
|
797
|
+
:param file: The csv file to import.
|
|
798
|
+
:type file: bytearray
|
|
799
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
800
|
+
number provided, it will be total request
|
|
801
|
+
timeout. It can also be a pair (tuple) of
|
|
802
|
+
(connection, read) timeouts.
|
|
803
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
804
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
805
|
+
request; this effectively ignores the
|
|
806
|
+
authentication in the spec for a single request.
|
|
807
|
+
:type _request_auth: dict, optional
|
|
808
|
+
:param _content_type: force content-type for the request.
|
|
809
|
+
:type _content_type: str, Optional
|
|
810
|
+
:param _headers: set to override the headers for a single
|
|
811
|
+
request; this effectively ignores the headers
|
|
812
|
+
in the spec for a single request.
|
|
813
|
+
:type _headers: dict, optional
|
|
814
|
+
:param _host_index: set to override the host_index for a single
|
|
815
|
+
request; this effectively ignores the host_index
|
|
816
|
+
in the spec for a single request.
|
|
817
|
+
:type _host_index: int, optional
|
|
818
|
+
:return: Returns the result object.
|
|
819
|
+
""" # noqa: E501
|
|
820
|
+
|
|
821
|
+
_param = self._dataset_dataset_id_datapoints_csv_post_serialize(
|
|
822
|
+
dataset_id=dataset_id,
|
|
823
|
+
file=file,
|
|
824
|
+
_request_auth=_request_auth,
|
|
825
|
+
_content_type=_content_type,
|
|
826
|
+
_headers=_headers,
|
|
827
|
+
_host_index=_host_index
|
|
828
|
+
)
|
|
829
|
+
|
|
830
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
831
|
+
'200': "ImportFromFileResult",
|
|
832
|
+
}
|
|
833
|
+
response_data = self.api_client.call_api(
|
|
834
|
+
*_param,
|
|
835
|
+
_request_timeout=_request_timeout
|
|
836
|
+
)
|
|
837
|
+
return response_data.response
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
def _dataset_dataset_id_datapoints_csv_post_serialize(
|
|
841
|
+
self,
|
|
842
|
+
dataset_id,
|
|
843
|
+
file,
|
|
844
|
+
_request_auth,
|
|
845
|
+
_content_type,
|
|
846
|
+
_headers,
|
|
847
|
+
_host_index,
|
|
848
|
+
) -> RequestSerialized:
|
|
849
|
+
|
|
850
|
+
_host = None
|
|
851
|
+
|
|
852
|
+
_collection_formats: Dict[str, str] = {
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
_path_params: Dict[str, str] = {}
|
|
856
|
+
_query_params: List[Tuple[str, str]] = []
|
|
857
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
858
|
+
_form_params: List[Tuple[str, str]] = []
|
|
859
|
+
_files: Dict[
|
|
860
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
861
|
+
] = {}
|
|
862
|
+
_body_params: Optional[bytes] = None
|
|
863
|
+
|
|
864
|
+
# process the path parameters
|
|
865
|
+
if dataset_id is not None:
|
|
866
|
+
_path_params['datasetId'] = dataset_id
|
|
867
|
+
# process the query parameters
|
|
868
|
+
# process the header parameters
|
|
869
|
+
# process the form parameters
|
|
870
|
+
if file is not None:
|
|
871
|
+
_files['file'] = file
|
|
872
|
+
# process the body parameter
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
# set the HTTP header `Accept`
|
|
876
|
+
if 'Accept' not in _header_params:
|
|
877
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
878
|
+
[
|
|
879
|
+
'text/plain',
|
|
880
|
+
'application/json',
|
|
881
|
+
'text/json'
|
|
882
|
+
]
|
|
883
|
+
)
|
|
884
|
+
|
|
885
|
+
# set the HTTP header `Content-Type`
|
|
886
|
+
if _content_type:
|
|
887
|
+
_header_params['Content-Type'] = _content_type
|
|
888
|
+
else:
|
|
889
|
+
_default_content_type = (
|
|
890
|
+
self.api_client.select_header_content_type(
|
|
891
|
+
[
|
|
892
|
+
'multipart/form-data'
|
|
893
|
+
]
|
|
894
|
+
)
|
|
895
|
+
)
|
|
896
|
+
if _default_content_type is not None:
|
|
897
|
+
_header_params['Content-Type'] = _default_content_type
|
|
898
|
+
|
|
899
|
+
# authentication setting
|
|
900
|
+
_auth_settings: List[str] = [
|
|
901
|
+
'bearer',
|
|
902
|
+
'oauth2'
|
|
903
|
+
]
|
|
904
|
+
|
|
905
|
+
return self.api_client.param_serialize(
|
|
906
|
+
method='POST',
|
|
907
|
+
resource_path='/dataset/{datasetId}/datapoints/csv',
|
|
908
|
+
path_params=_path_params,
|
|
909
|
+
query_params=_query_params,
|
|
910
|
+
header_params=_header_params,
|
|
911
|
+
body=_body_params,
|
|
912
|
+
post_params=_form_params,
|
|
913
|
+
files=_files,
|
|
914
|
+
auth_settings=_auth_settings,
|
|
915
|
+
collection_formats=_collection_formats,
|
|
916
|
+
_host=_host,
|
|
917
|
+
_request_auth=_request_auth
|
|
918
|
+
)
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
@validate_call
|
|
924
|
+
def dataset_dataset_id_datapoints_failed_get(
|
|
925
|
+
self,
|
|
926
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
|
|
927
|
+
_request_timeout: Union[
|
|
928
|
+
None,
|
|
929
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
930
|
+
Tuple[
|
|
931
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
932
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
933
|
+
]
|
|
934
|
+
] = None,
|
|
935
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
936
|
+
_content_type: Optional[StrictStr] = None,
|
|
937
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
938
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
939
|
+
) -> GetFailedDatapointsResult:
|
|
940
|
+
"""Gets a list of all datapoints that failed to upload.
|
|
941
|
+
|
|
942
|
+
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
943
|
+
|
|
944
|
+
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
945
|
+
:type dataset_id: str
|
|
946
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
947
|
+
number provided, it will be total request
|
|
948
|
+
timeout. It can also be a pair (tuple) of
|
|
949
|
+
(connection, read) timeouts.
|
|
950
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
951
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
952
|
+
request; this effectively ignores the
|
|
953
|
+
authentication in the spec for a single request.
|
|
954
|
+
:type _request_auth: dict, optional
|
|
955
|
+
:param _content_type: force content-type for the request.
|
|
956
|
+
:type _content_type: str, Optional
|
|
957
|
+
:param _headers: set to override the headers for a single
|
|
958
|
+
request; this effectively ignores the headers
|
|
959
|
+
in the spec for a single request.
|
|
960
|
+
:type _headers: dict, optional
|
|
961
|
+
:param _host_index: set to override the host_index for a single
|
|
962
|
+
request; this effectively ignores the host_index
|
|
963
|
+
in the spec for a single request.
|
|
964
|
+
:type _host_index: int, optional
|
|
965
|
+
:return: Returns the result object.
|
|
966
|
+
""" # noqa: E501
|
|
967
|
+
|
|
968
|
+
_param = self._dataset_dataset_id_datapoints_failed_get_serialize(
|
|
969
|
+
dataset_id=dataset_id,
|
|
970
|
+
_request_auth=_request_auth,
|
|
971
|
+
_content_type=_content_type,
|
|
972
|
+
_headers=_headers,
|
|
973
|
+
_host_index=_host_index
|
|
974
|
+
)
|
|
975
|
+
|
|
976
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
977
|
+
'200': "GetFailedDatapointsResult",
|
|
978
|
+
}
|
|
979
|
+
response_data = self.api_client.call_api(
|
|
980
|
+
*_param,
|
|
981
|
+
_request_timeout=_request_timeout
|
|
982
|
+
)
|
|
983
|
+
response_data.read()
|
|
984
|
+
return self.api_client.response_deserialize(
|
|
985
|
+
response_data=response_data,
|
|
986
|
+
response_types_map=_response_types_map,
|
|
987
|
+
).data
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
@validate_call
|
|
991
|
+
def dataset_dataset_id_datapoints_failed_get_with_http_info(
|
|
992
|
+
self,
|
|
993
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
|
|
994
|
+
_request_timeout: Union[
|
|
995
|
+
None,
|
|
996
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
997
|
+
Tuple[
|
|
998
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
999
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1000
|
+
]
|
|
1001
|
+
] = None,
|
|
1002
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1003
|
+
_content_type: Optional[StrictStr] = None,
|
|
1004
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1005
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1006
|
+
) -> ApiResponse[GetFailedDatapointsResult]:
|
|
1007
|
+
"""Gets a list of all datapoints that failed to upload.
|
|
1008
|
+
|
|
1009
|
+
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
1010
|
+
|
|
1011
|
+
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
1012
|
+
:type dataset_id: str
|
|
1013
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1014
|
+
number provided, it will be total request
|
|
1015
|
+
timeout. It can also be a pair (tuple) of
|
|
1016
|
+
(connection, read) timeouts.
|
|
1017
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1018
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1019
|
+
request; this effectively ignores the
|
|
1020
|
+
authentication in the spec for a single request.
|
|
1021
|
+
:type _request_auth: dict, optional
|
|
1022
|
+
:param _content_type: force content-type for the request.
|
|
1023
|
+
:type _content_type: str, Optional
|
|
1024
|
+
:param _headers: set to override the headers for a single
|
|
1025
|
+
request; this effectively ignores the headers
|
|
1026
|
+
in the spec for a single request.
|
|
1027
|
+
:type _headers: dict, optional
|
|
1028
|
+
:param _host_index: set to override the host_index for a single
|
|
1029
|
+
request; this effectively ignores the host_index
|
|
1030
|
+
in the spec for a single request.
|
|
1031
|
+
:type _host_index: int, optional
|
|
1032
|
+
:return: Returns the result object.
|
|
1033
|
+
""" # noqa: E501
|
|
1034
|
+
|
|
1035
|
+
_param = self._dataset_dataset_id_datapoints_failed_get_serialize(
|
|
1036
|
+
dataset_id=dataset_id,
|
|
1037
|
+
_request_auth=_request_auth,
|
|
1038
|
+
_content_type=_content_type,
|
|
1039
|
+
_headers=_headers,
|
|
1040
|
+
_host_index=_host_index
|
|
1041
|
+
)
|
|
1042
|
+
|
|
1043
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1044
|
+
'200': "GetFailedDatapointsResult",
|
|
1045
|
+
}
|
|
1046
|
+
response_data = self.api_client.call_api(
|
|
1047
|
+
*_param,
|
|
1048
|
+
_request_timeout=_request_timeout
|
|
1049
|
+
)
|
|
1050
|
+
response_data.read()
|
|
1051
|
+
return self.api_client.response_deserialize(
|
|
1052
|
+
response_data=response_data,
|
|
1053
|
+
response_types_map=_response_types_map,
|
|
1054
|
+
)
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
@validate_call
|
|
1058
|
+
def dataset_dataset_id_datapoints_failed_get_without_preload_content(
|
|
1059
|
+
self,
|
|
1060
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
|
|
1061
|
+
_request_timeout: Union[
|
|
1062
|
+
None,
|
|
1063
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1064
|
+
Tuple[
|
|
1065
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1066
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1067
|
+
]
|
|
1068
|
+
] = None,
|
|
1069
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1070
|
+
_content_type: Optional[StrictStr] = None,
|
|
1071
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1072
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1073
|
+
) -> RESTResponseType:
|
|
1074
|
+
"""Gets a list of all datapoints that failed to upload.
|
|
1075
|
+
|
|
1076
|
+
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
1077
|
+
|
|
1078
|
+
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
1079
|
+
:type dataset_id: str
|
|
1080
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1081
|
+
number provided, it will be total request
|
|
1082
|
+
timeout. It can also be a pair (tuple) of
|
|
1083
|
+
(connection, read) timeouts.
|
|
1084
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1085
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1086
|
+
request; this effectively ignores the
|
|
1087
|
+
authentication in the spec for a single request.
|
|
1088
|
+
:type _request_auth: dict, optional
|
|
1089
|
+
:param _content_type: force content-type for the request.
|
|
1090
|
+
:type _content_type: str, Optional
|
|
1091
|
+
:param _headers: set to override the headers for a single
|
|
1092
|
+
request; this effectively ignores the headers
|
|
1093
|
+
in the spec for a single request.
|
|
1094
|
+
:type _headers: dict, optional
|
|
1095
|
+
:param _host_index: set to override the host_index for a single
|
|
1096
|
+
request; this effectively ignores the host_index
|
|
1097
|
+
in the spec for a single request.
|
|
1098
|
+
:type _host_index: int, optional
|
|
1099
|
+
:return: Returns the result object.
|
|
1100
|
+
""" # noqa: E501
|
|
1101
|
+
|
|
1102
|
+
_param = self._dataset_dataset_id_datapoints_failed_get_serialize(
|
|
1103
|
+
dataset_id=dataset_id,
|
|
1104
|
+
_request_auth=_request_auth,
|
|
1105
|
+
_content_type=_content_type,
|
|
1106
|
+
_headers=_headers,
|
|
1107
|
+
_host_index=_host_index
|
|
1108
|
+
)
|
|
1109
|
+
|
|
1110
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1111
|
+
'200': "GetFailedDatapointsResult",
|
|
1112
|
+
}
|
|
1113
|
+
response_data = self.api_client.call_api(
|
|
1114
|
+
*_param,
|
|
1115
|
+
_request_timeout=_request_timeout
|
|
1116
|
+
)
|
|
1117
|
+
return response_data.response
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
def _dataset_dataset_id_datapoints_failed_get_serialize(
|
|
1121
|
+
self,
|
|
1122
|
+
dataset_id,
|
|
1123
|
+
_request_auth,
|
|
1124
|
+
_content_type,
|
|
1125
|
+
_headers,
|
|
1126
|
+
_host_index,
|
|
1127
|
+
) -> RequestSerialized:
|
|
1128
|
+
|
|
1129
|
+
_host = None
|
|
1130
|
+
|
|
1131
|
+
_collection_formats: Dict[str, str] = {
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
_path_params: Dict[str, str] = {}
|
|
1135
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1136
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1137
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1138
|
+
_files: Dict[
|
|
1139
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1140
|
+
] = {}
|
|
1141
|
+
_body_params: Optional[bytes] = None
|
|
1142
|
+
|
|
1143
|
+
# process the path parameters
|
|
1144
|
+
if dataset_id is not None:
|
|
1145
|
+
_path_params['datasetId'] = dataset_id
|
|
1146
|
+
# process the query parameters
|
|
1147
|
+
# process the header parameters
|
|
1148
|
+
# process the form parameters
|
|
1149
|
+
# process the body parameter
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
# set the HTTP header `Accept`
|
|
1153
|
+
if 'Accept' not in _header_params:
|
|
1154
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1155
|
+
[
|
|
1156
|
+
'text/plain',
|
|
1157
|
+
'application/json',
|
|
1158
|
+
'text/json'
|
|
1159
|
+
]
|
|
1160
|
+
)
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
# authentication setting
|
|
1164
|
+
_auth_settings: List[str] = [
|
|
1165
|
+
'bearer',
|
|
1166
|
+
'oauth2'
|
|
1167
|
+
]
|
|
1168
|
+
|
|
1169
|
+
return self.api_client.param_serialize(
|
|
1170
|
+
method='GET',
|
|
1171
|
+
resource_path='/dataset/{datasetId}/datapoints/failed',
|
|
1172
|
+
path_params=_path_params,
|
|
1173
|
+
query_params=_query_params,
|
|
1174
|
+
header_params=_header_params,
|
|
1175
|
+
body=_body_params,
|
|
1176
|
+
post_params=_form_params,
|
|
1177
|
+
files=_files,
|
|
1178
|
+
auth_settings=_auth_settings,
|
|
1179
|
+
collection_formats=_collection_formats,
|
|
1180
|
+
_host=_host,
|
|
1181
|
+
_request_auth=_request_auth
|
|
1182
|
+
)
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
@validate_call
|
|
1188
|
+
def dataset_dataset_id_datapoints_files_post(
|
|
1189
|
+
self,
|
|
1190
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
1191
|
+
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1192
|
+
model: Optional[CreateDatapointFromFilesModel] = None,
|
|
1193
|
+
_request_timeout: Union[
|
|
1194
|
+
None,
|
|
1195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1196
|
+
Tuple[
|
|
1197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1198
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1199
|
+
]
|
|
1200
|
+
] = None,
|
|
1201
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1202
|
+
_content_type: Optional[StrictStr] = None,
|
|
1203
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1204
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1205
|
+
) -> CreateDatapointResult:
|
|
1206
|
+
"""Creates a single datapoint by uploading files.
|
|
1207
|
+
|
|
1208
|
+
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
1209
|
+
|
|
1210
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
1211
|
+
:type dataset_id: str
|
|
1212
|
+
:param files:
|
|
1213
|
+
:type files: List[bytearray]
|
|
1214
|
+
:param model:
|
|
1215
|
+
:type model: CreateDatapointFromFilesModel
|
|
1216
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1217
|
+
number provided, it will be total request
|
|
1218
|
+
timeout. It can also be a pair (tuple) of
|
|
1219
|
+
(connection, read) timeouts.
|
|
1220
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1221
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1222
|
+
request; this effectively ignores the
|
|
1223
|
+
authentication in the spec for a single request.
|
|
1224
|
+
:type _request_auth: dict, optional
|
|
1225
|
+
:param _content_type: force content-type for the request.
|
|
1226
|
+
:type _content_type: str, Optional
|
|
1227
|
+
:param _headers: set to override the headers for a single
|
|
1228
|
+
request; this effectively ignores the headers
|
|
1229
|
+
in the spec for a single request.
|
|
1230
|
+
:type _headers: dict, optional
|
|
1231
|
+
:param _host_index: set to override the host_index for a single
|
|
1232
|
+
request; this effectively ignores the host_index
|
|
1233
|
+
in the spec for a single request.
|
|
1234
|
+
:type _host_index: int, optional
|
|
1235
|
+
:return: Returns the result object.
|
|
1236
|
+
""" # noqa: E501
|
|
1237
|
+
|
|
1238
|
+
_param = self._dataset_dataset_id_datapoints_files_post_serialize(
|
|
1239
|
+
dataset_id=dataset_id,
|
|
1240
|
+
files=files,
|
|
1241
|
+
model=model,
|
|
1242
|
+
_request_auth=_request_auth,
|
|
1243
|
+
_content_type=_content_type,
|
|
1244
|
+
_headers=_headers,
|
|
1245
|
+
_host_index=_host_index
|
|
1246
|
+
)
|
|
1247
|
+
|
|
1248
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1249
|
+
'200': "CreateDatapointResult",
|
|
1250
|
+
}
|
|
1251
|
+
response_data = self.api_client.call_api(
|
|
1252
|
+
*_param,
|
|
1253
|
+
_request_timeout=_request_timeout
|
|
1254
|
+
)
|
|
1255
|
+
response_data.read()
|
|
1256
|
+
return self.api_client.response_deserialize(
|
|
1257
|
+
response_data=response_data,
|
|
1258
|
+
response_types_map=_response_types_map,
|
|
1259
|
+
).data
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
@validate_call
|
|
1263
|
+
def dataset_dataset_id_datapoints_files_post_with_http_info(
|
|
1264
|
+
self,
|
|
1265
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
1266
|
+
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1267
|
+
model: Optional[CreateDatapointFromFilesModel] = None,
|
|
1268
|
+
_request_timeout: Union[
|
|
1269
|
+
None,
|
|
1270
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1271
|
+
Tuple[
|
|
1272
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1273
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1274
|
+
]
|
|
1275
|
+
] = None,
|
|
1276
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1277
|
+
_content_type: Optional[StrictStr] = None,
|
|
1278
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1279
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1280
|
+
) -> ApiResponse[CreateDatapointResult]:
|
|
1281
|
+
"""Creates a single datapoint by uploading files.
|
|
1282
|
+
|
|
1283
|
+
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
1284
|
+
|
|
1285
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
1286
|
+
:type dataset_id: str
|
|
1287
|
+
:param files:
|
|
1288
|
+
:type files: List[bytearray]
|
|
1289
|
+
:param model:
|
|
1290
|
+
:type model: CreateDatapointFromFilesModel
|
|
1291
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1292
|
+
number provided, it will be total request
|
|
1293
|
+
timeout. It can also be a pair (tuple) of
|
|
1294
|
+
(connection, read) timeouts.
|
|
1295
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1296
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1297
|
+
request; this effectively ignores the
|
|
1298
|
+
authentication in the spec for a single request.
|
|
1299
|
+
:type _request_auth: dict, optional
|
|
1300
|
+
:param _content_type: force content-type for the request.
|
|
1301
|
+
:type _content_type: str, Optional
|
|
1302
|
+
:param _headers: set to override the headers for a single
|
|
1303
|
+
request; this effectively ignores the headers
|
|
1304
|
+
in the spec for a single request.
|
|
1305
|
+
:type _headers: dict, optional
|
|
1306
|
+
:param _host_index: set to override the host_index for a single
|
|
1307
|
+
request; this effectively ignores the host_index
|
|
1308
|
+
in the spec for a single request.
|
|
1309
|
+
:type _host_index: int, optional
|
|
1310
|
+
:return: Returns the result object.
|
|
1311
|
+
""" # noqa: E501
|
|
1312
|
+
|
|
1313
|
+
_param = self._dataset_dataset_id_datapoints_files_post_serialize(
|
|
1314
|
+
dataset_id=dataset_id,
|
|
1315
|
+
files=files,
|
|
1316
|
+
model=model,
|
|
1317
|
+
_request_auth=_request_auth,
|
|
1318
|
+
_content_type=_content_type,
|
|
1319
|
+
_headers=_headers,
|
|
1320
|
+
_host_index=_host_index
|
|
1321
|
+
)
|
|
1322
|
+
|
|
1323
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1324
|
+
'200': "CreateDatapointResult",
|
|
1325
|
+
}
|
|
1326
|
+
response_data = self.api_client.call_api(
|
|
1327
|
+
*_param,
|
|
1328
|
+
_request_timeout=_request_timeout
|
|
1329
|
+
)
|
|
1330
|
+
response_data.read()
|
|
1331
|
+
return self.api_client.response_deserialize(
|
|
1332
|
+
response_data=response_data,
|
|
1333
|
+
response_types_map=_response_types_map,
|
|
1334
|
+
)
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
@validate_call
|
|
1338
|
+
def dataset_dataset_id_datapoints_files_post_without_preload_content(
|
|
1339
|
+
self,
|
|
1340
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
1341
|
+
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1342
|
+
model: Optional[CreateDatapointFromFilesModel] = None,
|
|
1343
|
+
_request_timeout: Union[
|
|
1344
|
+
None,
|
|
1345
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1346
|
+
Tuple[
|
|
1347
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1348
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1349
|
+
]
|
|
1350
|
+
] = None,
|
|
1351
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1352
|
+
_content_type: Optional[StrictStr] = None,
|
|
1353
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1354
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1355
|
+
) -> RESTResponseType:
|
|
1356
|
+
"""Creates a single datapoint by uploading files.
|
|
1357
|
+
|
|
1358
|
+
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
1359
|
+
|
|
1360
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
1361
|
+
:type dataset_id: str
|
|
1362
|
+
:param files:
|
|
1363
|
+
:type files: List[bytearray]
|
|
1364
|
+
:param model:
|
|
1365
|
+
:type model: CreateDatapointFromFilesModel
|
|
1366
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1367
|
+
number provided, it will be total request
|
|
1368
|
+
timeout. It can also be a pair (tuple) of
|
|
1369
|
+
(connection, read) timeouts.
|
|
1370
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1371
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1372
|
+
request; this effectively ignores the
|
|
1373
|
+
authentication in the spec for a single request.
|
|
1374
|
+
:type _request_auth: dict, optional
|
|
1375
|
+
:param _content_type: force content-type for the request.
|
|
1376
|
+
:type _content_type: str, Optional
|
|
1377
|
+
:param _headers: set to override the headers for a single
|
|
1378
|
+
request; this effectively ignores the headers
|
|
1379
|
+
in the spec for a single request.
|
|
1380
|
+
:type _headers: dict, optional
|
|
1381
|
+
:param _host_index: set to override the host_index for a single
|
|
1382
|
+
request; this effectively ignores the host_index
|
|
1383
|
+
in the spec for a single request.
|
|
1384
|
+
:type _host_index: int, optional
|
|
1385
|
+
:return: Returns the result object.
|
|
1386
|
+
""" # noqa: E501
|
|
1387
|
+
|
|
1388
|
+
_param = self._dataset_dataset_id_datapoints_files_post_serialize(
|
|
1389
|
+
dataset_id=dataset_id,
|
|
1390
|
+
files=files,
|
|
1391
|
+
model=model,
|
|
1392
|
+
_request_auth=_request_auth,
|
|
1393
|
+
_content_type=_content_type,
|
|
1394
|
+
_headers=_headers,
|
|
1395
|
+
_host_index=_host_index
|
|
1396
|
+
)
|
|
1397
|
+
|
|
1398
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1399
|
+
'200': "CreateDatapointResult",
|
|
1400
|
+
}
|
|
1401
|
+
response_data = self.api_client.call_api(
|
|
1402
|
+
*_param,
|
|
1403
|
+
_request_timeout=_request_timeout
|
|
1404
|
+
)
|
|
1405
|
+
return response_data.response
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
def _dataset_dataset_id_datapoints_files_post_serialize(
|
|
1409
|
+
self,
|
|
1410
|
+
dataset_id,
|
|
1411
|
+
files,
|
|
1412
|
+
model,
|
|
1413
|
+
_request_auth,
|
|
1414
|
+
_content_type,
|
|
1415
|
+
_headers,
|
|
1416
|
+
_host_index,
|
|
1417
|
+
) -> RequestSerialized:
|
|
1418
|
+
|
|
1419
|
+
_host = None
|
|
1420
|
+
|
|
1421
|
+
_collection_formats: Dict[str, str] = {
|
|
1422
|
+
'files': 'multi',
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
_path_params: Dict[str, str] = {}
|
|
1426
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1427
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1428
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1429
|
+
_files: Dict[
|
|
1430
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1431
|
+
] = {}
|
|
1432
|
+
_body_params: Optional[bytes] = None
|
|
1433
|
+
|
|
1434
|
+
# process the path parameters
|
|
1435
|
+
if dataset_id is not None:
|
|
1436
|
+
_path_params['datasetId'] = dataset_id
|
|
1437
|
+
# process the query parameters
|
|
1438
|
+
# process the header parameters
|
|
1439
|
+
# process the form parameters
|
|
1440
|
+
if files is not None:
|
|
1441
|
+
_files['files'] = files
|
|
1442
|
+
if model is not None:
|
|
1443
|
+
_form_params.append(('model', model))
|
|
1444
|
+
# process the body parameter
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
# set the HTTP header `Accept`
|
|
1448
|
+
if 'Accept' not in _header_params:
|
|
1449
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1450
|
+
[
|
|
1451
|
+
'text/plain',
|
|
1452
|
+
'application/json',
|
|
1453
|
+
'text/json'
|
|
1454
|
+
]
|
|
1455
|
+
)
|
|
1456
|
+
|
|
1457
|
+
# set the HTTP header `Content-Type`
|
|
1458
|
+
if _content_type:
|
|
1459
|
+
_header_params['Content-Type'] = _content_type
|
|
1460
|
+
else:
|
|
1461
|
+
_default_content_type = (
|
|
1462
|
+
self.api_client.select_header_content_type(
|
|
1463
|
+
[
|
|
1464
|
+
'multipart/form-data'
|
|
1465
|
+
]
|
|
1466
|
+
)
|
|
1467
|
+
)
|
|
1468
|
+
if _default_content_type is not None:
|
|
1469
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1470
|
+
|
|
1471
|
+
# authentication setting
|
|
1472
|
+
_auth_settings: List[str] = [
|
|
1473
|
+
'bearer',
|
|
1474
|
+
'oauth2'
|
|
1475
|
+
]
|
|
1476
|
+
|
|
1477
|
+
return self.api_client.param_serialize(
|
|
1478
|
+
method='POST',
|
|
1479
|
+
resource_path='/dataset/{datasetId}/datapoints/files',
|
|
1480
|
+
path_params=_path_params,
|
|
1481
|
+
query_params=_query_params,
|
|
1482
|
+
header_params=_header_params,
|
|
1483
|
+
body=_body_params,
|
|
1484
|
+
post_params=_form_params,
|
|
1485
|
+
files=_files,
|
|
1486
|
+
auth_settings=_auth_settings,
|
|
1487
|
+
collection_formats=_collection_formats,
|
|
1488
|
+
_host=_host,
|
|
1489
|
+
_request_auth=_request_auth
|
|
1490
|
+
)
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
@validate_call
|
|
1496
|
+
def dataset_dataset_id_datapoints_get(
|
|
1497
|
+
self,
|
|
1498
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
|
|
1499
|
+
_request_timeout: Union[
|
|
1500
|
+
None,
|
|
1501
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1502
|
+
Tuple[
|
|
1503
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1504
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1505
|
+
]
|
|
1506
|
+
] = None,
|
|
1507
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1508
|
+
_content_type: Optional[StrictStr] = None,
|
|
1509
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1510
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1511
|
+
) -> GetDatapointsByDatasetIdResult:
|
|
1512
|
+
"""Gets all datapoints of a dataset.
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
1516
|
+
:type dataset_id: str
|
|
1517
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1518
|
+
number provided, it will be total request
|
|
1519
|
+
timeout. It can also be a pair (tuple) of
|
|
1520
|
+
(connection, read) timeouts.
|
|
1521
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1522
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1523
|
+
request; this effectively ignores the
|
|
1524
|
+
authentication in the spec for a single request.
|
|
1525
|
+
:type _request_auth: dict, optional
|
|
1526
|
+
:param _content_type: force content-type for the request.
|
|
1527
|
+
:type _content_type: str, Optional
|
|
1528
|
+
:param _headers: set to override the headers for a single
|
|
1529
|
+
request; this effectively ignores the headers
|
|
1530
|
+
in the spec for a single request.
|
|
1531
|
+
:type _headers: dict, optional
|
|
1532
|
+
:param _host_index: set to override the host_index for a single
|
|
1533
|
+
request; this effectively ignores the host_index
|
|
1534
|
+
in the spec for a single request.
|
|
1535
|
+
:type _host_index: int, optional
|
|
1536
|
+
:return: Returns the result object.
|
|
1537
|
+
""" # noqa: E501
|
|
1538
|
+
|
|
1539
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
1540
|
+
dataset_id=dataset_id,
|
|
1541
|
+
_request_auth=_request_auth,
|
|
1542
|
+
_content_type=_content_type,
|
|
1543
|
+
_headers=_headers,
|
|
1544
|
+
_host_index=_host_index
|
|
1545
|
+
)
|
|
1546
|
+
|
|
1547
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1548
|
+
'200': "GetDatapointsByDatasetIdResult",
|
|
1549
|
+
}
|
|
1550
|
+
response_data = self.api_client.call_api(
|
|
1551
|
+
*_param,
|
|
1552
|
+
_request_timeout=_request_timeout
|
|
1553
|
+
)
|
|
1554
|
+
response_data.read()
|
|
1555
|
+
return self.api_client.response_deserialize(
|
|
1556
|
+
response_data=response_data,
|
|
1557
|
+
response_types_map=_response_types_map,
|
|
1558
|
+
).data
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
@validate_call
|
|
1562
|
+
def dataset_dataset_id_datapoints_get_with_http_info(
|
|
1563
|
+
self,
|
|
1564
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
|
|
1565
|
+
_request_timeout: Union[
|
|
1566
|
+
None,
|
|
1567
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1568
|
+
Tuple[
|
|
1569
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1570
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1571
|
+
]
|
|
1572
|
+
] = None,
|
|
1573
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1574
|
+
_content_type: Optional[StrictStr] = None,
|
|
1575
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1576
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1577
|
+
) -> ApiResponse[GetDatapointsByDatasetIdResult]:
|
|
1578
|
+
"""Gets all datapoints of a dataset.
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
1582
|
+
:type dataset_id: str
|
|
1583
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1584
|
+
number provided, it will be total request
|
|
1585
|
+
timeout. It can also be a pair (tuple) of
|
|
1586
|
+
(connection, read) timeouts.
|
|
1587
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1588
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1589
|
+
request; this effectively ignores the
|
|
1590
|
+
authentication in the spec for a single request.
|
|
1591
|
+
:type _request_auth: dict, optional
|
|
1592
|
+
:param _content_type: force content-type for the request.
|
|
1593
|
+
:type _content_type: str, Optional
|
|
1594
|
+
:param _headers: set to override the headers for a single
|
|
1595
|
+
request; this effectively ignores the headers
|
|
1596
|
+
in the spec for a single request.
|
|
1597
|
+
:type _headers: dict, optional
|
|
1598
|
+
:param _host_index: set to override the host_index for a single
|
|
1599
|
+
request; this effectively ignores the host_index
|
|
1600
|
+
in the spec for a single request.
|
|
1601
|
+
:type _host_index: int, optional
|
|
1602
|
+
:return: Returns the result object.
|
|
1603
|
+
""" # noqa: E501
|
|
1604
|
+
|
|
1605
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
1606
|
+
dataset_id=dataset_id,
|
|
1607
|
+
_request_auth=_request_auth,
|
|
1608
|
+
_content_type=_content_type,
|
|
1609
|
+
_headers=_headers,
|
|
1610
|
+
_host_index=_host_index
|
|
1611
|
+
)
|
|
1612
|
+
|
|
1613
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1614
|
+
'200': "GetDatapointsByDatasetIdResult",
|
|
1615
|
+
}
|
|
1616
|
+
response_data = self.api_client.call_api(
|
|
1617
|
+
*_param,
|
|
1618
|
+
_request_timeout=_request_timeout
|
|
1619
|
+
)
|
|
1620
|
+
response_data.read()
|
|
1621
|
+
return self.api_client.response_deserialize(
|
|
1622
|
+
response_data=response_data,
|
|
1623
|
+
response_types_map=_response_types_map,
|
|
1624
|
+
)
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
@validate_call
|
|
1628
|
+
def dataset_dataset_id_datapoints_get_without_preload_content(
|
|
1629
|
+
self,
|
|
1630
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
|
|
1631
|
+
_request_timeout: Union[
|
|
1632
|
+
None,
|
|
1633
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1634
|
+
Tuple[
|
|
1635
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1636
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1637
|
+
]
|
|
1638
|
+
] = None,
|
|
1639
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1640
|
+
_content_type: Optional[StrictStr] = None,
|
|
1641
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1642
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1643
|
+
) -> RESTResponseType:
|
|
1644
|
+
"""Gets all datapoints of a dataset.
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
1648
|
+
:type dataset_id: str
|
|
1649
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1650
|
+
number provided, it will be total request
|
|
1651
|
+
timeout. It can also be a pair (tuple) of
|
|
1652
|
+
(connection, read) timeouts.
|
|
1653
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1654
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1655
|
+
request; this effectively ignores the
|
|
1656
|
+
authentication in the spec for a single request.
|
|
1657
|
+
:type _request_auth: dict, optional
|
|
1658
|
+
:param _content_type: force content-type for the request.
|
|
1659
|
+
:type _content_type: str, Optional
|
|
1660
|
+
:param _headers: set to override the headers for a single
|
|
1661
|
+
request; this effectively ignores the headers
|
|
1662
|
+
in the spec for a single request.
|
|
1663
|
+
:type _headers: dict, optional
|
|
1664
|
+
:param _host_index: set to override the host_index for a single
|
|
1665
|
+
request; this effectively ignores the host_index
|
|
1666
|
+
in the spec for a single request.
|
|
1667
|
+
:type _host_index: int, optional
|
|
1668
|
+
:return: Returns the result object.
|
|
1669
|
+
""" # noqa: E501
|
|
1670
|
+
|
|
1671
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
1672
|
+
dataset_id=dataset_id,
|
|
1673
|
+
_request_auth=_request_auth,
|
|
1674
|
+
_content_type=_content_type,
|
|
1675
|
+
_headers=_headers,
|
|
1676
|
+
_host_index=_host_index
|
|
1677
|
+
)
|
|
1678
|
+
|
|
1679
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1680
|
+
'200': "GetDatapointsByDatasetIdResult",
|
|
1681
|
+
}
|
|
1682
|
+
response_data = self.api_client.call_api(
|
|
1683
|
+
*_param,
|
|
1684
|
+
_request_timeout=_request_timeout
|
|
1685
|
+
)
|
|
1686
|
+
return response_data.response
|
|
1687
|
+
|
|
1688
|
+
|
|
1689
|
+
def _dataset_dataset_id_datapoints_get_serialize(
|
|
1690
|
+
self,
|
|
1691
|
+
dataset_id,
|
|
1692
|
+
_request_auth,
|
|
1693
|
+
_content_type,
|
|
1694
|
+
_headers,
|
|
1695
|
+
_host_index,
|
|
1696
|
+
) -> RequestSerialized:
|
|
1697
|
+
|
|
1698
|
+
_host = None
|
|
1699
|
+
|
|
1700
|
+
_collection_formats: Dict[str, str] = {
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
_path_params: Dict[str, str] = {}
|
|
1704
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1705
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1706
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1707
|
+
_files: Dict[
|
|
1708
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1709
|
+
] = {}
|
|
1710
|
+
_body_params: Optional[bytes] = None
|
|
1711
|
+
|
|
1712
|
+
# process the path parameters
|
|
1713
|
+
if dataset_id is not None:
|
|
1714
|
+
_path_params['datasetId'] = dataset_id
|
|
1715
|
+
# process the query parameters
|
|
1716
|
+
# process the header parameters
|
|
1717
|
+
# process the form parameters
|
|
1718
|
+
# process the body parameter
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
# set the HTTP header `Accept`
|
|
1722
|
+
if 'Accept' not in _header_params:
|
|
1723
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1724
|
+
[
|
|
1725
|
+
'text/plain',
|
|
1726
|
+
'application/json',
|
|
1727
|
+
'text/json'
|
|
1728
|
+
]
|
|
1729
|
+
)
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
# authentication setting
|
|
1733
|
+
_auth_settings: List[str] = [
|
|
1734
|
+
'bearer',
|
|
1735
|
+
'oauth2'
|
|
1736
|
+
]
|
|
1737
|
+
|
|
1738
|
+
return self.api_client.param_serialize(
|
|
1739
|
+
method='GET',
|
|
1740
|
+
resource_path='/dataset/{datasetId}/datapoints',
|
|
1741
|
+
path_params=_path_params,
|
|
1742
|
+
query_params=_query_params,
|
|
1743
|
+
header_params=_header_params,
|
|
1744
|
+
body=_body_params,
|
|
1745
|
+
post_params=_form_params,
|
|
1746
|
+
files=_files,
|
|
1747
|
+
auth_settings=_auth_settings,
|
|
1748
|
+
collection_formats=_collection_formats,
|
|
1749
|
+
_host=_host,
|
|
1750
|
+
_request_auth=_request_auth
|
|
1751
|
+
)
|
|
1752
|
+
|
|
1753
|
+
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
@validate_call
|
|
1757
|
+
def dataset_dataset_id_datapoints_s3_post(
|
|
1758
|
+
self,
|
|
1759
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
|
|
1760
|
+
create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
1761
|
+
_request_timeout: Union[
|
|
1762
|
+
None,
|
|
1763
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1764
|
+
Tuple[
|
|
1765
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1766
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1767
|
+
]
|
|
1768
|
+
] = None,
|
|
1769
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1770
|
+
_content_type: Optional[StrictStr] = None,
|
|
1771
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1772
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1773
|
+
) -> UploadFromS3Result:
|
|
1774
|
+
"""Uploads files from an S3 bucket to a dataset.
|
|
1775
|
+
|
|
1776
|
+
A new datapoint will be created for each file in the bucket.
|
|
1777
|
+
|
|
1778
|
+
:param dataset_id: The id of the dataset to upload the files to. (required)
|
|
1779
|
+
:type dataset_id: str
|
|
1780
|
+
:param create_datapoints_from_s3_bucket_model: The body of the request.
|
|
1781
|
+
:type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
|
|
1782
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1783
|
+
number provided, it will be total request
|
|
1784
|
+
timeout. It can also be a pair (tuple) of
|
|
1785
|
+
(connection, read) timeouts.
|
|
1786
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1787
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1788
|
+
request; this effectively ignores the
|
|
1789
|
+
authentication in the spec for a single request.
|
|
1790
|
+
:type _request_auth: dict, optional
|
|
1791
|
+
:param _content_type: force content-type for the request.
|
|
1792
|
+
:type _content_type: str, Optional
|
|
1793
|
+
:param _headers: set to override the headers for a single
|
|
1794
|
+
request; this effectively ignores the headers
|
|
1795
|
+
in the spec for a single request.
|
|
1796
|
+
:type _headers: dict, optional
|
|
1797
|
+
:param _host_index: set to override the host_index for a single
|
|
1798
|
+
request; this effectively ignores the host_index
|
|
1799
|
+
in the spec for a single request.
|
|
1800
|
+
:type _host_index: int, optional
|
|
1801
|
+
:return: Returns the result object.
|
|
1802
|
+
""" # noqa: E501
|
|
1803
|
+
|
|
1804
|
+
_param = self._dataset_dataset_id_datapoints_s3_post_serialize(
|
|
1805
|
+
dataset_id=dataset_id,
|
|
1806
|
+
create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
|
|
1807
|
+
_request_auth=_request_auth,
|
|
1808
|
+
_content_type=_content_type,
|
|
1809
|
+
_headers=_headers,
|
|
1810
|
+
_host_index=_host_index
|
|
1811
|
+
)
|
|
1812
|
+
|
|
1813
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1814
|
+
'200': "UploadFromS3Result",
|
|
1815
|
+
}
|
|
1816
|
+
response_data = self.api_client.call_api(
|
|
1817
|
+
*_param,
|
|
1818
|
+
_request_timeout=_request_timeout
|
|
1819
|
+
)
|
|
1820
|
+
response_data.read()
|
|
1821
|
+
return self.api_client.response_deserialize(
|
|
1822
|
+
response_data=response_data,
|
|
1823
|
+
response_types_map=_response_types_map,
|
|
1824
|
+
).data
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
@validate_call
|
|
1828
|
+
def dataset_dataset_id_datapoints_s3_post_with_http_info(
|
|
1829
|
+
self,
|
|
1830
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
|
|
1831
|
+
create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
1832
|
+
_request_timeout: Union[
|
|
1833
|
+
None,
|
|
1834
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1835
|
+
Tuple[
|
|
1836
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1837
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1838
|
+
]
|
|
1839
|
+
] = None,
|
|
1840
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1841
|
+
_content_type: Optional[StrictStr] = None,
|
|
1842
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1843
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1844
|
+
) -> ApiResponse[UploadFromS3Result]:
|
|
1845
|
+
"""Uploads files from an S3 bucket to a dataset.
|
|
1846
|
+
|
|
1847
|
+
A new datapoint will be created for each file in the bucket.
|
|
1848
|
+
|
|
1849
|
+
:param dataset_id: The id of the dataset to upload the files to. (required)
|
|
1850
|
+
:type dataset_id: str
|
|
1851
|
+
:param create_datapoints_from_s3_bucket_model: The body of the request.
|
|
1852
|
+
:type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
|
|
1853
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1854
|
+
number provided, it will be total request
|
|
1855
|
+
timeout. It can also be a pair (tuple) of
|
|
1856
|
+
(connection, read) timeouts.
|
|
1857
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1858
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1859
|
+
request; this effectively ignores the
|
|
1860
|
+
authentication in the spec for a single request.
|
|
1861
|
+
:type _request_auth: dict, optional
|
|
1862
|
+
:param _content_type: force content-type for the request.
|
|
1863
|
+
:type _content_type: str, Optional
|
|
1864
|
+
:param _headers: set to override the headers for a single
|
|
1865
|
+
request; this effectively ignores the headers
|
|
1866
|
+
in the spec for a single request.
|
|
1867
|
+
:type _headers: dict, optional
|
|
1868
|
+
:param _host_index: set to override the host_index for a single
|
|
1869
|
+
request; this effectively ignores the host_index
|
|
1870
|
+
in the spec for a single request.
|
|
1871
|
+
:type _host_index: int, optional
|
|
1872
|
+
:return: Returns the result object.
|
|
1873
|
+
""" # noqa: E501
|
|
1874
|
+
|
|
1875
|
+
_param = self._dataset_dataset_id_datapoints_s3_post_serialize(
|
|
1876
|
+
dataset_id=dataset_id,
|
|
1877
|
+
create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
|
|
1878
|
+
_request_auth=_request_auth,
|
|
1879
|
+
_content_type=_content_type,
|
|
1880
|
+
_headers=_headers,
|
|
1881
|
+
_host_index=_host_index
|
|
1882
|
+
)
|
|
1883
|
+
|
|
1884
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1885
|
+
'200': "UploadFromS3Result",
|
|
1886
|
+
}
|
|
1887
|
+
response_data = self.api_client.call_api(
|
|
1888
|
+
*_param,
|
|
1889
|
+
_request_timeout=_request_timeout
|
|
1890
|
+
)
|
|
1891
|
+
response_data.read()
|
|
1892
|
+
return self.api_client.response_deserialize(
|
|
1893
|
+
response_data=response_data,
|
|
1894
|
+
response_types_map=_response_types_map,
|
|
1895
|
+
)
|
|
1896
|
+
|
|
1897
|
+
|
|
1898
|
+
@validate_call
|
|
1899
|
+
def dataset_dataset_id_datapoints_s3_post_without_preload_content(
|
|
1900
|
+
self,
|
|
1901
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
|
|
1902
|
+
create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
1903
|
+
_request_timeout: Union[
|
|
1904
|
+
None,
|
|
1905
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1906
|
+
Tuple[
|
|
1907
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1908
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1909
|
+
]
|
|
1910
|
+
] = None,
|
|
1911
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1912
|
+
_content_type: Optional[StrictStr] = None,
|
|
1913
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1914
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1915
|
+
) -> RESTResponseType:
|
|
1916
|
+
"""Uploads files from an S3 bucket to a dataset.
|
|
1917
|
+
|
|
1918
|
+
A new datapoint will be created for each file in the bucket.
|
|
1919
|
+
|
|
1920
|
+
:param dataset_id: The id of the dataset to upload the files to. (required)
|
|
1921
|
+
:type dataset_id: str
|
|
1922
|
+
:param create_datapoints_from_s3_bucket_model: The body of the request.
|
|
1923
|
+
:type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
|
|
1924
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1925
|
+
number provided, it will be total request
|
|
1926
|
+
timeout. It can also be a pair (tuple) of
|
|
1927
|
+
(connection, read) timeouts.
|
|
1928
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1929
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1930
|
+
request; this effectively ignores the
|
|
1931
|
+
authentication in the spec for a single request.
|
|
1932
|
+
:type _request_auth: dict, optional
|
|
1933
|
+
:param _content_type: force content-type for the request.
|
|
1934
|
+
:type _content_type: str, Optional
|
|
1935
|
+
:param _headers: set to override the headers for a single
|
|
1936
|
+
request; this effectively ignores the headers
|
|
1937
|
+
in the spec for a single request.
|
|
1938
|
+
:type _headers: dict, optional
|
|
1939
|
+
:param _host_index: set to override the host_index for a single
|
|
1940
|
+
request; this effectively ignores the host_index
|
|
1941
|
+
in the spec for a single request.
|
|
1942
|
+
:type _host_index: int, optional
|
|
1943
|
+
:return: Returns the result object.
|
|
1944
|
+
""" # noqa: E501
|
|
1945
|
+
|
|
1946
|
+
_param = self._dataset_dataset_id_datapoints_s3_post_serialize(
|
|
1947
|
+
dataset_id=dataset_id,
|
|
1948
|
+
create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
|
|
1949
|
+
_request_auth=_request_auth,
|
|
1950
|
+
_content_type=_content_type,
|
|
1951
|
+
_headers=_headers,
|
|
1952
|
+
_host_index=_host_index
|
|
1953
|
+
)
|
|
1954
|
+
|
|
1955
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1956
|
+
'200': "UploadFromS3Result",
|
|
1957
|
+
}
|
|
1958
|
+
response_data = self.api_client.call_api(
|
|
1959
|
+
*_param,
|
|
1960
|
+
_request_timeout=_request_timeout
|
|
1961
|
+
)
|
|
1962
|
+
return response_data.response
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
def _dataset_dataset_id_datapoints_s3_post_serialize(
|
|
1966
|
+
self,
|
|
1967
|
+
dataset_id,
|
|
1968
|
+
create_datapoints_from_s3_bucket_model,
|
|
1969
|
+
_request_auth,
|
|
1970
|
+
_content_type,
|
|
1971
|
+
_headers,
|
|
1972
|
+
_host_index,
|
|
1973
|
+
) -> RequestSerialized:
|
|
1974
|
+
|
|
1975
|
+
_host = None
|
|
1976
|
+
|
|
1977
|
+
_collection_formats: Dict[str, str] = {
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
_path_params: Dict[str, str] = {}
|
|
1981
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1982
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1983
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1984
|
+
_files: Dict[
|
|
1985
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1986
|
+
] = {}
|
|
1987
|
+
_body_params: Optional[bytes] = None
|
|
1988
|
+
|
|
1989
|
+
# process the path parameters
|
|
1990
|
+
if dataset_id is not None:
|
|
1991
|
+
_path_params['datasetId'] = dataset_id
|
|
1992
|
+
# process the query parameters
|
|
1993
|
+
# process the header parameters
|
|
1994
|
+
# process the form parameters
|
|
1995
|
+
# process the body parameter
|
|
1996
|
+
if create_datapoints_from_s3_bucket_model is not None:
|
|
1997
|
+
_body_params = create_datapoints_from_s3_bucket_model
|
|
1998
|
+
|
|
1999
|
+
|
|
2000
|
+
# set the HTTP header `Accept`
|
|
2001
|
+
if 'Accept' not in _header_params:
|
|
2002
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2003
|
+
[
|
|
2004
|
+
'text/plain',
|
|
2005
|
+
'application/json',
|
|
2006
|
+
'text/json'
|
|
2007
|
+
]
|
|
2008
|
+
)
|
|
2009
|
+
|
|
2010
|
+
# set the HTTP header `Content-Type`
|
|
2011
|
+
if _content_type:
|
|
2012
|
+
_header_params['Content-Type'] = _content_type
|
|
2013
|
+
else:
|
|
2014
|
+
_default_content_type = (
|
|
2015
|
+
self.api_client.select_header_content_type(
|
|
2016
|
+
[
|
|
2017
|
+
'application/json',
|
|
2018
|
+
'text/json',
|
|
2019
|
+
'application/*+json'
|
|
2020
|
+
]
|
|
2021
|
+
)
|
|
2022
|
+
)
|
|
2023
|
+
if _default_content_type is not None:
|
|
2024
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2025
|
+
|
|
2026
|
+
# authentication setting
|
|
2027
|
+
_auth_settings: List[str] = [
|
|
2028
|
+
'bearer',
|
|
2029
|
+
'oauth2'
|
|
2030
|
+
]
|
|
2031
|
+
|
|
2032
|
+
return self.api_client.param_serialize(
|
|
2033
|
+
method='POST',
|
|
2034
|
+
resource_path='/dataset/{datasetId}/datapoints/s3',
|
|
2035
|
+
path_params=_path_params,
|
|
2036
|
+
query_params=_query_params,
|
|
2037
|
+
header_params=_header_params,
|
|
2038
|
+
body=_body_params,
|
|
2039
|
+
post_params=_form_params,
|
|
2040
|
+
files=_files,
|
|
2041
|
+
auth_settings=_auth_settings,
|
|
2042
|
+
collection_formats=_collection_formats,
|
|
2043
|
+
_host=_host,
|
|
2044
|
+
_request_auth=_request_auth
|
|
2045
|
+
)
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
@validate_call
|
|
2051
|
+
def dataset_dataset_id_datapoints_texts_post(
|
|
2052
|
+
self,
|
|
2053
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2054
|
+
create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
|
|
2055
|
+
_request_timeout: Union[
|
|
2056
|
+
None,
|
|
2057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2058
|
+
Tuple[
|
|
2059
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2060
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2061
|
+
]
|
|
2062
|
+
] = None,
|
|
2063
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2064
|
+
_content_type: Optional[StrictStr] = None,
|
|
2065
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2066
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
67
2067
|
) -> CreateDatapointResult:
|
|
68
|
-
"""Creates
|
|
2068
|
+
"""Creates a single datapoint from text sources.
|
|
69
2069
|
|
|
70
|
-
If multiple text sources are uploaded, a
|
|
2070
|
+
If multiple text sources are uploaded, a multi asset datapoint will be created.
|
|
71
2071
|
|
|
72
|
-
:param
|
|
73
|
-
:type
|
|
2072
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2073
|
+
:type dataset_id: str
|
|
2074
|
+
:param create_datapoint_from_text_sources_model: The body of the request.
|
|
2075
|
+
:type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
|
|
74
2076
|
:param _request_timeout: timeout setting for this request. If one
|
|
75
2077
|
number provided, it will be total request
|
|
76
2078
|
timeout. It can also be a pair (tuple) of
|
|
@@ -93,8 +2095,9 @@ class DatasetApi:
|
|
|
93
2095
|
:return: Returns the result object.
|
|
94
2096
|
""" # noqa: E501
|
|
95
2097
|
|
|
96
|
-
_param = self.
|
|
97
|
-
|
|
2098
|
+
_param = self._dataset_dataset_id_datapoints_texts_post_serialize(
|
|
2099
|
+
dataset_id=dataset_id,
|
|
2100
|
+
create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
|
|
98
2101
|
_request_auth=_request_auth,
|
|
99
2102
|
_content_type=_content_type,
|
|
100
2103
|
_headers=_headers,
|
|
@@ -116,9 +2119,10 @@ class DatasetApi:
|
|
|
116
2119
|
|
|
117
2120
|
|
|
118
2121
|
@validate_call
|
|
119
|
-
def
|
|
2122
|
+
def dataset_dataset_id_datapoints_texts_post_with_http_info(
|
|
120
2123
|
self,
|
|
121
|
-
|
|
2124
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2125
|
+
create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
|
|
122
2126
|
_request_timeout: Union[
|
|
123
2127
|
None,
|
|
124
2128
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -132,12 +2136,14 @@ class DatasetApi:
|
|
|
132
2136
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
133
2137
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
134
2138
|
) -> ApiResponse[CreateDatapointResult]:
|
|
135
|
-
"""Creates
|
|
2139
|
+
"""Creates a single datapoint from text sources.
|
|
136
2140
|
|
|
137
|
-
If multiple text sources are uploaded, a
|
|
2141
|
+
If multiple text sources are uploaded, a multi asset datapoint will be created.
|
|
138
2142
|
|
|
139
|
-
:param
|
|
140
|
-
:type
|
|
2143
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2144
|
+
:type dataset_id: str
|
|
2145
|
+
:param create_datapoint_from_text_sources_model: The body of the request.
|
|
2146
|
+
:type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
|
|
141
2147
|
:param _request_timeout: timeout setting for this request. If one
|
|
142
2148
|
number provided, it will be total request
|
|
143
2149
|
timeout. It can also be a pair (tuple) of
|
|
@@ -160,8 +2166,9 @@ class DatasetApi:
|
|
|
160
2166
|
:return: Returns the result object.
|
|
161
2167
|
""" # noqa: E501
|
|
162
2168
|
|
|
163
|
-
_param = self.
|
|
164
|
-
|
|
2169
|
+
_param = self._dataset_dataset_id_datapoints_texts_post_serialize(
|
|
2170
|
+
dataset_id=dataset_id,
|
|
2171
|
+
create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
|
|
165
2172
|
_request_auth=_request_auth,
|
|
166
2173
|
_content_type=_content_type,
|
|
167
2174
|
_headers=_headers,
|
|
@@ -183,9 +2190,10 @@ class DatasetApi:
|
|
|
183
2190
|
|
|
184
2191
|
|
|
185
2192
|
@validate_call
|
|
186
|
-
def
|
|
2193
|
+
def dataset_dataset_id_datapoints_texts_post_without_preload_content(
|
|
187
2194
|
self,
|
|
188
|
-
|
|
2195
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2196
|
+
create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
|
|
189
2197
|
_request_timeout: Union[
|
|
190
2198
|
None,
|
|
191
2199
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -199,12 +2207,14 @@ class DatasetApi:
|
|
|
199
2207
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
200
2208
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
201
2209
|
) -> RESTResponseType:
|
|
202
|
-
"""Creates
|
|
2210
|
+
"""Creates a single datapoint from text sources.
|
|
203
2211
|
|
|
204
|
-
If multiple text sources are uploaded, a
|
|
2212
|
+
If multiple text sources are uploaded, a multi asset datapoint will be created.
|
|
205
2213
|
|
|
206
|
-
:param
|
|
207
|
-
:type
|
|
2214
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2215
|
+
:type dataset_id: str
|
|
2216
|
+
:param create_datapoint_from_text_sources_model: The body of the request.
|
|
2217
|
+
:type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
|
|
208
2218
|
:param _request_timeout: timeout setting for this request. If one
|
|
209
2219
|
number provided, it will be total request
|
|
210
2220
|
timeout. It can also be a pair (tuple) of
|
|
@@ -227,8 +2237,9 @@ class DatasetApi:
|
|
|
227
2237
|
:return: Returns the result object.
|
|
228
2238
|
""" # noqa: E501
|
|
229
2239
|
|
|
230
|
-
_param = self.
|
|
231
|
-
|
|
2240
|
+
_param = self._dataset_dataset_id_datapoints_texts_post_serialize(
|
|
2241
|
+
dataset_id=dataset_id,
|
|
2242
|
+
create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
|
|
232
2243
|
_request_auth=_request_auth,
|
|
233
2244
|
_content_type=_content_type,
|
|
234
2245
|
_headers=_headers,
|
|
@@ -245,9 +2256,10 @@ class DatasetApi:
|
|
|
245
2256
|
return response_data.response
|
|
246
2257
|
|
|
247
2258
|
|
|
248
|
-
def
|
|
2259
|
+
def _dataset_dataset_id_datapoints_texts_post_serialize(
|
|
249
2260
|
self,
|
|
250
|
-
|
|
2261
|
+
dataset_id,
|
|
2262
|
+
create_datapoint_from_text_sources_model,
|
|
251
2263
|
_request_auth,
|
|
252
2264
|
_content_type,
|
|
253
2265
|
_headers,
|
|
@@ -269,12 +2281,14 @@ class DatasetApi:
|
|
|
269
2281
|
_body_params: Optional[bytes] = None
|
|
270
2282
|
|
|
271
2283
|
# process the path parameters
|
|
2284
|
+
if dataset_id is not None:
|
|
2285
|
+
_path_params['datasetId'] = dataset_id
|
|
272
2286
|
# process the query parameters
|
|
273
2287
|
# process the header parameters
|
|
274
2288
|
# process the form parameters
|
|
275
2289
|
# process the body parameter
|
|
276
|
-
if
|
|
277
|
-
_body_params =
|
|
2290
|
+
if create_datapoint_from_text_sources_model is not None:
|
|
2291
|
+
_body_params = create_datapoint_from_text_sources_model
|
|
278
2292
|
|
|
279
2293
|
|
|
280
2294
|
# set the HTTP header `Accept`
|
|
@@ -311,7 +2325,7 @@ class DatasetApi:
|
|
|
311
2325
|
|
|
312
2326
|
return self.api_client.param_serialize(
|
|
313
2327
|
method='POST',
|
|
314
|
-
resource_path='/
|
|
2328
|
+
resource_path='/dataset/{datasetId}/datapoints/texts',
|
|
315
2329
|
path_params=_path_params,
|
|
316
2330
|
query_params=_query_params,
|
|
317
2331
|
header_params=_header_params,
|
|
@@ -328,10 +2342,10 @@ class DatasetApi:
|
|
|
328
2342
|
|
|
329
2343
|
|
|
330
2344
|
@validate_call
|
|
331
|
-
def
|
|
2345
|
+
def dataset_dataset_id_datapoints_urls_post(
|
|
332
2346
|
self,
|
|
333
|
-
|
|
334
|
-
|
|
2347
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2348
|
+
create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
|
|
335
2349
|
_request_timeout: Union[
|
|
336
2350
|
None,
|
|
337
2351
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -345,14 +2359,14 @@ class DatasetApi:
|
|
|
345
2359
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
346
2360
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
347
2361
|
) -> CreateDatapointResult:
|
|
348
|
-
"""Creates a single datapoint.
|
|
2362
|
+
"""Creates a single datapoint where the assets are fetched from the specified urls.
|
|
349
2363
|
|
|
350
|
-
|
|
2364
|
+
Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
|
|
351
2365
|
|
|
352
|
-
:param
|
|
353
|
-
:type
|
|
354
|
-
:param
|
|
355
|
-
:type
|
|
2366
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2367
|
+
:type dataset_id: str
|
|
2368
|
+
:param create_datapoint_from_urls_model: The body of the request.
|
|
2369
|
+
:type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
|
|
356
2370
|
:param _request_timeout: timeout setting for this request. If one
|
|
357
2371
|
number provided, it will be total request
|
|
358
2372
|
timeout. It can also be a pair (tuple) of
|
|
@@ -375,9 +2389,9 @@ class DatasetApi:
|
|
|
375
2389
|
:return: Returns the result object.
|
|
376
2390
|
""" # noqa: E501
|
|
377
2391
|
|
|
378
|
-
_param = self.
|
|
379
|
-
|
|
380
|
-
|
|
2392
|
+
_param = self._dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2393
|
+
dataset_id=dataset_id,
|
|
2394
|
+
create_datapoint_from_urls_model=create_datapoint_from_urls_model,
|
|
381
2395
|
_request_auth=_request_auth,
|
|
382
2396
|
_content_type=_content_type,
|
|
383
2397
|
_headers=_headers,
|
|
@@ -399,10 +2413,10 @@ class DatasetApi:
|
|
|
399
2413
|
|
|
400
2414
|
|
|
401
2415
|
@validate_call
|
|
402
|
-
def
|
|
2416
|
+
def dataset_dataset_id_datapoints_urls_post_with_http_info(
|
|
403
2417
|
self,
|
|
404
|
-
|
|
405
|
-
|
|
2418
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2419
|
+
create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
|
|
406
2420
|
_request_timeout: Union[
|
|
407
2421
|
None,
|
|
408
2422
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -416,14 +2430,14 @@ class DatasetApi:
|
|
|
416
2430
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
417
2431
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
418
2432
|
) -> ApiResponse[CreateDatapointResult]:
|
|
419
|
-
"""Creates a single datapoint.
|
|
2433
|
+
"""Creates a single datapoint where the assets are fetched from the specified urls.
|
|
420
2434
|
|
|
421
|
-
|
|
2435
|
+
Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
|
|
422
2436
|
|
|
423
|
-
:param
|
|
424
|
-
:type
|
|
425
|
-
:param
|
|
426
|
-
:type
|
|
2437
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2438
|
+
:type dataset_id: str
|
|
2439
|
+
:param create_datapoint_from_urls_model: The body of the request.
|
|
2440
|
+
:type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
|
|
427
2441
|
:param _request_timeout: timeout setting for this request. If one
|
|
428
2442
|
number provided, it will be total request
|
|
429
2443
|
timeout. It can also be a pair (tuple) of
|
|
@@ -446,9 +2460,9 @@ class DatasetApi:
|
|
|
446
2460
|
:return: Returns the result object.
|
|
447
2461
|
""" # noqa: E501
|
|
448
2462
|
|
|
449
|
-
_param = self.
|
|
450
|
-
|
|
451
|
-
|
|
2463
|
+
_param = self._dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2464
|
+
dataset_id=dataset_id,
|
|
2465
|
+
create_datapoint_from_urls_model=create_datapoint_from_urls_model,
|
|
452
2466
|
_request_auth=_request_auth,
|
|
453
2467
|
_content_type=_content_type,
|
|
454
2468
|
_headers=_headers,
|
|
@@ -470,10 +2484,10 @@ class DatasetApi:
|
|
|
470
2484
|
|
|
471
2485
|
|
|
472
2486
|
@validate_call
|
|
473
|
-
def
|
|
2487
|
+
def dataset_dataset_id_datapoints_urls_post_without_preload_content(
|
|
474
2488
|
self,
|
|
475
|
-
|
|
476
|
-
|
|
2489
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2490
|
+
create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
|
|
477
2491
|
_request_timeout: Union[
|
|
478
2492
|
None,
|
|
479
2493
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -487,14 +2501,14 @@ class DatasetApi:
|
|
|
487
2501
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
488
2502
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
489
2503
|
) -> RESTResponseType:
|
|
490
|
-
"""Creates a single datapoint.
|
|
2504
|
+
"""Creates a single datapoint where the assets are fetched from the specified urls.
|
|
491
2505
|
|
|
492
|
-
|
|
2506
|
+
Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
|
|
493
2507
|
|
|
494
|
-
:param
|
|
495
|
-
:type
|
|
496
|
-
:param
|
|
497
|
-
:type
|
|
2508
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2509
|
+
:type dataset_id: str
|
|
2510
|
+
:param create_datapoint_from_urls_model: The body of the request.
|
|
2511
|
+
:type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
|
|
498
2512
|
:param _request_timeout: timeout setting for this request. If one
|
|
499
2513
|
number provided, it will be total request
|
|
500
2514
|
timeout. It can also be a pair (tuple) of
|
|
@@ -517,9 +2531,9 @@ class DatasetApi:
|
|
|
517
2531
|
:return: Returns the result object.
|
|
518
2532
|
""" # noqa: E501
|
|
519
2533
|
|
|
520
|
-
_param = self.
|
|
521
|
-
|
|
522
|
-
|
|
2534
|
+
_param = self._dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2535
|
+
dataset_id=dataset_id,
|
|
2536
|
+
create_datapoint_from_urls_model=create_datapoint_from_urls_model,
|
|
523
2537
|
_request_auth=_request_auth,
|
|
524
2538
|
_content_type=_content_type,
|
|
525
2539
|
_headers=_headers,
|
|
@@ -536,10 +2550,10 @@ class DatasetApi:
|
|
|
536
2550
|
return response_data.response
|
|
537
2551
|
|
|
538
2552
|
|
|
539
|
-
def
|
|
2553
|
+
def _dataset_dataset_id_datapoints_urls_post_serialize(
|
|
540
2554
|
self,
|
|
541
|
-
|
|
542
|
-
|
|
2555
|
+
dataset_id,
|
|
2556
|
+
create_datapoint_from_urls_model,
|
|
543
2557
|
_request_auth,
|
|
544
2558
|
_content_type,
|
|
545
2559
|
_headers,
|
|
@@ -549,7 +2563,6 @@ class DatasetApi:
|
|
|
549
2563
|
_host = None
|
|
550
2564
|
|
|
551
2565
|
_collection_formats: Dict[str, str] = {
|
|
552
|
-
'files': 'multi',
|
|
553
2566
|
}
|
|
554
2567
|
|
|
555
2568
|
_path_params: Dict[str, str] = {}
|
|
@@ -562,14 +2575,14 @@ class DatasetApi:
|
|
|
562
2575
|
_body_params: Optional[bytes] = None
|
|
563
2576
|
|
|
564
2577
|
# process the path parameters
|
|
2578
|
+
if dataset_id is not None:
|
|
2579
|
+
_path_params['datasetId'] = dataset_id
|
|
565
2580
|
# process the query parameters
|
|
566
2581
|
# process the header parameters
|
|
567
2582
|
# process the form parameters
|
|
568
|
-
if files is not None:
|
|
569
|
-
_files['files'] = files
|
|
570
|
-
if model is not None:
|
|
571
|
-
_form_params.append(('model', model))
|
|
572
2583
|
# process the body parameter
|
|
2584
|
+
if create_datapoint_from_urls_model is not None:
|
|
2585
|
+
_body_params = create_datapoint_from_urls_model
|
|
573
2586
|
|
|
574
2587
|
|
|
575
2588
|
# set the HTTP header `Accept`
|
|
@@ -589,7 +2602,9 @@ class DatasetApi:
|
|
|
589
2602
|
_default_content_type = (
|
|
590
2603
|
self.api_client.select_header_content_type(
|
|
591
2604
|
[
|
|
592
|
-
'
|
|
2605
|
+
'application/json',
|
|
2606
|
+
'text/json',
|
|
2607
|
+
'application/*+json'
|
|
593
2608
|
]
|
|
594
2609
|
)
|
|
595
2610
|
)
|
|
@@ -604,7 +2619,7 @@ class DatasetApi:
|
|
|
604
2619
|
|
|
605
2620
|
return self.api_client.param_serialize(
|
|
606
2621
|
method='POST',
|
|
607
|
-
resource_path='/
|
|
2622
|
+
resource_path='/dataset/{datasetId}/datapoints/urls',
|
|
608
2623
|
path_params=_path_params,
|
|
609
2624
|
query_params=_query_params,
|
|
610
2625
|
header_params=_header_params,
|
|
@@ -621,9 +2636,9 @@ class DatasetApi:
|
|
|
621
2636
|
|
|
622
2637
|
|
|
623
2638
|
@validate_call
|
|
624
|
-
def
|
|
2639
|
+
def dataset_dataset_id_get(
|
|
625
2640
|
self,
|
|
626
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get
|
|
2641
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
627
2642
|
_request_timeout: Union[
|
|
628
2643
|
None,
|
|
629
2644
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -636,12 +2651,11 @@ class DatasetApi:
|
|
|
636
2651
|
_content_type: Optional[StrictStr] = None,
|
|
637
2652
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
638
2653
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
639
|
-
) ->
|
|
640
|
-
"""Gets a
|
|
2654
|
+
) -> GetDatasetByIdResult:
|
|
2655
|
+
"""Gets a dataset by its id.
|
|
641
2656
|
|
|
642
|
-
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
643
2657
|
|
|
644
|
-
:param dataset_id: The id of the dataset to get
|
|
2658
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
645
2659
|
:type dataset_id: str
|
|
646
2660
|
:param _request_timeout: timeout setting for this request. If one
|
|
647
2661
|
number provided, it will be total request
|
|
@@ -665,7 +2679,7 @@ class DatasetApi:
|
|
|
665
2679
|
:return: Returns the result object.
|
|
666
2680
|
""" # noqa: E501
|
|
667
2681
|
|
|
668
|
-
_param = self.
|
|
2682
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
669
2683
|
dataset_id=dataset_id,
|
|
670
2684
|
_request_auth=_request_auth,
|
|
671
2685
|
_content_type=_content_type,
|
|
@@ -674,7 +2688,7 @@ class DatasetApi:
|
|
|
674
2688
|
)
|
|
675
2689
|
|
|
676
2690
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
677
|
-
'200': "
|
|
2691
|
+
'200': "GetDatasetByIdResult",
|
|
678
2692
|
}
|
|
679
2693
|
response_data = self.api_client.call_api(
|
|
680
2694
|
*_param,
|
|
@@ -688,9 +2702,9 @@ class DatasetApi:
|
|
|
688
2702
|
|
|
689
2703
|
|
|
690
2704
|
@validate_call
|
|
691
|
-
def
|
|
2705
|
+
def dataset_dataset_id_get_with_http_info(
|
|
692
2706
|
self,
|
|
693
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get
|
|
2707
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
694
2708
|
_request_timeout: Union[
|
|
695
2709
|
None,
|
|
696
2710
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -703,12 +2717,11 @@ class DatasetApi:
|
|
|
703
2717
|
_content_type: Optional[StrictStr] = None,
|
|
704
2718
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
705
2719
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
706
|
-
) -> ApiResponse[
|
|
707
|
-
"""Gets a
|
|
2720
|
+
) -> ApiResponse[GetDatasetByIdResult]:
|
|
2721
|
+
"""Gets a dataset by its id.
|
|
708
2722
|
|
|
709
|
-
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
710
2723
|
|
|
711
|
-
:param dataset_id: The id of the dataset to get
|
|
2724
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
712
2725
|
:type dataset_id: str
|
|
713
2726
|
:param _request_timeout: timeout setting for this request. If one
|
|
714
2727
|
number provided, it will be total request
|
|
@@ -732,7 +2745,7 @@ class DatasetApi:
|
|
|
732
2745
|
:return: Returns the result object.
|
|
733
2746
|
""" # noqa: E501
|
|
734
2747
|
|
|
735
|
-
_param = self.
|
|
2748
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
736
2749
|
dataset_id=dataset_id,
|
|
737
2750
|
_request_auth=_request_auth,
|
|
738
2751
|
_content_type=_content_type,
|
|
@@ -741,7 +2754,7 @@ class DatasetApi:
|
|
|
741
2754
|
)
|
|
742
2755
|
|
|
743
2756
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
744
|
-
'200': "
|
|
2757
|
+
'200': "GetDatasetByIdResult",
|
|
745
2758
|
}
|
|
746
2759
|
response_data = self.api_client.call_api(
|
|
747
2760
|
*_param,
|
|
@@ -755,9 +2768,9 @@ class DatasetApi:
|
|
|
755
2768
|
|
|
756
2769
|
|
|
757
2770
|
@validate_call
|
|
758
|
-
def
|
|
2771
|
+
def dataset_dataset_id_get_without_preload_content(
|
|
759
2772
|
self,
|
|
760
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get
|
|
2773
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
761
2774
|
_request_timeout: Union[
|
|
762
2775
|
None,
|
|
763
2776
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -771,11 +2784,10 @@ class DatasetApi:
|
|
|
771
2784
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
772
2785
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
773
2786
|
) -> RESTResponseType:
|
|
774
|
-
"""Gets a
|
|
2787
|
+
"""Gets a dataset by its id.
|
|
775
2788
|
|
|
776
|
-
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
777
2789
|
|
|
778
|
-
:param dataset_id: The id of the dataset to get
|
|
2790
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
779
2791
|
:type dataset_id: str
|
|
780
2792
|
:param _request_timeout: timeout setting for this request. If one
|
|
781
2793
|
number provided, it will be total request
|
|
@@ -799,7 +2811,7 @@ class DatasetApi:
|
|
|
799
2811
|
:return: Returns the result object.
|
|
800
2812
|
""" # noqa: E501
|
|
801
2813
|
|
|
802
|
-
_param = self.
|
|
2814
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
803
2815
|
dataset_id=dataset_id,
|
|
804
2816
|
_request_auth=_request_auth,
|
|
805
2817
|
_content_type=_content_type,
|
|
@@ -808,7 +2820,7 @@ class DatasetApi:
|
|
|
808
2820
|
)
|
|
809
2821
|
|
|
810
2822
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
811
|
-
'200': "
|
|
2823
|
+
'200': "GetDatasetByIdResult",
|
|
812
2824
|
}
|
|
813
2825
|
response_data = self.api_client.call_api(
|
|
814
2826
|
*_param,
|
|
@@ -817,7 +2829,7 @@ class DatasetApi:
|
|
|
817
2829
|
return response_data.response
|
|
818
2830
|
|
|
819
2831
|
|
|
820
|
-
def
|
|
2832
|
+
def _dataset_dataset_id_get_serialize(
|
|
821
2833
|
self,
|
|
822
2834
|
dataset_id,
|
|
823
2835
|
_request_auth,
|
|
@@ -868,7 +2880,7 @@ class DatasetApi:
|
|
|
868
2880
|
|
|
869
2881
|
return self.api_client.param_serialize(
|
|
870
2882
|
method='GET',
|
|
871
|
-
resource_path='/dataset/{datasetId}
|
|
2883
|
+
resource_path='/dataset/{datasetId}',
|
|
872
2884
|
path_params=_path_params,
|
|
873
2885
|
query_params=_query_params,
|
|
874
2886
|
header_params=_header_params,
|
|
@@ -885,10 +2897,10 @@ class DatasetApi:
|
|
|
885
2897
|
|
|
886
2898
|
|
|
887
2899
|
@validate_call
|
|
888
|
-
def
|
|
2900
|
+
def dataset_dataset_id_name_patch(
|
|
889
2901
|
self,
|
|
890
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
891
|
-
|
|
2902
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
2903
|
+
update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
|
|
892
2904
|
_request_timeout: Union[
|
|
893
2905
|
None,
|
|
894
2906
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -901,15 +2913,14 @@ class DatasetApi:
|
|
|
901
2913
|
_content_type: Optional[StrictStr] = None,
|
|
902
2914
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
903
2915
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
904
|
-
) ->
|
|
905
|
-
"""
|
|
2916
|
+
) -> None:
|
|
2917
|
+
"""Updates the name of a dataset.
|
|
906
2918
|
|
|
907
|
-
Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
|
|
908
2919
|
|
|
909
|
-
:param dataset_id: The id of the dataset to
|
|
2920
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
910
2921
|
:type dataset_id: str
|
|
911
|
-
:param
|
|
912
|
-
:type
|
|
2922
|
+
:param update_dataset_name_model: The body of the request.
|
|
2923
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
913
2924
|
:param _request_timeout: timeout setting for this request. If one
|
|
914
2925
|
number provided, it will be total request
|
|
915
2926
|
timeout. It can also be a pair (tuple) of
|
|
@@ -932,9 +2943,9 @@ class DatasetApi:
|
|
|
932
2943
|
:return: Returns the result object.
|
|
933
2944
|
""" # noqa: E501
|
|
934
2945
|
|
|
935
|
-
_param = self.
|
|
2946
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
936
2947
|
dataset_id=dataset_id,
|
|
937
|
-
|
|
2948
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
938
2949
|
_request_auth=_request_auth,
|
|
939
2950
|
_content_type=_content_type,
|
|
940
2951
|
_headers=_headers,
|
|
@@ -942,7 +2953,7 @@ class DatasetApi:
|
|
|
942
2953
|
)
|
|
943
2954
|
|
|
944
2955
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
945
|
-
'
|
|
2956
|
+
'204': None,
|
|
946
2957
|
}
|
|
947
2958
|
response_data = self.api_client.call_api(
|
|
948
2959
|
*_param,
|
|
@@ -956,10 +2967,10 @@ class DatasetApi:
|
|
|
956
2967
|
|
|
957
2968
|
|
|
958
2969
|
@validate_call
|
|
959
|
-
def
|
|
2970
|
+
def dataset_dataset_id_name_patch_with_http_info(
|
|
960
2971
|
self,
|
|
961
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
962
|
-
|
|
2972
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
2973
|
+
update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
|
|
963
2974
|
_request_timeout: Union[
|
|
964
2975
|
None,
|
|
965
2976
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -972,15 +2983,14 @@ class DatasetApi:
|
|
|
972
2983
|
_content_type: Optional[StrictStr] = None,
|
|
973
2984
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
974
2985
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
975
|
-
) -> ApiResponse[
|
|
976
|
-
"""
|
|
2986
|
+
) -> ApiResponse[None]:
|
|
2987
|
+
"""Updates the name of a dataset.
|
|
977
2988
|
|
|
978
|
-
Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
|
|
979
2989
|
|
|
980
|
-
:param dataset_id: The id of the dataset to
|
|
2990
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
981
2991
|
:type dataset_id: str
|
|
982
|
-
:param
|
|
983
|
-
:type
|
|
2992
|
+
:param update_dataset_name_model: The body of the request.
|
|
2993
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
984
2994
|
:param _request_timeout: timeout setting for this request. If one
|
|
985
2995
|
number provided, it will be total request
|
|
986
2996
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1003,9 +3013,9 @@ class DatasetApi:
|
|
|
1003
3013
|
:return: Returns the result object.
|
|
1004
3014
|
""" # noqa: E501
|
|
1005
3015
|
|
|
1006
|
-
_param = self.
|
|
3016
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1007
3017
|
dataset_id=dataset_id,
|
|
1008
|
-
|
|
3018
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1009
3019
|
_request_auth=_request_auth,
|
|
1010
3020
|
_content_type=_content_type,
|
|
1011
3021
|
_headers=_headers,
|
|
@@ -1013,7 +3023,7 @@ class DatasetApi:
|
|
|
1013
3023
|
)
|
|
1014
3024
|
|
|
1015
3025
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1016
|
-
'
|
|
3026
|
+
'204': None,
|
|
1017
3027
|
}
|
|
1018
3028
|
response_data = self.api_client.call_api(
|
|
1019
3029
|
*_param,
|
|
@@ -1027,10 +3037,10 @@ class DatasetApi:
|
|
|
1027
3037
|
|
|
1028
3038
|
|
|
1029
3039
|
@validate_call
|
|
1030
|
-
def
|
|
3040
|
+
def dataset_dataset_id_name_patch_without_preload_content(
|
|
1031
3041
|
self,
|
|
1032
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
1033
|
-
|
|
3042
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
3043
|
+
update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
|
|
1034
3044
|
_request_timeout: Union[
|
|
1035
3045
|
None,
|
|
1036
3046
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1044,14 +3054,13 @@ class DatasetApi:
|
|
|
1044
3054
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1045
3055
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1046
3056
|
) -> RESTResponseType:
|
|
1047
|
-
"""
|
|
3057
|
+
"""Updates the name of a dataset.
|
|
1048
3058
|
|
|
1049
|
-
Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
|
|
1050
3059
|
|
|
1051
|
-
:param dataset_id: The id of the dataset to
|
|
3060
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
1052
3061
|
:type dataset_id: str
|
|
1053
|
-
:param
|
|
1054
|
-
:type
|
|
3062
|
+
:param update_dataset_name_model: The body of the request.
|
|
3063
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
1055
3064
|
:param _request_timeout: timeout setting for this request. If one
|
|
1056
3065
|
number provided, it will be total request
|
|
1057
3066
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1074,9 +3083,9 @@ class DatasetApi:
|
|
|
1074
3083
|
:return: Returns the result object.
|
|
1075
3084
|
""" # noqa: E501
|
|
1076
3085
|
|
|
1077
|
-
_param = self.
|
|
3086
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1078
3087
|
dataset_id=dataset_id,
|
|
1079
|
-
|
|
3088
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1080
3089
|
_request_auth=_request_auth,
|
|
1081
3090
|
_content_type=_content_type,
|
|
1082
3091
|
_headers=_headers,
|
|
@@ -1084,7 +3093,7 @@ class DatasetApi:
|
|
|
1084
3093
|
)
|
|
1085
3094
|
|
|
1086
3095
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1087
|
-
'
|
|
3096
|
+
'204': None,
|
|
1088
3097
|
}
|
|
1089
3098
|
response_data = self.api_client.call_api(
|
|
1090
3099
|
*_param,
|
|
@@ -1093,10 +3102,10 @@ class DatasetApi:
|
|
|
1093
3102
|
return response_data.response
|
|
1094
3103
|
|
|
1095
3104
|
|
|
1096
|
-
def
|
|
3105
|
+
def _dataset_dataset_id_name_patch_serialize(
|
|
1097
3106
|
self,
|
|
1098
3107
|
dataset_id,
|
|
1099
|
-
|
|
3108
|
+
update_dataset_name_model,
|
|
1100
3109
|
_request_auth,
|
|
1101
3110
|
_content_type,
|
|
1102
3111
|
_headers,
|
|
@@ -1124,19 +3133,10 @@ class DatasetApi:
|
|
|
1124
3133
|
# process the header parameters
|
|
1125
3134
|
# process the form parameters
|
|
1126
3135
|
# process the body parameter
|
|
1127
|
-
if
|
|
1128
|
-
_body_params =
|
|
3136
|
+
if update_dataset_name_model is not None:
|
|
3137
|
+
_body_params = update_dataset_name_model
|
|
1129
3138
|
|
|
1130
3139
|
|
|
1131
|
-
# set the HTTP header `Accept`
|
|
1132
|
-
if 'Accept' not in _header_params:
|
|
1133
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1134
|
-
[
|
|
1135
|
-
'text/plain',
|
|
1136
|
-
'application/json',
|
|
1137
|
-
'text/json'
|
|
1138
|
-
]
|
|
1139
|
-
)
|
|
1140
3140
|
|
|
1141
3141
|
# set the HTTP header `Content-Type`
|
|
1142
3142
|
if _content_type:
|
|
@@ -1161,8 +3161,8 @@ class DatasetApi:
|
|
|
1161
3161
|
]
|
|
1162
3162
|
|
|
1163
3163
|
return self.api_client.param_serialize(
|
|
1164
|
-
method='
|
|
1165
|
-
resource_path='/dataset/{datasetId}/
|
|
3164
|
+
method='PATCH',
|
|
3165
|
+
resource_path='/dataset/{datasetId}/name',
|
|
1166
3166
|
path_params=_path_params,
|
|
1167
3167
|
query_params=_query_params,
|
|
1168
3168
|
header_params=_header_params,
|
|
@@ -1440,7 +3440,7 @@ class DatasetApi:
|
|
|
1440
3440
|
|
|
1441
3441
|
|
|
1442
3442
|
@validate_call
|
|
1443
|
-
def
|
|
3443
|
+
def dataset_getbyid_get(
|
|
1444
3444
|
self,
|
|
1445
3445
|
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
|
|
1446
3446
|
_request_timeout: Union[
|
|
@@ -1456,7 +3456,7 @@ class DatasetApi:
|
|
|
1456
3456
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1457
3457
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1458
3458
|
) -> GetDatasetByIdResult:
|
|
1459
|
-
"""Gets a dataset by its id.
|
|
3459
|
+
"""(Deprecated) Gets a dataset by its id.
|
|
1460
3460
|
|
|
1461
3461
|
|
|
1462
3462
|
:param id: The id of the dataset to get.
|
|
@@ -1482,8 +3482,9 @@ class DatasetApi:
|
|
|
1482
3482
|
:type _host_index: int, optional
|
|
1483
3483
|
:return: Returns the result object.
|
|
1484
3484
|
""" # noqa: E501
|
|
3485
|
+
warnings.warn("GET /dataset/getbyid is deprecated.", DeprecationWarning)
|
|
1485
3486
|
|
|
1486
|
-
_param = self.
|
|
3487
|
+
_param = self._dataset_getbyid_get_serialize(
|
|
1487
3488
|
id=id,
|
|
1488
3489
|
_request_auth=_request_auth,
|
|
1489
3490
|
_content_type=_content_type,
|
|
@@ -1506,7 +3507,7 @@ class DatasetApi:
|
|
|
1506
3507
|
|
|
1507
3508
|
|
|
1508
3509
|
@validate_call
|
|
1509
|
-
def
|
|
3510
|
+
def dataset_getbyid_get_with_http_info(
|
|
1510
3511
|
self,
|
|
1511
3512
|
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
|
|
1512
3513
|
_request_timeout: Union[
|
|
@@ -1522,7 +3523,7 @@ class DatasetApi:
|
|
|
1522
3523
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1523
3524
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1524
3525
|
) -> ApiResponse[GetDatasetByIdResult]:
|
|
1525
|
-
"""Gets a dataset by its id.
|
|
3526
|
+
"""(Deprecated) Gets a dataset by its id.
|
|
1526
3527
|
|
|
1527
3528
|
|
|
1528
3529
|
:param id: The id of the dataset to get.
|
|
@@ -1548,8 +3549,9 @@ class DatasetApi:
|
|
|
1548
3549
|
:type _host_index: int, optional
|
|
1549
3550
|
:return: Returns the result object.
|
|
1550
3551
|
""" # noqa: E501
|
|
3552
|
+
warnings.warn("GET /dataset/getbyid is deprecated.", DeprecationWarning)
|
|
1551
3553
|
|
|
1552
|
-
_param = self.
|
|
3554
|
+
_param = self._dataset_getbyid_get_serialize(
|
|
1553
3555
|
id=id,
|
|
1554
3556
|
_request_auth=_request_auth,
|
|
1555
3557
|
_content_type=_content_type,
|
|
@@ -1572,7 +3574,7 @@ class DatasetApi:
|
|
|
1572
3574
|
|
|
1573
3575
|
|
|
1574
3576
|
@validate_call
|
|
1575
|
-
def
|
|
3577
|
+
def dataset_getbyid_get_without_preload_content(
|
|
1576
3578
|
self,
|
|
1577
3579
|
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
|
|
1578
3580
|
_request_timeout: Union[
|
|
@@ -1588,7 +3590,7 @@ class DatasetApi:
|
|
|
1588
3590
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1589
3591
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1590
3592
|
) -> RESTResponseType:
|
|
1591
|
-
"""Gets a dataset by its id.
|
|
3593
|
+
"""(Deprecated) Gets a dataset by its id.
|
|
1592
3594
|
|
|
1593
3595
|
|
|
1594
3596
|
:param id: The id of the dataset to get.
|
|
@@ -1614,8 +3616,9 @@ class DatasetApi:
|
|
|
1614
3616
|
:type _host_index: int, optional
|
|
1615
3617
|
:return: Returns the result object.
|
|
1616
3618
|
""" # noqa: E501
|
|
3619
|
+
warnings.warn("GET /dataset/getbyid is deprecated.", DeprecationWarning)
|
|
1617
3620
|
|
|
1618
|
-
_param = self.
|
|
3621
|
+
_param = self._dataset_getbyid_get_serialize(
|
|
1619
3622
|
id=id,
|
|
1620
3623
|
_request_auth=_request_auth,
|
|
1621
3624
|
_content_type=_content_type,
|
|
@@ -1633,7 +3636,7 @@ class DatasetApi:
|
|
|
1633
3636
|
return response_data.response
|
|
1634
3637
|
|
|
1635
3638
|
|
|
1636
|
-
def
|
|
3639
|
+
def _dataset_getbyid_get_serialize(
|
|
1637
3640
|
self,
|
|
1638
3641
|
id,
|
|
1639
3642
|
_request_auth,
|
|
@@ -1686,7 +3689,7 @@ class DatasetApi:
|
|
|
1686
3689
|
|
|
1687
3690
|
return self.api_client.param_serialize(
|
|
1688
3691
|
method='GET',
|
|
1689
|
-
resource_path='/
|
|
3692
|
+
resource_path='/dataset/getbyid',
|
|
1690
3693
|
path_params=_path_params,
|
|
1691
3694
|
query_params=_query_params,
|
|
1692
3695
|
header_params=_header_params,
|
|
@@ -1720,7 +3723,7 @@ class DatasetApi:
|
|
|
1720
3723
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1721
3724
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1722
3725
|
) -> ImportFromFileResult:
|
|
1723
|
-
"""Imports datapoints from a csv file.
|
|
3726
|
+
"""(Deprecated) Imports datapoints from a csv file.
|
|
1724
3727
|
|
|
1725
3728
|
|
|
1726
3729
|
:param dataset_id: The id of the dataset to import the datapoints to.
|
|
@@ -1748,6 +3751,7 @@ class DatasetApi:
|
|
|
1748
3751
|
:type _host_index: int, optional
|
|
1749
3752
|
:return: Returns the result object.
|
|
1750
3753
|
""" # noqa: E501
|
|
3754
|
+
warnings.warn("POST /dataset/import is deprecated.", DeprecationWarning)
|
|
1751
3755
|
|
|
1752
3756
|
_param = self._dataset_import_post_serialize(
|
|
1753
3757
|
dataset_id=dataset_id,
|
|
@@ -1790,7 +3794,7 @@ class DatasetApi:
|
|
|
1790
3794
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1791
3795
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1792
3796
|
) -> ApiResponse[ImportFromFileResult]:
|
|
1793
|
-
"""Imports datapoints from a csv file.
|
|
3797
|
+
"""(Deprecated) Imports datapoints from a csv file.
|
|
1794
3798
|
|
|
1795
3799
|
|
|
1796
3800
|
:param dataset_id: The id of the dataset to import the datapoints to.
|
|
@@ -1818,6 +3822,7 @@ class DatasetApi:
|
|
|
1818
3822
|
:type _host_index: int, optional
|
|
1819
3823
|
:return: Returns the result object.
|
|
1820
3824
|
""" # noqa: E501
|
|
3825
|
+
warnings.warn("POST /dataset/import is deprecated.", DeprecationWarning)
|
|
1821
3826
|
|
|
1822
3827
|
_param = self._dataset_import_post_serialize(
|
|
1823
3828
|
dataset_id=dataset_id,
|
|
@@ -1860,7 +3865,7 @@ class DatasetApi:
|
|
|
1860
3865
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1861
3866
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1862
3867
|
) -> RESTResponseType:
|
|
1863
|
-
"""Imports datapoints from a csv file.
|
|
3868
|
+
"""(Deprecated) Imports datapoints from a csv file.
|
|
1864
3869
|
|
|
1865
3870
|
|
|
1866
3871
|
:param dataset_id: The id of the dataset to import the datapoints to.
|
|
@@ -1888,6 +3893,7 @@ class DatasetApi:
|
|
|
1888
3893
|
:type _host_index: int, optional
|
|
1889
3894
|
:return: Returns the result object.
|
|
1890
3895
|
""" # noqa: E501
|
|
3896
|
+
warnings.warn("POST /dataset/import is deprecated.", DeprecationWarning)
|
|
1891
3897
|
|
|
1892
3898
|
_param = self._dataset_import_post_serialize(
|
|
1893
3899
|
dataset_id=dataset_id,
|
|
@@ -1977,7 +3983,7 @@ class DatasetApi:
|
|
|
1977
3983
|
|
|
1978
3984
|
return self.api_client.param_serialize(
|
|
1979
3985
|
method='POST',
|
|
1980
|
-
resource_path='/
|
|
3986
|
+
resource_path='/dataset/import',
|
|
1981
3987
|
path_params=_path_params,
|
|
1982
3988
|
query_params=_query_params,
|
|
1983
3989
|
header_params=_header_params,
|
|
@@ -1994,7 +4000,7 @@ class DatasetApi:
|
|
|
1994
4000
|
|
|
1995
4001
|
|
|
1996
4002
|
@validate_call
|
|
1997
|
-
def
|
|
4003
|
+
def dataset_updatename_post(
|
|
1998
4004
|
self,
|
|
1999
4005
|
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
|
|
2000
4006
|
name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
|
|
@@ -2011,7 +4017,7 @@ class DatasetApi:
|
|
|
2011
4017
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2012
4018
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2013
4019
|
) -> None:
|
|
2014
|
-
"""Updates the name of a dataset.
|
|
4020
|
+
"""(Deprecated) Updates the name of a dataset.
|
|
2015
4021
|
|
|
2016
4022
|
|
|
2017
4023
|
:param id: The id of the dataset to update.
|
|
@@ -2039,8 +4045,9 @@ class DatasetApi:
|
|
|
2039
4045
|
:type _host_index: int, optional
|
|
2040
4046
|
:return: Returns the result object.
|
|
2041
4047
|
""" # noqa: E501
|
|
4048
|
+
warnings.warn("POST /dataset/updatename is deprecated.", DeprecationWarning)
|
|
2042
4049
|
|
|
2043
|
-
_param = self.
|
|
4050
|
+
_param = self._dataset_updatename_post_serialize(
|
|
2044
4051
|
id=id,
|
|
2045
4052
|
name=name,
|
|
2046
4053
|
_request_auth=_request_auth,
|
|
@@ -2064,7 +4071,7 @@ class DatasetApi:
|
|
|
2064
4071
|
|
|
2065
4072
|
|
|
2066
4073
|
@validate_call
|
|
2067
|
-
def
|
|
4074
|
+
def dataset_updatename_post_with_http_info(
|
|
2068
4075
|
self,
|
|
2069
4076
|
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
|
|
2070
4077
|
name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
|
|
@@ -2081,7 +4088,7 @@ class DatasetApi:
|
|
|
2081
4088
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2082
4089
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2083
4090
|
) -> ApiResponse[None]:
|
|
2084
|
-
"""Updates the name of a dataset.
|
|
4091
|
+
"""(Deprecated) Updates the name of a dataset.
|
|
2085
4092
|
|
|
2086
4093
|
|
|
2087
4094
|
:param id: The id of the dataset to update.
|
|
@@ -2109,8 +4116,9 @@ class DatasetApi:
|
|
|
2109
4116
|
:type _host_index: int, optional
|
|
2110
4117
|
:return: Returns the result object.
|
|
2111
4118
|
""" # noqa: E501
|
|
4119
|
+
warnings.warn("POST /dataset/updatename is deprecated.", DeprecationWarning)
|
|
2112
4120
|
|
|
2113
|
-
_param = self.
|
|
4121
|
+
_param = self._dataset_updatename_post_serialize(
|
|
2114
4122
|
id=id,
|
|
2115
4123
|
name=name,
|
|
2116
4124
|
_request_auth=_request_auth,
|
|
@@ -2134,7 +4142,7 @@ class DatasetApi:
|
|
|
2134
4142
|
|
|
2135
4143
|
|
|
2136
4144
|
@validate_call
|
|
2137
|
-
def
|
|
4145
|
+
def dataset_updatename_post_without_preload_content(
|
|
2138
4146
|
self,
|
|
2139
4147
|
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
|
|
2140
4148
|
name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
|
|
@@ -2151,7 +4159,7 @@ class DatasetApi:
|
|
|
2151
4159
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2152
4160
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2153
4161
|
) -> RESTResponseType:
|
|
2154
|
-
"""Updates the name of a dataset.
|
|
4162
|
+
"""(Deprecated) Updates the name of a dataset.
|
|
2155
4163
|
|
|
2156
4164
|
|
|
2157
4165
|
:param id: The id of the dataset to update.
|
|
@@ -2179,8 +4187,9 @@ class DatasetApi:
|
|
|
2179
4187
|
:type _host_index: int, optional
|
|
2180
4188
|
:return: Returns the result object.
|
|
2181
4189
|
""" # noqa: E501
|
|
4190
|
+
warnings.warn("POST /dataset/updatename is deprecated.", DeprecationWarning)
|
|
2182
4191
|
|
|
2183
|
-
_param = self.
|
|
4192
|
+
_param = self._dataset_updatename_post_serialize(
|
|
2184
4193
|
id=id,
|
|
2185
4194
|
name=name,
|
|
2186
4195
|
_request_auth=_request_auth,
|
|
@@ -2199,7 +4208,7 @@ class DatasetApi:
|
|
|
2199
4208
|
return response_data.response
|
|
2200
4209
|
|
|
2201
4210
|
|
|
2202
|
-
def
|
|
4211
|
+
def _dataset_updatename_post_serialize(
|
|
2203
4212
|
self,
|
|
2204
4213
|
id,
|
|
2205
4214
|
name,
|
|
@@ -2248,7 +4257,7 @@ class DatasetApi:
|
|
|
2248
4257
|
|
|
2249
4258
|
return self.api_client.param_serialize(
|
|
2250
4259
|
method='POST',
|
|
2251
|
-
resource_path='/
|
|
4260
|
+
resource_path='/dataset/updatename',
|
|
2252
4261
|
path_params=_path_params,
|
|
2253
4262
|
query_params=_query_params,
|
|
2254
4263
|
header_params=_header_params,
|
|
@@ -2265,7 +4274,7 @@ class DatasetApi:
|
|
|
2265
4274
|
|
|
2266
4275
|
|
|
2267
4276
|
@validate_call
|
|
2268
|
-
def
|
|
4277
|
+
def dataset_uploadfilesfroms3_post(
|
|
2269
4278
|
self,
|
|
2270
4279
|
upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
2271
4280
|
_request_timeout: Union[
|
|
@@ -2281,7 +4290,7 @@ class DatasetApi:
|
|
|
2281
4290
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2282
4291
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2283
4292
|
) -> UploadFromS3Result:
|
|
2284
|
-
"""Uploads files from an S3 bucket to a dataset.
|
|
4293
|
+
"""(Deprecated) Uploads files from an S3 bucket to a dataset.
|
|
2285
4294
|
|
|
2286
4295
|
A new datapoint will be created for each file in the bucket.
|
|
2287
4296
|
|
|
@@ -2308,8 +4317,9 @@ class DatasetApi:
|
|
|
2308
4317
|
:type _host_index: int, optional
|
|
2309
4318
|
:return: Returns the result object.
|
|
2310
4319
|
""" # noqa: E501
|
|
4320
|
+
warnings.warn("POST /dataset/uploadfilesfroms3 is deprecated.", DeprecationWarning)
|
|
2311
4321
|
|
|
2312
|
-
_param = self.
|
|
4322
|
+
_param = self._dataset_uploadfilesfroms3_post_serialize(
|
|
2313
4323
|
upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
|
|
2314
4324
|
_request_auth=_request_auth,
|
|
2315
4325
|
_content_type=_content_type,
|
|
@@ -2332,7 +4342,7 @@ class DatasetApi:
|
|
|
2332
4342
|
|
|
2333
4343
|
|
|
2334
4344
|
@validate_call
|
|
2335
|
-
def
|
|
4345
|
+
def dataset_uploadfilesfroms3_post_with_http_info(
|
|
2336
4346
|
self,
|
|
2337
4347
|
upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
2338
4348
|
_request_timeout: Union[
|
|
@@ -2348,7 +4358,7 @@ class DatasetApi:
|
|
|
2348
4358
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2349
4359
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2350
4360
|
) -> ApiResponse[UploadFromS3Result]:
|
|
2351
|
-
"""Uploads files from an S3 bucket to a dataset.
|
|
4361
|
+
"""(Deprecated) Uploads files from an S3 bucket to a dataset.
|
|
2352
4362
|
|
|
2353
4363
|
A new datapoint will be created for each file in the bucket.
|
|
2354
4364
|
|
|
@@ -2375,8 +4385,9 @@ class DatasetApi:
|
|
|
2375
4385
|
:type _host_index: int, optional
|
|
2376
4386
|
:return: Returns the result object.
|
|
2377
4387
|
""" # noqa: E501
|
|
4388
|
+
warnings.warn("POST /dataset/uploadfilesfroms3 is deprecated.", DeprecationWarning)
|
|
2378
4389
|
|
|
2379
|
-
_param = self.
|
|
4390
|
+
_param = self._dataset_uploadfilesfroms3_post_serialize(
|
|
2380
4391
|
upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
|
|
2381
4392
|
_request_auth=_request_auth,
|
|
2382
4393
|
_content_type=_content_type,
|
|
@@ -2399,7 +4410,7 @@ class DatasetApi:
|
|
|
2399
4410
|
|
|
2400
4411
|
|
|
2401
4412
|
@validate_call
|
|
2402
|
-
def
|
|
4413
|
+
def dataset_uploadfilesfroms3_post_without_preload_content(
|
|
2403
4414
|
self,
|
|
2404
4415
|
upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
2405
4416
|
_request_timeout: Union[
|
|
@@ -2415,7 +4426,7 @@ class DatasetApi:
|
|
|
2415
4426
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2416
4427
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2417
4428
|
) -> RESTResponseType:
|
|
2418
|
-
"""Uploads files from an S3 bucket to a dataset.
|
|
4429
|
+
"""(Deprecated) Uploads files from an S3 bucket to a dataset.
|
|
2419
4430
|
|
|
2420
4431
|
A new datapoint will be created for each file in the bucket.
|
|
2421
4432
|
|
|
@@ -2442,8 +4453,9 @@ class DatasetApi:
|
|
|
2442
4453
|
:type _host_index: int, optional
|
|
2443
4454
|
:return: Returns the result object.
|
|
2444
4455
|
""" # noqa: E501
|
|
4456
|
+
warnings.warn("POST /dataset/uploadfilesfroms3 is deprecated.", DeprecationWarning)
|
|
2445
4457
|
|
|
2446
|
-
_param = self.
|
|
4458
|
+
_param = self._dataset_uploadfilesfroms3_post_serialize(
|
|
2447
4459
|
upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
|
|
2448
4460
|
_request_auth=_request_auth,
|
|
2449
4461
|
_content_type=_content_type,
|
|
@@ -2461,7 +4473,7 @@ class DatasetApi:
|
|
|
2461
4473
|
return response_data.response
|
|
2462
4474
|
|
|
2463
4475
|
|
|
2464
|
-
def
|
|
4476
|
+
def _dataset_uploadfilesfroms3_post_serialize(
|
|
2465
4477
|
self,
|
|
2466
4478
|
upload_files_from_s3_bucket_model,
|
|
2467
4479
|
_request_auth,
|
|
@@ -2527,7 +4539,7 @@ class DatasetApi:
|
|
|
2527
4539
|
|
|
2528
4540
|
return self.api_client.param_serialize(
|
|
2529
4541
|
method='POST',
|
|
2530
|
-
resource_path='/
|
|
4542
|
+
resource_path='/dataset/uploadfilesfroms3',
|
|
2531
4543
|
path_params=_path_params,
|
|
2532
4544
|
query_params=_query_params,
|
|
2533
4545
|
header_params=_header_params,
|