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
@@ -0,0 +1,280 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Rapidata.Dataset
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import json
17
+ import pprint
18
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
19
+ from typing import Any, List, Optional
20
+ from rapidata.api_client.models.attach_category_truth import AttachCategoryTruth
21
+ from rapidata.api_client.models.bounding_box_truth import BoundingBoxTruth
22
+ from rapidata.api_client.models.compare_truth import CompareTruth
23
+ from rapidata.api_client.models.empty_validation_truth import EmptyValidationTruth
24
+ from rapidata.api_client.models.line_truth import LineTruth
25
+ from rapidata.api_client.models.locate_box_truth import LocateBoxTruth
26
+ from rapidata.api_client.models.multi_compare_truth import MultiCompareTruth
27
+ from rapidata.api_client.models.named_entity_truth import NamedEntityTruth
28
+ from rapidata.api_client.models.polygon_truth import PolygonTruth
29
+ from rapidata.api_client.models.scrub_truth import ScrubTruth
30
+ from rapidata.api_client.models.skip_truth import SkipTruth
31
+ from rapidata.api_client.models.transcription_truth import TranscriptionTruth
32
+ from pydantic import StrictStr, Field
33
+ from typing import Union, List, Set, Optional, Dict
34
+ from typing_extensions import Literal, Self
35
+
36
+ VALIDATIONSETVALIDATIONSETIDRAPIDPOSTTRUTHPARAMETER_ONE_OF_SCHEMAS = ["AttachCategoryTruth", "BoundingBoxTruth", "CompareTruth", "EmptyValidationTruth", "LineTruth", "LocateBoxTruth", "MultiCompareTruth", "NamedEntityTruth", "PolygonTruth", "ScrubTruth", "SkipTruth", "TranscriptionTruth"]
37
+
38
+ class ValidationSetValidationSetIdRapidPostTruthParameter(BaseModel):
39
+ """
40
+ ValidationSetValidationSetIdRapidPostTruthParameter
41
+ """
42
+ # data type: TranscriptionTruth
43
+ oneof_schema_1_validator: Optional[TranscriptionTruth] = None
44
+ # data type: ScrubTruth
45
+ oneof_schema_2_validator: Optional[ScrubTruth] = None
46
+ # data type: PolygonTruth
47
+ oneof_schema_3_validator: Optional[PolygonTruth] = None
48
+ # data type: NamedEntityTruth
49
+ oneof_schema_4_validator: Optional[NamedEntityTruth] = None
50
+ # data type: LocateBoxTruth
51
+ oneof_schema_5_validator: Optional[LocateBoxTruth] = None
52
+ # data type: LineTruth
53
+ oneof_schema_6_validator: Optional[LineTruth] = None
54
+ # data type: EmptyValidationTruth
55
+ oneof_schema_7_validator: Optional[EmptyValidationTruth] = None
56
+ # data type: CompareTruth
57
+ oneof_schema_8_validator: Optional[CompareTruth] = None
58
+ # data type: MultiCompareTruth
59
+ oneof_schema_9_validator: Optional[MultiCompareTruth] = None
60
+ # data type: SkipTruth
61
+ oneof_schema_10_validator: Optional[SkipTruth] = None
62
+ # data type: AttachCategoryTruth
63
+ oneof_schema_11_validator: Optional[AttachCategoryTruth] = None
64
+ # data type: BoundingBoxTruth
65
+ oneof_schema_12_validator: Optional[BoundingBoxTruth] = None
66
+ actual_instance: Optional[Union[AttachCategoryTruth, BoundingBoxTruth, CompareTruth, EmptyValidationTruth, LineTruth, LocateBoxTruth, MultiCompareTruth, NamedEntityTruth, PolygonTruth, ScrubTruth, SkipTruth, TranscriptionTruth]] = None
67
+ one_of_schemas: Set[str] = { "AttachCategoryTruth", "BoundingBoxTruth", "CompareTruth", "EmptyValidationTruth", "LineTruth", "LocateBoxTruth", "MultiCompareTruth", "NamedEntityTruth", "PolygonTruth", "ScrubTruth", "SkipTruth", "TranscriptionTruth" }
68
+
69
+ model_config = ConfigDict(
70
+ validate_assignment=True,
71
+ protected_namespaces=(),
72
+ )
73
+
74
+
75
+ discriminator_value_class_map: Dict[str, str] = {
76
+ }
77
+
78
+ def __init__(self, *args, **kwargs) -> None:
79
+ if args:
80
+ if len(args) > 1:
81
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
82
+ if kwargs:
83
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
84
+ super().__init__(actual_instance=args[0])
85
+ else:
86
+ super().__init__(**kwargs)
87
+
88
+ @field_validator('actual_instance')
89
+ def actual_instance_must_validate_oneof(cls, v):
90
+ instance = ValidationSetValidationSetIdRapidPostTruthParameter.model_construct()
91
+ error_messages = []
92
+ match = 0
93
+ # validate data type: TranscriptionTruth
94
+ if not isinstance(v, TranscriptionTruth):
95
+ error_messages.append(f"Error! Input type `{type(v)}` is not `TranscriptionTruth`")
96
+ else:
97
+ match += 1
98
+ # validate data type: ScrubTruth
99
+ if not isinstance(v, ScrubTruth):
100
+ error_messages.append(f"Error! Input type `{type(v)}` is not `ScrubTruth`")
101
+ else:
102
+ match += 1
103
+ # validate data type: PolygonTruth
104
+ if not isinstance(v, PolygonTruth):
105
+ error_messages.append(f"Error! Input type `{type(v)}` is not `PolygonTruth`")
106
+ else:
107
+ match += 1
108
+ # validate data type: NamedEntityTruth
109
+ if not isinstance(v, NamedEntityTruth):
110
+ error_messages.append(f"Error! Input type `{type(v)}` is not `NamedEntityTruth`")
111
+ else:
112
+ match += 1
113
+ # validate data type: LocateBoxTruth
114
+ if not isinstance(v, LocateBoxTruth):
115
+ error_messages.append(f"Error! Input type `{type(v)}` is not `LocateBoxTruth`")
116
+ else:
117
+ match += 1
118
+ # validate data type: LineTruth
119
+ if not isinstance(v, LineTruth):
120
+ error_messages.append(f"Error! Input type `{type(v)}` is not `LineTruth`")
121
+ else:
122
+ match += 1
123
+ # validate data type: EmptyValidationTruth
124
+ if not isinstance(v, EmptyValidationTruth):
125
+ error_messages.append(f"Error! Input type `{type(v)}` is not `EmptyValidationTruth`")
126
+ else:
127
+ match += 1
128
+ # validate data type: CompareTruth
129
+ if not isinstance(v, CompareTruth):
130
+ error_messages.append(f"Error! Input type `{type(v)}` is not `CompareTruth`")
131
+ else:
132
+ match += 1
133
+ # validate data type: MultiCompareTruth
134
+ if not isinstance(v, MultiCompareTruth):
135
+ error_messages.append(f"Error! Input type `{type(v)}` is not `MultiCompareTruth`")
136
+ else:
137
+ match += 1
138
+ # validate data type: SkipTruth
139
+ if not isinstance(v, SkipTruth):
140
+ error_messages.append(f"Error! Input type `{type(v)}` is not `SkipTruth`")
141
+ else:
142
+ match += 1
143
+ # validate data type: AttachCategoryTruth
144
+ if not isinstance(v, AttachCategoryTruth):
145
+ error_messages.append(f"Error! Input type `{type(v)}` is not `AttachCategoryTruth`")
146
+ else:
147
+ match += 1
148
+ # validate data type: BoundingBoxTruth
149
+ if not isinstance(v, BoundingBoxTruth):
150
+ error_messages.append(f"Error! Input type `{type(v)}` is not `BoundingBoxTruth`")
151
+ else:
152
+ match += 1
153
+ if match > 1:
154
+ # more than 1 match
155
+ raise ValueError("Multiple matches found when setting `actual_instance` in ValidationSetValidationSetIdRapidPostTruthParameter with oneOf schemas: AttachCategoryTruth, BoundingBoxTruth, CompareTruth, EmptyValidationTruth, LineTruth, LocateBoxTruth, MultiCompareTruth, NamedEntityTruth, PolygonTruth, ScrubTruth, SkipTruth, TranscriptionTruth. Details: " + ", ".join(error_messages))
156
+ elif match == 0:
157
+ # no match
158
+ raise ValueError("No match found when setting `actual_instance` in ValidationSetValidationSetIdRapidPostTruthParameter with oneOf schemas: AttachCategoryTruth, BoundingBoxTruth, CompareTruth, EmptyValidationTruth, LineTruth, LocateBoxTruth, MultiCompareTruth, NamedEntityTruth, PolygonTruth, ScrubTruth, SkipTruth, TranscriptionTruth. Details: " + ", ".join(error_messages))
159
+ else:
160
+ return v
161
+
162
+ @classmethod
163
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
164
+ return cls.from_json(json.dumps(obj))
165
+
166
+ @classmethod
167
+ def from_json(cls, json_str: str) -> Self:
168
+ """Returns the object represented by the json string"""
169
+ instance = cls.model_construct()
170
+ error_messages = []
171
+ match = 0
172
+
173
+ # deserialize data into TranscriptionTruth
174
+ try:
175
+ instance.actual_instance = TranscriptionTruth.from_json(json_str)
176
+ match += 1
177
+ except (ValidationError, ValueError) as e:
178
+ error_messages.append(str(e))
179
+ # deserialize data into ScrubTruth
180
+ try:
181
+ instance.actual_instance = ScrubTruth.from_json(json_str)
182
+ match += 1
183
+ except (ValidationError, ValueError) as e:
184
+ error_messages.append(str(e))
185
+ # deserialize data into PolygonTruth
186
+ try:
187
+ instance.actual_instance = PolygonTruth.from_json(json_str)
188
+ match += 1
189
+ except (ValidationError, ValueError) as e:
190
+ error_messages.append(str(e))
191
+ # deserialize data into NamedEntityTruth
192
+ try:
193
+ instance.actual_instance = NamedEntityTruth.from_json(json_str)
194
+ match += 1
195
+ except (ValidationError, ValueError) as e:
196
+ error_messages.append(str(e))
197
+ # deserialize data into LocateBoxTruth
198
+ try:
199
+ instance.actual_instance = LocateBoxTruth.from_json(json_str)
200
+ match += 1
201
+ except (ValidationError, ValueError) as e:
202
+ error_messages.append(str(e))
203
+ # deserialize data into LineTruth
204
+ try:
205
+ instance.actual_instance = LineTruth.from_json(json_str)
206
+ match += 1
207
+ except (ValidationError, ValueError) as e:
208
+ error_messages.append(str(e))
209
+ # deserialize data into EmptyValidationTruth
210
+ try:
211
+ instance.actual_instance = EmptyValidationTruth.from_json(json_str)
212
+ match += 1
213
+ except (ValidationError, ValueError) as e:
214
+ error_messages.append(str(e))
215
+ # deserialize data into CompareTruth
216
+ try:
217
+ instance.actual_instance = CompareTruth.from_json(json_str)
218
+ match += 1
219
+ except (ValidationError, ValueError) as e:
220
+ error_messages.append(str(e))
221
+ # deserialize data into MultiCompareTruth
222
+ try:
223
+ instance.actual_instance = MultiCompareTruth.from_json(json_str)
224
+ match += 1
225
+ except (ValidationError, ValueError) as e:
226
+ error_messages.append(str(e))
227
+ # deserialize data into SkipTruth
228
+ try:
229
+ instance.actual_instance = SkipTruth.from_json(json_str)
230
+ match += 1
231
+ except (ValidationError, ValueError) as e:
232
+ error_messages.append(str(e))
233
+ # deserialize data into AttachCategoryTruth
234
+ try:
235
+ instance.actual_instance = AttachCategoryTruth.from_json(json_str)
236
+ match += 1
237
+ except (ValidationError, ValueError) as e:
238
+ error_messages.append(str(e))
239
+ # deserialize data into BoundingBoxTruth
240
+ try:
241
+ instance.actual_instance = BoundingBoxTruth.from_json(json_str)
242
+ match += 1
243
+ except (ValidationError, ValueError) as e:
244
+ error_messages.append(str(e))
245
+
246
+ if match > 1:
247
+ # more than 1 match
248
+ raise ValueError("Multiple matches found when deserializing the JSON string into ValidationSetValidationSetIdRapidPostTruthParameter with oneOf schemas: AttachCategoryTruth, BoundingBoxTruth, CompareTruth, EmptyValidationTruth, LineTruth, LocateBoxTruth, MultiCompareTruth, NamedEntityTruth, PolygonTruth, ScrubTruth, SkipTruth, TranscriptionTruth. Details: " + ", ".join(error_messages))
249
+ elif match == 0:
250
+ # no match
251
+ raise ValueError("No match found when deserializing the JSON string into ValidationSetValidationSetIdRapidPostTruthParameter with oneOf schemas: AttachCategoryTruth, BoundingBoxTruth, CompareTruth, EmptyValidationTruth, LineTruth, LocateBoxTruth, MultiCompareTruth, NamedEntityTruth, PolygonTruth, ScrubTruth, SkipTruth, TranscriptionTruth. Details: " + ", ".join(error_messages))
252
+ else:
253
+ return instance
254
+
255
+ def to_json(self) -> str:
256
+ """Returns the JSON representation of the actual instance"""
257
+ if self.actual_instance is None:
258
+ return "null"
259
+
260
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
261
+ return self.actual_instance.to_json()
262
+ else:
263
+ return json.dumps(self.actual_instance)
264
+
265
+ def to_dict(self) -> Optional[Union[Dict[str, Any], AttachCategoryTruth, BoundingBoxTruth, CompareTruth, EmptyValidationTruth, LineTruth, LocateBoxTruth, MultiCompareTruth, NamedEntityTruth, PolygonTruth, ScrubTruth, SkipTruth, TranscriptionTruth]]:
266
+ """Returns the dict representation of the actual instance"""
267
+ if self.actual_instance is None:
268
+ return None
269
+
270
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
271
+ return self.actual_instance.to_dict()
272
+ else:
273
+ # primitive type
274
+ return self.actual_instance
275
+
276
+ def to_str(self) -> str:
277
+ """Returns the string representation of the actual instance"""
278
+ return pprint.pformat(self.model_dump())
279
+
280
+
@@ -0,0 +1,98 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Rapidata.Dataset
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class VideoDurationMetadata(BaseModel):
26
+ """
27
+ VideoDurationMetadata
28
+ """ # noqa: E501
29
+ t: StrictStr = Field(description="Discriminator value for VideoDurationMetadata", alias="_t")
30
+ duration: StrictStr
31
+ visibilities: Optional[StrictStr] = None
32
+ __properties: ClassVar[List[str]] = ["_t", "duration", "visibilities"]
33
+
34
+ @field_validator('t')
35
+ def t_validate_enum(cls, value):
36
+ """Validates the enum"""
37
+ if value not in set(['VideoDurationMetadata']):
38
+ raise ValueError("must be one of enum values ('VideoDurationMetadata')")
39
+ return value
40
+
41
+ model_config = ConfigDict(
42
+ populate_by_name=True,
43
+ validate_assignment=True,
44
+ protected_namespaces=(),
45
+ )
46
+
47
+
48
+ def to_str(self) -> str:
49
+ """Returns the string representation of the model using alias"""
50
+ return pprint.pformat(self.model_dump(by_alias=True))
51
+
52
+ def to_json(self) -> str:
53
+ """Returns the JSON representation of the model using alias"""
54
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
+ return json.dumps(self.to_dict())
56
+
57
+ @classmethod
58
+ def from_json(cls, json_str: str) -> Optional[Self]:
59
+ """Create an instance of VideoDurationMetadata from a JSON string"""
60
+ return cls.from_dict(json.loads(json_str))
61
+
62
+ def to_dict(self) -> Dict[str, Any]:
63
+ """Return the dictionary representation of the model using alias.
64
+
65
+ This has the following differences from calling pydantic's
66
+ `self.model_dump(by_alias=True)`:
67
+
68
+ * `None` is only added to the output dict for nullable fields that
69
+ were set at model initialization. Other fields with value `None`
70
+ are ignored.
71
+ """
72
+ excluded_fields: Set[str] = set([
73
+ ])
74
+
75
+ _dict = self.model_dump(
76
+ by_alias=True,
77
+ exclude=excluded_fields,
78
+ exclude_none=True,
79
+ )
80
+ return _dict
81
+
82
+ @classmethod
83
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
+ """Create an instance of VideoDurationMetadata from a dict"""
85
+ if obj is None:
86
+ return None
87
+
88
+ if not isinstance(obj, dict):
89
+ return cls.model_validate(obj)
90
+
91
+ _obj = cls.model_validate({
92
+ "_t": obj.get("_t") if obj.get("_t") is not None else 'VideoDurationMetadata',
93
+ "duration": obj.get("duration"),
94
+ "visibilities": obj.get("visibilities")
95
+ })
96
+ return _obj
97
+
98
+
@@ -0,0 +1,96 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Rapidata.Dataset
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class VideoDurationMetadataModel(BaseModel):
26
+ """
27
+ VideoDurationMetadataModel
28
+ """ # noqa: E501
29
+ t: StrictStr = Field(description="Discriminator value for VideoDurationMetadata", alias="_t")
30
+ duration: StrictStr
31
+ __properties: ClassVar[List[str]] = ["_t", "duration"]
32
+
33
+ @field_validator('t')
34
+ def t_validate_enum(cls, value):
35
+ """Validates the enum"""
36
+ if value not in set(['VideoDurationMetadata']):
37
+ raise ValueError("must be one of enum values ('VideoDurationMetadata')")
38
+ return value
39
+
40
+ model_config = ConfigDict(
41
+ populate_by_name=True,
42
+ validate_assignment=True,
43
+ protected_namespaces=(),
44
+ )
45
+
46
+
47
+ def to_str(self) -> str:
48
+ """Returns the string representation of the model using alias"""
49
+ return pprint.pformat(self.model_dump(by_alias=True))
50
+
51
+ def to_json(self) -> str:
52
+ """Returns the JSON representation of the model using alias"""
53
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
54
+ return json.dumps(self.to_dict())
55
+
56
+ @classmethod
57
+ def from_json(cls, json_str: str) -> Optional[Self]:
58
+ """Create an instance of VideoDurationMetadataModel from a JSON string"""
59
+ return cls.from_dict(json.loads(json_str))
60
+
61
+ def to_dict(self) -> Dict[str, Any]:
62
+ """Return the dictionary representation of the model using alias.
63
+
64
+ This has the following differences from calling pydantic's
65
+ `self.model_dump(by_alias=True)`:
66
+
67
+ * `None` is only added to the output dict for nullable fields that
68
+ were set at model initialization. Other fields with value `None`
69
+ are ignored.
70
+ """
71
+ excluded_fields: Set[str] = set([
72
+ ])
73
+
74
+ _dict = self.model_dump(
75
+ by_alias=True,
76
+ exclude=excluded_fields,
77
+ exclude_none=True,
78
+ )
79
+ return _dict
80
+
81
+ @classmethod
82
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
83
+ """Create an instance of VideoDurationMetadataModel from a dict"""
84
+ if obj is None:
85
+ return None
86
+
87
+ if not isinstance(obj, dict):
88
+ return cls.model_validate(obj)
89
+
90
+ _obj = cls.model_validate({
91
+ "_t": obj.get("_t") if obj.get("_t") is not None else 'VideoDurationMetadata',
92
+ "duration": obj.get("duration")
93
+ })
94
+ return _obj
95
+
96
+
@@ -56,13 +56,14 @@ configuration.api_key['bearer'] = os.environ["API_KEY"]
56
56
  with rapidata.api_client.ApiClient(configuration) as api_client:
57
57
  # Create an instance of the API class
58
58
  api_instance = rapidata.api_client.CampaignApi(api_client)
59
- campaign_id = 'campaign_id_example' # str | id of the campaign that should be paused
60
59
 
61
60
  try:
62
- # Pauses a campaign.
63
- api_instance.campaign_campaign_id_pause_post(campaign_id)
61
+ # Gets the status of the boost.
62
+ api_response = api_instance.campaign_boost_status_get()
63
+ print("The response of CampaignApi->campaign_boost_status_get:\n")
64
+ pprint(api_response)
64
65
  except ApiException as e:
65
- print("Exception when calling CampaignApi->campaign_campaign_id_pause_post: %s\n" % e)
66
+ print("Exception when calling CampaignApi->campaign_boost_status_get: %s\n" % e)
66
67
 
67
68
  ```
68
69
 
@@ -72,6 +73,7 @@ All URIs are relative to *http://localhost*
72
73
 
73
74
  Class | Method | HTTP request | Description
74
75
  ------------ | ------------- | ------------- | -------------
76
+ *CampaignApi* | [**campaign_boost_status_get**](rapidata/api_client/docs/CampaignApi.md#campaign_boost_status_get) | **GET** /campaign/boost/status | Gets the status of the boost.
75
77
  *CampaignApi* | [**campaign_campaign_id_pause_post**](rapidata/api_client/docs/CampaignApi.md#campaign_campaign_id_pause_post) | **POST** /campaign/{campaignId}/pause | Pauses a campaign.
76
78
  *CampaignApi* | [**campaign_campaign_id_resume_post**](rapidata/api_client/docs/CampaignApi.md#campaign_campaign_id_resume_post) | **POST** /campaign/{campaignId}/resume | Resumes a campaign.
77
79
  *CampaignApi* | [**campaign_monitor_get**](rapidata/api_client/docs/CampaignApi.md#campaign_monitor_get) | **GET** /campaign/monitor | The monitor endpoint is used to monitor the health of the service
@@ -97,7 +99,6 @@ Class | Method | HTTP request | Description
97
99
  *DatapointApi* | [**datapoint_datapoint_id_delete**](rapidata/api_client/docs/DatapointApi.md#datapoint_datapoint_id_delete) | **DELETE** /datapoint/{datapointId} | Deletes a datapoint by its id.
98
100
  *DatapointApi* | [**datapoint_datapoint_id_get**](rapidata/api_client/docs/DatapointApi.md#datapoint_datapoint_id_get) | **GET** /datapoint/{datapointId} | Gets a datapoint by its id.
99
101
  *DatapointApi* | [**datapoint_delete_delete**](rapidata/api_client/docs/DatapointApi.md#datapoint_delete_delete) | **DELETE** /datapoint/delete | Delete a datapoint.
100
- *DatapointApi* | [**datapoint_getalldatapointsbydatasetid_get**](rapidata/api_client/docs/DatapointApi.md#datapoint_getalldatapointsbydatasetid_get) | **GET** /datapoint/getalldatapointsbydatasetid | Get all datapoints of a dataset.
101
102
  *DatapointApi* | [**datapoint_getbyid_get**](rapidata/api_client/docs/DatapointApi.md#datapoint_getbyid_get) | **GET** /datapoint/getbyid | Get a datapoint by its id.
102
103
  *DatasetApi* | [**dataset_createdatapoint_post**](rapidata/api_client/docs/DatasetApi.md#dataset_createdatapoint_post) | **POST** /dataset/createdatapoint | Creates a single datapoint.
103
104
  *DatasetApi* | [**dataset_creattextdatapoint_post**](rapidata/api_client/docs/DatasetApi.md#dataset_creattextdatapoint_post) | **POST** /dataset/creattextdatapoint | Creates new datapoints from text sources.
@@ -199,6 +200,7 @@ Class | Method | HTTP request | Description
199
200
  *ValidationSetApi* | [**validation_set_validation_set_id_export_get**](rapidata/api_client/docs/ValidationSetApi.md#validation_set_validation_set_id_export_get) | **GET** /validation-set/{validationSetId}/export | Exports all rapids of a validation-set to a file.
200
201
  *ValidationSetApi* | [**validation_set_validation_set_id_get**](rapidata/api_client/docs/ValidationSetApi.md#validation_set_validation_set_id_get) | **GET** /validation-set/{validationSetId} | Gets a validation set by the id.
201
202
  *ValidationSetApi* | [**validation_set_validation_set_id_rapid_files_post**](rapidata/api_client/docs/ValidationSetApi.md#validation_set_validation_set_id_rapid_files_post) | **POST** /validation-set/{validationSetId}/rapid/files | Adds a new validation rapid to the specified validation set using files to create the assets.
203
+ *ValidationSetApi* | [**validation_set_validation_set_id_rapid_post**](rapidata/api_client/docs/ValidationSetApi.md#validation_set_validation_set_id_rapid_post) | **POST** /validation-set/{validationSetId}/rapid | Creates a new rapid for a validation set from multiple possible sources.
202
204
  *ValidationSetApi* | [**validation_set_validation_set_id_rapid_texts_post**](rapidata/api_client/docs/ValidationSetApi.md#validation_set_validation_set_id_rapid_texts_post) | **POST** /validation-set/{validationSetId}/rapid/texts | Adds a new validation rapid to the specified validation set using text sources to create the assets.
203
205
  *ValidationSetApi* | [**validation_set_validation_set_id_rapids_get**](rapidata/api_client/docs/ValidationSetApi.md#validation_set_validation_set_id_rapids_get) | **GET** /validation-set/{validationSetId}/rapids | Queries the validation rapids for a specific validation set.
204
206
  *ValidationSetApi* | [**validation_set_zip_compare_post**](rapidata/api_client/docs/ValidationSetApi.md#validation_set_zip_compare_post) | **POST** /validation-set/zip/compare | Imports a compare validation set from a zip file.
@@ -240,6 +242,8 @@ Class | Method | HTTP request | Description
240
242
  - [AttachCategoryResult](rapidata/api_client/docs/AttachCategoryResult.md)
241
243
  - [AttachCategoryTruth](rapidata/api_client/docs/AttachCategoryTruth.md)
242
244
  - [BaseError](rapidata/api_client/docs/BaseError.md)
245
+ - [BoostQueryResult](rapidata/api_client/docs/BoostQueryResult.md)
246
+ - [BoostStatus](rapidata/api_client/docs/BoostStatus.md)
243
247
  - [BoundingBoxPayload](rapidata/api_client/docs/BoundingBoxPayload.md)
244
248
  - [BoundingBoxRapidBlueprint](rapidata/api_client/docs/BoundingBoxRapidBlueprint.md)
245
249
  - [BoundingBoxResult](rapidata/api_client/docs/BoundingBoxResult.md)
@@ -312,6 +316,7 @@ Class | Method | HTTP request | Description
312
316
  - [DatapointAsset](rapidata/api_client/docs/DatapointAsset.md)
313
317
  - [DatapointMetadataModel](rapidata/api_client/docs/DatapointMetadataModel.md)
314
318
  - [DatapointModel](rapidata/api_client/docs/DatapointModel.md)
319
+ - [DatapointModelPagedResult](rapidata/api_client/docs/DatapointModelPagedResult.md)
315
320
  - [DatapointState](rapidata/api_client/docs/DatapointState.md)
316
321
  - [DatasetArtifactModel](rapidata/api_client/docs/DatasetArtifactModel.md)
317
322
  - [DatasetDatasetIdDatapointsPostRequestMetadataInner](rapidata/api_client/docs/DatasetDatasetIdDatapointsPostRequestMetadataInner.md)
@@ -320,6 +325,7 @@ Class | Method | HTTP request | Description
320
325
  - [DemographicMetadataModel](rapidata/api_client/docs/DemographicMetadataModel.md)
321
326
  - [DemographicSelection](rapidata/api_client/docs/DemographicSelection.md)
322
327
  - [EarlyStoppingRefereeModel](rapidata/api_client/docs/EarlyStoppingRefereeModel.md)
328
+ - [EffortCappedSelection](rapidata/api_client/docs/EffortCappedSelection.md)
323
329
  - [EloConfig](rapidata/api_client/docs/EloConfig.md)
324
330
  - [EloConfigModel](rapidata/api_client/docs/EloConfigModel.md)
325
331
  - [EmptyValidationTruth](rapidata/api_client/docs/EmptyValidationTruth.md)
@@ -346,7 +352,6 @@ Class | Method | HTTP request | Description
346
352
  - [GetCompareWorkflowResultsResult](rapidata/api_client/docs/GetCompareWorkflowResultsResult.md)
347
353
  - [GetCompareWorkflowResultsResultPagedResult](rapidata/api_client/docs/GetCompareWorkflowResultsResultPagedResult.md)
348
354
  - [GetDatapointByIdResult](rapidata/api_client/docs/GetDatapointByIdResult.md)
349
- - [GetDatapointsByDatasetIdResult](rapidata/api_client/docs/GetDatapointsByDatasetIdResult.md)
350
355
  - [GetDatasetByIdResult](rapidata/api_client/docs/GetDatasetByIdResult.md)
351
356
  - [GetDatasetProgressResult](rapidata/api_client/docs/GetDatasetProgressResult.md)
352
357
  - [GetFailedDatapointsResult](rapidata/api_client/docs/GetFailedDatapointsResult.md)
@@ -360,7 +365,6 @@ Class | Method | HTTP request | Description
360
365
  - [GetValidationRapidsResult](rapidata/api_client/docs/GetValidationRapidsResult.md)
361
366
  - [GetValidationRapidsResultAsset](rapidata/api_client/docs/GetValidationRapidsResultAsset.md)
362
367
  - [GetValidationRapidsResultPagedResult](rapidata/api_client/docs/GetValidationRapidsResultPagedResult.md)
363
- - [GetValidationRapidsResultPayload](rapidata/api_client/docs/GetValidationRapidsResultPayload.md)
364
368
  - [GetValidationRapidsResultTruth](rapidata/api_client/docs/GetValidationRapidsResultTruth.md)
365
369
  - [GetValidationSetByIdResult](rapidata/api_client/docs/GetValidationSetByIdResult.md)
366
370
  - [GetWorkflowByIdResult](rapidata/api_client/docs/GetWorkflowByIdResult.md)
@@ -479,6 +483,8 @@ Class | Method | HTTP request | Description
479
483
  - [SourceUrlMetadataModel](rapidata/api_client/docs/SourceUrlMetadataModel.md)
480
484
  - [StaticSelection](rapidata/api_client/docs/StaticSelection.md)
481
485
  - [StickyState](rapidata/api_client/docs/StickyState.md)
486
+ - [StreamsMetadata](rapidata/api_client/docs/StreamsMetadata.md)
487
+ - [StreamsMetadataModel](rapidata/api_client/docs/StreamsMetadataModel.md)
482
488
  - [SubmitCocoModel](rapidata/api_client/docs/SubmitCocoModel.md)
483
489
  - [SubmitCocoResult](rapidata/api_client/docs/SubmitCocoResult.md)
484
490
  - [TextAsset](rapidata/api_client/docs/TextAsset.md)
@@ -515,6 +521,10 @@ Class | Method | HTTP request | Description
515
521
  - [ValidationSetModel](rapidata/api_client/docs/ValidationSetModel.md)
516
522
  - [ValidationSetModelPagedResult](rapidata/api_client/docs/ValidationSetModelPagedResult.md)
517
523
  - [ValidationSetOverviewModel](rapidata/api_client/docs/ValidationSetOverviewModel.md)
524
+ - [ValidationSetValidationSetIdRapidPostPayloadParameter](rapidata/api_client/docs/ValidationSetValidationSetIdRapidPostPayloadParameter.md)
525
+ - [ValidationSetValidationSetIdRapidPostTruthParameter](rapidata/api_client/docs/ValidationSetValidationSetIdRapidPostTruthParameter.md)
526
+ - [VideoDurationMetadata](rapidata/api_client/docs/VideoDurationMetadata.md)
527
+ - [VideoDurationMetadataModel](rapidata/api_client/docs/VideoDurationMetadataModel.md)
518
528
  - [WorkflowAggregationStepModel](rapidata/api_client/docs/WorkflowAggregationStepModel.md)
519
529
  - [WorkflowArtifactModel](rapidata/api_client/docs/WorkflowArtifactModel.md)
520
530
  - [WorkflowConfigArtifactModel](rapidata/api_client/docs/WorkflowConfigArtifactModel.md)