rapidata 2.35.2__py3-none-any.whl → 2.36.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +2 -1
- rapidata/api_client/__init__.py +21 -3
- rapidata/api_client/api/__init__.py +1 -0
- rapidata/api_client/api/benchmark_api.py +294 -0
- rapidata/api_client/api/campaign_api.py +268 -0
- rapidata/api_client/api/customer_rapid_api.py +247 -0
- rapidata/api_client/api/pipeline_api.py +0 -873
- rapidata/api_client/api/sample_api.py +299 -0
- rapidata/api_client/models/__init__.py +20 -3
- rapidata/api_client/models/and_filter.py +121 -0
- rapidata/api_client/models/and_filter_filters_inner.py +268 -0
- rapidata/api_client/models/boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result.py +10 -1
- rapidata/api_client/models/campaign_filter.py +98 -0
- rapidata/api_client/models/change_boost_model.py +89 -0
- rapidata/api_client/models/compare_rapid_blueprint.py +5 -3
- rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
- rapidata/api_client/models/country_filter.py +98 -0
- rapidata/api_client/models/create_leaderboard_model.py +32 -2
- rapidata/api_client/models/demographic_filter.py +100 -0
- rapidata/api_client/models/feature_flag_model.py +4 -4
- rapidata/api_client/models/free_text_payload.py +10 -3
- rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
- rapidata/api_client/models/get_compare_ab_summary_result.py +4 -2
- rapidata/api_client/models/get_leaderboard_by_id_result.py +29 -2
- rapidata/api_client/models/get_public_responses_result.py +95 -0
- rapidata/api_client/models/get_sample_by_id_result.py +126 -0
- rapidata/api_client/models/language_filter.py +98 -0
- rapidata/api_client/models/leaderboard_query_result.py +29 -2
- rapidata/api_client/models/new_user_filter.py +96 -0
- rapidata/api_client/models/not_filter.py +117 -0
- rapidata/api_client/models/or_filter.py +121 -0
- rapidata/api_client/models/public_rapid_response.py +112 -0
- rapidata/api_client/models/response_count_filter.py +109 -0
- rapidata/api_client/models/sample_by_identifier.py +126 -0
- rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
- rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
- rapidata/api_client/models/user_score_filter.py +102 -0
- rapidata/api_client/models/user_state.py +38 -0
- rapidata/api_client/models/user_state_filter.py +101 -0
- rapidata/api_client_README.md +24 -6
- rapidata/rapidata_client/__init__.py +5 -13
- rapidata/rapidata_client/benchmark/participant/_participant.py +45 -26
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +26 -2
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +73 -30
- rapidata/rapidata_client/config/__init__.py +1 -0
- rapidata/rapidata_client/config/config.py +33 -0
- rapidata/rapidata_client/datapoints/assets/_sessions.py +13 -8
- rapidata/rapidata_client/order/_rapidata_dataset.py +23 -33
- rapidata/rapidata_client/order/rapidata_order_manager.py +298 -219
- rapidata/rapidata_client/workflow/_compare_workflow.py +7 -2
- {rapidata-2.35.2.dist-info → rapidata-2.36.0.dist-info}/METADATA +1 -1
- {rapidata-2.35.2.dist-info → rapidata-2.36.0.dist-info}/RECORD +55 -31
- {rapidata-2.35.2.dist-info → rapidata-2.36.0.dist-info}/LICENSE +0 -0
- {rapidata-2.35.2.dist-info → rapidata-2.36.0.dist-info}/WHEEL +0 -0
|
@@ -21,6 +21,7 @@ from typing import Optional
|
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from rapidata.api_client.models.boost_query_result import BoostQueryResult
|
|
23
23
|
from rapidata.api_client.models.campaign_query_result_paged_result import CampaignQueryResultPagedResult
|
|
24
|
+
from rapidata.api_client.models.change_boost_model import ChangeBoostModel
|
|
24
25
|
from rapidata.api_client.models.query_model import QueryModel
|
|
25
26
|
|
|
26
27
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
@@ -41,6 +42,273 @@ class CampaignApi:
|
|
|
41
42
|
self.api_client = api_client
|
|
42
43
|
|
|
43
44
|
|
|
45
|
+
@validate_call
|
|
46
|
+
def campaign_boost_put(
|
|
47
|
+
self,
|
|
48
|
+
change_boost_model: Optional[ChangeBoostModel] = None,
|
|
49
|
+
_request_timeout: Union[
|
|
50
|
+
None,
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
56
|
+
] = None,
|
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
+
) -> None:
|
|
62
|
+
"""Updates the boost with manual boosts.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:param change_boost_model:
|
|
66
|
+
:type change_boost_model: ChangeBoostModel
|
|
67
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
68
|
+
number provided, it will be total request
|
|
69
|
+
timeout. It can also be a pair (tuple) of
|
|
70
|
+
(connection, read) timeouts.
|
|
71
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
72
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
73
|
+
request; this effectively ignores the
|
|
74
|
+
authentication in the spec for a single request.
|
|
75
|
+
:type _request_auth: dict, optional
|
|
76
|
+
:param _content_type: force content-type for the request.
|
|
77
|
+
:type _content_type: str, Optional
|
|
78
|
+
:param _headers: set to override the headers for a single
|
|
79
|
+
request; this effectively ignores the headers
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _headers: dict, optional
|
|
82
|
+
:param _host_index: set to override the host_index for a single
|
|
83
|
+
request; this effectively ignores the host_index
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _host_index: int, optional
|
|
86
|
+
:return: Returns the result object.
|
|
87
|
+
""" # noqa: E501
|
|
88
|
+
|
|
89
|
+
_param = self._campaign_boost_put_serialize(
|
|
90
|
+
change_boost_model=change_boost_model,
|
|
91
|
+
_request_auth=_request_auth,
|
|
92
|
+
_content_type=_content_type,
|
|
93
|
+
_headers=_headers,
|
|
94
|
+
_host_index=_host_index
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
98
|
+
'204': None,
|
|
99
|
+
}
|
|
100
|
+
response_data = self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
def campaign_boost_put_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
change_boost_model: Optional[ChangeBoostModel] = None,
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[None]:
|
|
128
|
+
"""Updates the boost with manual boosts.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param change_boost_model:
|
|
132
|
+
:type change_boost_model: ChangeBoostModel
|
|
133
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
134
|
+
number provided, it will be total request
|
|
135
|
+
timeout. It can also be a pair (tuple) of
|
|
136
|
+
(connection, read) timeouts.
|
|
137
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
139
|
+
request; this effectively ignores the
|
|
140
|
+
authentication in the spec for a single request.
|
|
141
|
+
:type _request_auth: dict, optional
|
|
142
|
+
:param _content_type: force content-type for the request.
|
|
143
|
+
:type _content_type: str, Optional
|
|
144
|
+
:param _headers: set to override the headers for a single
|
|
145
|
+
request; this effectively ignores the headers
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _headers: dict, optional
|
|
148
|
+
:param _host_index: set to override the host_index for a single
|
|
149
|
+
request; this effectively ignores the host_index
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _host_index: int, optional
|
|
152
|
+
:return: Returns the result object.
|
|
153
|
+
""" # noqa: E501
|
|
154
|
+
|
|
155
|
+
_param = self._campaign_boost_put_serialize(
|
|
156
|
+
change_boost_model=change_boost_model,
|
|
157
|
+
_request_auth=_request_auth,
|
|
158
|
+
_content_type=_content_type,
|
|
159
|
+
_headers=_headers,
|
|
160
|
+
_host_index=_host_index
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
164
|
+
'204': None,
|
|
165
|
+
}
|
|
166
|
+
response_data = self.api_client.call_api(
|
|
167
|
+
*_param,
|
|
168
|
+
_request_timeout=_request_timeout
|
|
169
|
+
)
|
|
170
|
+
response_data.read()
|
|
171
|
+
return self.api_client.response_deserialize(
|
|
172
|
+
response_data=response_data,
|
|
173
|
+
response_types_map=_response_types_map,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
@validate_call
|
|
178
|
+
def campaign_boost_put_without_preload_content(
|
|
179
|
+
self,
|
|
180
|
+
change_boost_model: Optional[ChangeBoostModel] = None,
|
|
181
|
+
_request_timeout: Union[
|
|
182
|
+
None,
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
184
|
+
Tuple[
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
187
|
+
]
|
|
188
|
+
] = None,
|
|
189
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
190
|
+
_content_type: Optional[StrictStr] = None,
|
|
191
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
192
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
193
|
+
) -> RESTResponseType:
|
|
194
|
+
"""Updates the boost with manual boosts.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param change_boost_model:
|
|
198
|
+
:type change_boost_model: ChangeBoostModel
|
|
199
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
200
|
+
number provided, it will be total request
|
|
201
|
+
timeout. It can also be a pair (tuple) of
|
|
202
|
+
(connection, read) timeouts.
|
|
203
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
204
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
205
|
+
request; this effectively ignores the
|
|
206
|
+
authentication in the spec for a single request.
|
|
207
|
+
:type _request_auth: dict, optional
|
|
208
|
+
:param _content_type: force content-type for the request.
|
|
209
|
+
:type _content_type: str, Optional
|
|
210
|
+
:param _headers: set to override the headers for a single
|
|
211
|
+
request; this effectively ignores the headers
|
|
212
|
+
in the spec for a single request.
|
|
213
|
+
:type _headers: dict, optional
|
|
214
|
+
:param _host_index: set to override the host_index for a single
|
|
215
|
+
request; this effectively ignores the host_index
|
|
216
|
+
in the spec for a single request.
|
|
217
|
+
:type _host_index: int, optional
|
|
218
|
+
:return: Returns the result object.
|
|
219
|
+
""" # noqa: E501
|
|
220
|
+
|
|
221
|
+
_param = self._campaign_boost_put_serialize(
|
|
222
|
+
change_boost_model=change_boost_model,
|
|
223
|
+
_request_auth=_request_auth,
|
|
224
|
+
_content_type=_content_type,
|
|
225
|
+
_headers=_headers,
|
|
226
|
+
_host_index=_host_index
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
230
|
+
'204': None,
|
|
231
|
+
}
|
|
232
|
+
response_data = self.api_client.call_api(
|
|
233
|
+
*_param,
|
|
234
|
+
_request_timeout=_request_timeout
|
|
235
|
+
)
|
|
236
|
+
return response_data.response
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
def _campaign_boost_put_serialize(
|
|
240
|
+
self,
|
|
241
|
+
change_boost_model,
|
|
242
|
+
_request_auth,
|
|
243
|
+
_content_type,
|
|
244
|
+
_headers,
|
|
245
|
+
_host_index,
|
|
246
|
+
) -> RequestSerialized:
|
|
247
|
+
|
|
248
|
+
_host = None
|
|
249
|
+
|
|
250
|
+
_collection_formats: Dict[str, str] = {
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
_path_params: Dict[str, str] = {}
|
|
254
|
+
_query_params: List[Tuple[str, str]] = []
|
|
255
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
256
|
+
_form_params: List[Tuple[str, str]] = []
|
|
257
|
+
_files: Dict[
|
|
258
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
259
|
+
] = {}
|
|
260
|
+
_body_params: Optional[bytes] = None
|
|
261
|
+
|
|
262
|
+
# process the path parameters
|
|
263
|
+
# process the query parameters
|
|
264
|
+
# process the header parameters
|
|
265
|
+
# process the form parameters
|
|
266
|
+
# process the body parameter
|
|
267
|
+
if change_boost_model is not None:
|
|
268
|
+
_body_params = change_boost_model
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
# set the HTTP header `Content-Type`
|
|
273
|
+
if _content_type:
|
|
274
|
+
_header_params['Content-Type'] = _content_type
|
|
275
|
+
else:
|
|
276
|
+
_default_content_type = (
|
|
277
|
+
self.api_client.select_header_content_type(
|
|
278
|
+
[
|
|
279
|
+
'application/json',
|
|
280
|
+
'text/json',
|
|
281
|
+
'application/*+json'
|
|
282
|
+
]
|
|
283
|
+
)
|
|
284
|
+
)
|
|
285
|
+
if _default_content_type is not None:
|
|
286
|
+
_header_params['Content-Type'] = _default_content_type
|
|
287
|
+
|
|
288
|
+
# authentication setting
|
|
289
|
+
_auth_settings: List[str] = [
|
|
290
|
+
'bearer',
|
|
291
|
+
'oauth2'
|
|
292
|
+
]
|
|
293
|
+
|
|
294
|
+
return self.api_client.param_serialize(
|
|
295
|
+
method='PUT',
|
|
296
|
+
resource_path='/campaign/boost',
|
|
297
|
+
path_params=_path_params,
|
|
298
|
+
query_params=_query_params,
|
|
299
|
+
header_params=_header_params,
|
|
300
|
+
body=_body_params,
|
|
301
|
+
post_params=_form_params,
|
|
302
|
+
files=_files,
|
|
303
|
+
auth_settings=_auth_settings,
|
|
304
|
+
collection_formats=_collection_formats,
|
|
305
|
+
_host=_host,
|
|
306
|
+
_request_auth=_request_auth
|
|
307
|
+
)
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
44
312
|
@validate_call
|
|
45
313
|
def campaign_boost_status_get(
|
|
46
314
|
self,
|
|
@@ -21,6 +21,7 @@ from typing import List, Optional, Tuple, Union
|
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from rapidata.api_client.models.create_demographic_rapid_model import CreateDemographicRapidModel
|
|
23
23
|
from rapidata.api_client.models.create_rapid_result import CreateRapidResult
|
|
24
|
+
from rapidata.api_client.models.get_public_responses_result import GetPublicResponsesResult
|
|
24
25
|
from rapidata.api_client.models.get_rapid_responses_result import GetRapidResponsesResult
|
|
25
26
|
from rapidata.api_client.models.potential_validation_rapid_paged_result import PotentialValidationRapidPagedResult
|
|
26
27
|
from rapidata.api_client.models.query_model import QueryModel
|
|
@@ -665,6 +666,252 @@ class CustomerRapidApi:
|
|
|
665
666
|
|
|
666
667
|
|
|
667
668
|
|
|
669
|
+
@validate_call
|
|
670
|
+
def rapid_global_responses_get(
|
|
671
|
+
self,
|
|
672
|
+
_request_timeout: Union[
|
|
673
|
+
None,
|
|
674
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
675
|
+
Tuple[
|
|
676
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
677
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
678
|
+
]
|
|
679
|
+
] = None,
|
|
680
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
681
|
+
_content_type: Optional[StrictStr] = None,
|
|
682
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
683
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
684
|
+
) -> GetPublicResponsesResult:
|
|
685
|
+
"""A public endpoint to query the most recent responses globally
|
|
686
|
+
|
|
687
|
+
|
|
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._rapid_global_responses_get_serialize(
|
|
711
|
+
_request_auth=_request_auth,
|
|
712
|
+
_content_type=_content_type,
|
|
713
|
+
_headers=_headers,
|
|
714
|
+
_host_index=_host_index
|
|
715
|
+
)
|
|
716
|
+
|
|
717
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
718
|
+
'200': "GetPublicResponsesResult",
|
|
719
|
+
}
|
|
720
|
+
response_data = self.api_client.call_api(
|
|
721
|
+
*_param,
|
|
722
|
+
_request_timeout=_request_timeout
|
|
723
|
+
)
|
|
724
|
+
response_data.read()
|
|
725
|
+
return self.api_client.response_deserialize(
|
|
726
|
+
response_data=response_data,
|
|
727
|
+
response_types_map=_response_types_map,
|
|
728
|
+
).data
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
@validate_call
|
|
732
|
+
def rapid_global_responses_get_with_http_info(
|
|
733
|
+
self,
|
|
734
|
+
_request_timeout: Union[
|
|
735
|
+
None,
|
|
736
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
737
|
+
Tuple[
|
|
738
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
739
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
740
|
+
]
|
|
741
|
+
] = None,
|
|
742
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
743
|
+
_content_type: Optional[StrictStr] = None,
|
|
744
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
745
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
746
|
+
) -> ApiResponse[GetPublicResponsesResult]:
|
|
747
|
+
"""A public endpoint to query the most recent responses globally
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
751
|
+
number provided, it will be total request
|
|
752
|
+
timeout. It can also be a pair (tuple) of
|
|
753
|
+
(connection, read) timeouts.
|
|
754
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
755
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
756
|
+
request; this effectively ignores the
|
|
757
|
+
authentication in the spec for a single request.
|
|
758
|
+
:type _request_auth: dict, optional
|
|
759
|
+
:param _content_type: force content-type for the request.
|
|
760
|
+
:type _content_type: str, Optional
|
|
761
|
+
:param _headers: set to override the headers for a single
|
|
762
|
+
request; this effectively ignores the headers
|
|
763
|
+
in the spec for a single request.
|
|
764
|
+
:type _headers: dict, optional
|
|
765
|
+
:param _host_index: set to override the host_index for a single
|
|
766
|
+
request; this effectively ignores the host_index
|
|
767
|
+
in the spec for a single request.
|
|
768
|
+
:type _host_index: int, optional
|
|
769
|
+
:return: Returns the result object.
|
|
770
|
+
""" # noqa: E501
|
|
771
|
+
|
|
772
|
+
_param = self._rapid_global_responses_get_serialize(
|
|
773
|
+
_request_auth=_request_auth,
|
|
774
|
+
_content_type=_content_type,
|
|
775
|
+
_headers=_headers,
|
|
776
|
+
_host_index=_host_index
|
|
777
|
+
)
|
|
778
|
+
|
|
779
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
780
|
+
'200': "GetPublicResponsesResult",
|
|
781
|
+
}
|
|
782
|
+
response_data = self.api_client.call_api(
|
|
783
|
+
*_param,
|
|
784
|
+
_request_timeout=_request_timeout
|
|
785
|
+
)
|
|
786
|
+
response_data.read()
|
|
787
|
+
return self.api_client.response_deserialize(
|
|
788
|
+
response_data=response_data,
|
|
789
|
+
response_types_map=_response_types_map,
|
|
790
|
+
)
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
@validate_call
|
|
794
|
+
def rapid_global_responses_get_without_preload_content(
|
|
795
|
+
self,
|
|
796
|
+
_request_timeout: Union[
|
|
797
|
+
None,
|
|
798
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
799
|
+
Tuple[
|
|
800
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
801
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
802
|
+
]
|
|
803
|
+
] = None,
|
|
804
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
805
|
+
_content_type: Optional[StrictStr] = None,
|
|
806
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
807
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
808
|
+
) -> RESTResponseType:
|
|
809
|
+
"""A public endpoint to query the most recent responses globally
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
813
|
+
number provided, it will be total request
|
|
814
|
+
timeout. It can also be a pair (tuple) of
|
|
815
|
+
(connection, read) timeouts.
|
|
816
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
817
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
818
|
+
request; this effectively ignores the
|
|
819
|
+
authentication in the spec for a single request.
|
|
820
|
+
:type _request_auth: dict, optional
|
|
821
|
+
:param _content_type: force content-type for the request.
|
|
822
|
+
:type _content_type: str, Optional
|
|
823
|
+
:param _headers: set to override the headers for a single
|
|
824
|
+
request; this effectively ignores the headers
|
|
825
|
+
in the spec for a single request.
|
|
826
|
+
:type _headers: dict, optional
|
|
827
|
+
:param _host_index: set to override the host_index for a single
|
|
828
|
+
request; this effectively ignores the host_index
|
|
829
|
+
in the spec for a single request.
|
|
830
|
+
:type _host_index: int, optional
|
|
831
|
+
:return: Returns the result object.
|
|
832
|
+
""" # noqa: E501
|
|
833
|
+
|
|
834
|
+
_param = self._rapid_global_responses_get_serialize(
|
|
835
|
+
_request_auth=_request_auth,
|
|
836
|
+
_content_type=_content_type,
|
|
837
|
+
_headers=_headers,
|
|
838
|
+
_host_index=_host_index
|
|
839
|
+
)
|
|
840
|
+
|
|
841
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
842
|
+
'200': "GetPublicResponsesResult",
|
|
843
|
+
}
|
|
844
|
+
response_data = self.api_client.call_api(
|
|
845
|
+
*_param,
|
|
846
|
+
_request_timeout=_request_timeout
|
|
847
|
+
)
|
|
848
|
+
return response_data.response
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
def _rapid_global_responses_get_serialize(
|
|
852
|
+
self,
|
|
853
|
+
_request_auth,
|
|
854
|
+
_content_type,
|
|
855
|
+
_headers,
|
|
856
|
+
_host_index,
|
|
857
|
+
) -> RequestSerialized:
|
|
858
|
+
|
|
859
|
+
_host = None
|
|
860
|
+
|
|
861
|
+
_collection_formats: Dict[str, str] = {
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
_path_params: Dict[str, str] = {}
|
|
865
|
+
_query_params: List[Tuple[str, str]] = []
|
|
866
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
867
|
+
_form_params: List[Tuple[str, str]] = []
|
|
868
|
+
_files: Dict[
|
|
869
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
870
|
+
] = {}
|
|
871
|
+
_body_params: Optional[bytes] = None
|
|
872
|
+
|
|
873
|
+
# process the path parameters
|
|
874
|
+
# process the query parameters
|
|
875
|
+
# process the header parameters
|
|
876
|
+
# process the form parameters
|
|
877
|
+
# process the body parameter
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
# set the HTTP header `Accept`
|
|
881
|
+
if 'Accept' not in _header_params:
|
|
882
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
883
|
+
[
|
|
884
|
+
'text/plain',
|
|
885
|
+
'application/json',
|
|
886
|
+
'text/json'
|
|
887
|
+
]
|
|
888
|
+
)
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
# authentication setting
|
|
892
|
+
_auth_settings: List[str] = [
|
|
893
|
+
'bearer',
|
|
894
|
+
'oauth2'
|
|
895
|
+
]
|
|
896
|
+
|
|
897
|
+
return self.api_client.param_serialize(
|
|
898
|
+
method='GET',
|
|
899
|
+
resource_path='/rapid/global-responses',
|
|
900
|
+
path_params=_path_params,
|
|
901
|
+
query_params=_query_params,
|
|
902
|
+
header_params=_header_params,
|
|
903
|
+
body=_body_params,
|
|
904
|
+
post_params=_form_params,
|
|
905
|
+
files=_files,
|
|
906
|
+
auth_settings=_auth_settings,
|
|
907
|
+
collection_formats=_collection_formats,
|
|
908
|
+
_host=_host,
|
|
909
|
+
_request_auth=_request_auth
|
|
910
|
+
)
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
|
|
668
915
|
@validate_call
|
|
669
916
|
def rapid_rapid_id_delete(
|
|
670
917
|
self,
|