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
|
@@ -40,6 +40,519 @@ class DatapointApi:
|
|
|
40
40
|
self.api_client = api_client
|
|
41
41
|
|
|
42
42
|
|
|
43
|
+
@validate_call
|
|
44
|
+
def datapoint_datapoint_id_delete(
|
|
45
|
+
self,
|
|
46
|
+
datapoint_id: Annotated[StrictStr, Field(description="The id of the datapoint to delete.")],
|
|
47
|
+
_request_timeout: Union[
|
|
48
|
+
None,
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
+
Tuple[
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
53
|
+
]
|
|
54
|
+
] = None,
|
|
55
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
56
|
+
_content_type: Optional[StrictStr] = None,
|
|
57
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
59
|
+
) -> None:
|
|
60
|
+
"""Deletes a datapoint by its id.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:param datapoint_id: The id of the datapoint to delete. (required)
|
|
64
|
+
:type datapoint_id: str
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
_param = self._datapoint_datapoint_id_delete_serialize(
|
|
88
|
+
datapoint_id=datapoint_id,
|
|
89
|
+
_request_auth=_request_auth,
|
|
90
|
+
_content_type=_content_type,
|
|
91
|
+
_headers=_headers,
|
|
92
|
+
_host_index=_host_index
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
96
|
+
'204': None,
|
|
97
|
+
}
|
|
98
|
+
response_data = self.api_client.call_api(
|
|
99
|
+
*_param,
|
|
100
|
+
_request_timeout=_request_timeout
|
|
101
|
+
)
|
|
102
|
+
response_data.read()
|
|
103
|
+
return self.api_client.response_deserialize(
|
|
104
|
+
response_data=response_data,
|
|
105
|
+
response_types_map=_response_types_map,
|
|
106
|
+
).data
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@validate_call
|
|
110
|
+
def datapoint_datapoint_id_delete_with_http_info(
|
|
111
|
+
self,
|
|
112
|
+
datapoint_id: Annotated[StrictStr, Field(description="The id of the datapoint to delete.")],
|
|
113
|
+
_request_timeout: Union[
|
|
114
|
+
None,
|
|
115
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
116
|
+
Tuple[
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
119
|
+
]
|
|
120
|
+
] = None,
|
|
121
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
122
|
+
_content_type: Optional[StrictStr] = None,
|
|
123
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
125
|
+
) -> ApiResponse[None]:
|
|
126
|
+
"""Deletes a datapoint by its id.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:param datapoint_id: The id of the datapoint to delete. (required)
|
|
130
|
+
:type datapoint_id: str
|
|
131
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
132
|
+
number provided, it will be total request
|
|
133
|
+
timeout. It can also be a pair (tuple) of
|
|
134
|
+
(connection, read) timeouts.
|
|
135
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
136
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
137
|
+
request; this effectively ignores the
|
|
138
|
+
authentication in the spec for a single request.
|
|
139
|
+
:type _request_auth: dict, optional
|
|
140
|
+
:param _content_type: force content-type for the request.
|
|
141
|
+
:type _content_type: str, Optional
|
|
142
|
+
:param _headers: set to override the headers for a single
|
|
143
|
+
request; this effectively ignores the headers
|
|
144
|
+
in the spec for a single request.
|
|
145
|
+
:type _headers: dict, optional
|
|
146
|
+
:param _host_index: set to override the host_index for a single
|
|
147
|
+
request; this effectively ignores the host_index
|
|
148
|
+
in the spec for a single request.
|
|
149
|
+
:type _host_index: int, optional
|
|
150
|
+
:return: Returns the result object.
|
|
151
|
+
""" # noqa: E501
|
|
152
|
+
|
|
153
|
+
_param = self._datapoint_datapoint_id_delete_serialize(
|
|
154
|
+
datapoint_id=datapoint_id,
|
|
155
|
+
_request_auth=_request_auth,
|
|
156
|
+
_content_type=_content_type,
|
|
157
|
+
_headers=_headers,
|
|
158
|
+
_host_index=_host_index
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
162
|
+
'204': None,
|
|
163
|
+
}
|
|
164
|
+
response_data = self.api_client.call_api(
|
|
165
|
+
*_param,
|
|
166
|
+
_request_timeout=_request_timeout
|
|
167
|
+
)
|
|
168
|
+
response_data.read()
|
|
169
|
+
return self.api_client.response_deserialize(
|
|
170
|
+
response_data=response_data,
|
|
171
|
+
response_types_map=_response_types_map,
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
@validate_call
|
|
176
|
+
def datapoint_datapoint_id_delete_without_preload_content(
|
|
177
|
+
self,
|
|
178
|
+
datapoint_id: Annotated[StrictStr, Field(description="The id of the datapoint to delete.")],
|
|
179
|
+
_request_timeout: Union[
|
|
180
|
+
None,
|
|
181
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
182
|
+
Tuple[
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
184
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
185
|
+
]
|
|
186
|
+
] = None,
|
|
187
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
188
|
+
_content_type: Optional[StrictStr] = None,
|
|
189
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
190
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
191
|
+
) -> RESTResponseType:
|
|
192
|
+
"""Deletes a datapoint by its id.
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:param datapoint_id: The id of the datapoint to delete. (required)
|
|
196
|
+
:type datapoint_id: str
|
|
197
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
198
|
+
number provided, it will be total request
|
|
199
|
+
timeout. It can also be a pair (tuple) of
|
|
200
|
+
(connection, read) timeouts.
|
|
201
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
202
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
203
|
+
request; this effectively ignores the
|
|
204
|
+
authentication in the spec for a single request.
|
|
205
|
+
:type _request_auth: dict, optional
|
|
206
|
+
:param _content_type: force content-type for the request.
|
|
207
|
+
:type _content_type: str, Optional
|
|
208
|
+
:param _headers: set to override the headers for a single
|
|
209
|
+
request; this effectively ignores the headers
|
|
210
|
+
in the spec for a single request.
|
|
211
|
+
:type _headers: dict, optional
|
|
212
|
+
:param _host_index: set to override the host_index for a single
|
|
213
|
+
request; this effectively ignores the host_index
|
|
214
|
+
in the spec for a single request.
|
|
215
|
+
:type _host_index: int, optional
|
|
216
|
+
:return: Returns the result object.
|
|
217
|
+
""" # noqa: E501
|
|
218
|
+
|
|
219
|
+
_param = self._datapoint_datapoint_id_delete_serialize(
|
|
220
|
+
datapoint_id=datapoint_id,
|
|
221
|
+
_request_auth=_request_auth,
|
|
222
|
+
_content_type=_content_type,
|
|
223
|
+
_headers=_headers,
|
|
224
|
+
_host_index=_host_index
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
228
|
+
'204': None,
|
|
229
|
+
}
|
|
230
|
+
response_data = self.api_client.call_api(
|
|
231
|
+
*_param,
|
|
232
|
+
_request_timeout=_request_timeout
|
|
233
|
+
)
|
|
234
|
+
return response_data.response
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def _datapoint_datapoint_id_delete_serialize(
|
|
238
|
+
self,
|
|
239
|
+
datapoint_id,
|
|
240
|
+
_request_auth,
|
|
241
|
+
_content_type,
|
|
242
|
+
_headers,
|
|
243
|
+
_host_index,
|
|
244
|
+
) -> RequestSerialized:
|
|
245
|
+
|
|
246
|
+
_host = None
|
|
247
|
+
|
|
248
|
+
_collection_formats: Dict[str, str] = {
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
_path_params: Dict[str, str] = {}
|
|
252
|
+
_query_params: List[Tuple[str, str]] = []
|
|
253
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
254
|
+
_form_params: List[Tuple[str, str]] = []
|
|
255
|
+
_files: Dict[
|
|
256
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
257
|
+
] = {}
|
|
258
|
+
_body_params: Optional[bytes] = None
|
|
259
|
+
|
|
260
|
+
# process the path parameters
|
|
261
|
+
if datapoint_id is not None:
|
|
262
|
+
_path_params['datapointId'] = datapoint_id
|
|
263
|
+
# process the query parameters
|
|
264
|
+
# process the header parameters
|
|
265
|
+
# process the form parameters
|
|
266
|
+
# process the body parameter
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
# authentication setting
|
|
272
|
+
_auth_settings: List[str] = [
|
|
273
|
+
'bearer',
|
|
274
|
+
'oauth2'
|
|
275
|
+
]
|
|
276
|
+
|
|
277
|
+
return self.api_client.param_serialize(
|
|
278
|
+
method='DELETE',
|
|
279
|
+
resource_path='/datapoint/{datapointId}',
|
|
280
|
+
path_params=_path_params,
|
|
281
|
+
query_params=_query_params,
|
|
282
|
+
header_params=_header_params,
|
|
283
|
+
body=_body_params,
|
|
284
|
+
post_params=_form_params,
|
|
285
|
+
files=_files,
|
|
286
|
+
auth_settings=_auth_settings,
|
|
287
|
+
collection_formats=_collection_formats,
|
|
288
|
+
_host=_host,
|
|
289
|
+
_request_auth=_request_auth
|
|
290
|
+
)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
@validate_call
|
|
296
|
+
def datapoint_datapoint_id_get(
|
|
297
|
+
self,
|
|
298
|
+
datapoint_id: Annotated[StrictStr, Field(description="The id of the datapoint to get.")],
|
|
299
|
+
_request_timeout: Union[
|
|
300
|
+
None,
|
|
301
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
302
|
+
Tuple[
|
|
303
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
304
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
305
|
+
]
|
|
306
|
+
] = None,
|
|
307
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
308
|
+
_content_type: Optional[StrictStr] = None,
|
|
309
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
310
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
311
|
+
) -> GetDatapointByIdResult:
|
|
312
|
+
"""Gets a datapoint by its id.
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
:param datapoint_id: The id of the datapoint to get. (required)
|
|
316
|
+
:type datapoint_id: str
|
|
317
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
318
|
+
number provided, it will be total request
|
|
319
|
+
timeout. It can also be a pair (tuple) of
|
|
320
|
+
(connection, read) timeouts.
|
|
321
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
322
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
323
|
+
request; this effectively ignores the
|
|
324
|
+
authentication in the spec for a single request.
|
|
325
|
+
:type _request_auth: dict, optional
|
|
326
|
+
:param _content_type: force content-type for the request.
|
|
327
|
+
:type _content_type: str, Optional
|
|
328
|
+
:param _headers: set to override the headers for a single
|
|
329
|
+
request; this effectively ignores the headers
|
|
330
|
+
in the spec for a single request.
|
|
331
|
+
:type _headers: dict, optional
|
|
332
|
+
:param _host_index: set to override the host_index for a single
|
|
333
|
+
request; this effectively ignores the host_index
|
|
334
|
+
in the spec for a single request.
|
|
335
|
+
:type _host_index: int, optional
|
|
336
|
+
:return: Returns the result object.
|
|
337
|
+
""" # noqa: E501
|
|
338
|
+
|
|
339
|
+
_param = self._datapoint_datapoint_id_get_serialize(
|
|
340
|
+
datapoint_id=datapoint_id,
|
|
341
|
+
_request_auth=_request_auth,
|
|
342
|
+
_content_type=_content_type,
|
|
343
|
+
_headers=_headers,
|
|
344
|
+
_host_index=_host_index
|
|
345
|
+
)
|
|
346
|
+
|
|
347
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
348
|
+
'200': "GetDatapointByIdResult",
|
|
349
|
+
}
|
|
350
|
+
response_data = self.api_client.call_api(
|
|
351
|
+
*_param,
|
|
352
|
+
_request_timeout=_request_timeout
|
|
353
|
+
)
|
|
354
|
+
response_data.read()
|
|
355
|
+
return self.api_client.response_deserialize(
|
|
356
|
+
response_data=response_data,
|
|
357
|
+
response_types_map=_response_types_map,
|
|
358
|
+
).data
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
@validate_call
|
|
362
|
+
def datapoint_datapoint_id_get_with_http_info(
|
|
363
|
+
self,
|
|
364
|
+
datapoint_id: Annotated[StrictStr, Field(description="The id of the datapoint to get.")],
|
|
365
|
+
_request_timeout: Union[
|
|
366
|
+
None,
|
|
367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
368
|
+
Tuple[
|
|
369
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
370
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
371
|
+
]
|
|
372
|
+
] = None,
|
|
373
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
374
|
+
_content_type: Optional[StrictStr] = None,
|
|
375
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
376
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
377
|
+
) -> ApiResponse[GetDatapointByIdResult]:
|
|
378
|
+
"""Gets a datapoint by its id.
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
:param datapoint_id: The id of the datapoint to get. (required)
|
|
382
|
+
:type datapoint_id: str
|
|
383
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
384
|
+
number provided, it will be total request
|
|
385
|
+
timeout. It can also be a pair (tuple) of
|
|
386
|
+
(connection, read) timeouts.
|
|
387
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
388
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
389
|
+
request; this effectively ignores the
|
|
390
|
+
authentication in the spec for a single request.
|
|
391
|
+
:type _request_auth: dict, optional
|
|
392
|
+
:param _content_type: force content-type for the request.
|
|
393
|
+
:type _content_type: str, Optional
|
|
394
|
+
:param _headers: set to override the headers for a single
|
|
395
|
+
request; this effectively ignores the headers
|
|
396
|
+
in the spec for a single request.
|
|
397
|
+
:type _headers: dict, optional
|
|
398
|
+
:param _host_index: set to override the host_index for a single
|
|
399
|
+
request; this effectively ignores the host_index
|
|
400
|
+
in the spec for a single request.
|
|
401
|
+
:type _host_index: int, optional
|
|
402
|
+
:return: Returns the result object.
|
|
403
|
+
""" # noqa: E501
|
|
404
|
+
|
|
405
|
+
_param = self._datapoint_datapoint_id_get_serialize(
|
|
406
|
+
datapoint_id=datapoint_id,
|
|
407
|
+
_request_auth=_request_auth,
|
|
408
|
+
_content_type=_content_type,
|
|
409
|
+
_headers=_headers,
|
|
410
|
+
_host_index=_host_index
|
|
411
|
+
)
|
|
412
|
+
|
|
413
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
414
|
+
'200': "GetDatapointByIdResult",
|
|
415
|
+
}
|
|
416
|
+
response_data = self.api_client.call_api(
|
|
417
|
+
*_param,
|
|
418
|
+
_request_timeout=_request_timeout
|
|
419
|
+
)
|
|
420
|
+
response_data.read()
|
|
421
|
+
return self.api_client.response_deserialize(
|
|
422
|
+
response_data=response_data,
|
|
423
|
+
response_types_map=_response_types_map,
|
|
424
|
+
)
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
@validate_call
|
|
428
|
+
def datapoint_datapoint_id_get_without_preload_content(
|
|
429
|
+
self,
|
|
430
|
+
datapoint_id: Annotated[StrictStr, Field(description="The id of the datapoint to get.")],
|
|
431
|
+
_request_timeout: Union[
|
|
432
|
+
None,
|
|
433
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
434
|
+
Tuple[
|
|
435
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
436
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
437
|
+
]
|
|
438
|
+
] = None,
|
|
439
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
440
|
+
_content_type: Optional[StrictStr] = None,
|
|
441
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
442
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
443
|
+
) -> RESTResponseType:
|
|
444
|
+
"""Gets a datapoint by its id.
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
:param datapoint_id: The id of the datapoint to get. (required)
|
|
448
|
+
:type datapoint_id: str
|
|
449
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
450
|
+
number provided, it will be total request
|
|
451
|
+
timeout. It can also be a pair (tuple) of
|
|
452
|
+
(connection, read) timeouts.
|
|
453
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
454
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
455
|
+
request; this effectively ignores the
|
|
456
|
+
authentication in the spec for a single request.
|
|
457
|
+
:type _request_auth: dict, optional
|
|
458
|
+
:param _content_type: force content-type for the request.
|
|
459
|
+
:type _content_type: str, Optional
|
|
460
|
+
:param _headers: set to override the headers for a single
|
|
461
|
+
request; this effectively ignores the headers
|
|
462
|
+
in the spec for a single request.
|
|
463
|
+
:type _headers: dict, optional
|
|
464
|
+
:param _host_index: set to override the host_index for a single
|
|
465
|
+
request; this effectively ignores the host_index
|
|
466
|
+
in the spec for a single request.
|
|
467
|
+
:type _host_index: int, optional
|
|
468
|
+
:return: Returns the result object.
|
|
469
|
+
""" # noqa: E501
|
|
470
|
+
|
|
471
|
+
_param = self._datapoint_datapoint_id_get_serialize(
|
|
472
|
+
datapoint_id=datapoint_id,
|
|
473
|
+
_request_auth=_request_auth,
|
|
474
|
+
_content_type=_content_type,
|
|
475
|
+
_headers=_headers,
|
|
476
|
+
_host_index=_host_index
|
|
477
|
+
)
|
|
478
|
+
|
|
479
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
480
|
+
'200': "GetDatapointByIdResult",
|
|
481
|
+
}
|
|
482
|
+
response_data = self.api_client.call_api(
|
|
483
|
+
*_param,
|
|
484
|
+
_request_timeout=_request_timeout
|
|
485
|
+
)
|
|
486
|
+
return response_data.response
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
def _datapoint_datapoint_id_get_serialize(
|
|
490
|
+
self,
|
|
491
|
+
datapoint_id,
|
|
492
|
+
_request_auth,
|
|
493
|
+
_content_type,
|
|
494
|
+
_headers,
|
|
495
|
+
_host_index,
|
|
496
|
+
) -> RequestSerialized:
|
|
497
|
+
|
|
498
|
+
_host = None
|
|
499
|
+
|
|
500
|
+
_collection_formats: Dict[str, str] = {
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
_path_params: Dict[str, str] = {}
|
|
504
|
+
_query_params: List[Tuple[str, str]] = []
|
|
505
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
506
|
+
_form_params: List[Tuple[str, str]] = []
|
|
507
|
+
_files: Dict[
|
|
508
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
509
|
+
] = {}
|
|
510
|
+
_body_params: Optional[bytes] = None
|
|
511
|
+
|
|
512
|
+
# process the path parameters
|
|
513
|
+
if datapoint_id is not None:
|
|
514
|
+
_path_params['datapointId'] = datapoint_id
|
|
515
|
+
# process the query parameters
|
|
516
|
+
# process the header parameters
|
|
517
|
+
# process the form parameters
|
|
518
|
+
# process the body parameter
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
# set the HTTP header `Accept`
|
|
522
|
+
if 'Accept' not in _header_params:
|
|
523
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
524
|
+
[
|
|
525
|
+
'text/plain',
|
|
526
|
+
'application/json',
|
|
527
|
+
'text/json'
|
|
528
|
+
]
|
|
529
|
+
)
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
# authentication setting
|
|
533
|
+
_auth_settings: List[str] = [
|
|
534
|
+
'bearer',
|
|
535
|
+
'oauth2'
|
|
536
|
+
]
|
|
537
|
+
|
|
538
|
+
return self.api_client.param_serialize(
|
|
539
|
+
method='GET',
|
|
540
|
+
resource_path='/datapoint/{datapointId}',
|
|
541
|
+
path_params=_path_params,
|
|
542
|
+
query_params=_query_params,
|
|
543
|
+
header_params=_header_params,
|
|
544
|
+
body=_body_params,
|
|
545
|
+
post_params=_form_params,
|
|
546
|
+
files=_files,
|
|
547
|
+
auth_settings=_auth_settings,
|
|
548
|
+
collection_formats=_collection_formats,
|
|
549
|
+
_host=_host,
|
|
550
|
+
_request_auth=_request_auth
|
|
551
|
+
)
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
43
556
|
@validate_call
|
|
44
557
|
def datapoint_delete_delete(
|
|
45
558
|
self,
|
|
@@ -57,7 +570,7 @@ class DatapointApi:
|
|
|
57
570
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
58
571
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
59
572
|
) -> None:
|
|
60
|
-
"""Delete a datapoint.
|
|
573
|
+
"""(Deprecated) Delete a datapoint.
|
|
61
574
|
|
|
62
575
|
|
|
63
576
|
:param id: The id of the datapoint to delete.
|
|
@@ -83,6 +596,7 @@ class DatapointApi:
|
|
|
83
596
|
:type _host_index: int, optional
|
|
84
597
|
:return: Returns the result object.
|
|
85
598
|
""" # noqa: E501
|
|
599
|
+
warnings.warn("DELETE /datapoint/delete is deprecated.", DeprecationWarning)
|
|
86
600
|
|
|
87
601
|
_param = self._datapoint_delete_delete_serialize(
|
|
88
602
|
id=id,
|
|
@@ -123,7 +637,7 @@ class DatapointApi:
|
|
|
123
637
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
124
638
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
125
639
|
) -> ApiResponse[None]:
|
|
126
|
-
"""Delete a datapoint.
|
|
640
|
+
"""(Deprecated) Delete a datapoint.
|
|
127
641
|
|
|
128
642
|
|
|
129
643
|
:param id: The id of the datapoint to delete.
|
|
@@ -149,6 +663,7 @@ class DatapointApi:
|
|
|
149
663
|
:type _host_index: int, optional
|
|
150
664
|
:return: Returns the result object.
|
|
151
665
|
""" # noqa: E501
|
|
666
|
+
warnings.warn("DELETE /datapoint/delete is deprecated.", DeprecationWarning)
|
|
152
667
|
|
|
153
668
|
_param = self._datapoint_delete_delete_serialize(
|
|
154
669
|
id=id,
|
|
@@ -189,7 +704,7 @@ class DatapointApi:
|
|
|
189
704
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
190
705
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
191
706
|
) -> RESTResponseType:
|
|
192
|
-
"""Delete a datapoint.
|
|
707
|
+
"""(Deprecated) Delete a datapoint.
|
|
193
708
|
|
|
194
709
|
|
|
195
710
|
:param id: The id of the datapoint to delete.
|
|
@@ -215,6 +730,7 @@ class DatapointApi:
|
|
|
215
730
|
:type _host_index: int, optional
|
|
216
731
|
:return: Returns the result object.
|
|
217
732
|
""" # noqa: E501
|
|
733
|
+
warnings.warn("DELETE /datapoint/delete is deprecated.", DeprecationWarning)
|
|
218
734
|
|
|
219
735
|
_param = self._datapoint_delete_delete_serialize(
|
|
220
736
|
id=id,
|
|
@@ -278,7 +794,7 @@ class DatapointApi:
|
|
|
278
794
|
|
|
279
795
|
return self.api_client.param_serialize(
|
|
280
796
|
method='DELETE',
|
|
281
|
-
resource_path='/
|
|
797
|
+
resource_path='/datapoint/delete',
|
|
282
798
|
path_params=_path_params,
|
|
283
799
|
query_params=_query_params,
|
|
284
800
|
header_params=_header_params,
|
|
@@ -295,7 +811,7 @@ class DatapointApi:
|
|
|
295
811
|
|
|
296
812
|
|
|
297
813
|
@validate_call
|
|
298
|
-
def
|
|
814
|
+
def datapoint_getalldatapointsbydatasetid_get(
|
|
299
815
|
self,
|
|
300
816
|
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get the datapoints of.")] = None,
|
|
301
817
|
_request_timeout: Union[
|
|
@@ -311,7 +827,7 @@ class DatapointApi:
|
|
|
311
827
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
312
828
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
313
829
|
) -> GetDatapointsByDatasetIdResult:
|
|
314
|
-
"""Get all datapoints of a dataset.
|
|
830
|
+
"""(Deprecated) Get all datapoints of a dataset.
|
|
315
831
|
|
|
316
832
|
|
|
317
833
|
:param dataset_id: The id of the dataset to get the datapoints of.
|
|
@@ -337,8 +853,9 @@ class DatapointApi:
|
|
|
337
853
|
:type _host_index: int, optional
|
|
338
854
|
:return: Returns the result object.
|
|
339
855
|
""" # noqa: E501
|
|
856
|
+
warnings.warn("GET /datapoint/getalldatapointsbydatasetid is deprecated.", DeprecationWarning)
|
|
340
857
|
|
|
341
|
-
_param = self.
|
|
858
|
+
_param = self._datapoint_getalldatapointsbydatasetid_get_serialize(
|
|
342
859
|
dataset_id=dataset_id,
|
|
343
860
|
_request_auth=_request_auth,
|
|
344
861
|
_content_type=_content_type,
|
|
@@ -361,7 +878,7 @@ class DatapointApi:
|
|
|
361
878
|
|
|
362
879
|
|
|
363
880
|
@validate_call
|
|
364
|
-
def
|
|
881
|
+
def datapoint_getalldatapointsbydatasetid_get_with_http_info(
|
|
365
882
|
self,
|
|
366
883
|
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get the datapoints of.")] = None,
|
|
367
884
|
_request_timeout: Union[
|
|
@@ -377,7 +894,7 @@ class DatapointApi:
|
|
|
377
894
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
378
895
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
379
896
|
) -> ApiResponse[GetDatapointsByDatasetIdResult]:
|
|
380
|
-
"""Get all datapoints of a dataset.
|
|
897
|
+
"""(Deprecated) Get all datapoints of a dataset.
|
|
381
898
|
|
|
382
899
|
|
|
383
900
|
:param dataset_id: The id of the dataset to get the datapoints of.
|
|
@@ -403,8 +920,9 @@ class DatapointApi:
|
|
|
403
920
|
:type _host_index: int, optional
|
|
404
921
|
:return: Returns the result object.
|
|
405
922
|
""" # noqa: E501
|
|
923
|
+
warnings.warn("GET /datapoint/getalldatapointsbydatasetid is deprecated.", DeprecationWarning)
|
|
406
924
|
|
|
407
|
-
_param = self.
|
|
925
|
+
_param = self._datapoint_getalldatapointsbydatasetid_get_serialize(
|
|
408
926
|
dataset_id=dataset_id,
|
|
409
927
|
_request_auth=_request_auth,
|
|
410
928
|
_content_type=_content_type,
|
|
@@ -427,7 +945,7 @@ class DatapointApi:
|
|
|
427
945
|
|
|
428
946
|
|
|
429
947
|
@validate_call
|
|
430
|
-
def
|
|
948
|
+
def datapoint_getalldatapointsbydatasetid_get_without_preload_content(
|
|
431
949
|
self,
|
|
432
950
|
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get the datapoints of.")] = None,
|
|
433
951
|
_request_timeout: Union[
|
|
@@ -443,7 +961,7 @@ class DatapointApi:
|
|
|
443
961
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
444
962
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
445
963
|
) -> RESTResponseType:
|
|
446
|
-
"""Get all datapoints of a dataset.
|
|
964
|
+
"""(Deprecated) Get all datapoints of a dataset.
|
|
447
965
|
|
|
448
966
|
|
|
449
967
|
:param dataset_id: The id of the dataset to get the datapoints of.
|
|
@@ -469,8 +987,9 @@ class DatapointApi:
|
|
|
469
987
|
:type _host_index: int, optional
|
|
470
988
|
:return: Returns the result object.
|
|
471
989
|
""" # noqa: E501
|
|
990
|
+
warnings.warn("GET /datapoint/getalldatapointsbydatasetid is deprecated.", DeprecationWarning)
|
|
472
991
|
|
|
473
|
-
_param = self.
|
|
992
|
+
_param = self._datapoint_getalldatapointsbydatasetid_get_serialize(
|
|
474
993
|
dataset_id=dataset_id,
|
|
475
994
|
_request_auth=_request_auth,
|
|
476
995
|
_content_type=_content_type,
|
|
@@ -488,7 +1007,7 @@ class DatapointApi:
|
|
|
488
1007
|
return response_data.response
|
|
489
1008
|
|
|
490
1009
|
|
|
491
|
-
def
|
|
1010
|
+
def _datapoint_getalldatapointsbydatasetid_get_serialize(
|
|
492
1011
|
self,
|
|
493
1012
|
dataset_id,
|
|
494
1013
|
_request_auth,
|
|
@@ -541,7 +1060,7 @@ class DatapointApi:
|
|
|
541
1060
|
|
|
542
1061
|
return self.api_client.param_serialize(
|
|
543
1062
|
method='GET',
|
|
544
|
-
resource_path='/
|
|
1063
|
+
resource_path='/datapoint/getalldatapointsbydatasetid',
|
|
545
1064
|
path_params=_path_params,
|
|
546
1065
|
query_params=_query_params,
|
|
547
1066
|
header_params=_header_params,
|
|
@@ -558,7 +1077,7 @@ class DatapointApi:
|
|
|
558
1077
|
|
|
559
1078
|
|
|
560
1079
|
@validate_call
|
|
561
|
-
def
|
|
1080
|
+
def datapoint_getbyid_get(
|
|
562
1081
|
self,
|
|
563
1082
|
id: Annotated[Optional[StrictStr], Field(description="The id of the datapoint to get.")] = None,
|
|
564
1083
|
_request_timeout: Union[
|
|
@@ -574,7 +1093,7 @@ class DatapointApi:
|
|
|
574
1093
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
575
1094
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
576
1095
|
) -> GetDatapointByIdResult:
|
|
577
|
-
"""Get a datapoint by its id.
|
|
1096
|
+
"""(Deprecated) Get a datapoint by its id.
|
|
578
1097
|
|
|
579
1098
|
|
|
580
1099
|
:param id: The id of the datapoint to get.
|
|
@@ -600,8 +1119,9 @@ class DatapointApi:
|
|
|
600
1119
|
:type _host_index: int, optional
|
|
601
1120
|
:return: Returns the result object.
|
|
602
1121
|
""" # noqa: E501
|
|
1122
|
+
warnings.warn("GET /datapoint/getbyid is deprecated.", DeprecationWarning)
|
|
603
1123
|
|
|
604
|
-
_param = self.
|
|
1124
|
+
_param = self._datapoint_getbyid_get_serialize(
|
|
605
1125
|
id=id,
|
|
606
1126
|
_request_auth=_request_auth,
|
|
607
1127
|
_content_type=_content_type,
|
|
@@ -624,7 +1144,7 @@ class DatapointApi:
|
|
|
624
1144
|
|
|
625
1145
|
|
|
626
1146
|
@validate_call
|
|
627
|
-
def
|
|
1147
|
+
def datapoint_getbyid_get_with_http_info(
|
|
628
1148
|
self,
|
|
629
1149
|
id: Annotated[Optional[StrictStr], Field(description="The id of the datapoint to get.")] = None,
|
|
630
1150
|
_request_timeout: Union[
|
|
@@ -640,7 +1160,7 @@ class DatapointApi:
|
|
|
640
1160
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
641
1161
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
642
1162
|
) -> ApiResponse[GetDatapointByIdResult]:
|
|
643
|
-
"""Get a datapoint by its id.
|
|
1163
|
+
"""(Deprecated) Get a datapoint by its id.
|
|
644
1164
|
|
|
645
1165
|
|
|
646
1166
|
:param id: The id of the datapoint to get.
|
|
@@ -666,8 +1186,9 @@ class DatapointApi:
|
|
|
666
1186
|
:type _host_index: int, optional
|
|
667
1187
|
:return: Returns the result object.
|
|
668
1188
|
""" # noqa: E501
|
|
1189
|
+
warnings.warn("GET /datapoint/getbyid is deprecated.", DeprecationWarning)
|
|
669
1190
|
|
|
670
|
-
_param = self.
|
|
1191
|
+
_param = self._datapoint_getbyid_get_serialize(
|
|
671
1192
|
id=id,
|
|
672
1193
|
_request_auth=_request_auth,
|
|
673
1194
|
_content_type=_content_type,
|
|
@@ -690,7 +1211,7 @@ class DatapointApi:
|
|
|
690
1211
|
|
|
691
1212
|
|
|
692
1213
|
@validate_call
|
|
693
|
-
def
|
|
1214
|
+
def datapoint_getbyid_get_without_preload_content(
|
|
694
1215
|
self,
|
|
695
1216
|
id: Annotated[Optional[StrictStr], Field(description="The id of the datapoint to get.")] = None,
|
|
696
1217
|
_request_timeout: Union[
|
|
@@ -706,7 +1227,7 @@ class DatapointApi:
|
|
|
706
1227
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
707
1228
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
708
1229
|
) -> RESTResponseType:
|
|
709
|
-
"""Get a datapoint by its id.
|
|
1230
|
+
"""(Deprecated) Get a datapoint by its id.
|
|
710
1231
|
|
|
711
1232
|
|
|
712
1233
|
:param id: The id of the datapoint to get.
|
|
@@ -732,8 +1253,9 @@ class DatapointApi:
|
|
|
732
1253
|
:type _host_index: int, optional
|
|
733
1254
|
:return: Returns the result object.
|
|
734
1255
|
""" # noqa: E501
|
|
1256
|
+
warnings.warn("GET /datapoint/getbyid is deprecated.", DeprecationWarning)
|
|
735
1257
|
|
|
736
|
-
_param = self.
|
|
1258
|
+
_param = self._datapoint_getbyid_get_serialize(
|
|
737
1259
|
id=id,
|
|
738
1260
|
_request_auth=_request_auth,
|
|
739
1261
|
_content_type=_content_type,
|
|
@@ -751,7 +1273,7 @@ class DatapointApi:
|
|
|
751
1273
|
return response_data.response
|
|
752
1274
|
|
|
753
1275
|
|
|
754
|
-
def
|
|
1276
|
+
def _datapoint_getbyid_get_serialize(
|
|
755
1277
|
self,
|
|
756
1278
|
id,
|
|
757
1279
|
_request_auth,
|
|
@@ -804,7 +1326,7 @@ class DatapointApi:
|
|
|
804
1326
|
|
|
805
1327
|
return self.api_client.param_serialize(
|
|
806
1328
|
method='GET',
|
|
807
|
-
resource_path='/
|
|
1329
|
+
resource_path='/datapoint/getbyid',
|
|
808
1330
|
path_params=_path_params,
|
|
809
1331
|
query_params=_query_params,
|
|
810
1332
|
header_params=_header_params,
|