rapidata 2.4.1__py3-none-any.whl → 2.6.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.

Files changed (42) hide show
  1. rapidata/api_client/__init__.py +17 -15
  2. rapidata/api_client/api/compare_workflow_api.py +49 -48
  3. rapidata/api_client/api/pipeline_api.py +559 -2
  4. rapidata/api_client/api/rapid_api.py +283 -0
  5. rapidata/api_client/api/simple_workflow_api.py +49 -82
  6. rapidata/api_client/api/workflow_api.py +0 -264
  7. rapidata/api_client/models/__init__.py +17 -15
  8. rapidata/api_client/models/ab_test_selection.py +122 -0
  9. rapidata/api_client/models/ab_test_selection_a_inner.py +212 -0
  10. rapidata/api_client/models/add_campaign_model.py +3 -3
  11. rapidata/api_client/models/capped_selection.py +3 -3
  12. rapidata/api_client/models/compare_match_status.py +39 -0
  13. rapidata/api_client/models/create_order_model.py +3 -3
  14. rapidata/api_client/models/get_compare_workflow_results_model.py +114 -0
  15. rapidata/api_client/models/get_compare_workflow_results_result.py +104 -0
  16. rapidata/api_client/models/get_compare_workflow_results_result_asset.py +170 -0
  17. rapidata/api_client/models/get_compare_workflow_results_result_paged_result.py +105 -0
  18. rapidata/api_client/models/get_simple_workflow_results_model.py +114 -0
  19. rapidata/api_client/models/get_simple_workflow_results_result.py +112 -0
  20. rapidata/api_client/models/get_simple_workflow_results_result_paged_result.py +105 -0
  21. rapidata/api_client/models/multi_asset_model2.py +3 -3
  22. rapidata/api_client/models/order_model.py +3 -1
  23. rapidata/api_client/models/preliminary_download_model.py +87 -0
  24. rapidata/api_client/models/preliminary_download_result.py +87 -0
  25. rapidata/api_client/models/query_validation_rapids_result.py +11 -2
  26. rapidata/api_client/models/rapid_response.py +101 -0
  27. rapidata/api_client/models/rapid_response_result.py +266 -0
  28. rapidata/api_client/models/rapid_state.py +40 -0
  29. rapidata/api_client/models/update_validation_rapid_model.py +105 -0
  30. rapidata/api_client/models/update_validation_rapid_model_truth.py +252 -0
  31. rapidata/api_client_README.md +22 -18
  32. rapidata/rapidata_client/order/_rapidata_order_builder.py +3 -3
  33. rapidata/rapidata_client/selection/ab_test_selection.py +38 -0
  34. rapidata/rapidata_client/selection/capped_selection.py +3 -3
  35. rapidata/rapidata_client/validation/rapidata_validation_set.py +13 -1
  36. rapidata/rapidata_client/validation/rapids/rapids.py +18 -2
  37. rapidata/rapidata_client/validation/rapids/rapids_manager.py +1 -1
  38. rapidata/rapidata_client/validation/validation_set_manager.py +16 -22
  39. {rapidata-2.4.1.dist-info → rapidata-2.6.0.dist-info}/METADATA +1 -1
  40. {rapidata-2.4.1.dist-info → rapidata-2.6.0.dist-info}/RECORD +42 -24
  41. {rapidata-2.4.1.dist-info → rapidata-2.6.0.dist-info}/LICENSE +0 -0
  42. {rapidata-2.4.1.dist-info → rapidata-2.6.0.dist-info}/WHEEL +0 -0
@@ -21,7 +21,6 @@ from typing import Optional
21
21
  from typing_extensions import Annotated
22
22
  from rapidata.api_client.models.get_workflow_by_id_result import GetWorkflowByIdResult
23
23
  from rapidata.api_client.models.get_workflow_progress_result import GetWorkflowProgressResult
24
- from rapidata.api_client.models.get_workflow_result_overview_result import GetWorkflowResultOverviewResult
25
24
  from rapidata.api_client.models.i_workflow_model_paged_result import IWorkflowModelPagedResult
26
25
  from rapidata.api_client.models.query_workflows_model import QueryWorkflowsModel
27
26
 
@@ -823,269 +822,6 @@ class WorkflowApi:
823
822
 
824
823
 
825
824
 
826
- @validate_call
827
- def workflow_get_result_overview_get(
828
- self,
829
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get the result overview for.")] = None,
830
- _request_timeout: Union[
831
- None,
832
- Annotated[StrictFloat, Field(gt=0)],
833
- Tuple[
834
- Annotated[StrictFloat, Field(gt=0)],
835
- Annotated[StrictFloat, Field(gt=0)]
836
- ]
837
- ] = None,
838
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
839
- _content_type: Optional[StrictStr] = None,
840
- _headers: Optional[Dict[StrictStr, Any]] = None,
841
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
842
- ) -> GetWorkflowResultOverviewResult:
843
- """Get the result overview for a workflow.
844
-
845
-
846
- :param workflow_id: The ID of the workflow to get the result overview for.
847
- :type workflow_id: str
848
- :param _request_timeout: timeout setting for this request. If one
849
- number provided, it will be total request
850
- timeout. It can also be a pair (tuple) of
851
- (connection, read) timeouts.
852
- :type _request_timeout: int, tuple(int, int), optional
853
- :param _request_auth: set to override the auth_settings for an a single
854
- request; this effectively ignores the
855
- authentication in the spec for a single request.
856
- :type _request_auth: dict, optional
857
- :param _content_type: force content-type for the request.
858
- :type _content_type: str, Optional
859
- :param _headers: set to override the headers for a single
860
- request; this effectively ignores the headers
861
- in the spec for a single request.
862
- :type _headers: dict, optional
863
- :param _host_index: set to override the host_index for a single
864
- request; this effectively ignores the host_index
865
- in the spec for a single request.
866
- :type _host_index: int, optional
867
- :return: Returns the result object.
868
- """ # noqa: E501
869
-
870
- _param = self._workflow_get_result_overview_get_serialize(
871
- workflow_id=workflow_id,
872
- _request_auth=_request_auth,
873
- _content_type=_content_type,
874
- _headers=_headers,
875
- _host_index=_host_index
876
- )
877
-
878
- _response_types_map: Dict[str, Optional[str]] = {
879
- '200': "GetWorkflowResultOverviewResult",
880
- }
881
- response_data = self.api_client.call_api(
882
- *_param,
883
- _request_timeout=_request_timeout
884
- )
885
- response_data.read()
886
- return self.api_client.response_deserialize(
887
- response_data=response_data,
888
- response_types_map=_response_types_map,
889
- ).data
890
-
891
-
892
- @validate_call
893
- def workflow_get_result_overview_get_with_http_info(
894
- self,
895
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get the result overview for.")] = None,
896
- _request_timeout: Union[
897
- None,
898
- Annotated[StrictFloat, Field(gt=0)],
899
- Tuple[
900
- Annotated[StrictFloat, Field(gt=0)],
901
- Annotated[StrictFloat, Field(gt=0)]
902
- ]
903
- ] = None,
904
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
905
- _content_type: Optional[StrictStr] = None,
906
- _headers: Optional[Dict[StrictStr, Any]] = None,
907
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
908
- ) -> ApiResponse[GetWorkflowResultOverviewResult]:
909
- """Get the result overview for a workflow.
910
-
911
-
912
- :param workflow_id: The ID of the workflow to get the result overview for.
913
- :type workflow_id: str
914
- :param _request_timeout: timeout setting for this request. If one
915
- number provided, it will be total request
916
- timeout. It can also be a pair (tuple) of
917
- (connection, read) timeouts.
918
- :type _request_timeout: int, tuple(int, int), optional
919
- :param _request_auth: set to override the auth_settings for an a single
920
- request; this effectively ignores the
921
- authentication in the spec for a single request.
922
- :type _request_auth: dict, optional
923
- :param _content_type: force content-type for the request.
924
- :type _content_type: str, Optional
925
- :param _headers: set to override the headers for a single
926
- request; this effectively ignores the headers
927
- in the spec for a single request.
928
- :type _headers: dict, optional
929
- :param _host_index: set to override the host_index for a single
930
- request; this effectively ignores the host_index
931
- in the spec for a single request.
932
- :type _host_index: int, optional
933
- :return: Returns the result object.
934
- """ # noqa: E501
935
-
936
- _param = self._workflow_get_result_overview_get_serialize(
937
- workflow_id=workflow_id,
938
- _request_auth=_request_auth,
939
- _content_type=_content_type,
940
- _headers=_headers,
941
- _host_index=_host_index
942
- )
943
-
944
- _response_types_map: Dict[str, Optional[str]] = {
945
- '200': "GetWorkflowResultOverviewResult",
946
- }
947
- response_data = self.api_client.call_api(
948
- *_param,
949
- _request_timeout=_request_timeout
950
- )
951
- response_data.read()
952
- return self.api_client.response_deserialize(
953
- response_data=response_data,
954
- response_types_map=_response_types_map,
955
- )
956
-
957
-
958
- @validate_call
959
- def workflow_get_result_overview_get_without_preload_content(
960
- self,
961
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get the result overview for.")] = None,
962
- _request_timeout: Union[
963
- None,
964
- Annotated[StrictFloat, Field(gt=0)],
965
- Tuple[
966
- Annotated[StrictFloat, Field(gt=0)],
967
- Annotated[StrictFloat, Field(gt=0)]
968
- ]
969
- ] = None,
970
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
971
- _content_type: Optional[StrictStr] = None,
972
- _headers: Optional[Dict[StrictStr, Any]] = None,
973
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
974
- ) -> RESTResponseType:
975
- """Get the result overview for a workflow.
976
-
977
-
978
- :param workflow_id: The ID of the workflow to get the result overview for.
979
- :type workflow_id: str
980
- :param _request_timeout: timeout setting for this request. If one
981
- number provided, it will be total request
982
- timeout. It can also be a pair (tuple) of
983
- (connection, read) timeouts.
984
- :type _request_timeout: int, tuple(int, int), optional
985
- :param _request_auth: set to override the auth_settings for an a single
986
- request; this effectively ignores the
987
- authentication in the spec for a single request.
988
- :type _request_auth: dict, optional
989
- :param _content_type: force content-type for the request.
990
- :type _content_type: str, Optional
991
- :param _headers: set to override the headers for a single
992
- request; this effectively ignores the headers
993
- in the spec for a single request.
994
- :type _headers: dict, optional
995
- :param _host_index: set to override the host_index for a single
996
- request; this effectively ignores the host_index
997
- in the spec for a single request.
998
- :type _host_index: int, optional
999
- :return: Returns the result object.
1000
- """ # noqa: E501
1001
-
1002
- _param = self._workflow_get_result_overview_get_serialize(
1003
- workflow_id=workflow_id,
1004
- _request_auth=_request_auth,
1005
- _content_type=_content_type,
1006
- _headers=_headers,
1007
- _host_index=_host_index
1008
- )
1009
-
1010
- _response_types_map: Dict[str, Optional[str]] = {
1011
- '200': "GetWorkflowResultOverviewResult",
1012
- }
1013
- response_data = self.api_client.call_api(
1014
- *_param,
1015
- _request_timeout=_request_timeout
1016
- )
1017
- return response_data.response
1018
-
1019
-
1020
- def _workflow_get_result_overview_get_serialize(
1021
- self,
1022
- workflow_id,
1023
- _request_auth,
1024
- _content_type,
1025
- _headers,
1026
- _host_index,
1027
- ) -> RequestSerialized:
1028
-
1029
- _host = None
1030
-
1031
- _collection_formats: Dict[str, str] = {
1032
- }
1033
-
1034
- _path_params: Dict[str, str] = {}
1035
- _query_params: List[Tuple[str, str]] = []
1036
- _header_params: Dict[str, Optional[str]] = _headers or {}
1037
- _form_params: List[Tuple[str, str]] = []
1038
- _files: Dict[
1039
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1040
- ] = {}
1041
- _body_params: Optional[bytes] = None
1042
-
1043
- # process the path parameters
1044
- # process the query parameters
1045
- if workflow_id is not None:
1046
-
1047
- _query_params.append(('workflowId', workflow_id))
1048
-
1049
- # process the header parameters
1050
- # process the form parameters
1051
- # process the body parameter
1052
-
1053
-
1054
- # set the HTTP header `Accept`
1055
- if 'Accept' not in _header_params:
1056
- _header_params['Accept'] = self.api_client.select_header_accept(
1057
- [
1058
- 'text/plain',
1059
- 'application/json',
1060
- 'text/json'
1061
- ]
1062
- )
1063
-
1064
-
1065
- # authentication setting
1066
- _auth_settings: List[str] = [
1067
- 'bearer',
1068
- 'oauth2'
1069
- ]
1070
-
1071
- return self.api_client.param_serialize(
1072
- method='GET',
1073
- resource_path='/Workflow/GetResultOverview',
1074
- path_params=_path_params,
1075
- query_params=_query_params,
1076
- header_params=_header_params,
1077
- body=_body_params,
1078
- post_params=_form_params,
1079
- files=_files,
1080
- auth_settings=_auth_settings,
1081
- collection_formats=_collection_formats,
1082
- _host=_host,
1083
- _request_auth=_request_auth
1084
- )
1085
-
1086
-
1087
-
1088
-
1089
825
  @validate_call
1090
826
  def workflow_query_get(
1091
827
  self,
@@ -14,6 +14,8 @@
14
14
 
15
15
 
16
16
  # import models into model package
17
+ from rapidata.api_client.models.ab_test_selection import AbTestSelection
18
+ from rapidata.api_client.models.ab_test_selection_a_inner import AbTestSelectionAInner
17
19
  from rapidata.api_client.models.add_campaign_artifact_result import AddCampaignArtifactResult
18
20
  from rapidata.api_client.models.add_campaign_model import AddCampaignModel
19
21
  from rapidata.api_client.models.add_validation_rapid_model import AddValidationRapidModel
@@ -39,7 +41,6 @@ from rapidata.api_client.models.campaign_query_model_paged_result import Campaig
39
41
  from rapidata.api_client.models.campaign_status import CampaignStatus
40
42
  from rapidata.api_client.models.campaign_user_filter_model import CampaignUserFilterModel
41
43
  from rapidata.api_client.models.capped_selection import CappedSelection
42
- from rapidata.api_client.models.capped_selection_selections_inner import CappedSelectionSelectionsInner
43
44
  from rapidata.api_client.models.classification_metadata import ClassificationMetadata
44
45
  from rapidata.api_client.models.classification_metadata_filter_config import ClassificationMetadataFilterConfig
45
46
  from rapidata.api_client.models.classification_metadata_model import ClassificationMetadataModel
@@ -49,6 +50,7 @@ from rapidata.api_client.models.clients_query_result_paged_result import Clients
49
50
  from rapidata.api_client.models.clone_dataset_model import CloneDatasetModel
50
51
  from rapidata.api_client.models.clone_order_model import CloneOrderModel
51
52
  from rapidata.api_client.models.clone_order_result import CloneOrderResult
53
+ from rapidata.api_client.models.compare_match_status import CompareMatchStatus
52
54
  from rapidata.api_client.models.compare_payload import ComparePayload
53
55
  from rapidata.api_client.models.compare_rapid_blueprint import CompareRapidBlueprint
54
56
  from rapidata.api_client.models.compare_result import CompareResult
@@ -57,14 +59,11 @@ from rapidata.api_client.models.compare_workflow_config import CompareWorkflowCo
57
59
  from rapidata.api_client.models.compare_workflow_config_model import CompareWorkflowConfigModel
58
60
  from rapidata.api_client.models.compare_workflow_config_model_pair_maker_config import CompareWorkflowConfigModelPairMakerConfig
59
61
  from rapidata.api_client.models.compare_workflow_config_pair_maker_config import CompareWorkflowConfigPairMakerConfig
60
- from rapidata.api_client.models.compare_workflow_get_result_overview_get200_response import CompareWorkflowGetResultOverviewGet200Response
61
62
  from rapidata.api_client.models.compare_workflow_model import CompareWorkflowModel
62
63
  from rapidata.api_client.models.compare_workflow_model1 import CompareWorkflowModel1
63
64
  from rapidata.api_client.models.compare_workflow_model1_pair_maker_information import CompareWorkflowModel1PairMakerInformation
64
65
  from rapidata.api_client.models.compare_workflow_model1_referee import CompareWorkflowModel1Referee
65
66
  from rapidata.api_client.models.compare_workflow_model_pair_maker_config import CompareWorkflowModelPairMakerConfig
66
- from rapidata.api_client.models.completed_rapid_model import CompletedRapidModel
67
- from rapidata.api_client.models.completed_rapid_model_asset import CompletedRapidModelAsset
68
67
  from rapidata.api_client.models.conditional_validation_selection import ConditionalValidationSelection
69
68
  from rapidata.api_client.models.coordinate import Coordinate
70
69
  from rapidata.api_client.models.count_classification_metadata_filter_config import CountClassificationMetadataFilterConfig
@@ -125,28 +124,29 @@ from rapidata.api_client.models.free_text_result import FreeTextResult
125
124
  from rapidata.api_client.models.gender import Gender
126
125
  from rapidata.api_client.models.gender_user_filter_model import GenderUserFilterModel
127
126
  from rapidata.api_client.models.get_available_validation_sets_result import GetAvailableValidationSetsResult
128
- from rapidata.api_client.models.get_classify_workflow_result_overview_result import GetClassifyWorkflowResultOverviewResult
129
- from rapidata.api_client.models.get_compare_workflow_result_overview_result import GetCompareWorkflowResultOverviewResult
130
- from rapidata.api_client.models.get_compare_workflow_result_overview_small_result import GetCompareWorkflowResultOverviewSmallResult
127
+ from rapidata.api_client.models.get_compare_workflow_results_model import GetCompareWorkflowResultsModel
128
+ from rapidata.api_client.models.get_compare_workflow_results_result import GetCompareWorkflowResultsResult
129
+ from rapidata.api_client.models.get_compare_workflow_results_result_asset import GetCompareWorkflowResultsResultAsset
130
+ from rapidata.api_client.models.get_compare_workflow_results_result_paged_result import GetCompareWorkflowResultsResultPagedResult
131
131
  from rapidata.api_client.models.get_datapoints_by_dataset_id_result import GetDatapointsByDatasetIdResult
132
132
  from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
133
133
  from rapidata.api_client.models.get_order_by_id_result import GetOrderByIdResult
134
134
  from rapidata.api_client.models.get_pipeline_by_id_result import GetPipelineByIdResult
135
135
  from rapidata.api_client.models.get_pipeline_by_id_result_artifacts_value import GetPipelineByIdResultArtifactsValue
136
136
  from rapidata.api_client.models.get_public_orders_result import GetPublicOrdersResult
137
- from rapidata.api_client.models.get_simple_workflow_result_overview_result import GetSimpleWorkflowResultOverviewResult
137
+ from rapidata.api_client.models.get_simple_workflow_results_model import GetSimpleWorkflowResultsModel
138
+ from rapidata.api_client.models.get_simple_workflow_results_result import GetSimpleWorkflowResultsResult
139
+ from rapidata.api_client.models.get_simple_workflow_results_result_paged_result import GetSimpleWorkflowResultsResultPagedResult
138
140
  from rapidata.api_client.models.get_validation_set_by_id_result import GetValidationSetByIdResult
139
141
  from rapidata.api_client.models.get_workflow_by_id_result import GetWorkflowByIdResult
140
142
  from rapidata.api_client.models.get_workflow_by_id_result_workflow import GetWorkflowByIdResultWorkflow
141
143
  from rapidata.api_client.models.get_workflow_progress_result import GetWorkflowProgressResult
142
- from rapidata.api_client.models.get_workflow_result_overview_result import GetWorkflowResultOverviewResult
143
144
  from rapidata.api_client.models.i_workflow_model_paged_result import IWorkflowModelPagedResult
144
145
  from rapidata.api_client.models.identity_read_bridge_token_get202_response import IdentityReadBridgeTokenGet202Response
145
146
  from rapidata.api_client.models.image_dimension_metadata import ImageDimensionMetadata
146
147
  from rapidata.api_client.models.image_dimension_metadata_model import ImageDimensionMetadataModel
147
148
  from rapidata.api_client.models.import_from_file_result import ImportFromFileResult
148
149
  from rapidata.api_client.models.import_validation_set_from_file_result import ImportValidationSetFromFileResult
149
- from rapidata.api_client.models.in_progress_rapid_model import InProgressRapidModel
150
150
  from rapidata.api_client.models.labeling_selection import LabelingSelection
151
151
  from rapidata.api_client.models.language_user_filter_model import LanguageUserFilterModel
152
152
  from rapidata.api_client.models.line import Line
@@ -180,7 +180,6 @@ from rapidata.api_client.models.named_entity_truth import NamedEntityTruth
180
180
  from rapidata.api_client.models.never_ending_referee_config import NeverEndingRefereeConfig
181
181
  from rapidata.api_client.models.newsletter_model import NewsletterModel
182
182
  from rapidata.api_client.models.not_available_yet_result import NotAvailableYetResult
183
- from rapidata.api_client.models.not_started_rapid_model import NotStartedRapidModel
184
183
  from rapidata.api_client.models.null_asset import NullAsset
185
184
  from rapidata.api_client.models.null_asset_model import NullAssetModel
186
185
  from rapidata.api_client.models.null_asset_model1 import NullAssetModel1
@@ -202,6 +201,8 @@ from rapidata.api_client.models.polygon_truth import PolygonTruth
202
201
  from rapidata.api_client.models.pre_arranged_pair_maker_config import PreArrangedPairMakerConfig
203
202
  from rapidata.api_client.models.pre_arranged_pair_maker_config_model import PreArrangedPairMakerConfigModel
204
203
  from rapidata.api_client.models.pre_arranged_pair_maker_information import PreArrangedPairMakerInformation
204
+ from rapidata.api_client.models.preliminary_download_model import PreliminaryDownloadModel
205
+ from rapidata.api_client.models.preliminary_download_result import PreliminaryDownloadResult
205
206
  from rapidata.api_client.models.private_text_metadata_input import PrivateTextMetadataInput
206
207
  from rapidata.api_client.models.probabilistic_attach_category_referee_config import ProbabilisticAttachCategoryRefereeConfig
207
208
  from rapidata.api_client.models.problem_details import ProblemDetails
@@ -219,13 +220,13 @@ from rapidata.api_client.models.query_validation_rapids_result_payload import Qu
219
220
  from rapidata.api_client.models.query_validation_rapids_result_truth import QueryValidationRapidsResultTruth
220
221
  from rapidata.api_client.models.query_validation_set_model import QueryValidationSetModel
221
222
  from rapidata.api_client.models.query_workflows_model import QueryWorkflowsModel
222
- from rapidata.api_client.models.ranked_datapoint_model import RankedDatapointModel
223
- from rapidata.api_client.models.rapid_answer import RapidAnswer
224
- from rapidata.api_client.models.rapid_answer_result import RapidAnswerResult
225
223
  from rapidata.api_client.models.rapid_issue import RapidIssue
224
+ from rapidata.api_client.models.rapid_response import RapidResponse
225
+ from rapidata.api_client.models.rapid_response_result import RapidResponseResult
226
226
  from rapidata.api_client.models.rapid_result_model import RapidResultModel
227
227
  from rapidata.api_client.models.rapid_result_model_result import RapidResultModelResult
228
228
  from rapidata.api_client.models.rapid_skipped_model import RapidSkippedModel
229
+ from rapidata.api_client.models.rapid_state import RapidState
229
230
  from rapidata.api_client.models.read_bridge_token_keys_result import ReadBridgeTokenKeysResult
230
231
  from rapidata.api_client.models.register_temporary_customer_model import RegisterTemporaryCustomerModel
231
232
  from rapidata.api_client.models.register_temporary_customer_result import RegisterTemporaryCustomerResult
@@ -241,7 +242,6 @@ from rapidata.api_client.models.shape import Shape
241
242
  from rapidata.api_client.models.simple_workflow_config import SimpleWorkflowConfig
242
243
  from rapidata.api_client.models.simple_workflow_config_model import SimpleWorkflowConfigModel
243
244
  from rapidata.api_client.models.simple_workflow_config_model_blueprint import SimpleWorkflowConfigModelBlueprint
244
- from rapidata.api_client.models.simple_workflow_get_result_overview_get200_response import SimpleWorkflowGetResultOverviewGet200Response
245
245
  from rapidata.api_client.models.simple_workflow_model import SimpleWorkflowModel
246
246
  from rapidata.api_client.models.simple_workflow_model1 import SimpleWorkflowModel1
247
247
  from rapidata.api_client.models.simple_workflow_model_blueprint import SimpleWorkflowModelBlueprint
@@ -271,6 +271,8 @@ from rapidata.api_client.models.unlock_order_result import UnlockOrderResult
271
271
  from rapidata.api_client.models.update_access_model import UpdateAccessModel
272
272
  from rapidata.api_client.models.update_campaign_model import UpdateCampaignModel
273
273
  from rapidata.api_client.models.update_order_model import UpdateOrderModel
274
+ from rapidata.api_client.models.update_validation_rapid_model import UpdateValidationRapidModel
275
+ from rapidata.api_client.models.update_validation_rapid_model_truth import UpdateValidationRapidModelTruth
274
276
  from rapidata.api_client.models.upload_coco_result import UploadCocoResult
275
277
  from rapidata.api_client.models.upload_datapoints_result import UploadDatapointsResult
276
278
  from rapidata.api_client.models.upload_files_from_s3_bucket_model import UploadFilesFromS3BucketModel
@@ -0,0 +1,122 @@
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 AbTestSelection(BaseModel):
26
+ """
27
+ AbTestSelection
28
+ """ # noqa: E501
29
+ t: StrictStr = Field(description="Discriminator value for AbTestSelection", alias="_t")
30
+ user_segment: Optional[StrictStr] = Field(default=None, alias="userSegment")
31
+ a: List[AbTestSelectionAInner]
32
+ b: List[AbTestSelectionAInner]
33
+ __properties: ClassVar[List[str]] = ["_t", "userSegment", "a", "b"]
34
+
35
+ @field_validator('t')
36
+ def t_validate_enum(cls, value):
37
+ """Validates the enum"""
38
+ if value not in set(['AbTestSelection']):
39
+ raise ValueError("must be one of enum values ('AbTestSelection')")
40
+ return value
41
+
42
+ model_config = ConfigDict(
43
+ populate_by_name=True,
44
+ validate_assignment=True,
45
+ protected_namespaces=(),
46
+ )
47
+
48
+
49
+ def to_str(self) -> str:
50
+ """Returns the string representation of the model using alias"""
51
+ return pprint.pformat(self.model_dump(by_alias=True))
52
+
53
+ def to_json(self) -> str:
54
+ """Returns the JSON representation of the model using alias"""
55
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
56
+ return json.dumps(self.to_dict())
57
+
58
+ @classmethod
59
+ def from_json(cls, json_str: str) -> Optional[Self]:
60
+ """Create an instance of AbTestSelection from a JSON string"""
61
+ return cls.from_dict(json.loads(json_str))
62
+
63
+ def to_dict(self) -> Dict[str, Any]:
64
+ """Return the dictionary representation of the model using alias.
65
+
66
+ This has the following differences from calling pydantic's
67
+ `self.model_dump(by_alias=True)`:
68
+
69
+ * `None` is only added to the output dict for nullable fields that
70
+ were set at model initialization. Other fields with value `None`
71
+ are ignored.
72
+ """
73
+ excluded_fields: Set[str] = set([
74
+ ])
75
+
76
+ _dict = self.model_dump(
77
+ by_alias=True,
78
+ exclude=excluded_fields,
79
+ exclude_none=True,
80
+ )
81
+ # override the default output from pydantic by calling `to_dict()` of each item in a (list)
82
+ _items = []
83
+ if self.a:
84
+ for _item_a in self.a:
85
+ if _item_a:
86
+ _items.append(_item_a.to_dict())
87
+ _dict['a'] = _items
88
+ # override the default output from pydantic by calling `to_dict()` of each item in b (list)
89
+ _items = []
90
+ if self.b:
91
+ for _item_b in self.b:
92
+ if _item_b:
93
+ _items.append(_item_b.to_dict())
94
+ _dict['b'] = _items
95
+ # set to None if user_segment (nullable) is None
96
+ # and model_fields_set contains the field
97
+ if self.user_segment is None and "user_segment" in self.model_fields_set:
98
+ _dict['userSegment'] = None
99
+
100
+ return _dict
101
+
102
+ @classmethod
103
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
104
+ """Create an instance of AbTestSelection from a dict"""
105
+ if obj is None:
106
+ return None
107
+
108
+ if not isinstance(obj, dict):
109
+ return cls.model_validate(obj)
110
+
111
+ _obj = cls.model_validate({
112
+ "_t": obj.get("_t") if obj.get("_t") is not None else 'AbTestSelection',
113
+ "userSegment": obj.get("userSegment"),
114
+ "a": [AbTestSelectionAInner.from_dict(_item) for _item in obj["a"]] if obj.get("a") is not None else None,
115
+ "b": [AbTestSelectionAInner.from_dict(_item) for _item in obj["b"]] if obj.get("b") is not None else None
116
+ })
117
+ return _obj
118
+
119
+ from rapidata.api_client.models.ab_test_selection_a_inner import AbTestSelectionAInner
120
+ # TODO: Rewrite to not use raise_errors
121
+ AbTestSelection.model_rebuild(raise_errors=False)
122
+