rapidata 2.21.0__py3-none-any.whl → 2.21.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/api_client/__init__.py +2 -0
- rapidata/api_client/api/feedback_api.py +273 -3
- rapidata/api_client/api/rapid_api.py +0 -270
- rapidata/api_client/api/validation_set_api.py +513 -0
- rapidata/api_client/models/__init__.py +2 -0
- rapidata/api_client/models/add_campaign_model.py +6 -1
- rapidata/api_client/models/compare_result.py +10 -3
- rapidata/api_client/models/comparison_operator.py +41 -0
- rapidata/api_client/models/create_order_model.py +6 -1
- rapidata/api_client/models/create_order_model_user_filters_inner.py +23 -9
- rapidata/api_client/models/report_model.py +9 -4
- rapidata/api_client/models/response_count_user_filter_model.py +107 -0
- rapidata/api_client_README.md +5 -1
- rapidata/rapidata_client/__init__.py +1 -0
- rapidata/rapidata_client/api/__init__.py +0 -0
- rapidata/rapidata_client/api/rapidata_exception.py +105 -0
- rapidata/rapidata_client/filter/__init__.py +1 -0
- rapidata/rapidata_client/filter/response_count_filter.py +46 -0
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +3 -0
- rapidata/service/openapi_service.py +2 -2
- {rapidata-2.21.0.dist-info → rapidata-2.21.2.dist-info}/METADATA +1 -1
- {rapidata-2.21.0.dist-info → rapidata-2.21.2.dist-info}/RECORD +24 -19
- {rapidata-2.21.0.dist-info → rapidata-2.21.2.dist-info}/LICENSE +0 -0
- {rapidata-2.21.0.dist-info → rapidata-2.21.2.dist-info}/WHEEL +0 -0
|
@@ -2500,6 +2500,258 @@ class ValidationSetApi:
|
|
|
2500
2500
|
|
|
2501
2501
|
|
|
2502
2502
|
|
|
2503
|
+
@validate_call
|
|
2504
|
+
def validation_set_validation_set_id_delete(
|
|
2505
|
+
self,
|
|
2506
|
+
validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
|
|
2507
|
+
_request_timeout: Union[
|
|
2508
|
+
None,
|
|
2509
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2510
|
+
Tuple[
|
|
2511
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2512
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2513
|
+
]
|
|
2514
|
+
] = None,
|
|
2515
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2516
|
+
_content_type: Optional[StrictStr] = None,
|
|
2517
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2518
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2519
|
+
) -> None:
|
|
2520
|
+
"""Gets a validation set by the id.
|
|
2521
|
+
|
|
2522
|
+
|
|
2523
|
+
:param validation_set_id: The id of the validation set to get. (required)
|
|
2524
|
+
:type validation_set_id: str
|
|
2525
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2526
|
+
number provided, it will be total request
|
|
2527
|
+
timeout. It can also be a pair (tuple) of
|
|
2528
|
+
(connection, read) timeouts.
|
|
2529
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2530
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2531
|
+
request; this effectively ignores the
|
|
2532
|
+
authentication in the spec for a single request.
|
|
2533
|
+
:type _request_auth: dict, optional
|
|
2534
|
+
:param _content_type: force content-type for the request.
|
|
2535
|
+
:type _content_type: str, Optional
|
|
2536
|
+
:param _headers: set to override the headers for a single
|
|
2537
|
+
request; this effectively ignores the headers
|
|
2538
|
+
in the spec for a single request.
|
|
2539
|
+
:type _headers: dict, optional
|
|
2540
|
+
:param _host_index: set to override the host_index for a single
|
|
2541
|
+
request; this effectively ignores the host_index
|
|
2542
|
+
in the spec for a single request.
|
|
2543
|
+
:type _host_index: int, optional
|
|
2544
|
+
:return: Returns the result object.
|
|
2545
|
+
""" # noqa: E501
|
|
2546
|
+
|
|
2547
|
+
_param = self._validation_set_validation_set_id_delete_serialize(
|
|
2548
|
+
validation_set_id=validation_set_id,
|
|
2549
|
+
_request_auth=_request_auth,
|
|
2550
|
+
_content_type=_content_type,
|
|
2551
|
+
_headers=_headers,
|
|
2552
|
+
_host_index=_host_index
|
|
2553
|
+
)
|
|
2554
|
+
|
|
2555
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2556
|
+
'204': None,
|
|
2557
|
+
}
|
|
2558
|
+
response_data = self.api_client.call_api(
|
|
2559
|
+
*_param,
|
|
2560
|
+
_request_timeout=_request_timeout
|
|
2561
|
+
)
|
|
2562
|
+
response_data.read()
|
|
2563
|
+
return self.api_client.response_deserialize(
|
|
2564
|
+
response_data=response_data,
|
|
2565
|
+
response_types_map=_response_types_map,
|
|
2566
|
+
).data
|
|
2567
|
+
|
|
2568
|
+
|
|
2569
|
+
@validate_call
|
|
2570
|
+
def validation_set_validation_set_id_delete_with_http_info(
|
|
2571
|
+
self,
|
|
2572
|
+
validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
|
|
2573
|
+
_request_timeout: Union[
|
|
2574
|
+
None,
|
|
2575
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2576
|
+
Tuple[
|
|
2577
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2578
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2579
|
+
]
|
|
2580
|
+
] = None,
|
|
2581
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2582
|
+
_content_type: Optional[StrictStr] = None,
|
|
2583
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2584
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2585
|
+
) -> ApiResponse[None]:
|
|
2586
|
+
"""Gets a validation set by the id.
|
|
2587
|
+
|
|
2588
|
+
|
|
2589
|
+
:param validation_set_id: The id of the validation set to get. (required)
|
|
2590
|
+
:type validation_set_id: str
|
|
2591
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2592
|
+
number provided, it will be total request
|
|
2593
|
+
timeout. It can also be a pair (tuple) of
|
|
2594
|
+
(connection, read) timeouts.
|
|
2595
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2596
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2597
|
+
request; this effectively ignores the
|
|
2598
|
+
authentication in the spec for a single request.
|
|
2599
|
+
:type _request_auth: dict, optional
|
|
2600
|
+
:param _content_type: force content-type for the request.
|
|
2601
|
+
:type _content_type: str, Optional
|
|
2602
|
+
:param _headers: set to override the headers for a single
|
|
2603
|
+
request; this effectively ignores the headers
|
|
2604
|
+
in the spec for a single request.
|
|
2605
|
+
:type _headers: dict, optional
|
|
2606
|
+
:param _host_index: set to override the host_index for a single
|
|
2607
|
+
request; this effectively ignores the host_index
|
|
2608
|
+
in the spec for a single request.
|
|
2609
|
+
:type _host_index: int, optional
|
|
2610
|
+
:return: Returns the result object.
|
|
2611
|
+
""" # noqa: E501
|
|
2612
|
+
|
|
2613
|
+
_param = self._validation_set_validation_set_id_delete_serialize(
|
|
2614
|
+
validation_set_id=validation_set_id,
|
|
2615
|
+
_request_auth=_request_auth,
|
|
2616
|
+
_content_type=_content_type,
|
|
2617
|
+
_headers=_headers,
|
|
2618
|
+
_host_index=_host_index
|
|
2619
|
+
)
|
|
2620
|
+
|
|
2621
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2622
|
+
'204': None,
|
|
2623
|
+
}
|
|
2624
|
+
response_data = self.api_client.call_api(
|
|
2625
|
+
*_param,
|
|
2626
|
+
_request_timeout=_request_timeout
|
|
2627
|
+
)
|
|
2628
|
+
response_data.read()
|
|
2629
|
+
return self.api_client.response_deserialize(
|
|
2630
|
+
response_data=response_data,
|
|
2631
|
+
response_types_map=_response_types_map,
|
|
2632
|
+
)
|
|
2633
|
+
|
|
2634
|
+
|
|
2635
|
+
@validate_call
|
|
2636
|
+
def validation_set_validation_set_id_delete_without_preload_content(
|
|
2637
|
+
self,
|
|
2638
|
+
validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
|
|
2639
|
+
_request_timeout: Union[
|
|
2640
|
+
None,
|
|
2641
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2642
|
+
Tuple[
|
|
2643
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2644
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2645
|
+
]
|
|
2646
|
+
] = None,
|
|
2647
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2648
|
+
_content_type: Optional[StrictStr] = None,
|
|
2649
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2650
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2651
|
+
) -> RESTResponseType:
|
|
2652
|
+
"""Gets a validation set by the id.
|
|
2653
|
+
|
|
2654
|
+
|
|
2655
|
+
:param validation_set_id: The id of the validation set to get. (required)
|
|
2656
|
+
:type validation_set_id: str
|
|
2657
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2658
|
+
number provided, it will be total request
|
|
2659
|
+
timeout. It can also be a pair (tuple) of
|
|
2660
|
+
(connection, read) timeouts.
|
|
2661
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2662
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2663
|
+
request; this effectively ignores the
|
|
2664
|
+
authentication in the spec for a single request.
|
|
2665
|
+
:type _request_auth: dict, optional
|
|
2666
|
+
:param _content_type: force content-type for the request.
|
|
2667
|
+
:type _content_type: str, Optional
|
|
2668
|
+
:param _headers: set to override the headers for a single
|
|
2669
|
+
request; this effectively ignores the headers
|
|
2670
|
+
in the spec for a single request.
|
|
2671
|
+
:type _headers: dict, optional
|
|
2672
|
+
:param _host_index: set to override the host_index for a single
|
|
2673
|
+
request; this effectively ignores the host_index
|
|
2674
|
+
in the spec for a single request.
|
|
2675
|
+
:type _host_index: int, optional
|
|
2676
|
+
:return: Returns the result object.
|
|
2677
|
+
""" # noqa: E501
|
|
2678
|
+
|
|
2679
|
+
_param = self._validation_set_validation_set_id_delete_serialize(
|
|
2680
|
+
validation_set_id=validation_set_id,
|
|
2681
|
+
_request_auth=_request_auth,
|
|
2682
|
+
_content_type=_content_type,
|
|
2683
|
+
_headers=_headers,
|
|
2684
|
+
_host_index=_host_index
|
|
2685
|
+
)
|
|
2686
|
+
|
|
2687
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2688
|
+
'204': None,
|
|
2689
|
+
}
|
|
2690
|
+
response_data = self.api_client.call_api(
|
|
2691
|
+
*_param,
|
|
2692
|
+
_request_timeout=_request_timeout
|
|
2693
|
+
)
|
|
2694
|
+
return response_data.response
|
|
2695
|
+
|
|
2696
|
+
|
|
2697
|
+
def _validation_set_validation_set_id_delete_serialize(
|
|
2698
|
+
self,
|
|
2699
|
+
validation_set_id,
|
|
2700
|
+
_request_auth,
|
|
2701
|
+
_content_type,
|
|
2702
|
+
_headers,
|
|
2703
|
+
_host_index,
|
|
2704
|
+
) -> RequestSerialized:
|
|
2705
|
+
|
|
2706
|
+
_host = None
|
|
2707
|
+
|
|
2708
|
+
_collection_formats: Dict[str, str] = {
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
_path_params: Dict[str, str] = {}
|
|
2712
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2713
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2714
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2715
|
+
_files: Dict[
|
|
2716
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2717
|
+
] = {}
|
|
2718
|
+
_body_params: Optional[bytes] = None
|
|
2719
|
+
|
|
2720
|
+
# process the path parameters
|
|
2721
|
+
if validation_set_id is not None:
|
|
2722
|
+
_path_params['validationSetId'] = validation_set_id
|
|
2723
|
+
# process the query parameters
|
|
2724
|
+
# process the header parameters
|
|
2725
|
+
# process the form parameters
|
|
2726
|
+
# process the body parameter
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
|
|
2730
|
+
|
|
2731
|
+
# authentication setting
|
|
2732
|
+
_auth_settings: List[str] = [
|
|
2733
|
+
'bearer',
|
|
2734
|
+
'oauth2'
|
|
2735
|
+
]
|
|
2736
|
+
|
|
2737
|
+
return self.api_client.param_serialize(
|
|
2738
|
+
method='DELETE',
|
|
2739
|
+
resource_path='/validation-set/{validationSetId}',
|
|
2740
|
+
path_params=_path_params,
|
|
2741
|
+
query_params=_query_params,
|
|
2742
|
+
header_params=_header_params,
|
|
2743
|
+
body=_body_params,
|
|
2744
|
+
post_params=_form_params,
|
|
2745
|
+
files=_files,
|
|
2746
|
+
auth_settings=_auth_settings,
|
|
2747
|
+
collection_formats=_collection_formats,
|
|
2748
|
+
_host=_host,
|
|
2749
|
+
_request_auth=_request_auth
|
|
2750
|
+
)
|
|
2751
|
+
|
|
2752
|
+
|
|
2753
|
+
|
|
2754
|
+
|
|
2503
2755
|
@validate_call
|
|
2504
2756
|
def validation_set_validation_set_id_dimensions_put(
|
|
2505
2757
|
self,
|
|
@@ -2782,6 +3034,267 @@ class ValidationSetApi:
|
|
|
2782
3034
|
|
|
2783
3035
|
|
|
2784
3036
|
|
|
3037
|
+
@validate_call
|
|
3038
|
+
def validation_set_validation_set_id_export_get(
|
|
3039
|
+
self,
|
|
3040
|
+
validation_set_id: StrictStr,
|
|
3041
|
+
_request_timeout: Union[
|
|
3042
|
+
None,
|
|
3043
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3044
|
+
Tuple[
|
|
3045
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3046
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3047
|
+
]
|
|
3048
|
+
] = None,
|
|
3049
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3050
|
+
_content_type: Optional[StrictStr] = None,
|
|
3051
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3052
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3053
|
+
) -> bytearray:
|
|
3054
|
+
"""Exports all rapids of a validationset to a file.
|
|
3055
|
+
|
|
3056
|
+
|
|
3057
|
+
:param validation_set_id: (required)
|
|
3058
|
+
:type validation_set_id: str
|
|
3059
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3060
|
+
number provided, it will be total request
|
|
3061
|
+
timeout. It can also be a pair (tuple) of
|
|
3062
|
+
(connection, read) timeouts.
|
|
3063
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3064
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3065
|
+
request; this effectively ignores the
|
|
3066
|
+
authentication in the spec for a single request.
|
|
3067
|
+
:type _request_auth: dict, optional
|
|
3068
|
+
:param _content_type: force content-type for the request.
|
|
3069
|
+
:type _content_type: str, Optional
|
|
3070
|
+
:param _headers: set to override the headers for a single
|
|
3071
|
+
request; this effectively ignores the headers
|
|
3072
|
+
in the spec for a single request.
|
|
3073
|
+
:type _headers: dict, optional
|
|
3074
|
+
:param _host_index: set to override the host_index for a single
|
|
3075
|
+
request; this effectively ignores the host_index
|
|
3076
|
+
in the spec for a single request.
|
|
3077
|
+
:type _host_index: int, optional
|
|
3078
|
+
:return: Returns the result object.
|
|
3079
|
+
""" # noqa: E501
|
|
3080
|
+
|
|
3081
|
+
_param = self._validation_set_validation_set_id_export_get_serialize(
|
|
3082
|
+
validation_set_id=validation_set_id,
|
|
3083
|
+
_request_auth=_request_auth,
|
|
3084
|
+
_content_type=_content_type,
|
|
3085
|
+
_headers=_headers,
|
|
3086
|
+
_host_index=_host_index
|
|
3087
|
+
)
|
|
3088
|
+
|
|
3089
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3090
|
+
'200': "bytearray",
|
|
3091
|
+
}
|
|
3092
|
+
response_data = self.api_client.call_api(
|
|
3093
|
+
*_param,
|
|
3094
|
+
_request_timeout=_request_timeout
|
|
3095
|
+
)
|
|
3096
|
+
response_data.read()
|
|
3097
|
+
return self.api_client.response_deserialize(
|
|
3098
|
+
response_data=response_data,
|
|
3099
|
+
response_types_map=_response_types_map,
|
|
3100
|
+
).data
|
|
3101
|
+
|
|
3102
|
+
|
|
3103
|
+
@validate_call
|
|
3104
|
+
def validation_set_validation_set_id_export_get_with_http_info(
|
|
3105
|
+
self,
|
|
3106
|
+
validation_set_id: StrictStr,
|
|
3107
|
+
_request_timeout: Union[
|
|
3108
|
+
None,
|
|
3109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3110
|
+
Tuple[
|
|
3111
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3112
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3113
|
+
]
|
|
3114
|
+
] = None,
|
|
3115
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3116
|
+
_content_type: Optional[StrictStr] = None,
|
|
3117
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3118
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3119
|
+
) -> ApiResponse[bytearray]:
|
|
3120
|
+
"""Exports all rapids of a validationset to a file.
|
|
3121
|
+
|
|
3122
|
+
|
|
3123
|
+
:param validation_set_id: (required)
|
|
3124
|
+
:type validation_set_id: str
|
|
3125
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3126
|
+
number provided, it will be total request
|
|
3127
|
+
timeout. It can also be a pair (tuple) of
|
|
3128
|
+
(connection, read) timeouts.
|
|
3129
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3130
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3131
|
+
request; this effectively ignores the
|
|
3132
|
+
authentication in the spec for a single request.
|
|
3133
|
+
:type _request_auth: dict, optional
|
|
3134
|
+
:param _content_type: force content-type for the request.
|
|
3135
|
+
:type _content_type: str, Optional
|
|
3136
|
+
:param _headers: set to override the headers for a single
|
|
3137
|
+
request; this effectively ignores the headers
|
|
3138
|
+
in the spec for a single request.
|
|
3139
|
+
:type _headers: dict, optional
|
|
3140
|
+
:param _host_index: set to override the host_index for a single
|
|
3141
|
+
request; this effectively ignores the host_index
|
|
3142
|
+
in the spec for a single request.
|
|
3143
|
+
:type _host_index: int, optional
|
|
3144
|
+
:return: Returns the result object.
|
|
3145
|
+
""" # noqa: E501
|
|
3146
|
+
|
|
3147
|
+
_param = self._validation_set_validation_set_id_export_get_serialize(
|
|
3148
|
+
validation_set_id=validation_set_id,
|
|
3149
|
+
_request_auth=_request_auth,
|
|
3150
|
+
_content_type=_content_type,
|
|
3151
|
+
_headers=_headers,
|
|
3152
|
+
_host_index=_host_index
|
|
3153
|
+
)
|
|
3154
|
+
|
|
3155
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3156
|
+
'200': "bytearray",
|
|
3157
|
+
}
|
|
3158
|
+
response_data = self.api_client.call_api(
|
|
3159
|
+
*_param,
|
|
3160
|
+
_request_timeout=_request_timeout
|
|
3161
|
+
)
|
|
3162
|
+
response_data.read()
|
|
3163
|
+
return self.api_client.response_deserialize(
|
|
3164
|
+
response_data=response_data,
|
|
3165
|
+
response_types_map=_response_types_map,
|
|
3166
|
+
)
|
|
3167
|
+
|
|
3168
|
+
|
|
3169
|
+
@validate_call
|
|
3170
|
+
def validation_set_validation_set_id_export_get_without_preload_content(
|
|
3171
|
+
self,
|
|
3172
|
+
validation_set_id: StrictStr,
|
|
3173
|
+
_request_timeout: Union[
|
|
3174
|
+
None,
|
|
3175
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3176
|
+
Tuple[
|
|
3177
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3178
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3179
|
+
]
|
|
3180
|
+
] = None,
|
|
3181
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3182
|
+
_content_type: Optional[StrictStr] = None,
|
|
3183
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3184
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3185
|
+
) -> RESTResponseType:
|
|
3186
|
+
"""Exports all rapids of a validationset to a file.
|
|
3187
|
+
|
|
3188
|
+
|
|
3189
|
+
:param validation_set_id: (required)
|
|
3190
|
+
:type validation_set_id: str
|
|
3191
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3192
|
+
number provided, it will be total request
|
|
3193
|
+
timeout. It can also be a pair (tuple) of
|
|
3194
|
+
(connection, read) timeouts.
|
|
3195
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3196
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3197
|
+
request; this effectively ignores the
|
|
3198
|
+
authentication in the spec for a single request.
|
|
3199
|
+
:type _request_auth: dict, optional
|
|
3200
|
+
:param _content_type: force content-type for the request.
|
|
3201
|
+
:type _content_type: str, Optional
|
|
3202
|
+
:param _headers: set to override the headers for a single
|
|
3203
|
+
request; this effectively ignores the headers
|
|
3204
|
+
in the spec for a single request.
|
|
3205
|
+
:type _headers: dict, optional
|
|
3206
|
+
:param _host_index: set to override the host_index for a single
|
|
3207
|
+
request; this effectively ignores the host_index
|
|
3208
|
+
in the spec for a single request.
|
|
3209
|
+
:type _host_index: int, optional
|
|
3210
|
+
:return: Returns the result object.
|
|
3211
|
+
""" # noqa: E501
|
|
3212
|
+
|
|
3213
|
+
_param = self._validation_set_validation_set_id_export_get_serialize(
|
|
3214
|
+
validation_set_id=validation_set_id,
|
|
3215
|
+
_request_auth=_request_auth,
|
|
3216
|
+
_content_type=_content_type,
|
|
3217
|
+
_headers=_headers,
|
|
3218
|
+
_host_index=_host_index
|
|
3219
|
+
)
|
|
3220
|
+
|
|
3221
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3222
|
+
'200': "bytearray",
|
|
3223
|
+
}
|
|
3224
|
+
response_data = self.api_client.call_api(
|
|
3225
|
+
*_param,
|
|
3226
|
+
_request_timeout=_request_timeout
|
|
3227
|
+
)
|
|
3228
|
+
return response_data.response
|
|
3229
|
+
|
|
3230
|
+
|
|
3231
|
+
def _validation_set_validation_set_id_export_get_serialize(
|
|
3232
|
+
self,
|
|
3233
|
+
validation_set_id,
|
|
3234
|
+
_request_auth,
|
|
3235
|
+
_content_type,
|
|
3236
|
+
_headers,
|
|
3237
|
+
_host_index,
|
|
3238
|
+
) -> RequestSerialized:
|
|
3239
|
+
|
|
3240
|
+
_host = None
|
|
3241
|
+
|
|
3242
|
+
_collection_formats: Dict[str, str] = {
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
_path_params: Dict[str, str] = {}
|
|
3246
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3247
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3248
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3249
|
+
_files: Dict[
|
|
3250
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3251
|
+
] = {}
|
|
3252
|
+
_body_params: Optional[bytes] = None
|
|
3253
|
+
|
|
3254
|
+
# process the path parameters
|
|
3255
|
+
if validation_set_id is not None:
|
|
3256
|
+
_path_params['validationSetId'] = validation_set_id
|
|
3257
|
+
# process the query parameters
|
|
3258
|
+
# process the header parameters
|
|
3259
|
+
# process the form parameters
|
|
3260
|
+
# process the body parameter
|
|
3261
|
+
|
|
3262
|
+
|
|
3263
|
+
# set the HTTP header `Accept`
|
|
3264
|
+
if 'Accept' not in _header_params:
|
|
3265
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3266
|
+
[
|
|
3267
|
+
'text/plain',
|
|
3268
|
+
'application/json',
|
|
3269
|
+
'text/json'
|
|
3270
|
+
]
|
|
3271
|
+
)
|
|
3272
|
+
|
|
3273
|
+
|
|
3274
|
+
# authentication setting
|
|
3275
|
+
_auth_settings: List[str] = [
|
|
3276
|
+
'bearer',
|
|
3277
|
+
'oauth2'
|
|
3278
|
+
]
|
|
3279
|
+
|
|
3280
|
+
return self.api_client.param_serialize(
|
|
3281
|
+
method='GET',
|
|
3282
|
+
resource_path='/validation-set/{validationSetId}/export',
|
|
3283
|
+
path_params=_path_params,
|
|
3284
|
+
query_params=_query_params,
|
|
3285
|
+
header_params=_header_params,
|
|
3286
|
+
body=_body_params,
|
|
3287
|
+
post_params=_form_params,
|
|
3288
|
+
files=_files,
|
|
3289
|
+
auth_settings=_auth_settings,
|
|
3290
|
+
collection_formats=_collection_formats,
|
|
3291
|
+
_host=_host,
|
|
3292
|
+
_request_auth=_request_auth
|
|
3293
|
+
)
|
|
3294
|
+
|
|
3295
|
+
|
|
3296
|
+
|
|
3297
|
+
|
|
2785
3298
|
@validate_call
|
|
2786
3299
|
def validation_set_validation_set_id_get(
|
|
2787
3300
|
self,
|
|
@@ -66,6 +66,7 @@ from rapidata.api_client.models.compare_workflow_model1 import CompareWorkflowMo
|
|
|
66
66
|
from rapidata.api_client.models.compare_workflow_model1_pair_maker_information import CompareWorkflowModel1PairMakerInformation
|
|
67
67
|
from rapidata.api_client.models.compare_workflow_model1_referee import CompareWorkflowModel1Referee
|
|
68
68
|
from rapidata.api_client.models.compare_workflow_model_pair_maker_config import CompareWorkflowModelPairMakerConfig
|
|
69
|
+
from rapidata.api_client.models.comparison_operator import ComparisonOperator
|
|
69
70
|
from rapidata.api_client.models.conditional_validation_selection import ConditionalValidationSelection
|
|
70
71
|
from rapidata.api_client.models.coordinate import Coordinate
|
|
71
72
|
from rapidata.api_client.models.count_classification_metadata_filter_config import CountClassificationMetadataFilterConfig
|
|
@@ -234,6 +235,7 @@ from rapidata.api_client.models.read_bridge_token_keys_result import ReadBridgeT
|
|
|
234
235
|
from rapidata.api_client.models.register_temporary_customer_model import RegisterTemporaryCustomerModel
|
|
235
236
|
from rapidata.api_client.models.register_temporary_customer_result import RegisterTemporaryCustomerResult
|
|
236
237
|
from rapidata.api_client.models.report_model import ReportModel
|
|
238
|
+
from rapidata.api_client.models.response_count_user_filter_model import ResponseCountUserFilterModel
|
|
237
239
|
from rapidata.api_client.models.root_filter import RootFilter
|
|
238
240
|
from rapidata.api_client.models.scrub_payload import ScrubPayload
|
|
239
241
|
from rapidata.api_client.models.scrub_range import ScrubRange
|
|
@@ -32,7 +32,7 @@ class AddCampaignModel(BaseModel):
|
|
|
32
32
|
t: StrictStr = Field(description="Discriminator value for AddCampaignModel", alias="_t")
|
|
33
33
|
artifact_id: Optional[StrictStr] = Field(default=None, description="The id of the campaign artifact. If not provided a random value will be used.", alias="artifactId")
|
|
34
34
|
campaign_name: StrictStr = Field(description="The name of the campaign.", alias="campaignName")
|
|
35
|
-
user_filters: List[CreateOrderModelUserFiltersInner] = Field(description="The user filters to apply to the campaign.", alias="userFilters")
|
|
35
|
+
user_filters: Optional[List[CreateOrderModelUserFiltersInner]] = Field(default=None, description="The user filters to apply to the campaign.", alias="userFilters")
|
|
36
36
|
validation_set_id: Optional[StrictStr] = Field(default=None, description="A validation set that should be used.", alias="validationSetId")
|
|
37
37
|
selections: Optional[List[AbTestSelectionAInner]] = Field(default=None, description="The selections that the campaign should have.")
|
|
38
38
|
feature_flags: List[FeatureFlag] = Field(description="The feature flags that should be applied to the campaign.", alias="featureFlags")
|
|
@@ -113,6 +113,11 @@ class AddCampaignModel(BaseModel):
|
|
|
113
113
|
if self.artifact_id is None and "artifact_id" in self.model_fields_set:
|
|
114
114
|
_dict['artifactId'] = None
|
|
115
115
|
|
|
116
|
+
# set to None if user_filters (nullable) is None
|
|
117
|
+
# and model_fields_set contains the field
|
|
118
|
+
if self.user_filters is None and "user_filters" in self.model_fields_set:
|
|
119
|
+
_dict['userFilters'] = None
|
|
120
|
+
|
|
116
121
|
# set to None if validation_set_id (nullable) is None
|
|
117
122
|
# and model_fields_set contains the field
|
|
118
123
|
if self.validation_set_id is None and "validation_set_id" in self.model_fields_set:
|
|
@@ -18,7 +18,7 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
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
|
|
|
@@ -27,9 +27,10 @@ class CompareResult(BaseModel):
|
|
|
27
27
|
CompareResult
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
t: StrictStr = Field(description="Discriminator value for CompareResult", alias="_t")
|
|
30
|
-
winner_id: StrictStr = Field(alias="winnerId")
|
|
30
|
+
winner_id: Optional[StrictStr] = Field(default=None, alias="winnerId")
|
|
31
|
+
winners: Optional[List[StrictStr]] = None
|
|
31
32
|
rapid_id: StrictStr = Field(alias="rapidId")
|
|
32
|
-
__properties: ClassVar[List[str]] = ["_t", "winnerId", "rapidId"]
|
|
33
|
+
__properties: ClassVar[List[str]] = ["_t", "winnerId", "winners", "rapidId"]
|
|
33
34
|
|
|
34
35
|
@field_validator('t')
|
|
35
36
|
def t_validate_enum(cls, value):
|
|
@@ -77,6 +78,11 @@ class CompareResult(BaseModel):
|
|
|
77
78
|
exclude=excluded_fields,
|
|
78
79
|
exclude_none=True,
|
|
79
80
|
)
|
|
81
|
+
# set to None if winner_id (nullable) is None
|
|
82
|
+
# and model_fields_set contains the field
|
|
83
|
+
if self.winner_id is None and "winner_id" in self.model_fields_set:
|
|
84
|
+
_dict['winnerId'] = None
|
|
85
|
+
|
|
80
86
|
return _dict
|
|
81
87
|
|
|
82
88
|
@classmethod
|
|
@@ -91,6 +97,7 @@ class CompareResult(BaseModel):
|
|
|
91
97
|
_obj = cls.model_validate({
|
|
92
98
|
"_t": obj.get("_t") if obj.get("_t") is not None else 'CompareResult',
|
|
93
99
|
"winnerId": obj.get("winnerId"),
|
|
100
|
+
"winners": obj.get("winners"),
|
|
94
101
|
"rapidId": obj.get("rapidId")
|
|
95
102
|
})
|
|
96
103
|
return _obj
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ComparisonOperator(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
ComparisonOperator
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
EQUAL = 'Equal'
|
|
30
|
+
NOTEQUAL = 'NotEqual'
|
|
31
|
+
LESSTHAN = 'LessThan'
|
|
32
|
+
LESSTHANOREQUAL = 'LessThanOrEqual'
|
|
33
|
+
GREATERTHAN = 'GreaterThan'
|
|
34
|
+
GREATERTHANOREQUAL = 'GreaterThanOrEqual'
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_json(cls, json_str: str) -> Self:
|
|
38
|
+
"""Create an instance of ComparisonOperator from a JSON string"""
|
|
39
|
+
return cls(json.loads(json_str))
|
|
40
|
+
|
|
41
|
+
|
|
@@ -41,7 +41,7 @@ class CreateOrderModel(BaseModel):
|
|
|
41
41
|
is_sticky: Optional[StrictBool] = Field(default=None, description="Indicates if the underlying campaign should be sticky.", alias="isSticky")
|
|
42
42
|
user_score_dimensions: Optional[List[StrictStr]] = Field(default=None, description="The user score dimensions are used to determine the score of the responses from the user.", alias="userScoreDimensions")
|
|
43
43
|
demographic_keys: Optional[List[StrictStr]] = Field(default=None, description="The demographic keys are used to determine which demographics to store on the resposnes from the user.", alias="demographicKeys")
|
|
44
|
-
user_filters: List[CreateOrderModelUserFiltersInner] = Field(description="The user filters are used to restrict the order to only collect votes from a specific demographic.", alias="userFilters")
|
|
44
|
+
user_filters: Optional[List[CreateOrderModelUserFiltersInner]] = Field(default=None, description="The user filters are used to restrict the order to only collect votes from a specific demographic.", alias="userFilters")
|
|
45
45
|
validation_set_id: Optional[StrictStr] = Field(default=None, description="The validation set id can be changed to point to a specific validation set. if not provided a sane default will be used.", alias="validationSetId")
|
|
46
46
|
selections: Optional[List[AbTestSelectionAInner]] = Field(default=None, description="The selections are used to determine which tasks are shown to a user.")
|
|
47
47
|
__properties: ClassVar[List[str]] = ["_t", "orderName", "workflow", "referee", "aggregator", "featureFlags", "priority", "isSticky", "userScoreDimensions", "demographicKeys", "userFilters", "validationSetId", "selections"]
|
|
@@ -154,6 +154,11 @@ class CreateOrderModel(BaseModel):
|
|
|
154
154
|
if self.demographic_keys is None and "demographic_keys" in self.model_fields_set:
|
|
155
155
|
_dict['demographicKeys'] = None
|
|
156
156
|
|
|
157
|
+
# set to None if user_filters (nullable) is None
|
|
158
|
+
# and model_fields_set contains the field
|
|
159
|
+
if self.user_filters is None and "user_filters" in self.model_fields_set:
|
|
160
|
+
_dict['userFilters'] = None
|
|
161
|
+
|
|
157
162
|
# set to None if validation_set_id (nullable) is None
|
|
158
163
|
# and model_fields_set contains the field
|
|
159
164
|
if self.validation_set_id is None and "validation_set_id" in self.model_fields_set:
|