rapidata 2.27.3__py3-none-any.whl → 2.27.5__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (30) hide show
  1. rapidata/__init__.py +1 -1
  2. rapidata/api_client/__init__.py +10 -2
  3. rapidata/api_client/api/campaign_api.py +247 -0
  4. rapidata/api_client/api/datapoint_api.py +0 -267
  5. rapidata/api_client/api/dataset_api.py +24 -6
  6. rapidata/api_client/api/validation_set_api.py +431 -2
  7. rapidata/api_client/models/__init__.py +10 -2
  8. rapidata/api_client/models/ab_test_selection_a_inner.py +26 -12
  9. rapidata/api_client/models/boost_query_result.py +100 -0
  10. rapidata/api_client/models/boost_status.py +39 -0
  11. rapidata/api_client/models/compare_workflow_config_metadata_value.py +38 -10
  12. rapidata/api_client/models/datapoint_model_paged_result.py +105 -0
  13. rapidata/api_client/models/effort_capped_selection.py +115 -0
  14. rapidata/api_client/models/file_asset_model_metadata_value.py +39 -11
  15. rapidata/api_client/models/get_validation_rapids_result.py +3 -3
  16. rapidata/api_client/models/get_workflow_results_result.py +3 -3
  17. rapidata/api_client/models/rapid_model.py +3 -3
  18. rapidata/api_client/models/streams_metadata.py +102 -0
  19. rapidata/api_client/models/streams_metadata_model.py +100 -0
  20. rapidata/api_client/models/validation_set_validation_set_id_rapid_post_payload_parameter.py +252 -0
  21. rapidata/api_client/models/validation_set_validation_set_id_rapid_post_truth_parameter.py +280 -0
  22. rapidata/api_client/models/video_duration_metadata.py +98 -0
  23. rapidata/api_client/models/video_duration_metadata_model.py +96 -0
  24. rapidata/api_client_README.md +17 -7
  25. rapidata/rapidata_client/order/_rapidata_dataset.py +91 -41
  26. rapidata/rapidata_client/order/_rapidata_order_builder.py +2 -44
  27. {rapidata-2.27.3.dist-info → rapidata-2.27.5.dist-info}/METADATA +2 -2
  28. {rapidata-2.27.3.dist-info → rapidata-2.27.5.dist-info}/RECORD +30 -20
  29. {rapidata-2.27.3.dist-info → rapidata-2.27.5.dist-info}/LICENSE +0 -0
  30. {rapidata-2.27.3.dist-info → rapidata-2.27.5.dist-info}/WHEEL +0 -0
rapidata/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "2.27.3"
1
+ __version__ = "2.27.5"
2
2
 
3
3
  from .rapidata_client import (
4
4
  RapidataClient,
@@ -70,6 +70,8 @@ from rapidata.api_client.models.attach_category_rapid_blueprint import AttachCat
70
70
  from rapidata.api_client.models.attach_category_result import AttachCategoryResult
71
71
  from rapidata.api_client.models.attach_category_truth import AttachCategoryTruth
72
72
  from rapidata.api_client.models.base_error import BaseError
73
+ from rapidata.api_client.models.boost_query_result import BoostQueryResult
74
+ from rapidata.api_client.models.boost_status import BoostStatus
73
75
  from rapidata.api_client.models.bounding_box_payload import BoundingBoxPayload
74
76
  from rapidata.api_client.models.bounding_box_rapid_blueprint import BoundingBoxRapidBlueprint
75
77
  from rapidata.api_client.models.bounding_box_result import BoundingBoxResult
@@ -142,6 +144,7 @@ from rapidata.api_client.models.datapoint import Datapoint
142
144
  from rapidata.api_client.models.datapoint_asset import DatapointAsset
143
145
  from rapidata.api_client.models.datapoint_metadata_model import DatapointMetadataModel
144
146
  from rapidata.api_client.models.datapoint_model import DatapointModel
147
+ from rapidata.api_client.models.datapoint_model_paged_result import DatapointModelPagedResult
145
148
  from rapidata.api_client.models.datapoint_state import DatapointState
146
149
  from rapidata.api_client.models.dataset_artifact_model import DatasetArtifactModel
147
150
  from rapidata.api_client.models.dataset_dataset_id_datapoints_post_request_metadata_inner import DatasetDatasetIdDatapointsPostRequestMetadataInner
@@ -150,6 +153,7 @@ from rapidata.api_client.models.demographic import Demographic
150
153
  from rapidata.api_client.models.demographic_metadata_model import DemographicMetadataModel
151
154
  from rapidata.api_client.models.demographic_selection import DemographicSelection
152
155
  from rapidata.api_client.models.early_stopping_referee_model import EarlyStoppingRefereeModel
156
+ from rapidata.api_client.models.effort_capped_selection import EffortCappedSelection
153
157
  from rapidata.api_client.models.elo_config import EloConfig
154
158
  from rapidata.api_client.models.elo_config_model import EloConfigModel
155
159
  from rapidata.api_client.models.empty_validation_truth import EmptyValidationTruth
@@ -176,7 +180,6 @@ from rapidata.api_client.models.get_compare_workflow_results_model import GetCom
176
180
  from rapidata.api_client.models.get_compare_workflow_results_result import GetCompareWorkflowResultsResult
177
181
  from rapidata.api_client.models.get_compare_workflow_results_result_paged_result import GetCompareWorkflowResultsResultPagedResult
178
182
  from rapidata.api_client.models.get_datapoint_by_id_result import GetDatapointByIdResult
179
- from rapidata.api_client.models.get_datapoints_by_dataset_id_result import GetDatapointsByDatasetIdResult
180
183
  from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
181
184
  from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
182
185
  from rapidata.api_client.models.get_failed_datapoints_result import GetFailedDatapointsResult
@@ -190,7 +193,6 @@ from rapidata.api_client.models.get_simple_workflow_results_model import GetSimp
190
193
  from rapidata.api_client.models.get_validation_rapids_result import GetValidationRapidsResult
191
194
  from rapidata.api_client.models.get_validation_rapids_result_asset import GetValidationRapidsResultAsset
192
195
  from rapidata.api_client.models.get_validation_rapids_result_paged_result import GetValidationRapidsResultPagedResult
193
- from rapidata.api_client.models.get_validation_rapids_result_payload import GetValidationRapidsResultPayload
194
196
  from rapidata.api_client.models.get_validation_rapids_result_truth import GetValidationRapidsResultTruth
195
197
  from rapidata.api_client.models.get_validation_set_by_id_result import GetValidationSetByIdResult
196
198
  from rapidata.api_client.models.get_workflow_by_id_result import GetWorkflowByIdResult
@@ -309,6 +311,8 @@ from rapidata.api_client.models.source_url_metadata import SourceUrlMetadata
309
311
  from rapidata.api_client.models.source_url_metadata_model import SourceUrlMetadataModel
310
312
  from rapidata.api_client.models.static_selection import StaticSelection
311
313
  from rapidata.api_client.models.sticky_state import StickyState
314
+ from rapidata.api_client.models.streams_metadata import StreamsMetadata
315
+ from rapidata.api_client.models.streams_metadata_model import StreamsMetadataModel
312
316
  from rapidata.api_client.models.submit_coco_model import SubmitCocoModel
313
317
  from rapidata.api_client.models.submit_coco_result import SubmitCocoResult
314
318
  from rapidata.api_client.models.text_asset import TextAsset
@@ -345,6 +349,10 @@ from rapidata.api_client.models.validation_selection import ValidationSelection
345
349
  from rapidata.api_client.models.validation_set_model import ValidationSetModel
346
350
  from rapidata.api_client.models.validation_set_model_paged_result import ValidationSetModelPagedResult
347
351
  from rapidata.api_client.models.validation_set_overview_model import ValidationSetOverviewModel
352
+ from rapidata.api_client.models.validation_set_validation_set_id_rapid_post_payload_parameter import ValidationSetValidationSetIdRapidPostPayloadParameter
353
+ from rapidata.api_client.models.validation_set_validation_set_id_rapid_post_truth_parameter import ValidationSetValidationSetIdRapidPostTruthParameter
354
+ from rapidata.api_client.models.video_duration_metadata import VideoDurationMetadata
355
+ from rapidata.api_client.models.video_duration_metadata_model import VideoDurationMetadataModel
348
356
  from rapidata.api_client.models.workflow_aggregation_step_model import WorkflowAggregationStepModel
349
357
  from rapidata.api_client.models.workflow_artifact_model import WorkflowArtifactModel
350
358
  from rapidata.api_client.models.workflow_config_artifact_model import WorkflowConfigArtifactModel
@@ -19,6 +19,7 @@ from typing_extensions import Annotated
19
19
  from pydantic import Field, StrictStr
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
+ from rapidata.api_client.models.boost_query_result import BoostQueryResult
22
23
  from rapidata.api_client.models.campaign_query_result_paged_result import CampaignQueryResultPagedResult
23
24
  from rapidata.api_client.models.query_model import QueryModel
24
25
 
@@ -40,6 +41,252 @@ class CampaignApi:
40
41
  self.api_client = api_client
41
42
 
42
43
 
44
+ @validate_call
45
+ def campaign_boost_status_get(
46
+ self,
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
+ ) -> BoostQueryResult:
60
+ """Gets the status of the boost.
61
+
62
+
63
+ :param _request_timeout: timeout setting for this request. If one
64
+ number provided, it will be total request
65
+ timeout. It can also be a pair (tuple) of
66
+ (connection, read) timeouts.
67
+ :type _request_timeout: int, tuple(int, int), optional
68
+ :param _request_auth: set to override the auth_settings for an a single
69
+ request; this effectively ignores the
70
+ authentication in the spec for a single request.
71
+ :type _request_auth: dict, optional
72
+ :param _content_type: force content-type for the request.
73
+ :type _content_type: str, Optional
74
+ :param _headers: set to override the headers for a single
75
+ request; this effectively ignores the headers
76
+ in the spec for a single request.
77
+ :type _headers: dict, optional
78
+ :param _host_index: set to override the host_index for a single
79
+ request; this effectively ignores the host_index
80
+ in the spec for a single request.
81
+ :type _host_index: int, optional
82
+ :return: Returns the result object.
83
+ """ # noqa: E501
84
+
85
+ _param = self._campaign_boost_status_get_serialize(
86
+ _request_auth=_request_auth,
87
+ _content_type=_content_type,
88
+ _headers=_headers,
89
+ _host_index=_host_index
90
+ )
91
+
92
+ _response_types_map: Dict[str, Optional[str]] = {
93
+ '200': "BoostQueryResult",
94
+ }
95
+ response_data = self.api_client.call_api(
96
+ *_param,
97
+ _request_timeout=_request_timeout
98
+ )
99
+ response_data.read()
100
+ return self.api_client.response_deserialize(
101
+ response_data=response_data,
102
+ response_types_map=_response_types_map,
103
+ ).data
104
+
105
+
106
+ @validate_call
107
+ def campaign_boost_status_get_with_http_info(
108
+ self,
109
+ _request_timeout: Union[
110
+ None,
111
+ Annotated[StrictFloat, Field(gt=0)],
112
+ Tuple[
113
+ Annotated[StrictFloat, Field(gt=0)],
114
+ Annotated[StrictFloat, Field(gt=0)]
115
+ ]
116
+ ] = None,
117
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
118
+ _content_type: Optional[StrictStr] = None,
119
+ _headers: Optional[Dict[StrictStr, Any]] = None,
120
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
121
+ ) -> ApiResponse[BoostQueryResult]:
122
+ """Gets the status of the boost.
123
+
124
+
125
+ :param _request_timeout: timeout setting for this request. If one
126
+ number provided, it will be total request
127
+ timeout. It can also be a pair (tuple) of
128
+ (connection, read) timeouts.
129
+ :type _request_timeout: int, tuple(int, int), optional
130
+ :param _request_auth: set to override the auth_settings for an a single
131
+ request; this effectively ignores the
132
+ authentication in the spec for a single request.
133
+ :type _request_auth: dict, optional
134
+ :param _content_type: force content-type for the request.
135
+ :type _content_type: str, Optional
136
+ :param _headers: set to override the headers for a single
137
+ request; this effectively ignores the headers
138
+ in the spec for a single request.
139
+ :type _headers: dict, optional
140
+ :param _host_index: set to override the host_index for a single
141
+ request; this effectively ignores the host_index
142
+ in the spec for a single request.
143
+ :type _host_index: int, optional
144
+ :return: Returns the result object.
145
+ """ # noqa: E501
146
+
147
+ _param = self._campaign_boost_status_get_serialize(
148
+ _request_auth=_request_auth,
149
+ _content_type=_content_type,
150
+ _headers=_headers,
151
+ _host_index=_host_index
152
+ )
153
+
154
+ _response_types_map: Dict[str, Optional[str]] = {
155
+ '200': "BoostQueryResult",
156
+ }
157
+ response_data = self.api_client.call_api(
158
+ *_param,
159
+ _request_timeout=_request_timeout
160
+ )
161
+ response_data.read()
162
+ return self.api_client.response_deserialize(
163
+ response_data=response_data,
164
+ response_types_map=_response_types_map,
165
+ )
166
+
167
+
168
+ @validate_call
169
+ def campaign_boost_status_get_without_preload_content(
170
+ self,
171
+ _request_timeout: Union[
172
+ None,
173
+ Annotated[StrictFloat, Field(gt=0)],
174
+ Tuple[
175
+ Annotated[StrictFloat, Field(gt=0)],
176
+ Annotated[StrictFloat, Field(gt=0)]
177
+ ]
178
+ ] = None,
179
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
180
+ _content_type: Optional[StrictStr] = None,
181
+ _headers: Optional[Dict[StrictStr, Any]] = None,
182
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
183
+ ) -> RESTResponseType:
184
+ """Gets the status of the boost.
185
+
186
+
187
+ :param _request_timeout: timeout setting for this request. If one
188
+ number provided, it will be total request
189
+ timeout. It can also be a pair (tuple) of
190
+ (connection, read) timeouts.
191
+ :type _request_timeout: int, tuple(int, int), optional
192
+ :param _request_auth: set to override the auth_settings for an a single
193
+ request; this effectively ignores the
194
+ authentication in the spec for a single request.
195
+ :type _request_auth: dict, optional
196
+ :param _content_type: force content-type for the request.
197
+ :type _content_type: str, Optional
198
+ :param _headers: set to override the headers for a single
199
+ request; this effectively ignores the headers
200
+ in the spec for a single request.
201
+ :type _headers: dict, optional
202
+ :param _host_index: set to override the host_index for a single
203
+ request; this effectively ignores the host_index
204
+ in the spec for a single request.
205
+ :type _host_index: int, optional
206
+ :return: Returns the result object.
207
+ """ # noqa: E501
208
+
209
+ _param = self._campaign_boost_status_get_serialize(
210
+ _request_auth=_request_auth,
211
+ _content_type=_content_type,
212
+ _headers=_headers,
213
+ _host_index=_host_index
214
+ )
215
+
216
+ _response_types_map: Dict[str, Optional[str]] = {
217
+ '200': "BoostQueryResult",
218
+ }
219
+ response_data = self.api_client.call_api(
220
+ *_param,
221
+ _request_timeout=_request_timeout
222
+ )
223
+ return response_data.response
224
+
225
+
226
+ def _campaign_boost_status_get_serialize(
227
+ self,
228
+ _request_auth,
229
+ _content_type,
230
+ _headers,
231
+ _host_index,
232
+ ) -> RequestSerialized:
233
+
234
+ _host = None
235
+
236
+ _collection_formats: Dict[str, str] = {
237
+ }
238
+
239
+ _path_params: Dict[str, str] = {}
240
+ _query_params: List[Tuple[str, str]] = []
241
+ _header_params: Dict[str, Optional[str]] = _headers or {}
242
+ _form_params: List[Tuple[str, str]] = []
243
+ _files: Dict[
244
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
245
+ ] = {}
246
+ _body_params: Optional[bytes] = None
247
+
248
+ # process the path parameters
249
+ # process the query parameters
250
+ # process the header parameters
251
+ # process the form parameters
252
+ # process the body parameter
253
+
254
+
255
+ # set the HTTP header `Accept`
256
+ if 'Accept' not in _header_params:
257
+ _header_params['Accept'] = self.api_client.select_header_accept(
258
+ [
259
+ 'text/plain',
260
+ 'application/json',
261
+ 'text/json'
262
+ ]
263
+ )
264
+
265
+
266
+ # authentication setting
267
+ _auth_settings: List[str] = [
268
+ 'bearer',
269
+ 'oauth2'
270
+ ]
271
+
272
+ return self.api_client.param_serialize(
273
+ method='GET',
274
+ resource_path='/campaign/boost/status',
275
+ path_params=_path_params,
276
+ query_params=_query_params,
277
+ header_params=_header_params,
278
+ body=_body_params,
279
+ post_params=_form_params,
280
+ files=_files,
281
+ auth_settings=_auth_settings,
282
+ collection_formats=_collection_formats,
283
+ _host=_host,
284
+ _request_auth=_request_auth
285
+ )
286
+
287
+
288
+
289
+
43
290
  @validate_call
44
291
  def campaign_campaign_id_pause_post(
45
292
  self,
@@ -20,7 +20,6 @@ from pydantic import Field, StrictStr
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
22
  from rapidata.api_client.models.get_datapoint_by_id_result import GetDatapointByIdResult
23
- from rapidata.api_client.models.get_datapoints_by_dataset_id_result import GetDatapointsByDatasetIdResult
24
23
 
25
24
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
26
25
  from rapidata.api_client.api_response import ApiResponse
@@ -810,272 +809,6 @@ class DatapointApi:
810
809
 
811
810
 
812
811
 
813
- @validate_call
814
- def datapoint_getalldatapointsbydatasetid_get(
815
- self,
816
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get the datapoints of.")] = None,
817
- _request_timeout: Union[
818
- None,
819
- Annotated[StrictFloat, Field(gt=0)],
820
- Tuple[
821
- Annotated[StrictFloat, Field(gt=0)],
822
- Annotated[StrictFloat, Field(gt=0)]
823
- ]
824
- ] = None,
825
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
826
- _content_type: Optional[StrictStr] = None,
827
- _headers: Optional[Dict[StrictStr, Any]] = None,
828
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
829
- ) -> GetDatapointsByDatasetIdResult:
830
- """(Deprecated) Get all datapoints of a dataset.
831
-
832
-
833
- :param dataset_id: The id of the dataset to get the datapoints of.
834
- :type dataset_id: str
835
- :param _request_timeout: timeout setting for this request. If one
836
- number provided, it will be total request
837
- timeout. It can also be a pair (tuple) of
838
- (connection, read) timeouts.
839
- :type _request_timeout: int, tuple(int, int), optional
840
- :param _request_auth: set to override the auth_settings for an a single
841
- request; this effectively ignores the
842
- authentication in the spec for a single request.
843
- :type _request_auth: dict, optional
844
- :param _content_type: force content-type for the request.
845
- :type _content_type: str, Optional
846
- :param _headers: set to override the headers for a single
847
- request; this effectively ignores the headers
848
- in the spec for a single request.
849
- :type _headers: dict, optional
850
- :param _host_index: set to override the host_index for a single
851
- request; this effectively ignores the host_index
852
- in the spec for a single request.
853
- :type _host_index: int, optional
854
- :return: Returns the result object.
855
- """ # noqa: E501
856
- warnings.warn("GET /datapoint/getalldatapointsbydatasetid is deprecated.", DeprecationWarning)
857
-
858
- _param = self._datapoint_getalldatapointsbydatasetid_get_serialize(
859
- dataset_id=dataset_id,
860
- _request_auth=_request_auth,
861
- _content_type=_content_type,
862
- _headers=_headers,
863
- _host_index=_host_index
864
- )
865
-
866
- _response_types_map: Dict[str, Optional[str]] = {
867
- '200': "GetDatapointsByDatasetIdResult",
868
- }
869
- response_data = self.api_client.call_api(
870
- *_param,
871
- _request_timeout=_request_timeout
872
- )
873
- response_data.read()
874
- return self.api_client.response_deserialize(
875
- response_data=response_data,
876
- response_types_map=_response_types_map,
877
- ).data
878
-
879
-
880
- @validate_call
881
- def datapoint_getalldatapointsbydatasetid_get_with_http_info(
882
- self,
883
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get the datapoints of.")] = None,
884
- _request_timeout: Union[
885
- None,
886
- Annotated[StrictFloat, Field(gt=0)],
887
- Tuple[
888
- Annotated[StrictFloat, Field(gt=0)],
889
- Annotated[StrictFloat, Field(gt=0)]
890
- ]
891
- ] = None,
892
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
893
- _content_type: Optional[StrictStr] = None,
894
- _headers: Optional[Dict[StrictStr, Any]] = None,
895
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
896
- ) -> ApiResponse[GetDatapointsByDatasetIdResult]:
897
- """(Deprecated) Get all datapoints of a dataset.
898
-
899
-
900
- :param dataset_id: The id of the dataset to get the datapoints of.
901
- :type dataset_id: str
902
- :param _request_timeout: timeout setting for this request. If one
903
- number provided, it will be total request
904
- timeout. It can also be a pair (tuple) of
905
- (connection, read) timeouts.
906
- :type _request_timeout: int, tuple(int, int), optional
907
- :param _request_auth: set to override the auth_settings for an a single
908
- request; this effectively ignores the
909
- authentication in the spec for a single request.
910
- :type _request_auth: dict, optional
911
- :param _content_type: force content-type for the request.
912
- :type _content_type: str, Optional
913
- :param _headers: set to override the headers for a single
914
- request; this effectively ignores the headers
915
- in the spec for a single request.
916
- :type _headers: dict, optional
917
- :param _host_index: set to override the host_index for a single
918
- request; this effectively ignores the host_index
919
- in the spec for a single request.
920
- :type _host_index: int, optional
921
- :return: Returns the result object.
922
- """ # noqa: E501
923
- warnings.warn("GET /datapoint/getalldatapointsbydatasetid is deprecated.", DeprecationWarning)
924
-
925
- _param = self._datapoint_getalldatapointsbydatasetid_get_serialize(
926
- dataset_id=dataset_id,
927
- _request_auth=_request_auth,
928
- _content_type=_content_type,
929
- _headers=_headers,
930
- _host_index=_host_index
931
- )
932
-
933
- _response_types_map: Dict[str, Optional[str]] = {
934
- '200': "GetDatapointsByDatasetIdResult",
935
- }
936
- response_data = self.api_client.call_api(
937
- *_param,
938
- _request_timeout=_request_timeout
939
- )
940
- response_data.read()
941
- return self.api_client.response_deserialize(
942
- response_data=response_data,
943
- response_types_map=_response_types_map,
944
- )
945
-
946
-
947
- @validate_call
948
- def datapoint_getalldatapointsbydatasetid_get_without_preload_content(
949
- self,
950
- dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get the datapoints of.")] = None,
951
- _request_timeout: Union[
952
- None,
953
- Annotated[StrictFloat, Field(gt=0)],
954
- Tuple[
955
- Annotated[StrictFloat, Field(gt=0)],
956
- Annotated[StrictFloat, Field(gt=0)]
957
- ]
958
- ] = None,
959
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
960
- _content_type: Optional[StrictStr] = None,
961
- _headers: Optional[Dict[StrictStr, Any]] = None,
962
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
963
- ) -> RESTResponseType:
964
- """(Deprecated) Get all datapoints of a dataset.
965
-
966
-
967
- :param dataset_id: The id of the dataset to get the datapoints of.
968
- :type dataset_id: str
969
- :param _request_timeout: timeout setting for this request. If one
970
- number provided, it will be total request
971
- timeout. It can also be a pair (tuple) of
972
- (connection, read) timeouts.
973
- :type _request_timeout: int, tuple(int, int), optional
974
- :param _request_auth: set to override the auth_settings for an a single
975
- request; this effectively ignores the
976
- authentication in the spec for a single request.
977
- :type _request_auth: dict, optional
978
- :param _content_type: force content-type for the request.
979
- :type _content_type: str, Optional
980
- :param _headers: set to override the headers for a single
981
- request; this effectively ignores the headers
982
- in the spec for a single request.
983
- :type _headers: dict, optional
984
- :param _host_index: set to override the host_index for a single
985
- request; this effectively ignores the host_index
986
- in the spec for a single request.
987
- :type _host_index: int, optional
988
- :return: Returns the result object.
989
- """ # noqa: E501
990
- warnings.warn("GET /datapoint/getalldatapointsbydatasetid is deprecated.", DeprecationWarning)
991
-
992
- _param = self._datapoint_getalldatapointsbydatasetid_get_serialize(
993
- dataset_id=dataset_id,
994
- _request_auth=_request_auth,
995
- _content_type=_content_type,
996
- _headers=_headers,
997
- _host_index=_host_index
998
- )
999
-
1000
- _response_types_map: Dict[str, Optional[str]] = {
1001
- '200': "GetDatapointsByDatasetIdResult",
1002
- }
1003
- response_data = self.api_client.call_api(
1004
- *_param,
1005
- _request_timeout=_request_timeout
1006
- )
1007
- return response_data.response
1008
-
1009
-
1010
- def _datapoint_getalldatapointsbydatasetid_get_serialize(
1011
- self,
1012
- dataset_id,
1013
- _request_auth,
1014
- _content_type,
1015
- _headers,
1016
- _host_index,
1017
- ) -> RequestSerialized:
1018
-
1019
- _host = None
1020
-
1021
- _collection_formats: Dict[str, str] = {
1022
- }
1023
-
1024
- _path_params: Dict[str, str] = {}
1025
- _query_params: List[Tuple[str, str]] = []
1026
- _header_params: Dict[str, Optional[str]] = _headers or {}
1027
- _form_params: List[Tuple[str, str]] = []
1028
- _files: Dict[
1029
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1030
- ] = {}
1031
- _body_params: Optional[bytes] = None
1032
-
1033
- # process the path parameters
1034
- # process the query parameters
1035
- if dataset_id is not None:
1036
-
1037
- _query_params.append(('datasetId', dataset_id))
1038
-
1039
- # process the header parameters
1040
- # process the form parameters
1041
- # process the body parameter
1042
-
1043
-
1044
- # set the HTTP header `Accept`
1045
- if 'Accept' not in _header_params:
1046
- _header_params['Accept'] = self.api_client.select_header_accept(
1047
- [
1048
- 'text/plain',
1049
- 'application/json',
1050
- 'text/json'
1051
- ]
1052
- )
1053
-
1054
-
1055
- # authentication setting
1056
- _auth_settings: List[str] = [
1057
- 'bearer',
1058
- 'oauth2'
1059
- ]
1060
-
1061
- return self.api_client.param_serialize(
1062
- method='GET',
1063
- resource_path='/datapoint/getalldatapointsbydatasetid',
1064
- path_params=_path_params,
1065
- query_params=_query_params,
1066
- header_params=_header_params,
1067
- body=_body_params,
1068
- post_params=_form_params,
1069
- files=_files,
1070
- auth_settings=_auth_settings,
1071
- collection_formats=_collection_formats,
1072
- _host=_host,
1073
- _request_auth=_request_auth
1074
- )
1075
-
1076
-
1077
-
1078
-
1079
812
  @validate_call
1080
813
  def datapoint_getbyid_get(
1081
814
  self,