rapidata 1.2.2__py3-none-any.whl → 1.2.3__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.
@@ -99,6 +99,7 @@ from rapidata.api_client.models.count_metadata import CountMetadata
99
99
  from rapidata.api_client.models.count_metadata_model import CountMetadataModel
100
100
  from rapidata.api_client.models.country_user_filter_model import CountryUserFilterModel
101
101
  from rapidata.api_client.models.create_client_model import CreateClientModel
102
+ from rapidata.api_client.models.create_client_result import CreateClientResult
102
103
  from rapidata.api_client.models.create_complex_order_model import CreateComplexOrderModel
103
104
  from rapidata.api_client.models.create_complex_order_model_pipeline import CreateComplexOrderModelPipeline
104
105
  from rapidata.api_client.models.create_complex_order_result import CreateComplexOrderResult
@@ -106,6 +107,7 @@ from rapidata.api_client.models.create_dataset_artifact_model import CreateDatas
106
107
  from rapidata.api_client.models.create_dataset_artifact_model_dataset import CreateDatasetArtifactModelDataset
107
108
  from rapidata.api_client.models.create_demographic_rapid_model import CreateDemographicRapidModel
108
109
  from rapidata.api_client.models.create_empty_validation_set_result import CreateEmptyValidationSetResult
110
+ from rapidata.api_client.models.create_legacy_client_model import CreateLegacyClientModel
109
111
  from rapidata.api_client.models.create_order_model import CreateOrderModel
110
112
  from rapidata.api_client.models.create_order_model_referee import CreateOrderModelReferee
111
113
  from rapidata.api_client.models.create_order_model_user_filters_inner import CreateOrderModelUserFiltersInner
@@ -131,6 +133,8 @@ from rapidata.api_client.models.demographic_selection import DemographicSelectio
131
133
  from rapidata.api_client.models.early_stopping_referee_model import EarlyStoppingRefereeModel
132
134
  from rapidata.api_client.models.empty_validation_truth import EmptyValidationTruth
133
135
  from rapidata.api_client.models.error_type import ErrorType
136
+ from rapidata.api_client.models.evaluation_workflow_config import EvaluationWorkflowConfig
137
+ from rapidata.api_client.models.evaluation_workflow_model import EvaluationWorkflowModel
134
138
  from rapidata.api_client.models.feature_flag import FeatureFlag
135
139
  from rapidata.api_client.models.feature_flag_model import FeatureFlagModel
136
140
  from rapidata.api_client.models.feedback_model import FeedbackModel
@@ -20,6 +20,8 @@ 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.create_client_model import CreateClientModel
23
+ from rapidata.api_client.models.create_client_result import CreateClientResult
24
+ from rapidata.api_client.models.create_legacy_client_model import CreateLegacyClientModel
23
25
  from rapidata.api_client.models.issue_auth_token_result import IssueAuthTokenResult
24
26
  from rapidata.api_client.models.legacy_issue_client_auth_token_result import LegacyIssueClientAuthTokenResult
25
27
  from rapidata.api_client.models.legacy_request_password_reset_command import LegacyRequestPasswordResetCommand
@@ -333,10 +335,9 @@ class IdentityApi:
333
335
  _content_type: Optional[StrictStr] = None,
334
336
  _headers: Optional[Dict[StrictStr, Any]] = None,
335
337
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
336
- ) -> None:
337
- """Creates a new client for a customer.
338
+ ) -> CreateClientResult:
339
+ """Creates a new client for the current customer.
338
340
 
339
- A client represents an application or project that a customer might use to access the API. The clients are used for machine-to-machine communication.
340
341
 
341
342
  :param create_client_model: The model for creating a new client.
342
343
  :type create_client_model: CreateClientModel
@@ -371,7 +372,7 @@ class IdentityApi:
371
372
  )
372
373
 
373
374
  _response_types_map: Dict[str, Optional[str]] = {
374
- '200': None,
375
+ '200': "CreateClientResult",
375
376
  }
376
377
  response_data = self.api_client.call_api(
377
378
  *_param,
@@ -400,10 +401,9 @@ class IdentityApi:
400
401
  _content_type: Optional[StrictStr] = None,
401
402
  _headers: Optional[Dict[StrictStr, Any]] = None,
402
403
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
403
- ) -> ApiResponse[None]:
404
- """Creates a new client for a customer.
404
+ ) -> ApiResponse[CreateClientResult]:
405
+ """Creates a new client for the current customer.
405
406
 
406
- A client represents an application or project that a customer might use to access the API. The clients are used for machine-to-machine communication.
407
407
 
408
408
  :param create_client_model: The model for creating a new client.
409
409
  :type create_client_model: CreateClientModel
@@ -438,7 +438,7 @@ class IdentityApi:
438
438
  )
439
439
 
440
440
  _response_types_map: Dict[str, Optional[str]] = {
441
- '200': None,
441
+ '200': "CreateClientResult",
442
442
  }
443
443
  response_data = self.api_client.call_api(
444
444
  *_param,
@@ -468,9 +468,8 @@ class IdentityApi:
468
468
  _headers: Optional[Dict[StrictStr, Any]] = None,
469
469
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
470
470
  ) -> RESTResponseType:
471
- """Creates a new client for a customer.
471
+ """Creates a new client for the current customer.
472
472
 
473
- A client represents an application or project that a customer might use to access the API. The clients are used for machine-to-machine communication.
474
473
 
475
474
  :param create_client_model: The model for creating a new client.
476
475
  :type create_client_model: CreateClientModel
@@ -505,7 +504,7 @@ class IdentityApi:
505
504
  )
506
505
 
507
506
  _response_types_map: Dict[str, Optional[str]] = {
508
- '200': None,
507
+ '200': "CreateClientResult",
509
508
  }
510
509
  response_data = self.api_client.call_api(
511
510
  *_param,
@@ -546,6 +545,15 @@ class IdentityApi:
546
545
  _body_params = create_client_model
547
546
 
548
547
 
548
+ # set the HTTP header `Accept`
549
+ if 'Accept' not in _header_params:
550
+ _header_params['Accept'] = self.api_client.select_header_accept(
551
+ [
552
+ 'text/plain',
553
+ 'application/json',
554
+ 'text/json'
555
+ ]
556
+ )
549
557
 
550
558
  # set the HTTP header `Content-Type`
551
559
  if _content_type:
@@ -587,6 +595,276 @@ class IdentityApi:
587
595
 
588
596
 
589
597
 
598
+ @validate_call
599
+ def identity_create_legacy_client_post(
600
+ self,
601
+ create_legacy_client_model: Annotated[Optional[CreateLegacyClientModel], Field(description="The model for creating a new client.")] = None,
602
+ _request_timeout: Union[
603
+ None,
604
+ Annotated[StrictFloat, Field(gt=0)],
605
+ Tuple[
606
+ Annotated[StrictFloat, Field(gt=0)],
607
+ Annotated[StrictFloat, Field(gt=0)]
608
+ ]
609
+ ] = None,
610
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
611
+ _content_type: Optional[StrictStr] = None,
612
+ _headers: Optional[Dict[StrictStr, Any]] = None,
613
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
614
+ ) -> None:
615
+ """Creates a new client for a customer.
616
+
617
+ A client represents an application or project that a customer might use to access the API. The clients are used for machine-to-machine communication.
618
+
619
+ :param create_legacy_client_model: The model for creating a new client.
620
+ :type create_legacy_client_model: CreateLegacyClientModel
621
+ :param _request_timeout: timeout setting for this request. If one
622
+ number provided, it will be total request
623
+ timeout. It can also be a pair (tuple) of
624
+ (connection, read) timeouts.
625
+ :type _request_timeout: int, tuple(int, int), optional
626
+ :param _request_auth: set to override the auth_settings for an a single
627
+ request; this effectively ignores the
628
+ authentication in the spec for a single request.
629
+ :type _request_auth: dict, optional
630
+ :param _content_type: force content-type for the request.
631
+ :type _content_type: str, Optional
632
+ :param _headers: set to override the headers for a single
633
+ request; this effectively ignores the headers
634
+ in the spec for a single request.
635
+ :type _headers: dict, optional
636
+ :param _host_index: set to override the host_index for a single
637
+ request; this effectively ignores the host_index
638
+ in the spec for a single request.
639
+ :type _host_index: int, optional
640
+ :return: Returns the result object.
641
+ """ # noqa: E501
642
+
643
+ _param = self._identity_create_legacy_client_post_serialize(
644
+ create_legacy_client_model=create_legacy_client_model,
645
+ _request_auth=_request_auth,
646
+ _content_type=_content_type,
647
+ _headers=_headers,
648
+ _host_index=_host_index
649
+ )
650
+
651
+ _response_types_map: Dict[str, Optional[str]] = {
652
+ '200': None,
653
+ }
654
+ response_data = self.api_client.call_api(
655
+ *_param,
656
+ _request_timeout=_request_timeout
657
+ )
658
+ response_data.read()
659
+ return self.api_client.response_deserialize(
660
+ response_data=response_data,
661
+ response_types_map=_response_types_map,
662
+ ).data
663
+
664
+
665
+ @validate_call
666
+ def identity_create_legacy_client_post_with_http_info(
667
+ self,
668
+ create_legacy_client_model: Annotated[Optional[CreateLegacyClientModel], Field(description="The model for creating a new client.")] = None,
669
+ _request_timeout: Union[
670
+ None,
671
+ Annotated[StrictFloat, Field(gt=0)],
672
+ Tuple[
673
+ Annotated[StrictFloat, Field(gt=0)],
674
+ Annotated[StrictFloat, Field(gt=0)]
675
+ ]
676
+ ] = None,
677
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
678
+ _content_type: Optional[StrictStr] = None,
679
+ _headers: Optional[Dict[StrictStr, Any]] = None,
680
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
681
+ ) -> ApiResponse[None]:
682
+ """Creates a new client for a customer.
683
+
684
+ A client represents an application or project that a customer might use to access the API. The clients are used for machine-to-machine communication.
685
+
686
+ :param create_legacy_client_model: The model for creating a new client.
687
+ :type create_legacy_client_model: CreateLegacyClientModel
688
+ :param _request_timeout: timeout setting for this request. If one
689
+ number provided, it will be total request
690
+ timeout. It can also be a pair (tuple) of
691
+ (connection, read) timeouts.
692
+ :type _request_timeout: int, tuple(int, int), optional
693
+ :param _request_auth: set to override the auth_settings for an a single
694
+ request; this effectively ignores the
695
+ authentication in the spec for a single request.
696
+ :type _request_auth: dict, optional
697
+ :param _content_type: force content-type for the request.
698
+ :type _content_type: str, Optional
699
+ :param _headers: set to override the headers for a single
700
+ request; this effectively ignores the headers
701
+ in the spec for a single request.
702
+ :type _headers: dict, optional
703
+ :param _host_index: set to override the host_index for a single
704
+ request; this effectively ignores the host_index
705
+ in the spec for a single request.
706
+ :type _host_index: int, optional
707
+ :return: Returns the result object.
708
+ """ # noqa: E501
709
+
710
+ _param = self._identity_create_legacy_client_post_serialize(
711
+ create_legacy_client_model=create_legacy_client_model,
712
+ _request_auth=_request_auth,
713
+ _content_type=_content_type,
714
+ _headers=_headers,
715
+ _host_index=_host_index
716
+ )
717
+
718
+ _response_types_map: Dict[str, Optional[str]] = {
719
+ '200': None,
720
+ }
721
+ response_data = self.api_client.call_api(
722
+ *_param,
723
+ _request_timeout=_request_timeout
724
+ )
725
+ response_data.read()
726
+ return self.api_client.response_deserialize(
727
+ response_data=response_data,
728
+ response_types_map=_response_types_map,
729
+ )
730
+
731
+
732
+ @validate_call
733
+ def identity_create_legacy_client_post_without_preload_content(
734
+ self,
735
+ create_legacy_client_model: Annotated[Optional[CreateLegacyClientModel], Field(description="The model for creating a new client.")] = None,
736
+ _request_timeout: Union[
737
+ None,
738
+ Annotated[StrictFloat, Field(gt=0)],
739
+ Tuple[
740
+ Annotated[StrictFloat, Field(gt=0)],
741
+ Annotated[StrictFloat, Field(gt=0)]
742
+ ]
743
+ ] = None,
744
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
745
+ _content_type: Optional[StrictStr] = None,
746
+ _headers: Optional[Dict[StrictStr, Any]] = None,
747
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
748
+ ) -> RESTResponseType:
749
+ """Creates a new client for a customer.
750
+
751
+ A client represents an application or project that a customer might use to access the API. The clients are used for machine-to-machine communication.
752
+
753
+ :param create_legacy_client_model: The model for creating a new client.
754
+ :type create_legacy_client_model: CreateLegacyClientModel
755
+ :param _request_timeout: timeout setting for this request. If one
756
+ number provided, it will be total request
757
+ timeout. It can also be a pair (tuple) of
758
+ (connection, read) timeouts.
759
+ :type _request_timeout: int, tuple(int, int), optional
760
+ :param _request_auth: set to override the auth_settings for an a single
761
+ request; this effectively ignores the
762
+ authentication in the spec for a single request.
763
+ :type _request_auth: dict, optional
764
+ :param _content_type: force content-type for the request.
765
+ :type _content_type: str, Optional
766
+ :param _headers: set to override the headers for a single
767
+ request; this effectively ignores the headers
768
+ in the spec for a single request.
769
+ :type _headers: dict, optional
770
+ :param _host_index: set to override the host_index for a single
771
+ request; this effectively ignores the host_index
772
+ in the spec for a single request.
773
+ :type _host_index: int, optional
774
+ :return: Returns the result object.
775
+ """ # noqa: E501
776
+
777
+ _param = self._identity_create_legacy_client_post_serialize(
778
+ create_legacy_client_model=create_legacy_client_model,
779
+ _request_auth=_request_auth,
780
+ _content_type=_content_type,
781
+ _headers=_headers,
782
+ _host_index=_host_index
783
+ )
784
+
785
+ _response_types_map: Dict[str, Optional[str]] = {
786
+ '200': None,
787
+ }
788
+ response_data = self.api_client.call_api(
789
+ *_param,
790
+ _request_timeout=_request_timeout
791
+ )
792
+ return response_data.response
793
+
794
+
795
+ def _identity_create_legacy_client_post_serialize(
796
+ self,
797
+ create_legacy_client_model,
798
+ _request_auth,
799
+ _content_type,
800
+ _headers,
801
+ _host_index,
802
+ ) -> RequestSerialized:
803
+
804
+ _host = None
805
+
806
+ _collection_formats: Dict[str, str] = {
807
+ }
808
+
809
+ _path_params: Dict[str, str] = {}
810
+ _query_params: List[Tuple[str, str]] = []
811
+ _header_params: Dict[str, Optional[str]] = _headers or {}
812
+ _form_params: List[Tuple[str, str]] = []
813
+ _files: Dict[
814
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
815
+ ] = {}
816
+ _body_params: Optional[bytes] = None
817
+
818
+ # process the path parameters
819
+ # process the query parameters
820
+ # process the header parameters
821
+ # process the form parameters
822
+ # process the body parameter
823
+ if create_legacy_client_model is not None:
824
+ _body_params = create_legacy_client_model
825
+
826
+
827
+
828
+ # set the HTTP header `Content-Type`
829
+ if _content_type:
830
+ _header_params['Content-Type'] = _content_type
831
+ else:
832
+ _default_content_type = (
833
+ self.api_client.select_header_content_type(
834
+ [
835
+ 'application/json',
836
+ 'text/json',
837
+ 'application/*+json'
838
+ ]
839
+ )
840
+ )
841
+ if _default_content_type is not None:
842
+ _header_params['Content-Type'] = _default_content_type
843
+
844
+ # authentication setting
845
+ _auth_settings: List[str] = [
846
+ 'bearer',
847
+ 'oauth2'
848
+ ]
849
+
850
+ return self.api_client.param_serialize(
851
+ method='POST',
852
+ resource_path='/Identity/CreateLegacyClient',
853
+ path_params=_path_params,
854
+ query_params=_query_params,
855
+ header_params=_header_params,
856
+ body=_body_params,
857
+ post_params=_form_params,
858
+ files=_files,
859
+ auth_settings=_auth_settings,
860
+ collection_formats=_collection_formats,
861
+ _host=_host,
862
+ _request_auth=_request_auth
863
+ )
864
+
865
+
866
+
867
+
590
868
  @validate_call
591
869
  def identity_external_login_callback_get(
592
870
  self,
@@ -68,6 +68,7 @@ from rapidata.api_client.models.count_metadata import CountMetadata
68
68
  from rapidata.api_client.models.count_metadata_model import CountMetadataModel
69
69
  from rapidata.api_client.models.country_user_filter_model import CountryUserFilterModel
70
70
  from rapidata.api_client.models.create_client_model import CreateClientModel
71
+ from rapidata.api_client.models.create_client_result import CreateClientResult
71
72
  from rapidata.api_client.models.create_complex_order_model import CreateComplexOrderModel
72
73
  from rapidata.api_client.models.create_complex_order_model_pipeline import CreateComplexOrderModelPipeline
73
74
  from rapidata.api_client.models.create_complex_order_result import CreateComplexOrderResult
@@ -75,6 +76,7 @@ from rapidata.api_client.models.create_dataset_artifact_model import CreateDatas
75
76
  from rapidata.api_client.models.create_dataset_artifact_model_dataset import CreateDatasetArtifactModelDataset
76
77
  from rapidata.api_client.models.create_demographic_rapid_model import CreateDemographicRapidModel
77
78
  from rapidata.api_client.models.create_empty_validation_set_result import CreateEmptyValidationSetResult
79
+ from rapidata.api_client.models.create_legacy_client_model import CreateLegacyClientModel
78
80
  from rapidata.api_client.models.create_order_model import CreateOrderModel
79
81
  from rapidata.api_client.models.create_order_model_referee import CreateOrderModelReferee
80
82
  from rapidata.api_client.models.create_order_model_user_filters_inner import CreateOrderModelUserFiltersInner
@@ -100,6 +102,8 @@ from rapidata.api_client.models.demographic_selection import DemographicSelectio
100
102
  from rapidata.api_client.models.early_stopping_referee_model import EarlyStoppingRefereeModel
101
103
  from rapidata.api_client.models.empty_validation_truth import EmptyValidationTruth
102
104
  from rapidata.api_client.models.error_type import ErrorType
105
+ from rapidata.api_client.models.evaluation_workflow_config import EvaluationWorkflowConfig
106
+ from rapidata.api_client.models.evaluation_workflow_model import EvaluationWorkflowModel
103
107
  from rapidata.api_client.models.feature_flag import FeatureFlag
104
108
  from rapidata.api_client.models.feature_flag_model import FeatureFlagModel
105
109
  from rapidata.api_client.models.feedback_model import FeedbackModel
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
- from typing import Any, ClassVar, Dict, List
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
@@ -26,9 +26,8 @@ class CreateClientModel(BaseModel):
26
26
  """
27
27
  The model for creating a new client.
28
28
  """ # noqa: E501
29
- name: StrictStr = Field(description="A human-readable name for the client used for easy identification.")
30
- customer_id: StrictStr = Field(description="The id of the customer that owns the client.", alias="customerId")
31
- __properties: ClassVar[List[str]] = ["name", "customerId"]
29
+ display_name: Optional[StrictStr] = Field(default=None, description="An optional display name for the client.", alias="displayName")
30
+ __properties: ClassVar[List[str]] = ["displayName"]
32
31
 
33
32
  model_config = ConfigDict(
34
33
  populate_by_name=True,
@@ -69,6 +68,11 @@ class CreateClientModel(BaseModel):
69
68
  exclude=excluded_fields,
70
69
  exclude_none=True,
71
70
  )
71
+ # set to None if display_name (nullable) is None
72
+ # and model_fields_set contains the field
73
+ if self.display_name is None and "display_name" in self.model_fields_set:
74
+ _dict['displayName'] = None
75
+
72
76
  return _dict
73
77
 
74
78
  @classmethod
@@ -81,8 +85,7 @@ class CreateClientModel(BaseModel):
81
85
  return cls.model_validate(obj)
82
86
 
83
87
  _obj = cls.model_validate({
84
- "name": obj.get("name"),
85
- "customerId": obj.get("customerId")
88
+ "displayName": obj.get("displayName")
86
89
  })
87
90
  return _obj
88
91
 
@@ -0,0 +1,89 @@
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
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class CreateClientResult(BaseModel):
26
+ """
27
+ CreateClientResult
28
+ """ # noqa: E501
29
+ client_id: StrictStr = Field(alias="clientId")
30
+ client_secret: StrictStr = Field(alias="clientSecret")
31
+ __properties: ClassVar[List[str]] = ["clientId", "clientSecret"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of CreateClientResult from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of CreateClientResult from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "clientId": obj.get("clientId"),
85
+ "clientSecret": obj.get("clientSecret")
86
+ })
87
+ return _obj
88
+
89
+
@@ -26,7 +26,7 @@ class CreateComplexOrderResult(BaseModel):
26
26
  """
27
27
  CreateComplexOrderResult
28
28
  """ # noqa: E501
29
- dataset_id: StrictStr = Field(alias="datasetId")
29
+ dataset_id: Optional[StrictStr] = Field(default=None, alias="datasetId")
30
30
  order_id: StrictStr = Field(alias="orderId")
31
31
  campaign_id: Optional[StrictStr] = Field(default=None, alias="campaignId")
32
32
  __properties: ClassVar[List[str]] = ["datasetId", "orderId", "campaignId"]
@@ -70,6 +70,11 @@ class CreateComplexOrderResult(BaseModel):
70
70
  exclude=excluded_fields,
71
71
  exclude_none=True,
72
72
  )
73
+ # set to None if dataset_id (nullable) is None
74
+ # and model_fields_set contains the field
75
+ if self.dataset_id is None and "dataset_id" in self.model_fields_set:
76
+ _dict['datasetId'] = None
77
+
73
78
  # set to None if campaign_id (nullable) is None
74
79
  # and model_fields_set contains the field
75
80
  if self.campaign_id is None and "campaign_id" in self.model_fields_set:
@@ -0,0 +1,89 @@
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
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class CreateLegacyClientModel(BaseModel):
26
+ """
27
+ The model for creating a new client.
28
+ """ # noqa: E501
29
+ name: StrictStr = Field(description="A human-readable name for the client used for easy identification.")
30
+ customer_id: StrictStr = Field(description="The id of the customer that owns the client.", alias="customerId")
31
+ __properties: ClassVar[List[str]] = ["name", "customerId"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of CreateLegacyClientModel from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of CreateLegacyClientModel from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "name": obj.get("name"),
85
+ "customerId": obj.get("customerId")
86
+ })
87
+ return _obj
88
+
89
+
@@ -18,23 +18,26 @@ import pprint
18
18
  from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
19
19
  from typing import Any, List, Optional
20
20
  from rapidata.api_client.models.compare_workflow_model import CompareWorkflowModel
21
+ from rapidata.api_client.models.evaluation_workflow_model import EvaluationWorkflowModel
21
22
  from rapidata.api_client.models.simple_workflow_model import SimpleWorkflowModel
22
23
  from pydantic import StrictStr, Field
23
24
  from typing import Union, List, Set, Optional, Dict
24
25
  from typing_extensions import Literal, Self
25
26
 
26
- CREATEORDERMODELWORKFLOW_ONE_OF_SCHEMAS = ["CompareWorkflowModel", "SimpleWorkflowModel"]
27
+ CREATEORDERMODELWORKFLOW_ONE_OF_SCHEMAS = ["CompareWorkflowModel", "EvaluationWorkflowModel", "SimpleWorkflowModel"]
27
28
 
28
29
  class CreateOrderModelWorkflow(BaseModel):
29
30
  """
30
31
  The workflow helps to determine the tasks that need to be completed by the users.
31
32
  """
33
+ # data type: EvaluationWorkflowModel
34
+ oneof_schema_1_validator: Optional[EvaluationWorkflowModel] = None
32
35
  # data type: SimpleWorkflowModel
33
- oneof_schema_1_validator: Optional[SimpleWorkflowModel] = None
36
+ oneof_schema_2_validator: Optional[SimpleWorkflowModel] = None
34
37
  # data type: CompareWorkflowModel
35
- oneof_schema_2_validator: Optional[CompareWorkflowModel] = None
36
- actual_instance: Optional[Union[CompareWorkflowModel, SimpleWorkflowModel]] = None
37
- one_of_schemas: Set[str] = { "CompareWorkflowModel", "SimpleWorkflowModel" }
38
+ oneof_schema_3_validator: Optional[CompareWorkflowModel] = None
39
+ actual_instance: Optional[Union[CompareWorkflowModel, EvaluationWorkflowModel, SimpleWorkflowModel]] = None
40
+ one_of_schemas: Set[str] = { "CompareWorkflowModel", "EvaluationWorkflowModel", "SimpleWorkflowModel" }
38
41
 
39
42
  model_config = ConfigDict(
40
43
  validate_assignment=True,
@@ -60,6 +63,11 @@ class CreateOrderModelWorkflow(BaseModel):
60
63
  instance = CreateOrderModelWorkflow.model_construct()
61
64
  error_messages = []
62
65
  match = 0
66
+ # validate data type: EvaluationWorkflowModel
67
+ if not isinstance(v, EvaluationWorkflowModel):
68
+ error_messages.append(f"Error! Input type `{type(v)}` is not `EvaluationWorkflowModel`")
69
+ else:
70
+ match += 1
63
71
  # validate data type: SimpleWorkflowModel
64
72
  if not isinstance(v, SimpleWorkflowModel):
65
73
  error_messages.append(f"Error! Input type `{type(v)}` is not `SimpleWorkflowModel`")
@@ -72,10 +80,10 @@ class CreateOrderModelWorkflow(BaseModel):
72
80
  match += 1
73
81
  if match > 1:
74
82
  # more than 1 match
75
- raise ValueError("Multiple matches found when setting `actual_instance` in CreateOrderModelWorkflow with oneOf schemas: CompareWorkflowModel, SimpleWorkflowModel. Details: " + ", ".join(error_messages))
83
+ raise ValueError("Multiple matches found when setting `actual_instance` in CreateOrderModelWorkflow with oneOf schemas: CompareWorkflowModel, EvaluationWorkflowModel, SimpleWorkflowModel. Details: " + ", ".join(error_messages))
76
84
  elif match == 0:
77
85
  # no match
78
- raise ValueError("No match found when setting `actual_instance` in CreateOrderModelWorkflow with oneOf schemas: CompareWorkflowModel, SimpleWorkflowModel. Details: " + ", ".join(error_messages))
86
+ raise ValueError("No match found when setting `actual_instance` in CreateOrderModelWorkflow with oneOf schemas: CompareWorkflowModel, EvaluationWorkflowModel, SimpleWorkflowModel. Details: " + ", ".join(error_messages))
79
87
  else:
80
88
  return v
81
89
 
@@ -90,6 +98,12 @@ class CreateOrderModelWorkflow(BaseModel):
90
98
  error_messages = []
91
99
  match = 0
92
100
 
101
+ # deserialize data into EvaluationWorkflowModel
102
+ try:
103
+ instance.actual_instance = EvaluationWorkflowModel.from_json(json_str)
104
+ match += 1
105
+ except (ValidationError, ValueError) as e:
106
+ error_messages.append(str(e))
93
107
  # deserialize data into SimpleWorkflowModel
94
108
  try:
95
109
  instance.actual_instance = SimpleWorkflowModel.from_json(json_str)
@@ -105,10 +119,10 @@ class CreateOrderModelWorkflow(BaseModel):
105
119
 
106
120
  if match > 1:
107
121
  # more than 1 match
108
- raise ValueError("Multiple matches found when deserializing the JSON string into CreateOrderModelWorkflow with oneOf schemas: CompareWorkflowModel, SimpleWorkflowModel. Details: " + ", ".join(error_messages))
122
+ raise ValueError("Multiple matches found when deserializing the JSON string into CreateOrderModelWorkflow with oneOf schemas: CompareWorkflowModel, EvaluationWorkflowModel, SimpleWorkflowModel. Details: " + ", ".join(error_messages))
109
123
  elif match == 0:
110
124
  # no match
111
- raise ValueError("No match found when deserializing the JSON string into CreateOrderModelWorkflow with oneOf schemas: CompareWorkflowModel, SimpleWorkflowModel. Details: " + ", ".join(error_messages))
125
+ raise ValueError("No match found when deserializing the JSON string into CreateOrderModelWorkflow with oneOf schemas: CompareWorkflowModel, EvaluationWorkflowModel, SimpleWorkflowModel. Details: " + ", ".join(error_messages))
112
126
  else:
113
127
  return instance
114
128
 
@@ -122,7 +136,7 @@ class CreateOrderModelWorkflow(BaseModel):
122
136
  else:
123
137
  return json.dumps(self.actual_instance)
124
138
 
125
- def to_dict(self) -> Optional[Union[Dict[str, Any], CompareWorkflowModel, SimpleWorkflowModel]]:
139
+ def to_dict(self) -> Optional[Union[Dict[str, Any], CompareWorkflowModel, EvaluationWorkflowModel, SimpleWorkflowModel]]:
126
140
  """Returns the dict representation of the actual instance"""
127
141
  if self.actual_instance is None:
128
142
  return None
@@ -0,0 +1,102 @@
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 rapidata.api_client.models.compare_workflow_model1_referee import CompareWorkflowModel1Referee
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class EvaluationWorkflowConfig(BaseModel):
27
+ """
28
+ EvaluationWorkflowConfig
29
+ """ # noqa: E501
30
+ t: StrictStr = Field(description="Discriminator value for EvaluationWorkflowConfig", alias="_t")
31
+ validation_set_id: StrictStr = Field(alias="validationSetId")
32
+ referee: CompareWorkflowModel1Referee
33
+ __properties: ClassVar[List[str]] = ["_t", "validationSetId", "referee"]
34
+
35
+ @field_validator('t')
36
+ def t_validate_enum(cls, value):
37
+ """Validates the enum"""
38
+ if value not in set(['EvaluationWorkflowConfig']):
39
+ raise ValueError("must be one of enum values ('EvaluationWorkflowConfig')")
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 EvaluationWorkflowConfig 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 referee
82
+ if self.referee:
83
+ _dict['referee'] = self.referee.to_dict()
84
+ return _dict
85
+
86
+ @classmethod
87
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
88
+ """Create an instance of EvaluationWorkflowConfig from a dict"""
89
+ if obj is None:
90
+ return None
91
+
92
+ if not isinstance(obj, dict):
93
+ return cls.model_validate(obj)
94
+
95
+ _obj = cls.model_validate({
96
+ "_t": obj.get("_t") if obj.get("_t") is not None else 'EvaluationWorkflowConfig',
97
+ "validationSetId": obj.get("validationSetId"),
98
+ "referee": CompareWorkflowModel1Referee.from_dict(obj["referee"]) if obj.get("referee") is not None else None
99
+ })
100
+ return _obj
101
+
102
+
@@ -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 EvaluationWorkflowModel(BaseModel):
26
+ """
27
+ If the EvaluationWorkflow is chosen a validation set will be used as a source for all tasks. It functions similarly to the SimpleWorkflow as there is a 1:1 mapping between validation rapids and tasks.
28
+ """ # noqa: E501
29
+ t: StrictStr = Field(description="Discriminator value for EvaluationWorkflow", alias="_t")
30
+ validation_set_id: StrictStr = Field(description="The Validation Set Id is used to as a source for the tasks that will be sent to the user.", alias="validationSetId")
31
+ __properties: ClassVar[List[str]] = ["_t", "validationSetId"]
32
+
33
+ @field_validator('t')
34
+ def t_validate_enum(cls, value):
35
+ """Validates the enum"""
36
+ if value not in set(['EvaluationWorkflow']):
37
+ raise ValueError("must be one of enum values ('EvaluationWorkflow')")
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 EvaluationWorkflowModel 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 EvaluationWorkflowModel 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 'EvaluationWorkflow',
92
+ "validationSetId": obj.get("validationSetId")
93
+ })
94
+ return _obj
95
+
96
+
@@ -18,12 +18,13 @@ import pprint
18
18
  from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
19
19
  from typing import Any, List, Optional
20
20
  from rapidata.api_client.models.compare_workflow_config import CompareWorkflowConfig
21
+ from rapidata.api_client.models.evaluation_workflow_config import EvaluationWorkflowConfig
21
22
  from rapidata.api_client.models.simple_workflow_config import SimpleWorkflowConfig
22
23
  from pydantic import StrictStr, Field
23
24
  from typing import Union, List, Set, Optional, Dict
24
25
  from typing_extensions import Literal, Self
25
26
 
26
- WORKFLOWCONFIGARTIFACTMODELWORKFLOWCONFIG_ONE_OF_SCHEMAS = ["CompareWorkflowConfig", "SimpleWorkflowConfig"]
27
+ WORKFLOWCONFIGARTIFACTMODELWORKFLOWCONFIG_ONE_OF_SCHEMAS = ["CompareWorkflowConfig", "EvaluationWorkflowConfig", "SimpleWorkflowConfig"]
27
28
 
28
29
  class WorkflowConfigArtifactModelWorkflowConfig(BaseModel):
29
30
  """
@@ -31,10 +32,12 @@ class WorkflowConfigArtifactModelWorkflowConfig(BaseModel):
31
32
  """
32
33
  # data type: CompareWorkflowConfig
33
34
  oneof_schema_1_validator: Optional[CompareWorkflowConfig] = None
35
+ # data type: EvaluationWorkflowConfig
36
+ oneof_schema_2_validator: Optional[EvaluationWorkflowConfig] = None
34
37
  # data type: SimpleWorkflowConfig
35
- oneof_schema_2_validator: Optional[SimpleWorkflowConfig] = None
36
- actual_instance: Optional[Union[CompareWorkflowConfig, SimpleWorkflowConfig]] = None
37
- one_of_schemas: Set[str] = { "CompareWorkflowConfig", "SimpleWorkflowConfig" }
38
+ oneof_schema_3_validator: Optional[SimpleWorkflowConfig] = None
39
+ actual_instance: Optional[Union[CompareWorkflowConfig, EvaluationWorkflowConfig, SimpleWorkflowConfig]] = None
40
+ one_of_schemas: Set[str] = { "CompareWorkflowConfig", "EvaluationWorkflowConfig", "SimpleWorkflowConfig" }
38
41
 
39
42
  model_config = ConfigDict(
40
43
  validate_assignment=True,
@@ -65,6 +68,11 @@ class WorkflowConfigArtifactModelWorkflowConfig(BaseModel):
65
68
  error_messages.append(f"Error! Input type `{type(v)}` is not `CompareWorkflowConfig`")
66
69
  else:
67
70
  match += 1
71
+ # validate data type: EvaluationWorkflowConfig
72
+ if not isinstance(v, EvaluationWorkflowConfig):
73
+ error_messages.append(f"Error! Input type `{type(v)}` is not `EvaluationWorkflowConfig`")
74
+ else:
75
+ match += 1
68
76
  # validate data type: SimpleWorkflowConfig
69
77
  if not isinstance(v, SimpleWorkflowConfig):
70
78
  error_messages.append(f"Error! Input type `{type(v)}` is not `SimpleWorkflowConfig`")
@@ -72,10 +80,10 @@ class WorkflowConfigArtifactModelWorkflowConfig(BaseModel):
72
80
  match += 1
73
81
  if match > 1:
74
82
  # more than 1 match
75
- raise ValueError("Multiple matches found when setting `actual_instance` in WorkflowConfigArtifactModelWorkflowConfig with oneOf schemas: CompareWorkflowConfig, SimpleWorkflowConfig. Details: " + ", ".join(error_messages))
83
+ raise ValueError("Multiple matches found when setting `actual_instance` in WorkflowConfigArtifactModelWorkflowConfig with oneOf schemas: CompareWorkflowConfig, EvaluationWorkflowConfig, SimpleWorkflowConfig. Details: " + ", ".join(error_messages))
76
84
  elif match == 0:
77
85
  # no match
78
- raise ValueError("No match found when setting `actual_instance` in WorkflowConfigArtifactModelWorkflowConfig with oneOf schemas: CompareWorkflowConfig, SimpleWorkflowConfig. Details: " + ", ".join(error_messages))
86
+ raise ValueError("No match found when setting `actual_instance` in WorkflowConfigArtifactModelWorkflowConfig with oneOf schemas: CompareWorkflowConfig, EvaluationWorkflowConfig, SimpleWorkflowConfig. Details: " + ", ".join(error_messages))
79
87
  else:
80
88
  return v
81
89
 
@@ -96,6 +104,12 @@ class WorkflowConfigArtifactModelWorkflowConfig(BaseModel):
96
104
  match += 1
97
105
  except (ValidationError, ValueError) as e:
98
106
  error_messages.append(str(e))
107
+ # deserialize data into EvaluationWorkflowConfig
108
+ try:
109
+ instance.actual_instance = EvaluationWorkflowConfig.from_json(json_str)
110
+ match += 1
111
+ except (ValidationError, ValueError) as e:
112
+ error_messages.append(str(e))
99
113
  # deserialize data into SimpleWorkflowConfig
100
114
  try:
101
115
  instance.actual_instance = SimpleWorkflowConfig.from_json(json_str)
@@ -105,10 +119,10 @@ class WorkflowConfigArtifactModelWorkflowConfig(BaseModel):
105
119
 
106
120
  if match > 1:
107
121
  # more than 1 match
108
- raise ValueError("Multiple matches found when deserializing the JSON string into WorkflowConfigArtifactModelWorkflowConfig with oneOf schemas: CompareWorkflowConfig, SimpleWorkflowConfig. Details: " + ", ".join(error_messages))
122
+ raise ValueError("Multiple matches found when deserializing the JSON string into WorkflowConfigArtifactModelWorkflowConfig with oneOf schemas: CompareWorkflowConfig, EvaluationWorkflowConfig, SimpleWorkflowConfig. Details: " + ", ".join(error_messages))
109
123
  elif match == 0:
110
124
  # no match
111
- raise ValueError("No match found when deserializing the JSON string into WorkflowConfigArtifactModelWorkflowConfig with oneOf schemas: CompareWorkflowConfig, SimpleWorkflowConfig. Details: " + ", ".join(error_messages))
125
+ raise ValueError("No match found when deserializing the JSON string into WorkflowConfigArtifactModelWorkflowConfig with oneOf schemas: CompareWorkflowConfig, EvaluationWorkflowConfig, SimpleWorkflowConfig. Details: " + ", ".join(error_messages))
112
126
  else:
113
127
  return instance
114
128
 
@@ -122,7 +136,7 @@ class WorkflowConfigArtifactModelWorkflowConfig(BaseModel):
122
136
  else:
123
137
  return json.dumps(self.actual_instance)
124
138
 
125
- def to_dict(self) -> Optional[Union[Dict[str, Any], CompareWorkflowConfig, SimpleWorkflowConfig]]:
139
+ def to_dict(self) -> Optional[Union[Dict[str, Any], CompareWorkflowConfig, EvaluationWorkflowConfig, SimpleWorkflowConfig]]:
126
140
  """Returns the dict representation of the actual instance"""
127
141
  if self.actual_instance is None:
128
142
  return None
@@ -90,7 +90,8 @@ Class | Method | HTTP request | Description
90
90
  *DatasetApi* | [**dataset_upload_files_from_s3_post**](rapidata/api_client/docs/DatasetApi.md#dataset_upload_files_from_s3_post) | **POST** /Dataset/UploadFilesFromS3 | Uploads files from an S3 bucket to a dataset.
91
91
  *DatasetApi* | [**dataset_upload_images_to_dataset_post**](rapidata/api_client/docs/DatasetApi.md#dataset_upload_images_to_dataset_post) | **POST** /Dataset/UploadImagesToDataset | Uploads images to a dataset.
92
92
  *IdentityApi* | [**identity_confirm_get**](rapidata/api_client/docs/IdentityApi.md#identity_confirm_get) | **GET** /Identity/Confirm | Confirms a user's signup by a token.
93
- *IdentityApi* | [**identity_create_client_post**](rapidata/api_client/docs/IdentityApi.md#identity_create_client_post) | **POST** /Identity/CreateClient | Creates a new client for a customer.
93
+ *IdentityApi* | [**identity_create_client_post**](rapidata/api_client/docs/IdentityApi.md#identity_create_client_post) | **POST** /Identity/CreateClient | Creates a new client for the current customer.
94
+ *IdentityApi* | [**identity_create_legacy_client_post**](rapidata/api_client/docs/IdentityApi.md#identity_create_legacy_client_post) | **POST** /Identity/CreateLegacyClient | Creates a new client for a customer.
94
95
  *IdentityApi* | [**identity_external_login_callback_get**](rapidata/api_client/docs/IdentityApi.md#identity_external_login_callback_get) | **GET** /Identity/ExternalLoginCallback | Logs in a user using after receiving a grant from an external provider.
95
96
  *IdentityApi* | [**identity_external_login_post**](rapidata/api_client/docs/IdentityApi.md#identity_external_login_post) | **POST** /Identity/ExternalLogin | Logs in a user using an external provider.
96
97
  *IdentityApi* | [**identity_get_auth_token_get**](rapidata/api_client/docs/IdentityApi.md#identity_get_auth_token_get) | **GET** /Identity/GetAuthToken | Issues a new auth token using the refresh token.
@@ -205,6 +206,7 @@ Class | Method | HTTP request | Description
205
206
  - [CountMetadataModel](rapidata/api_client/docs/CountMetadataModel.md)
206
207
  - [CountryUserFilterModel](rapidata/api_client/docs/CountryUserFilterModel.md)
207
208
  - [CreateClientModel](rapidata/api_client/docs/CreateClientModel.md)
209
+ - [CreateClientResult](rapidata/api_client/docs/CreateClientResult.md)
208
210
  - [CreateComplexOrderModel](rapidata/api_client/docs/CreateComplexOrderModel.md)
209
211
  - [CreateComplexOrderModelPipeline](rapidata/api_client/docs/CreateComplexOrderModelPipeline.md)
210
212
  - [CreateComplexOrderResult](rapidata/api_client/docs/CreateComplexOrderResult.md)
@@ -212,6 +214,7 @@ Class | Method | HTTP request | Description
212
214
  - [CreateDatasetArtifactModelDataset](rapidata/api_client/docs/CreateDatasetArtifactModelDataset.md)
213
215
  - [CreateDemographicRapidModel](rapidata/api_client/docs/CreateDemographicRapidModel.md)
214
216
  - [CreateEmptyValidationSetResult](rapidata/api_client/docs/CreateEmptyValidationSetResult.md)
217
+ - [CreateLegacyClientModel](rapidata/api_client/docs/CreateLegacyClientModel.md)
215
218
  - [CreateOrderModel](rapidata/api_client/docs/CreateOrderModel.md)
216
219
  - [CreateOrderModelReferee](rapidata/api_client/docs/CreateOrderModelReferee.md)
217
220
  - [CreateOrderModelUserFiltersInner](rapidata/api_client/docs/CreateOrderModelUserFiltersInner.md)
@@ -237,6 +240,8 @@ Class | Method | HTTP request | Description
237
240
  - [EarlyStoppingRefereeModel](rapidata/api_client/docs/EarlyStoppingRefereeModel.md)
238
241
  - [EmptyValidationTruth](rapidata/api_client/docs/EmptyValidationTruth.md)
239
242
  - [ErrorType](rapidata/api_client/docs/ErrorType.md)
243
+ - [EvaluationWorkflowConfig](rapidata/api_client/docs/EvaluationWorkflowConfig.md)
244
+ - [EvaluationWorkflowModel](rapidata/api_client/docs/EvaluationWorkflowModel.md)
240
245
  - [FeatureFlag](rapidata/api_client/docs/FeatureFlag.md)
241
246
  - [FeatureFlagModel](rapidata/api_client/docs/FeatureFlagModel.md)
242
247
  - [FeedbackModel](rapidata/api_client/docs/FeedbackModel.md)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rapidata
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Rapidata package containing the Rapidata Python Client to interact with the Rapidata Web API in an easy way.
5
5
  License: Apache-2.0
6
6
  Author: Rapidata AG
@@ -1,12 +1,12 @@
1
1
  rapidata/__init__.py,sha256=vjmq4p45annpd9K5QbD_0RdcLIkDnNFkNb55ZVws56A,587
2
- rapidata/api_client/__init__.py,sha256=Gkazug47JGG3dMjts-m-1FUwRDhFtUId-LJvxzgYLUo,23847
2
+ rapidata/api_client/__init__.py,sha256=vuPr6fG-glEl1Sn4L9tJrx7_HpmqzpM9uryOS1I6lEI,24196
3
3
  rapidata/api_client/api/__init__.py,sha256=S0oVoAVMys10M-Z1SqirMdnHMYSHH3Lz6iph1CfILc0,1004
4
4
  rapidata/api_client/api/campaign_api.py,sha256=DxPFqt9F6c9OpXu_Uxhsrib2NVwnbcZFa3Vkrj7cIuA,40474
5
5
  rapidata/api_client/api/coco_api.py,sha256=4QYkW7c0SZvs-HOYmj585yL0KNr6Xc16ajS7b72yI6w,24972
6
6
  rapidata/api_client/api/compare_workflow_api.py,sha256=2P5Z1zvlEc6zmrmeSN67l1LONpchz6g0v0olfD8M_o8,12652
7
7
  rapidata/api_client/api/datapoint_api.py,sha256=CdLFVMrVylj2_D6Ll58_4ME604-7mgWCyXF5SpKmyfI,31668
8
8
  rapidata/api_client/api/dataset_api.py,sha256=9v2bBPYnRDKWvAvB7cJoew-O_bkmuocjpcg75hjkAkQ,92297
9
- rapidata/api_client/api/identity_api.py,sha256=U5kIrWBLVlQAfuDyy-hju-cXUDbB2GmQvEgY9D3wSjI,138958
9
+ rapidata/api_client/api/identity_api.py,sha256=cj_eFzaxjZz4CjPsRWmWmsi0jlfSLA8R2bbPH7AXqpA,150412
10
10
  rapidata/api_client/api/newsletter_api.py,sha256=9ZqGDB4_AEQZfRA61RRYkyQ06WjXH-aCwJUe60c2H4w,22575
11
11
  rapidata/api_client/api/order_api.py,sha256=3hrD7v9dEUmIN4TQEScaU8Te5zwemnasOn6onywBnGs,209361
12
12
  rapidata/api_client/api/pipeline_api.py,sha256=-2KuB0C1P7veSMmOqXKSJpLN_5xdM_5JbUTSluEUpPA,33246
@@ -20,7 +20,7 @@ rapidata/api_client/api_client.py,sha256=EDhxAOUc5JFWvFsF1zc726Q7GoEFkuB8uor5SlG
20
20
  rapidata/api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
21
21
  rapidata/api_client/configuration.py,sha256=g472vHVPLBotq8EkfSXP4sbp7xnn-3sb8O8BBlRWK1I,15931
22
22
  rapidata/api_client/exceptions.py,sha256=eLLd1fxM0Ygf3IIG6aNx9hdy79drst5Cem0UjI_NamM,5978
23
- rapidata/api_client/models/__init__.py,sha256=TN1N1otAArxVKiHVad9TmMr2lYyGxihP3I_qo5mz8Do,22302
23
+ rapidata/api_client/models/__init__.py,sha256=nd7tqO4xzkXa-m_IsMPnpJapmhFoV5vM-XByxQJXz6I,22651
24
24
  rapidata/api_client/models/add_campaign_artifact_result.py,sha256=4IvFVS-tLlL6eHsWp-IZ_ul5T30-h3YEwd2B5ioBbgY,2582
25
25
  rapidata/api_client/models/add_campaign_model.py,sha256=OJzkfvQlrp6j6ffwVShouUCW-MQZw60BGUJpqjbSGs8,6853
26
26
  rapidata/api_client/models/add_validation_rapid_model.py,sha256=-HRHMK-o6dgGjUqfsP_woZcFxfN7nuJ-L1CUaK9nihY,4918
@@ -78,10 +78,11 @@ rapidata/api_client/models/count_classification_metadata_filter_config.py,sha256
78
78
  rapidata/api_client/models/count_metadata.py,sha256=jZPGQjbV49uZo6DYrKGisLlSdQNZ6y_nfPMgsKbB1Bs,3165
79
79
  rapidata/api_client/models/count_metadata_model.py,sha256=nbQxNJQ3q0iwYstvb9NWPIwkRsq3J-nHiLts91WvXdw,3044
80
80
  rapidata/api_client/models/country_user_filter_model.py,sha256=8DjS-0yga8yRBMze691dU7IWOJYuw4iTo8ih3H132cs,2982
81
- rapidata/api_client/models/create_client_model.py,sha256=mhSgaiQjgzkyXqA8_SZdHFDjjNF8aRgTGbynx3-TXW0,2784
81
+ rapidata/api_client/models/create_client_model.py,sha256=n6dyAySiHxD6E12TW71qX9kqLBNrffUmTbf0LnXbb1M,2894
82
+ rapidata/api_client/models/create_client_result.py,sha256=OHBnTMyW5Nno39JHoJkcQbCGyol-Xe6v_NQYn2Kur7g,2672
82
83
  rapidata/api_client/models/create_complex_order_model.py,sha256=46n1IJRAIyCYCGXKvF5LjMVf4pXILC-kP86oU6YKo1w,3337
83
84
  rapidata/api_client/models/create_complex_order_model_pipeline.py,sha256=yF_-tOciVlAiDlWb1bptnoEFGlQis68WEI_EeviEFk8,4939
84
- rapidata/api_client/models/create_complex_order_result.py,sha256=keKXP6Gy4wco2bcRUX8xDCTtTk5me_iyuIow8fo3Okg,3054
85
+ rapidata/api_client/models/create_complex_order_result.py,sha256=UW57ewUKFPZcx8lRjaICdYZWVPS7Yzr6eqK3-i-tf4s,3300
85
86
  rapidata/api_client/models/create_dataset_artifact_model.py,sha256=oy_gbpPxEadNVyulUETQKHmK8VxGKwti5ro1lwAuNzc,3575
86
87
  rapidata/api_client/models/create_dataset_artifact_model_dataset.py,sha256=fP1RLW2f-TGTm7OwjQLfPQfzkfpKdMb3HcBx89CBU5s,4821
87
88
  rapidata/api_client/models/create_default_order_model.py,sha256=kkOxhHBY8DzAyV-PJs_2L-E8jandbpf4Tcgjbo7tDs4,4429
@@ -91,12 +92,13 @@ rapidata/api_client/models/create_empty_validation_set_result.py,sha256=Z8s0Kjz2
91
92
  rapidata/api_client/models/create_independent_workflow_model.py,sha256=w7lHQXKG1NpTevCmhIdWwLXcdVAdIX2pV82GgInWHqU,3272
92
93
  rapidata/api_client/models/create_independent_workflow_model_workflow_config.py,sha256=GVVxs9VAmM2hTXWWoqKNXD9E7qRk3CO88YRm1AHxJCI,5845
93
94
  rapidata/api_client/models/create_independent_workflow_result.py,sha256=JOhS75mAH-VvarvDDFsycahPlIezVKT1upuqIo93hC0,2719
95
+ rapidata/api_client/models/create_legacy_client_model.py,sha256=8LcKnjv3Lq6w28ku6NG6nG9qfxWQnfPow53maGlwNdE,2802
94
96
  rapidata/api_client/models/create_legacy_order_result.py,sha256=BR1XqPKq9QkDe0UytTW6dpihAeNyfCc4C1m0XfY53hQ,2672
95
97
  rapidata/api_client/models/create_order_model.py,sha256=yILLaONWi3DHDGHgbz2M3MkGN7R1yIKF35XOsjInuaQ,8904
96
98
  rapidata/api_client/models/create_order_model_referee.py,sha256=dxQ9SDiBjFIKYjctVNeiuGvjZwzIa0Q8JpW7iRei00I,5748
97
99
  rapidata/api_client/models/create_order_model_selections_inner.py,sha256=9p9BJKHN3WhRiu-FwWf421COAxeGmm1KkkyDT7UW5uc,8354
98
100
  rapidata/api_client/models/create_order_model_user_filters_inner.py,sha256=2PAJkzMgWavHvaiR5vb1Sk6uPQZkDltiMjeoQAdsU8c,9412
99
- rapidata/api_client/models/create_order_model_workflow.py,sha256=3df3woFT6gFmgy4REZdigXPiOAzv1zL4oALitsyBb_Q,5718
101
+ rapidata/api_client/models/create_order_model_workflow.py,sha256=cy7bD2kWvLkCgFdrViAG63xtYDIdVOn0dD74GRxni_A,6638
100
102
  rapidata/api_client/models/create_order_result.py,sha256=JfqjZHcmZCNtAznfXs_iZwkBwxCNRY1mHp9Zx3kSMdo,3026
101
103
  rapidata/api_client/models/create_simple_pipeline_model.py,sha256=loLhevw-sZap22HDFGDF1aphPBznt1M-wBY31haihNY,4729
102
104
  rapidata/api_client/models/create_simple_pipeline_model_artifacts_inner.py,sha256=EvOz0EpU3RIfZ1rw6EGOkGiFzGi1Zm0YmeDKNQ7WWS8,5027
@@ -119,6 +121,8 @@ rapidata/api_client/models/demographic_selection.py,sha256=-RIAemMmI0omKU6cVIY_a
119
121
  rapidata/api_client/models/early_stopping_referee_model.py,sha256=FhLrKAhvoI0OAMMEoJn0DjQo3WhTU_5fyzv8sd83kRk,3489
120
122
  rapidata/api_client/models/empty_validation_truth.py,sha256=dn4EDj_8DPBtupr2Hrmk-g9PuclrmJoe080rSBD_F6A,2911
121
123
  rapidata/api_client/models/error_type.py,sha256=AZKEf0UaGxP2PW5Gf9jYolx9GWBD9rWyDuzXcbgsm6E,842
124
+ rapidata/api_client/models/evaluation_workflow_config.py,sha256=mqIxbH-Fkv_ArOIfJ9gIXgg807F6TnrXS9X6ba5ejDY,3528
125
+ rapidata/api_client/models/evaluation_workflow_model.py,sha256=Gt_e85CDvxB6SDG0Ok7oCQ-AbIZLU2mGxFPIlRFk2Uw,3342
122
126
  rapidata/api_client/models/feature_flag.py,sha256=Ctw_S0nxSr0gz4n2GQW1QmcvfVNV8A-IldefaojbgAc,2531
123
127
  rapidata/api_client/models/feature_flag_model.py,sha256=Bzq7vkZRoYnft2_2-HKHLj4FVa6a5lbN3x34-m8vFsA,2803
124
128
  rapidata/api_client/models/feedback_model.py,sha256=BqJoYITA22lE1O2SWenv2Ndw1_JfqIfWMhDvB9gJ0YA,3304
@@ -297,13 +301,13 @@ rapidata/api_client/models/validation_set_paged_result.py,sha256=3ch0KcbcH7qn8iJ
297
301
  rapidata/api_client/models/workflow_aggregation_step_model.py,sha256=6LWLE1aY9P5u3YbbMZFcUDrREP8YiYypOw6Wrmxc0gs,4467
298
302
  rapidata/api_client/models/workflow_artifact_model.py,sha256=B9fjf2gS-exr0t4ZbIq5OvE_OCnVCuR3o8eqAjnfRC4,3126
299
303
  rapidata/api_client/models/workflow_config_artifact_model.py,sha256=bzPK2eNzizC5ZGw-8kW_8Gvym6jkSyu5gT5OimcakWU,3650
300
- rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py,sha256=25R2NN0MZjNE2wnumAf-G7kGb7YaEr6az6wUHR1Uidc,5831
304
+ rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py,sha256=FVsB4eqUdO5TbHn1u9NEtCt5r-suzGpNafQW43SMJ7k,6768
301
305
  rapidata/api_client/models/workflow_labeling_step_model.py,sha256=iXeIb78bdMhGFjnryqnUWneojxJi4xKbpiTLr2LrLhU,3173
302
306
  rapidata/api_client/models/workflow_split_model.py,sha256=zthOSaUl8dbLhLymLK_lrPTBpeV1a4cODLxnHmNCAZw,4474
303
307
  rapidata/api_client/models/workflow_split_model_filter_configs_inner.py,sha256=1Fx9uZtztiiAdMXkj7YeCqt7o6VkG9lKf7D7UP_h088,7447
304
308
  rapidata/api_client/models/workflow_state.py,sha256=5LAK1se76RCoozeVB6oxMPb8p_5bhLZJqn7q5fFQWis,850
305
309
  rapidata/api_client/rest.py,sha256=zmCIFQC2l1t-KZcq-TgEm3vco3y_LK6vRm3Q07K-xRI,9423
306
- rapidata/api_client_README.md,sha256=1RYEnSbkgwk2PaTgWDqkpId3LhEysIuXbfIuxrBaZHo,37287
310
+ rapidata/api_client_README.md,sha256=zUJfuL_1q_BgXQd1Q77VzrWoSpdvxU7wALSEZ9ODIAo,37829
307
311
  rapidata/rapidata_client/__init__.py,sha256=mX25RNyeNqboIzCMz_Lm3SnMTXM8LJ_jpXuIRraafww,803
308
312
  rapidata/rapidata_client/assets/__init__.py,sha256=T-XKvMSkmyI8iYLUYDdZ3LrrSInHsGMUY_Tz77hhnlE,240
309
313
  rapidata/rapidata_client/assets/base_asset.py,sha256=B2YWH1NgaeYUYHDW3OPpHM_bqawHbH4EjnRCE2BYwiM,298
@@ -365,7 +369,7 @@ rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5
365
369
  rapidata/service/openapi_service.py,sha256=KwFJmgnyfrzmSjs6wGh5J6ESMLvtKazGcYoewWeL8PU,2038
366
370
  rapidata/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
367
371
  rapidata/utils/image_utils.py,sha256=TldO3eJWG8IhfJjm5MfNGO0mEDm1mQTsRoA0HLU1Uxs,404
368
- rapidata-1.2.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
369
- rapidata-1.2.2.dist-info/METADATA,sha256=KyBHzy-EMvOva9QYLwKuBk6OLE-Z8JSGNMSeMyXDNLc,1012
370
- rapidata-1.2.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
371
- rapidata-1.2.2.dist-info/RECORD,,
372
+ rapidata-1.2.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
373
+ rapidata-1.2.3.dist-info/METADATA,sha256=nsayylvqwD1vgLqMk5oQM7IWUNaP9n-WvlSfc57L0I0,1012
374
+ rapidata-1.2.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
375
+ rapidata-1.2.3.dist-info/RECORD,,