rapidata 0.3.0__py3-none-any.whl → 0.4.1__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.
Files changed (72) hide show
  1. rapidata/__init__.py +18 -1
  2. rapidata/api_client/__init__.py +29 -3
  3. rapidata/api_client/api/__init__.py +3 -0
  4. rapidata/api_client/api/compare_workflow_api.py +316 -0
  5. rapidata/api_client/api/dataset_api.py +24 -24
  6. rapidata/api_client/api/order_api.py +515 -289
  7. rapidata/api_client/api/rapid_api.py +6 -6
  8. rapidata/api_client/api/simple_workflow_api.py +350 -0
  9. rapidata/api_client/api/validation_api.py +6 -6
  10. rapidata/api_client/api/workflow_api.py +2386 -0
  11. rapidata/api_client/api_client.py +2 -2
  12. rapidata/api_client/models/__init__.py +26 -3
  13. rapidata/api_client/models/admin_order_model.py +8 -1
  14. rapidata/api_client/models/age_group.py +1 -1
  15. rapidata/api_client/models/age_user_filter_model.py +2 -2
  16. rapidata/api_client/models/campaign_user_filter_model.py +2 -2
  17. rapidata/api_client/models/compare_workflow_get_result_overview_get200_response.py +137 -0
  18. rapidata/api_client/models/compare_workflow_model1.py +146 -0
  19. rapidata/api_client/models/completed_rapid_model.py +103 -0
  20. rapidata/api_client/models/country_user_filter_model.py +2 -2
  21. rapidata/api_client/models/create_demographic_rapid_model.py +3 -3
  22. rapidata/api_client/models/create_independent_workflow_model.py +93 -0
  23. rapidata/api_client/models/create_independent_workflow_model_workflow_config.py +140 -0
  24. rapidata/api_client/models/create_independent_workflow_result.py +89 -0
  25. rapidata/api_client/models/create_order_model.py +40 -31
  26. rapidata/api_client/models/create_order_model_selections_inner.py +24 -10
  27. rapidata/api_client/models/create_order_model_user_filters_inner.py +35 -35
  28. rapidata/api_client/models/customer_order_model.py +8 -1
  29. rapidata/api_client/models/demographic_rapid_selection_config.py +3 -3
  30. rapidata/api_client/models/demographic_selection.py +4 -4
  31. rapidata/api_client/models/feedback_model.py +1 -1
  32. rapidata/api_client/models/gender.py +1 -1
  33. rapidata/api_client/models/gender_user_filter_model.py +2 -2
  34. rapidata/api_client/models/get_attach_category_workflow_result_overview_result.py +144 -0
  35. rapidata/api_client/models/get_compare_workflow_result_overview_result.py +125 -0
  36. rapidata/api_client/models/get_compare_workflow_result_overview_small_result.py +114 -0
  37. rapidata/api_client/models/get_simple_workflow_result_overview_result.py +142 -0
  38. rapidata/api_client/models/get_workflow_by_id_result.py +91 -0
  39. rapidata/api_client/models/get_workflow_by_id_result_workflow.py +140 -0
  40. rapidata/api_client/models/get_workflow_progress_result.py +100 -0
  41. rapidata/api_client/models/get_workflow_result_overview_result.py +104 -0
  42. rapidata/api_client/models/i_workflow_model_paged_result.py +105 -0
  43. rapidata/api_client/models/in_progress_rapid_model.py +103 -0
  44. rapidata/api_client/models/labeling_selection.py +2 -2
  45. rapidata/api_client/models/language_user_filter_model.py +2 -2
  46. rapidata/api_client/models/not_started_rapid_model.py +93 -0
  47. rapidata/api_client/models/order_state.py +43 -0
  48. rapidata/api_client/models/query_workflows_model.py +112 -0
  49. rapidata/api_client/models/ranked_datapoint_model.py +95 -0
  50. rapidata/api_client/models/rapid_answer.py +97 -0
  51. rapidata/api_client/models/rapid_answer_result.py +252 -0
  52. rapidata/api_client/models/simple_workflow_get_result_overview_get200_response.py +137 -0
  53. rapidata/api_client/models/simple_workflow_model1.py +140 -0
  54. rapidata/api_client/models/static_selection.py +96 -0
  55. rapidata/api_client/models/user_score_user_filter_model.py +3 -3
  56. rapidata/api_client/models/validation_selection.py +3 -3
  57. rapidata/api_client/models/workflow_state.py +41 -0
  58. rapidata/api_client/rest.py +1 -1
  59. rapidata/api_client_README.md +44 -8
  60. rapidata/rapidata_client/__init__.py +7 -1
  61. rapidata/rapidata_client/country_codes/__init__.py +1 -1
  62. rapidata/rapidata_client/feature_flags/__init__.py +1 -1
  63. rapidata/rapidata_client/metadata/__init__.py +5 -0
  64. rapidata/rapidata_client/order/rapidata_order_builder.py +20 -2
  65. rapidata/rapidata_client/rapidata_client.py +22 -0
  66. rapidata/rapidata_client/referee/__init__.py +3 -3
  67. rapidata/rapidata_client/selection/__init__.py +4 -0
  68. rapidata/rapidata_client/workflow/__init__.py +5 -4
  69. {rapidata-0.3.0.dist-info → rapidata-0.4.1.dist-info}/METADATA +1 -1
  70. {rapidata-0.3.0.dist-info → rapidata-0.4.1.dist-info}/RECORD +72 -43
  71. {rapidata-0.3.0.dist-info → rapidata-0.4.1.dist-info}/LICENSE +0 -0
  72. {rapidata-0.3.0.dist-info → rapidata-0.4.1.dist-info}/WHEEL +0 -0
@@ -23,8 +23,6 @@ from rapidata.api_client.models.clone_order_model import CloneOrderModel
23
23
  from rapidata.api_client.models.clone_order_result import CloneOrderResult
24
24
  from rapidata.api_client.models.create_complex_order_model import CreateComplexOrderModel
25
25
  from rapidata.api_client.models.create_complex_order_result import CreateComplexOrderResult
26
- from rapidata.api_client.models.create_default_order_model import CreateDefaultOrderModel
27
- from rapidata.api_client.models.create_legacy_order_result import CreateLegacyOrderResult
28
26
  from rapidata.api_client.models.create_order_model import CreateOrderModel
29
27
  from rapidata.api_client.models.create_order_result import CreateOrderResult
30
28
  from rapidata.api_client.models.create_unsupported_order_model import CreateUnsupportedOrderModel
@@ -867,284 +865,6 @@ class OrderApi:
867
865
 
868
866
 
869
867
 
870
- @validate_call
871
- def order_create_default_order_post(
872
- self,
873
- create_default_order_model: Annotated[Optional[CreateDefaultOrderModel], Field(description="The body content of the request")] = None,
874
- _request_timeout: Union[
875
- None,
876
- Annotated[StrictFloat, Field(gt=0)],
877
- Tuple[
878
- Annotated[StrictFloat, Field(gt=0)],
879
- Annotated[StrictFloat, Field(gt=0)]
880
- ]
881
- ] = None,
882
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
883
- _content_type: Optional[StrictStr] = None,
884
- _headers: Optional[Dict[StrictStr, Any]] = None,
885
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
886
- ) -> CreateLegacyOrderResult:
887
- """(Deprecated) Creates a new order with a default pipeline.
888
-
889
-
890
- :param create_default_order_model: The body content of the request
891
- :type create_default_order_model: CreateDefaultOrderModel
892
- :param _request_timeout: timeout setting for this request. If one
893
- number provided, it will be total request
894
- timeout. It can also be a pair (tuple) of
895
- (connection, read) timeouts.
896
- :type _request_timeout: int, tuple(int, int), optional
897
- :param _request_auth: set to override the auth_settings for an a single
898
- request; this effectively ignores the
899
- authentication in the spec for a single request.
900
- :type _request_auth: dict, optional
901
- :param _content_type: force content-type for the request.
902
- :type _content_type: str, Optional
903
- :param _headers: set to override the headers for a single
904
- request; this effectively ignores the headers
905
- in the spec for a single request.
906
- :type _headers: dict, optional
907
- :param _host_index: set to override the host_index for a single
908
- request; this effectively ignores the host_index
909
- in the spec for a single request.
910
- :type _host_index: int, optional
911
- :return: Returns the result object.
912
- """ # noqa: E501
913
- warnings.warn("POST /Order/CreateDefaultOrder is deprecated.", DeprecationWarning)
914
-
915
- _param = self._order_create_default_order_post_serialize(
916
- create_default_order_model=create_default_order_model,
917
- _request_auth=_request_auth,
918
- _content_type=_content_type,
919
- _headers=_headers,
920
- _host_index=_host_index
921
- )
922
-
923
- _response_types_map: Dict[str, Optional[str]] = {
924
- '200': "CreateLegacyOrderResult",
925
- }
926
- response_data = self.api_client.call_api(
927
- *_param,
928
- _request_timeout=_request_timeout
929
- )
930
- response_data.read()
931
- return self.api_client.response_deserialize(
932
- response_data=response_data,
933
- response_types_map=_response_types_map,
934
- ).data
935
-
936
-
937
- @validate_call
938
- def order_create_default_order_post_with_http_info(
939
- self,
940
- create_default_order_model: Annotated[Optional[CreateDefaultOrderModel], Field(description="The body content of the request")] = None,
941
- _request_timeout: Union[
942
- None,
943
- Annotated[StrictFloat, Field(gt=0)],
944
- Tuple[
945
- Annotated[StrictFloat, Field(gt=0)],
946
- Annotated[StrictFloat, Field(gt=0)]
947
- ]
948
- ] = None,
949
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
950
- _content_type: Optional[StrictStr] = None,
951
- _headers: Optional[Dict[StrictStr, Any]] = None,
952
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
953
- ) -> ApiResponse[CreateLegacyOrderResult]:
954
- """(Deprecated) Creates a new order with a default pipeline.
955
-
956
-
957
- :param create_default_order_model: The body content of the request
958
- :type create_default_order_model: CreateDefaultOrderModel
959
- :param _request_timeout: timeout setting for this request. If one
960
- number provided, it will be total request
961
- timeout. It can also be a pair (tuple) of
962
- (connection, read) timeouts.
963
- :type _request_timeout: int, tuple(int, int), optional
964
- :param _request_auth: set to override the auth_settings for an a single
965
- request; this effectively ignores the
966
- authentication in the spec for a single request.
967
- :type _request_auth: dict, optional
968
- :param _content_type: force content-type for the request.
969
- :type _content_type: str, Optional
970
- :param _headers: set to override the headers for a single
971
- request; this effectively ignores the headers
972
- in the spec for a single request.
973
- :type _headers: dict, optional
974
- :param _host_index: set to override the host_index for a single
975
- request; this effectively ignores the host_index
976
- in the spec for a single request.
977
- :type _host_index: int, optional
978
- :return: Returns the result object.
979
- """ # noqa: E501
980
- warnings.warn("POST /Order/CreateDefaultOrder is deprecated.", DeprecationWarning)
981
-
982
- _param = self._order_create_default_order_post_serialize(
983
- create_default_order_model=create_default_order_model,
984
- _request_auth=_request_auth,
985
- _content_type=_content_type,
986
- _headers=_headers,
987
- _host_index=_host_index
988
- )
989
-
990
- _response_types_map: Dict[str, Optional[str]] = {
991
- '200': "CreateLegacyOrderResult",
992
- }
993
- response_data = self.api_client.call_api(
994
- *_param,
995
- _request_timeout=_request_timeout
996
- )
997
- response_data.read()
998
- return self.api_client.response_deserialize(
999
- response_data=response_data,
1000
- response_types_map=_response_types_map,
1001
- )
1002
-
1003
-
1004
- @validate_call
1005
- def order_create_default_order_post_without_preload_content(
1006
- self,
1007
- create_default_order_model: Annotated[Optional[CreateDefaultOrderModel], Field(description="The body content of the request")] = None,
1008
- _request_timeout: Union[
1009
- None,
1010
- Annotated[StrictFloat, Field(gt=0)],
1011
- Tuple[
1012
- Annotated[StrictFloat, Field(gt=0)],
1013
- Annotated[StrictFloat, Field(gt=0)]
1014
- ]
1015
- ] = None,
1016
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1017
- _content_type: Optional[StrictStr] = None,
1018
- _headers: Optional[Dict[StrictStr, Any]] = None,
1019
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1020
- ) -> RESTResponseType:
1021
- """(Deprecated) Creates a new order with a default pipeline.
1022
-
1023
-
1024
- :param create_default_order_model: The body content of the request
1025
- :type create_default_order_model: CreateDefaultOrderModel
1026
- :param _request_timeout: timeout setting for this request. If one
1027
- number provided, it will be total request
1028
- timeout. It can also be a pair (tuple) of
1029
- (connection, read) timeouts.
1030
- :type _request_timeout: int, tuple(int, int), optional
1031
- :param _request_auth: set to override the auth_settings for an a single
1032
- request; this effectively ignores the
1033
- authentication in the spec for a single request.
1034
- :type _request_auth: dict, optional
1035
- :param _content_type: force content-type for the request.
1036
- :type _content_type: str, Optional
1037
- :param _headers: set to override the headers for a single
1038
- request; this effectively ignores the headers
1039
- in the spec for a single request.
1040
- :type _headers: dict, optional
1041
- :param _host_index: set to override the host_index for a single
1042
- request; this effectively ignores the host_index
1043
- in the spec for a single request.
1044
- :type _host_index: int, optional
1045
- :return: Returns the result object.
1046
- """ # noqa: E501
1047
- warnings.warn("POST /Order/CreateDefaultOrder is deprecated.", DeprecationWarning)
1048
-
1049
- _param = self._order_create_default_order_post_serialize(
1050
- create_default_order_model=create_default_order_model,
1051
- _request_auth=_request_auth,
1052
- _content_type=_content_type,
1053
- _headers=_headers,
1054
- _host_index=_host_index
1055
- )
1056
-
1057
- _response_types_map: Dict[str, Optional[str]] = {
1058
- '200': "CreateLegacyOrderResult",
1059
- }
1060
- response_data = self.api_client.call_api(
1061
- *_param,
1062
- _request_timeout=_request_timeout
1063
- )
1064
- return response_data.response
1065
-
1066
-
1067
- def _order_create_default_order_post_serialize(
1068
- self,
1069
- create_default_order_model,
1070
- _request_auth,
1071
- _content_type,
1072
- _headers,
1073
- _host_index,
1074
- ) -> RequestSerialized:
1075
-
1076
- _host = None
1077
-
1078
- _collection_formats: Dict[str, str] = {
1079
- }
1080
-
1081
- _path_params: Dict[str, str] = {}
1082
- _query_params: List[Tuple[str, str]] = []
1083
- _header_params: Dict[str, Optional[str]] = _headers or {}
1084
- _form_params: List[Tuple[str, str]] = []
1085
- _files: Dict[
1086
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1087
- ] = {}
1088
- _body_params: Optional[bytes] = None
1089
-
1090
- # process the path parameters
1091
- # process the query parameters
1092
- # process the header parameters
1093
- # process the form parameters
1094
- # process the body parameter
1095
- if create_default_order_model is not None:
1096
- _body_params = create_default_order_model
1097
-
1098
-
1099
- # set the HTTP header `Accept`
1100
- if 'Accept' not in _header_params:
1101
- _header_params['Accept'] = self.api_client.select_header_accept(
1102
- [
1103
- 'text/plain',
1104
- 'application/json',
1105
- 'text/json'
1106
- ]
1107
- )
1108
-
1109
- # set the HTTP header `Content-Type`
1110
- if _content_type:
1111
- _header_params['Content-Type'] = _content_type
1112
- else:
1113
- _default_content_type = (
1114
- self.api_client.select_header_content_type(
1115
- [
1116
- 'application/json',
1117
- 'text/json',
1118
- 'application/*+json'
1119
- ]
1120
- )
1121
- )
1122
- if _default_content_type is not None:
1123
- _header_params['Content-Type'] = _default_content_type
1124
-
1125
- # authentication setting
1126
- _auth_settings: List[str] = [
1127
- 'bearer'
1128
- ]
1129
-
1130
- return self.api_client.param_serialize(
1131
- method='POST',
1132
- resource_path='/Order/CreateDefaultOrder',
1133
- path_params=_path_params,
1134
- query_params=_query_params,
1135
- header_params=_header_params,
1136
- body=_body_params,
1137
- post_params=_form_params,
1138
- files=_files,
1139
- auth_settings=_auth_settings,
1140
- collection_formats=_collection_formats,
1141
- _host=_host,
1142
- _request_auth=_request_auth
1143
- )
1144
-
1145
-
1146
-
1147
-
1148
868
  @validate_call
1149
869
  def order_create_post(
1150
870
  self,
@@ -3257,9 +2977,9 @@ class OrderApi:
3257
2977
 
3258
2978
 
3259
2979
  @validate_call
3260
- def order_query_get(
2980
+ def order_pause_post(
3261
2981
  self,
3262
- request: Annotated[Optional[QueryOrdersModel], Field(description="The parameters for filtering, paging, and sorting")] = None,
2982
+ order_id: Optional[StrictStr] = None,
3263
2983
  _request_timeout: Union[
3264
2984
  None,
3265
2985
  Annotated[StrictFloat, Field(gt=0)],
@@ -3272,12 +2992,12 @@ class OrderApi:
3272
2992
  _content_type: Optional[StrictStr] = None,
3273
2993
  _headers: Optional[Dict[StrictStr, Any]] = None,
3274
2994
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3275
- ) -> OrderQueryGet200Response:
3276
- """Queries orders based on a filter, page, and sort criteria.
2995
+ ) -> None:
2996
+ """Pauses an order that is processing. Meaning all campaigns in the order will be paused.
3277
2997
 
3278
2998
 
3279
- :param request: The parameters for filtering, paging, and sorting
3280
- :type request: QueryOrdersModel
2999
+ :param order_id:
3000
+ :type order_id: str
3281
3001
  :param _request_timeout: timeout setting for this request. If one
3282
3002
  number provided, it will be total request
3283
3003
  timeout. It can also be a pair (tuple) of
@@ -3300,8 +3020,8 @@ class OrderApi:
3300
3020
  :return: Returns the result object.
3301
3021
  """ # noqa: E501
3302
3022
 
3303
- _param = self._order_query_get_serialize(
3304
- request=request,
3023
+ _param = self._order_pause_post_serialize(
3024
+ order_id=order_id,
3305
3025
  _request_auth=_request_auth,
3306
3026
  _content_type=_content_type,
3307
3027
  _headers=_headers,
@@ -3309,7 +3029,260 @@ class OrderApi:
3309
3029
  )
3310
3030
 
3311
3031
  _response_types_map: Dict[str, Optional[str]] = {
3312
- '200': "OrderQueryGet200Response",
3032
+ '200': None,
3033
+ }
3034
+ response_data = self.api_client.call_api(
3035
+ *_param,
3036
+ _request_timeout=_request_timeout
3037
+ )
3038
+ response_data.read()
3039
+ return self.api_client.response_deserialize(
3040
+ response_data=response_data,
3041
+ response_types_map=_response_types_map,
3042
+ ).data
3043
+
3044
+
3045
+ @validate_call
3046
+ def order_pause_post_with_http_info(
3047
+ self,
3048
+ order_id: Optional[StrictStr] = None,
3049
+ _request_timeout: Union[
3050
+ None,
3051
+ Annotated[StrictFloat, Field(gt=0)],
3052
+ Tuple[
3053
+ Annotated[StrictFloat, Field(gt=0)],
3054
+ Annotated[StrictFloat, Field(gt=0)]
3055
+ ]
3056
+ ] = None,
3057
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3058
+ _content_type: Optional[StrictStr] = None,
3059
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3060
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3061
+ ) -> ApiResponse[None]:
3062
+ """Pauses an order that is processing. Meaning all campaigns in the order will be paused.
3063
+
3064
+
3065
+ :param order_id:
3066
+ :type order_id: str
3067
+ :param _request_timeout: timeout setting for this request. If one
3068
+ number provided, it will be total request
3069
+ timeout. It can also be a pair (tuple) of
3070
+ (connection, read) timeouts.
3071
+ :type _request_timeout: int, tuple(int, int), optional
3072
+ :param _request_auth: set to override the auth_settings for an a single
3073
+ request; this effectively ignores the
3074
+ authentication in the spec for a single request.
3075
+ :type _request_auth: dict, optional
3076
+ :param _content_type: force content-type for the request.
3077
+ :type _content_type: str, Optional
3078
+ :param _headers: set to override the headers for a single
3079
+ request; this effectively ignores the headers
3080
+ in the spec for a single request.
3081
+ :type _headers: dict, optional
3082
+ :param _host_index: set to override the host_index for a single
3083
+ request; this effectively ignores the host_index
3084
+ in the spec for a single request.
3085
+ :type _host_index: int, optional
3086
+ :return: Returns the result object.
3087
+ """ # noqa: E501
3088
+
3089
+ _param = self._order_pause_post_serialize(
3090
+ order_id=order_id,
3091
+ _request_auth=_request_auth,
3092
+ _content_type=_content_type,
3093
+ _headers=_headers,
3094
+ _host_index=_host_index
3095
+ )
3096
+
3097
+ _response_types_map: Dict[str, Optional[str]] = {
3098
+ '200': None,
3099
+ }
3100
+ response_data = self.api_client.call_api(
3101
+ *_param,
3102
+ _request_timeout=_request_timeout
3103
+ )
3104
+ response_data.read()
3105
+ return self.api_client.response_deserialize(
3106
+ response_data=response_data,
3107
+ response_types_map=_response_types_map,
3108
+ )
3109
+
3110
+
3111
+ @validate_call
3112
+ def order_pause_post_without_preload_content(
3113
+ self,
3114
+ order_id: Optional[StrictStr] = None,
3115
+ _request_timeout: Union[
3116
+ None,
3117
+ Annotated[StrictFloat, Field(gt=0)],
3118
+ Tuple[
3119
+ Annotated[StrictFloat, Field(gt=0)],
3120
+ Annotated[StrictFloat, Field(gt=0)]
3121
+ ]
3122
+ ] = None,
3123
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3124
+ _content_type: Optional[StrictStr] = None,
3125
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3126
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3127
+ ) -> RESTResponseType:
3128
+ """Pauses an order that is processing. Meaning all campaigns in the order will be paused.
3129
+
3130
+
3131
+ :param order_id:
3132
+ :type order_id: str
3133
+ :param _request_timeout: timeout setting for this request. If one
3134
+ number provided, it will be total request
3135
+ timeout. It can also be a pair (tuple) of
3136
+ (connection, read) timeouts.
3137
+ :type _request_timeout: int, tuple(int, int), optional
3138
+ :param _request_auth: set to override the auth_settings for an a single
3139
+ request; this effectively ignores the
3140
+ authentication in the spec for a single request.
3141
+ :type _request_auth: dict, optional
3142
+ :param _content_type: force content-type for the request.
3143
+ :type _content_type: str, Optional
3144
+ :param _headers: set to override the headers for a single
3145
+ request; this effectively ignores the headers
3146
+ in the spec for a single request.
3147
+ :type _headers: dict, optional
3148
+ :param _host_index: set to override the host_index for a single
3149
+ request; this effectively ignores the host_index
3150
+ in the spec for a single request.
3151
+ :type _host_index: int, optional
3152
+ :return: Returns the result object.
3153
+ """ # noqa: E501
3154
+
3155
+ _param = self._order_pause_post_serialize(
3156
+ order_id=order_id,
3157
+ _request_auth=_request_auth,
3158
+ _content_type=_content_type,
3159
+ _headers=_headers,
3160
+ _host_index=_host_index
3161
+ )
3162
+
3163
+ _response_types_map: Dict[str, Optional[str]] = {
3164
+ '200': None,
3165
+ }
3166
+ response_data = self.api_client.call_api(
3167
+ *_param,
3168
+ _request_timeout=_request_timeout
3169
+ )
3170
+ return response_data.response
3171
+
3172
+
3173
+ def _order_pause_post_serialize(
3174
+ self,
3175
+ order_id,
3176
+ _request_auth,
3177
+ _content_type,
3178
+ _headers,
3179
+ _host_index,
3180
+ ) -> RequestSerialized:
3181
+
3182
+ _host = None
3183
+
3184
+ _collection_formats: Dict[str, str] = {
3185
+ }
3186
+
3187
+ _path_params: Dict[str, str] = {}
3188
+ _query_params: List[Tuple[str, str]] = []
3189
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3190
+ _form_params: List[Tuple[str, str]] = []
3191
+ _files: Dict[
3192
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3193
+ ] = {}
3194
+ _body_params: Optional[bytes] = None
3195
+
3196
+ # process the path parameters
3197
+ # process the query parameters
3198
+ if order_id is not None:
3199
+
3200
+ _query_params.append(('orderId', order_id))
3201
+
3202
+ # process the header parameters
3203
+ # process the form parameters
3204
+ # process the body parameter
3205
+
3206
+
3207
+
3208
+
3209
+ # authentication setting
3210
+ _auth_settings: List[str] = [
3211
+ 'bearer'
3212
+ ]
3213
+
3214
+ return self.api_client.param_serialize(
3215
+ method='POST',
3216
+ resource_path='/Order/Pause',
3217
+ path_params=_path_params,
3218
+ query_params=_query_params,
3219
+ header_params=_header_params,
3220
+ body=_body_params,
3221
+ post_params=_form_params,
3222
+ files=_files,
3223
+ auth_settings=_auth_settings,
3224
+ collection_formats=_collection_formats,
3225
+ _host=_host,
3226
+ _request_auth=_request_auth
3227
+ )
3228
+
3229
+
3230
+
3231
+
3232
+ @validate_call
3233
+ def order_query_get(
3234
+ self,
3235
+ request: Annotated[Optional[QueryOrdersModel], Field(description="The parameters for filtering, paging, and sorting")] = None,
3236
+ _request_timeout: Union[
3237
+ None,
3238
+ Annotated[StrictFloat, Field(gt=0)],
3239
+ Tuple[
3240
+ Annotated[StrictFloat, Field(gt=0)],
3241
+ Annotated[StrictFloat, Field(gt=0)]
3242
+ ]
3243
+ ] = None,
3244
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3245
+ _content_type: Optional[StrictStr] = None,
3246
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3247
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3248
+ ) -> OrderQueryGet200Response:
3249
+ """Queries orders based on a filter, page, and sort criteria.
3250
+
3251
+
3252
+ :param request: The parameters for filtering, paging, and sorting
3253
+ :type request: QueryOrdersModel
3254
+ :param _request_timeout: timeout setting for this request. If one
3255
+ number provided, it will be total request
3256
+ timeout. It can also be a pair (tuple) of
3257
+ (connection, read) timeouts.
3258
+ :type _request_timeout: int, tuple(int, int), optional
3259
+ :param _request_auth: set to override the auth_settings for an a single
3260
+ request; this effectively ignores the
3261
+ authentication in the spec for a single request.
3262
+ :type _request_auth: dict, optional
3263
+ :param _content_type: force content-type for the request.
3264
+ :type _content_type: str, Optional
3265
+ :param _headers: set to override the headers for a single
3266
+ request; this effectively ignores the headers
3267
+ in the spec for a single request.
3268
+ :type _headers: dict, optional
3269
+ :param _host_index: set to override the host_index for a single
3270
+ request; this effectively ignores the host_index
3271
+ in the spec for a single request.
3272
+ :type _host_index: int, optional
3273
+ :return: Returns the result object.
3274
+ """ # noqa: E501
3275
+
3276
+ _param = self._order_query_get_serialize(
3277
+ request=request,
3278
+ _request_auth=_request_auth,
3279
+ _content_type=_content_type,
3280
+ _headers=_headers,
3281
+ _host_index=_host_index
3282
+ )
3283
+
3284
+ _response_types_map: Dict[str, Optional[str]] = {
3285
+ '200': "OrderQueryGet200Response",
3313
3286
  }
3314
3287
  response_data = self.api_client.call_api(
3315
3288
  *_param,
@@ -3778,6 +3751,259 @@ class OrderApi:
3778
3751
 
3779
3752
 
3780
3753
 
3754
+ @validate_call
3755
+ def order_resume_post(
3756
+ self,
3757
+ order_id: Optional[StrictStr] = None,
3758
+ _request_timeout: Union[
3759
+ None,
3760
+ Annotated[StrictFloat, Field(gt=0)],
3761
+ Tuple[
3762
+ Annotated[StrictFloat, Field(gt=0)],
3763
+ Annotated[StrictFloat, Field(gt=0)]
3764
+ ]
3765
+ ] = None,
3766
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3767
+ _content_type: Optional[StrictStr] = None,
3768
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3769
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3770
+ ) -> None:
3771
+ """Resumes a paused order. Meaning all campaigns in the order will be resumed.
3772
+
3773
+
3774
+ :param order_id:
3775
+ :type order_id: str
3776
+ :param _request_timeout: timeout setting for this request. If one
3777
+ number provided, it will be total request
3778
+ timeout. It can also be a pair (tuple) of
3779
+ (connection, read) timeouts.
3780
+ :type _request_timeout: int, tuple(int, int), optional
3781
+ :param _request_auth: set to override the auth_settings for an a single
3782
+ request; this effectively ignores the
3783
+ authentication in the spec for a single request.
3784
+ :type _request_auth: dict, optional
3785
+ :param _content_type: force content-type for the request.
3786
+ :type _content_type: str, Optional
3787
+ :param _headers: set to override the headers for a single
3788
+ request; this effectively ignores the headers
3789
+ in the spec for a single request.
3790
+ :type _headers: dict, optional
3791
+ :param _host_index: set to override the host_index for a single
3792
+ request; this effectively ignores the host_index
3793
+ in the spec for a single request.
3794
+ :type _host_index: int, optional
3795
+ :return: Returns the result object.
3796
+ """ # noqa: E501
3797
+
3798
+ _param = self._order_resume_post_serialize(
3799
+ order_id=order_id,
3800
+ _request_auth=_request_auth,
3801
+ _content_type=_content_type,
3802
+ _headers=_headers,
3803
+ _host_index=_host_index
3804
+ )
3805
+
3806
+ _response_types_map: Dict[str, Optional[str]] = {
3807
+ '200': None,
3808
+ }
3809
+ response_data = self.api_client.call_api(
3810
+ *_param,
3811
+ _request_timeout=_request_timeout
3812
+ )
3813
+ response_data.read()
3814
+ return self.api_client.response_deserialize(
3815
+ response_data=response_data,
3816
+ response_types_map=_response_types_map,
3817
+ ).data
3818
+
3819
+
3820
+ @validate_call
3821
+ def order_resume_post_with_http_info(
3822
+ self,
3823
+ order_id: Optional[StrictStr] = None,
3824
+ _request_timeout: Union[
3825
+ None,
3826
+ Annotated[StrictFloat, Field(gt=0)],
3827
+ Tuple[
3828
+ Annotated[StrictFloat, Field(gt=0)],
3829
+ Annotated[StrictFloat, Field(gt=0)]
3830
+ ]
3831
+ ] = None,
3832
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3833
+ _content_type: Optional[StrictStr] = None,
3834
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3835
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3836
+ ) -> ApiResponse[None]:
3837
+ """Resumes a paused order. Meaning all campaigns in the order will be resumed.
3838
+
3839
+
3840
+ :param order_id:
3841
+ :type order_id: str
3842
+ :param _request_timeout: timeout setting for this request. If one
3843
+ number provided, it will be total request
3844
+ timeout. It can also be a pair (tuple) of
3845
+ (connection, read) timeouts.
3846
+ :type _request_timeout: int, tuple(int, int), optional
3847
+ :param _request_auth: set to override the auth_settings for an a single
3848
+ request; this effectively ignores the
3849
+ authentication in the spec for a single request.
3850
+ :type _request_auth: dict, optional
3851
+ :param _content_type: force content-type for the request.
3852
+ :type _content_type: str, Optional
3853
+ :param _headers: set to override the headers for a single
3854
+ request; this effectively ignores the headers
3855
+ in the spec for a single request.
3856
+ :type _headers: dict, optional
3857
+ :param _host_index: set to override the host_index for a single
3858
+ request; this effectively ignores the host_index
3859
+ in the spec for a single request.
3860
+ :type _host_index: int, optional
3861
+ :return: Returns the result object.
3862
+ """ # noqa: E501
3863
+
3864
+ _param = self._order_resume_post_serialize(
3865
+ order_id=order_id,
3866
+ _request_auth=_request_auth,
3867
+ _content_type=_content_type,
3868
+ _headers=_headers,
3869
+ _host_index=_host_index
3870
+ )
3871
+
3872
+ _response_types_map: Dict[str, Optional[str]] = {
3873
+ '200': None,
3874
+ }
3875
+ response_data = self.api_client.call_api(
3876
+ *_param,
3877
+ _request_timeout=_request_timeout
3878
+ )
3879
+ response_data.read()
3880
+ return self.api_client.response_deserialize(
3881
+ response_data=response_data,
3882
+ response_types_map=_response_types_map,
3883
+ )
3884
+
3885
+
3886
+ @validate_call
3887
+ def order_resume_post_without_preload_content(
3888
+ self,
3889
+ order_id: Optional[StrictStr] = None,
3890
+ _request_timeout: Union[
3891
+ None,
3892
+ Annotated[StrictFloat, Field(gt=0)],
3893
+ Tuple[
3894
+ Annotated[StrictFloat, Field(gt=0)],
3895
+ Annotated[StrictFloat, Field(gt=0)]
3896
+ ]
3897
+ ] = None,
3898
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3899
+ _content_type: Optional[StrictStr] = None,
3900
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3901
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3902
+ ) -> RESTResponseType:
3903
+ """Resumes a paused order. Meaning all campaigns in the order will be resumed.
3904
+
3905
+
3906
+ :param order_id:
3907
+ :type order_id: str
3908
+ :param _request_timeout: timeout setting for this request. If one
3909
+ number provided, it will be total request
3910
+ timeout. It can also be a pair (tuple) of
3911
+ (connection, read) timeouts.
3912
+ :type _request_timeout: int, tuple(int, int), optional
3913
+ :param _request_auth: set to override the auth_settings for an a single
3914
+ request; this effectively ignores the
3915
+ authentication in the spec for a single request.
3916
+ :type _request_auth: dict, optional
3917
+ :param _content_type: force content-type for the request.
3918
+ :type _content_type: str, Optional
3919
+ :param _headers: set to override the headers for a single
3920
+ request; this effectively ignores the headers
3921
+ in the spec for a single request.
3922
+ :type _headers: dict, optional
3923
+ :param _host_index: set to override the host_index for a single
3924
+ request; this effectively ignores the host_index
3925
+ in the spec for a single request.
3926
+ :type _host_index: int, optional
3927
+ :return: Returns the result object.
3928
+ """ # noqa: E501
3929
+
3930
+ _param = self._order_resume_post_serialize(
3931
+ order_id=order_id,
3932
+ _request_auth=_request_auth,
3933
+ _content_type=_content_type,
3934
+ _headers=_headers,
3935
+ _host_index=_host_index
3936
+ )
3937
+
3938
+ _response_types_map: Dict[str, Optional[str]] = {
3939
+ '200': None,
3940
+ }
3941
+ response_data = self.api_client.call_api(
3942
+ *_param,
3943
+ _request_timeout=_request_timeout
3944
+ )
3945
+ return response_data.response
3946
+
3947
+
3948
+ def _order_resume_post_serialize(
3949
+ self,
3950
+ order_id,
3951
+ _request_auth,
3952
+ _content_type,
3953
+ _headers,
3954
+ _host_index,
3955
+ ) -> RequestSerialized:
3956
+
3957
+ _host = None
3958
+
3959
+ _collection_formats: Dict[str, str] = {
3960
+ }
3961
+
3962
+ _path_params: Dict[str, str] = {}
3963
+ _query_params: List[Tuple[str, str]] = []
3964
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3965
+ _form_params: List[Tuple[str, str]] = []
3966
+ _files: Dict[
3967
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3968
+ ] = {}
3969
+ _body_params: Optional[bytes] = None
3970
+
3971
+ # process the path parameters
3972
+ # process the query parameters
3973
+ if order_id is not None:
3974
+
3975
+ _query_params.append(('orderId', order_id))
3976
+
3977
+ # process the header parameters
3978
+ # process the form parameters
3979
+ # process the body parameter
3980
+
3981
+
3982
+
3983
+
3984
+ # authentication setting
3985
+ _auth_settings: List[str] = [
3986
+ 'bearer'
3987
+ ]
3988
+
3989
+ return self.api_client.param_serialize(
3990
+ method='POST',
3991
+ resource_path='/Order/Resume',
3992
+ path_params=_path_params,
3993
+ query_params=_query_params,
3994
+ header_params=_header_params,
3995
+ body=_body_params,
3996
+ post_params=_form_params,
3997
+ files=_files,
3998
+ auth_settings=_auth_settings,
3999
+ collection_formats=_collection_formats,
4000
+ _host=_host,
4001
+ _request_auth=_request_auth
4002
+ )
4003
+
4004
+
4005
+
4006
+
3781
4007
  @validate_call
3782
4008
  def order_retry_failed_post(
3783
4009
  self,