rapidata 2.26.1__py3-none-any.whl → 2.27.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.

Potentially problematic release.


This version of rapidata might be problematic. Click here for more details.

Files changed (65) hide show
  1. rapidata/__init__.py +2 -2
  2. rapidata/api_client/__init__.py +11 -3
  3. rapidata/api_client/api/__init__.py +2 -1
  4. rapidata/api_client/api/client_api.py +0 -257
  5. rapidata/api_client/api/customer_rapid_api.py +1644 -0
  6. rapidata/api_client/api/dataset_api.py +358 -1
  7. rapidata/api_client/api/newsletter_api.py +11 -299
  8. rapidata/api_client/api/user_rapid_api.py +1385 -0
  9. rapidata/api_client/api/validation_set_api.py +6 -6
  10. rapidata/api_client/models/__init__.py +9 -2
  11. rapidata/api_client/models/add_campaign_model.py +5 -0
  12. rapidata/api_client/models/add_validation_rapid_model.py +3 -3
  13. rapidata/api_client/models/add_validation_rapid_model_truth.py +25 -11
  14. rapidata/api_client/models/add_validation_text_rapid_model.py +3 -3
  15. rapidata/api_client/models/asset_metadata_model.py +2 -8
  16. rapidata/api_client/models/compare_result.py +1 -10
  17. rapidata/api_client/models/compare_workflow_model.py +3 -3
  18. rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
  19. rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
  20. rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
  21. rapidata/api_client/models/create_order_model.py +2 -4
  22. rapidata/api_client/models/datapoint.py +3 -3
  23. rapidata/api_client/models/datapoint_metadata_model.py +3 -3
  24. rapidata/api_client/models/datapoint_model.py +3 -3
  25. rapidata/api_client/models/dataset_dataset_id_datapoints_post_request_metadata_inner.py +182 -0
  26. rapidata/api_client/models/file_asset_model.py +1 -3
  27. rapidata/api_client/models/file_asset_model_metadata_value.py +1 -3
  28. rapidata/api_client/models/get_compare_workflow_results_result.py +3 -3
  29. rapidata/api_client/models/get_datapoint_by_id_result.py +3 -3
  30. rapidata/api_client/models/get_rapid_responses_result.py +5 -5
  31. rapidata/api_client/models/get_validation_rapids_result.py +12 -3
  32. rapidata/api_client/models/get_validation_rapids_result_truth.py +25 -11
  33. rapidata/api_client/models/get_workflow_results_result.py +5 -5
  34. rapidata/api_client/models/multi_asset_model.py +4 -4
  35. rapidata/api_client/models/multi_compare_truth.py +96 -0
  36. rapidata/api_client/models/naive_referee_info.py +96 -0
  37. rapidata/api_client/models/never_ending_referee_info.py +94 -0
  38. rapidata/api_client/models/null_asset_model.py +1 -3
  39. rapidata/api_client/models/probabilistic_attach_category_referee_info.py +98 -0
  40. rapidata/api_client/models/rapid_model.py +173 -0
  41. rapidata/api_client/models/rapid_model_paged_result.py +105 -0
  42. rapidata/api_client/models/rapid_model_referee.py +154 -0
  43. rapidata/api_client/models/rapid_state.py +1 -0
  44. rapidata/api_client/models/text_asset_model.py +1 -3
  45. rapidata/api_client/models/update_access_model.py +1 -1
  46. rapidata/api_client/models/update_validation_rapid_model.py +3 -8
  47. rapidata/api_client/models/update_validation_rapid_model_truth.py +26 -12
  48. rapidata/api_client/models/upload_files_from_s3_bucket_model.py +12 -2
  49. rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
  50. rapidata/api_client_README.md +21 -13
  51. rapidata/rapidata_client/__init__.py +1 -1
  52. rapidata/rapidata_client/assets/_multi_asset.py +0 -5
  53. rapidata/rapidata_client/logging/__init__.py +1 -1
  54. rapidata/rapidata_client/logging/output_manager.py +2 -2
  55. rapidata/rapidata_client/order/_rapidata_dataset.py +16 -39
  56. rapidata/rapidata_client/order/rapidata_order.py +20 -15
  57. rapidata/rapidata_client/order/rapidata_order_manager.py +5 -2
  58. rapidata/rapidata_client/validation/rapids/rapids.py +3 -4
  59. rapidata/rapidata_client/validation/validation_set_manager.py +2 -2
  60. rapidata/rapidata_client/workflow/_ranking_workflow.py +2 -6
  61. rapidata/service/credential_manager.py +6 -6
  62. {rapidata-2.26.1.dist-info → rapidata-2.27.1.dist-info}/METADATA +1 -1
  63. {rapidata-2.26.1.dist-info → rapidata-2.27.1.dist-info}/RECORD +65 -55
  64. {rapidata-2.26.1.dist-info → rapidata-2.27.1.dist-info}/LICENSE +0 -0
  65. {rapidata-2.26.1.dist-info → rapidata-2.27.1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,1385 @@
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
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictStr
20
+ from typing import Optional
21
+ from typing_extensions import Annotated
22
+ from rapidata.api_client.models.add_user_response_result import AddUserResponseResult
23
+ from rapidata.api_client.models.are_rapids_active_result import AreRapidsActiveResult
24
+ from rapidata.api_client.models.inspect_report_result import InspectReportResult
25
+ from rapidata.api_client.models.rapid_result_model import RapidResultModel
26
+ from rapidata.api_client.models.rapid_skipped_model import RapidSkippedModel
27
+ from rapidata.api_client.models.report_model import ReportModel
28
+
29
+ from rapidata.api_client.api_client import ApiClient, RequestSerialized
30
+ from rapidata.api_client.api_response import ApiResponse
31
+ from rapidata.api_client.rest import RESTResponseType
32
+
33
+
34
+ class UserRapidApi:
35
+ """NOTE: This class is auto generated by OpenAPI Generator
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+ """
40
+
41
+ def __init__(self, api_client=None) -> None:
42
+ if api_client is None:
43
+ api_client = ApiClient.get_default()
44
+ self.api_client = api_client
45
+
46
+
47
+ @validate_call
48
+ def rapid_rapid_bag_is_valid_get(
49
+ self,
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
+ ) -> AreRapidsActiveResult:
63
+ """Validates that the rapids associated with the current user are active.
64
+
65
+
66
+ :param _request_timeout: timeout setting for this request. If one
67
+ number provided, it will be total request
68
+ timeout. It can also be a pair (tuple) of
69
+ (connection, read) timeouts.
70
+ :type _request_timeout: int, tuple(int, int), optional
71
+ :param _request_auth: set to override the auth_settings for an a single
72
+ request; this effectively ignores the
73
+ authentication in the spec for a single request.
74
+ :type _request_auth: dict, optional
75
+ :param _content_type: force content-type for the request.
76
+ :type _content_type: str, Optional
77
+ :param _headers: set to override the headers for a single
78
+ request; this effectively ignores the headers
79
+ in the spec for a single request.
80
+ :type _headers: dict, optional
81
+ :param _host_index: set to override the host_index for a single
82
+ request; this effectively ignores the host_index
83
+ in the spec for a single request.
84
+ :type _host_index: int, optional
85
+ :return: Returns the result object.
86
+ """ # noqa: E501
87
+
88
+ _param = self._rapid_rapid_bag_is_valid_get_serialize(
89
+ _request_auth=_request_auth,
90
+ _content_type=_content_type,
91
+ _headers=_headers,
92
+ _host_index=_host_index
93
+ )
94
+
95
+ _response_types_map: Dict[str, Optional[str]] = {
96
+ '200': "AreRapidsActiveResult",
97
+ }
98
+ response_data = self.api_client.call_api(
99
+ *_param,
100
+ _request_timeout=_request_timeout
101
+ )
102
+ response_data.read()
103
+ return self.api_client.response_deserialize(
104
+ response_data=response_data,
105
+ response_types_map=_response_types_map,
106
+ ).data
107
+
108
+
109
+ @validate_call
110
+ def rapid_rapid_bag_is_valid_get_with_http_info(
111
+ self,
112
+ _request_timeout: Union[
113
+ None,
114
+ Annotated[StrictFloat, Field(gt=0)],
115
+ Tuple[
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Annotated[StrictFloat, Field(gt=0)]
118
+ ]
119
+ ] = None,
120
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
121
+ _content_type: Optional[StrictStr] = None,
122
+ _headers: Optional[Dict[StrictStr, Any]] = None,
123
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
124
+ ) -> ApiResponse[AreRapidsActiveResult]:
125
+ """Validates that the rapids associated with the current user are active.
126
+
127
+
128
+ :param _request_timeout: timeout setting for this request. If one
129
+ number provided, it will be total request
130
+ timeout. It can also be a pair (tuple) of
131
+ (connection, read) timeouts.
132
+ :type _request_timeout: int, tuple(int, int), optional
133
+ :param _request_auth: set to override the auth_settings for an a single
134
+ request; this effectively ignores the
135
+ authentication in the spec for a single request.
136
+ :type _request_auth: dict, optional
137
+ :param _content_type: force content-type for the request.
138
+ :type _content_type: str, Optional
139
+ :param _headers: set to override the headers for a single
140
+ request; this effectively ignores the headers
141
+ in the spec for a single request.
142
+ :type _headers: dict, optional
143
+ :param _host_index: set to override the host_index for a single
144
+ request; this effectively ignores the host_index
145
+ in the spec for a single request.
146
+ :type _host_index: int, optional
147
+ :return: Returns the result object.
148
+ """ # noqa: E501
149
+
150
+ _param = self._rapid_rapid_bag_is_valid_get_serialize(
151
+ _request_auth=_request_auth,
152
+ _content_type=_content_type,
153
+ _headers=_headers,
154
+ _host_index=_host_index
155
+ )
156
+
157
+ _response_types_map: Dict[str, Optional[str]] = {
158
+ '200': "AreRapidsActiveResult",
159
+ }
160
+ response_data = self.api_client.call_api(
161
+ *_param,
162
+ _request_timeout=_request_timeout
163
+ )
164
+ response_data.read()
165
+ return self.api_client.response_deserialize(
166
+ response_data=response_data,
167
+ response_types_map=_response_types_map,
168
+ )
169
+
170
+
171
+ @validate_call
172
+ def rapid_rapid_bag_is_valid_get_without_preload_content(
173
+ self,
174
+ _request_timeout: Union[
175
+ None,
176
+ Annotated[StrictFloat, Field(gt=0)],
177
+ Tuple[
178
+ Annotated[StrictFloat, Field(gt=0)],
179
+ Annotated[StrictFloat, Field(gt=0)]
180
+ ]
181
+ ] = None,
182
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
183
+ _content_type: Optional[StrictStr] = None,
184
+ _headers: Optional[Dict[StrictStr, Any]] = None,
185
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
186
+ ) -> RESTResponseType:
187
+ """Validates that the rapids associated with the current user are active.
188
+
189
+
190
+ :param _request_timeout: timeout setting for this request. If one
191
+ number provided, it will be total request
192
+ timeout. It can also be a pair (tuple) of
193
+ (connection, read) timeouts.
194
+ :type _request_timeout: int, tuple(int, int), optional
195
+ :param _request_auth: set to override the auth_settings for an a single
196
+ request; this effectively ignores the
197
+ authentication in the spec for a single request.
198
+ :type _request_auth: dict, optional
199
+ :param _content_type: force content-type for the request.
200
+ :type _content_type: str, Optional
201
+ :param _headers: set to override the headers for a single
202
+ request; this effectively ignores the headers
203
+ in the spec for a single request.
204
+ :type _headers: dict, optional
205
+ :param _host_index: set to override the host_index for a single
206
+ request; this effectively ignores the host_index
207
+ in the spec for a single request.
208
+ :type _host_index: int, optional
209
+ :return: Returns the result object.
210
+ """ # noqa: E501
211
+
212
+ _param = self._rapid_rapid_bag_is_valid_get_serialize(
213
+ _request_auth=_request_auth,
214
+ _content_type=_content_type,
215
+ _headers=_headers,
216
+ _host_index=_host_index
217
+ )
218
+
219
+ _response_types_map: Dict[str, Optional[str]] = {
220
+ '200': "AreRapidsActiveResult",
221
+ }
222
+ response_data = self.api_client.call_api(
223
+ *_param,
224
+ _request_timeout=_request_timeout
225
+ )
226
+ return response_data.response
227
+
228
+
229
+ def _rapid_rapid_bag_is_valid_get_serialize(
230
+ self,
231
+ _request_auth,
232
+ _content_type,
233
+ _headers,
234
+ _host_index,
235
+ ) -> RequestSerialized:
236
+
237
+ _host = None
238
+
239
+ _collection_formats: Dict[str, str] = {
240
+ }
241
+
242
+ _path_params: Dict[str, str] = {}
243
+ _query_params: List[Tuple[str, str]] = []
244
+ _header_params: Dict[str, Optional[str]] = _headers or {}
245
+ _form_params: List[Tuple[str, str]] = []
246
+ _files: Dict[
247
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
248
+ ] = {}
249
+ _body_params: Optional[bytes] = None
250
+
251
+ # process the path parameters
252
+ # process the query parameters
253
+ # process the header parameters
254
+ # process the form parameters
255
+ # process the body parameter
256
+
257
+
258
+ # set the HTTP header `Accept`
259
+ if 'Accept' not in _header_params:
260
+ _header_params['Accept'] = self.api_client.select_header_accept(
261
+ [
262
+ 'text/plain',
263
+ 'application/json',
264
+ 'text/json'
265
+ ]
266
+ )
267
+
268
+
269
+ # authentication setting
270
+ _auth_settings: List[str] = [
271
+ 'bearer',
272
+ 'oauth2'
273
+ ]
274
+
275
+ return self.api_client.param_serialize(
276
+ method='GET',
277
+ resource_path='/rapid/rapid-bag/is-valid',
278
+ path_params=_path_params,
279
+ query_params=_query_params,
280
+ header_params=_header_params,
281
+ body=_body_params,
282
+ post_params=_form_params,
283
+ files=_files,
284
+ auth_settings=_auth_settings,
285
+ collection_formats=_collection_formats,
286
+ _host=_host,
287
+ _request_auth=_request_auth
288
+ )
289
+
290
+
291
+
292
+
293
+ @validate_call
294
+ def rapid_rapid_id_report_post(
295
+ self,
296
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to report.")],
297
+ report_model: Annotated[Optional[ReportModel], Field(description="The body request.")] = None,
298
+ _request_timeout: Union[
299
+ None,
300
+ Annotated[StrictFloat, Field(gt=0)],
301
+ Tuple[
302
+ Annotated[StrictFloat, Field(gt=0)],
303
+ Annotated[StrictFloat, Field(gt=0)]
304
+ ]
305
+ ] = None,
306
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
307
+ _content_type: Optional[StrictStr] = None,
308
+ _headers: Optional[Dict[StrictStr, Any]] = None,
309
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
310
+ ) -> None:
311
+ """Used to report an issue with a rapid.
312
+
313
+
314
+ :param rapid_id: The rapid to report. (required)
315
+ :type rapid_id: str
316
+ :param report_model: The body request.
317
+ :type report_model: ReportModel
318
+ :param _request_timeout: timeout setting for this request. If one
319
+ number provided, it will be total request
320
+ timeout. It can also be a pair (tuple) of
321
+ (connection, read) timeouts.
322
+ :type _request_timeout: int, tuple(int, int), optional
323
+ :param _request_auth: set to override the auth_settings for an a single
324
+ request; this effectively ignores the
325
+ authentication in the spec for a single request.
326
+ :type _request_auth: dict, optional
327
+ :param _content_type: force content-type for the request.
328
+ :type _content_type: str, Optional
329
+ :param _headers: set to override the headers for a single
330
+ request; this effectively ignores the headers
331
+ in the spec for a single request.
332
+ :type _headers: dict, optional
333
+ :param _host_index: set to override the host_index for a single
334
+ request; this effectively ignores the host_index
335
+ in the spec for a single request.
336
+ :type _host_index: int, optional
337
+ :return: Returns the result object.
338
+ """ # noqa: E501
339
+
340
+ _param = self._rapid_rapid_id_report_post_serialize(
341
+ rapid_id=rapid_id,
342
+ report_model=report_model,
343
+ _request_auth=_request_auth,
344
+ _content_type=_content_type,
345
+ _headers=_headers,
346
+ _host_index=_host_index
347
+ )
348
+
349
+ _response_types_map: Dict[str, Optional[str]] = {
350
+ '204': None,
351
+ }
352
+ response_data = self.api_client.call_api(
353
+ *_param,
354
+ _request_timeout=_request_timeout
355
+ )
356
+ response_data.read()
357
+ return self.api_client.response_deserialize(
358
+ response_data=response_data,
359
+ response_types_map=_response_types_map,
360
+ ).data
361
+
362
+
363
+ @validate_call
364
+ def rapid_rapid_id_report_post_with_http_info(
365
+ self,
366
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to report.")],
367
+ report_model: Annotated[Optional[ReportModel], Field(description="The body request.")] = None,
368
+ _request_timeout: Union[
369
+ None,
370
+ Annotated[StrictFloat, Field(gt=0)],
371
+ Tuple[
372
+ Annotated[StrictFloat, Field(gt=0)],
373
+ Annotated[StrictFloat, Field(gt=0)]
374
+ ]
375
+ ] = None,
376
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
377
+ _content_type: Optional[StrictStr] = None,
378
+ _headers: Optional[Dict[StrictStr, Any]] = None,
379
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
380
+ ) -> ApiResponse[None]:
381
+ """Used to report an issue with a rapid.
382
+
383
+
384
+ :param rapid_id: The rapid to report. (required)
385
+ :type rapid_id: str
386
+ :param report_model: The body request.
387
+ :type report_model: ReportModel
388
+ :param _request_timeout: timeout setting for this request. If one
389
+ number provided, it will be total request
390
+ timeout. It can also be a pair (tuple) of
391
+ (connection, read) timeouts.
392
+ :type _request_timeout: int, tuple(int, int), optional
393
+ :param _request_auth: set to override the auth_settings for an a single
394
+ request; this effectively ignores the
395
+ authentication in the spec for a single request.
396
+ :type _request_auth: dict, optional
397
+ :param _content_type: force content-type for the request.
398
+ :type _content_type: str, Optional
399
+ :param _headers: set to override the headers for a single
400
+ request; this effectively ignores the headers
401
+ in the spec for a single request.
402
+ :type _headers: dict, optional
403
+ :param _host_index: set to override the host_index for a single
404
+ request; this effectively ignores the host_index
405
+ in the spec for a single request.
406
+ :type _host_index: int, optional
407
+ :return: Returns the result object.
408
+ """ # noqa: E501
409
+
410
+ _param = self._rapid_rapid_id_report_post_serialize(
411
+ rapid_id=rapid_id,
412
+ report_model=report_model,
413
+ _request_auth=_request_auth,
414
+ _content_type=_content_type,
415
+ _headers=_headers,
416
+ _host_index=_host_index
417
+ )
418
+
419
+ _response_types_map: Dict[str, Optional[str]] = {
420
+ '204': None,
421
+ }
422
+ response_data = self.api_client.call_api(
423
+ *_param,
424
+ _request_timeout=_request_timeout
425
+ )
426
+ response_data.read()
427
+ return self.api_client.response_deserialize(
428
+ response_data=response_data,
429
+ response_types_map=_response_types_map,
430
+ )
431
+
432
+
433
+ @validate_call
434
+ def rapid_rapid_id_report_post_without_preload_content(
435
+ self,
436
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to report.")],
437
+ report_model: Annotated[Optional[ReportModel], Field(description="The body request.")] = None,
438
+ _request_timeout: Union[
439
+ None,
440
+ Annotated[StrictFloat, Field(gt=0)],
441
+ Tuple[
442
+ Annotated[StrictFloat, Field(gt=0)],
443
+ Annotated[StrictFloat, Field(gt=0)]
444
+ ]
445
+ ] = None,
446
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
447
+ _content_type: Optional[StrictStr] = None,
448
+ _headers: Optional[Dict[StrictStr, Any]] = None,
449
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
450
+ ) -> RESTResponseType:
451
+ """Used to report an issue with a rapid.
452
+
453
+
454
+ :param rapid_id: The rapid to report. (required)
455
+ :type rapid_id: str
456
+ :param report_model: The body request.
457
+ :type report_model: ReportModel
458
+ :param _request_timeout: timeout setting for this request. If one
459
+ number provided, it will be total request
460
+ timeout. It can also be a pair (tuple) of
461
+ (connection, read) timeouts.
462
+ :type _request_timeout: int, tuple(int, int), optional
463
+ :param _request_auth: set to override the auth_settings for an a single
464
+ request; this effectively ignores the
465
+ authentication in the spec for a single request.
466
+ :type _request_auth: dict, optional
467
+ :param _content_type: force content-type for the request.
468
+ :type _content_type: str, Optional
469
+ :param _headers: set to override the headers for a single
470
+ request; this effectively ignores the headers
471
+ in the spec for a single request.
472
+ :type _headers: dict, optional
473
+ :param _host_index: set to override the host_index for a single
474
+ request; this effectively ignores the host_index
475
+ in the spec for a single request.
476
+ :type _host_index: int, optional
477
+ :return: Returns the result object.
478
+ """ # noqa: E501
479
+
480
+ _param = self._rapid_rapid_id_report_post_serialize(
481
+ rapid_id=rapid_id,
482
+ report_model=report_model,
483
+ _request_auth=_request_auth,
484
+ _content_type=_content_type,
485
+ _headers=_headers,
486
+ _host_index=_host_index
487
+ )
488
+
489
+ _response_types_map: Dict[str, Optional[str]] = {
490
+ '204': None,
491
+ }
492
+ response_data = self.api_client.call_api(
493
+ *_param,
494
+ _request_timeout=_request_timeout
495
+ )
496
+ return response_data.response
497
+
498
+
499
+ def _rapid_rapid_id_report_post_serialize(
500
+ self,
501
+ rapid_id,
502
+ report_model,
503
+ _request_auth,
504
+ _content_type,
505
+ _headers,
506
+ _host_index,
507
+ ) -> RequestSerialized:
508
+
509
+ _host = None
510
+
511
+ _collection_formats: Dict[str, str] = {
512
+ }
513
+
514
+ _path_params: Dict[str, str] = {}
515
+ _query_params: List[Tuple[str, str]] = []
516
+ _header_params: Dict[str, Optional[str]] = _headers or {}
517
+ _form_params: List[Tuple[str, str]] = []
518
+ _files: Dict[
519
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
520
+ ] = {}
521
+ _body_params: Optional[bytes] = None
522
+
523
+ # process the path parameters
524
+ if rapid_id is not None:
525
+ _path_params['rapidId'] = rapid_id
526
+ # process the query parameters
527
+ # process the header parameters
528
+ # process the form parameters
529
+ # process the body parameter
530
+ if report_model is not None:
531
+ _body_params = report_model
532
+
533
+
534
+
535
+ # set the HTTP header `Content-Type`
536
+ if _content_type:
537
+ _header_params['Content-Type'] = _content_type
538
+ else:
539
+ _default_content_type = (
540
+ self.api_client.select_header_content_type(
541
+ [
542
+ 'application/json',
543
+ 'text/json',
544
+ 'application/*+json'
545
+ ]
546
+ )
547
+ )
548
+ if _default_content_type is not None:
549
+ _header_params['Content-Type'] = _default_content_type
550
+
551
+ # authentication setting
552
+ _auth_settings: List[str] = [
553
+ 'bearer',
554
+ 'oauth2'
555
+ ]
556
+
557
+ return self.api_client.param_serialize(
558
+ method='POST',
559
+ resource_path='/rapid/{rapidId}/report',
560
+ path_params=_path_params,
561
+ query_params=_query_params,
562
+ header_params=_header_params,
563
+ body=_body_params,
564
+ post_params=_form_params,
565
+ files=_files,
566
+ auth_settings=_auth_settings,
567
+ collection_formats=_collection_formats,
568
+ _host=_host,
569
+ _request_auth=_request_auth
570
+ )
571
+
572
+
573
+
574
+
575
+ @validate_call
576
+ def rapid_report_report_id_get(
577
+ self,
578
+ report_id: Annotated[StrictStr, Field(description="The report id")],
579
+ _request_timeout: Union[
580
+ None,
581
+ Annotated[StrictFloat, Field(gt=0)],
582
+ Tuple[
583
+ Annotated[StrictFloat, Field(gt=0)],
584
+ Annotated[StrictFloat, Field(gt=0)]
585
+ ]
586
+ ] = None,
587
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
588
+ _content_type: Optional[StrictStr] = None,
589
+ _headers: Optional[Dict[StrictStr, Any]] = None,
590
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
591
+ ) -> InspectReportResult:
592
+ """Inspects a report's dump. Can be used to restore zustand state or anything alike.
593
+
594
+
595
+ :param report_id: The report id (required)
596
+ :type report_id: str
597
+ :param _request_timeout: timeout setting for this request. If one
598
+ number provided, it will be total request
599
+ timeout. It can also be a pair (tuple) of
600
+ (connection, read) timeouts.
601
+ :type _request_timeout: int, tuple(int, int), optional
602
+ :param _request_auth: set to override the auth_settings for an a single
603
+ request; this effectively ignores the
604
+ authentication in the spec for a single request.
605
+ :type _request_auth: dict, optional
606
+ :param _content_type: force content-type for the request.
607
+ :type _content_type: str, Optional
608
+ :param _headers: set to override the headers for a single
609
+ request; this effectively ignores the headers
610
+ in the spec for a single request.
611
+ :type _headers: dict, optional
612
+ :param _host_index: set to override the host_index for a single
613
+ request; this effectively ignores the host_index
614
+ in the spec for a single request.
615
+ :type _host_index: int, optional
616
+ :return: Returns the result object.
617
+ """ # noqa: E501
618
+
619
+ _param = self._rapid_report_report_id_get_serialize(
620
+ report_id=report_id,
621
+ _request_auth=_request_auth,
622
+ _content_type=_content_type,
623
+ _headers=_headers,
624
+ _host_index=_host_index
625
+ )
626
+
627
+ _response_types_map: Dict[str, Optional[str]] = {
628
+ '200': "InspectReportResult",
629
+ }
630
+ response_data = self.api_client.call_api(
631
+ *_param,
632
+ _request_timeout=_request_timeout
633
+ )
634
+ response_data.read()
635
+ return self.api_client.response_deserialize(
636
+ response_data=response_data,
637
+ response_types_map=_response_types_map,
638
+ ).data
639
+
640
+
641
+ @validate_call
642
+ def rapid_report_report_id_get_with_http_info(
643
+ self,
644
+ report_id: Annotated[StrictStr, Field(description="The report id")],
645
+ _request_timeout: Union[
646
+ None,
647
+ Annotated[StrictFloat, Field(gt=0)],
648
+ Tuple[
649
+ Annotated[StrictFloat, Field(gt=0)],
650
+ Annotated[StrictFloat, Field(gt=0)]
651
+ ]
652
+ ] = None,
653
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
654
+ _content_type: Optional[StrictStr] = None,
655
+ _headers: Optional[Dict[StrictStr, Any]] = None,
656
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
657
+ ) -> ApiResponse[InspectReportResult]:
658
+ """Inspects a report's dump. Can be used to restore zustand state or anything alike.
659
+
660
+
661
+ :param report_id: The report id (required)
662
+ :type report_id: str
663
+ :param _request_timeout: timeout setting for this request. If one
664
+ number provided, it will be total request
665
+ timeout. It can also be a pair (tuple) of
666
+ (connection, read) timeouts.
667
+ :type _request_timeout: int, tuple(int, int), optional
668
+ :param _request_auth: set to override the auth_settings for an a single
669
+ request; this effectively ignores the
670
+ authentication in the spec for a single request.
671
+ :type _request_auth: dict, optional
672
+ :param _content_type: force content-type for the request.
673
+ :type _content_type: str, Optional
674
+ :param _headers: set to override the headers for a single
675
+ request; this effectively ignores the headers
676
+ in the spec for a single request.
677
+ :type _headers: dict, optional
678
+ :param _host_index: set to override the host_index for a single
679
+ request; this effectively ignores the host_index
680
+ in the spec for a single request.
681
+ :type _host_index: int, optional
682
+ :return: Returns the result object.
683
+ """ # noqa: E501
684
+
685
+ _param = self._rapid_report_report_id_get_serialize(
686
+ report_id=report_id,
687
+ _request_auth=_request_auth,
688
+ _content_type=_content_type,
689
+ _headers=_headers,
690
+ _host_index=_host_index
691
+ )
692
+
693
+ _response_types_map: Dict[str, Optional[str]] = {
694
+ '200': "InspectReportResult",
695
+ }
696
+ response_data = self.api_client.call_api(
697
+ *_param,
698
+ _request_timeout=_request_timeout
699
+ )
700
+ response_data.read()
701
+ return self.api_client.response_deserialize(
702
+ response_data=response_data,
703
+ response_types_map=_response_types_map,
704
+ )
705
+
706
+
707
+ @validate_call
708
+ def rapid_report_report_id_get_without_preload_content(
709
+ self,
710
+ report_id: Annotated[StrictStr, Field(description="The report id")],
711
+ _request_timeout: Union[
712
+ None,
713
+ Annotated[StrictFloat, Field(gt=0)],
714
+ Tuple[
715
+ Annotated[StrictFloat, Field(gt=0)],
716
+ Annotated[StrictFloat, Field(gt=0)]
717
+ ]
718
+ ] = None,
719
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
720
+ _content_type: Optional[StrictStr] = None,
721
+ _headers: Optional[Dict[StrictStr, Any]] = None,
722
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
723
+ ) -> RESTResponseType:
724
+ """Inspects a report's dump. Can be used to restore zustand state or anything alike.
725
+
726
+
727
+ :param report_id: The report id (required)
728
+ :type report_id: str
729
+ :param _request_timeout: timeout setting for this request. If one
730
+ number provided, it will be total request
731
+ timeout. It can also be a pair (tuple) of
732
+ (connection, read) timeouts.
733
+ :type _request_timeout: int, tuple(int, int), optional
734
+ :param _request_auth: set to override the auth_settings for an a single
735
+ request; this effectively ignores the
736
+ authentication in the spec for a single request.
737
+ :type _request_auth: dict, optional
738
+ :param _content_type: force content-type for the request.
739
+ :type _content_type: str, Optional
740
+ :param _headers: set to override the headers for a single
741
+ request; this effectively ignores the headers
742
+ in the spec for a single request.
743
+ :type _headers: dict, optional
744
+ :param _host_index: set to override the host_index for a single
745
+ request; this effectively ignores the host_index
746
+ in the spec for a single request.
747
+ :type _host_index: int, optional
748
+ :return: Returns the result object.
749
+ """ # noqa: E501
750
+
751
+ _param = self._rapid_report_report_id_get_serialize(
752
+ report_id=report_id,
753
+ _request_auth=_request_auth,
754
+ _content_type=_content_type,
755
+ _headers=_headers,
756
+ _host_index=_host_index
757
+ )
758
+
759
+ _response_types_map: Dict[str, Optional[str]] = {
760
+ '200': "InspectReportResult",
761
+ }
762
+ response_data = self.api_client.call_api(
763
+ *_param,
764
+ _request_timeout=_request_timeout
765
+ )
766
+ return response_data.response
767
+
768
+
769
+ def _rapid_report_report_id_get_serialize(
770
+ self,
771
+ report_id,
772
+ _request_auth,
773
+ _content_type,
774
+ _headers,
775
+ _host_index,
776
+ ) -> RequestSerialized:
777
+
778
+ _host = None
779
+
780
+ _collection_formats: Dict[str, str] = {
781
+ }
782
+
783
+ _path_params: Dict[str, str] = {}
784
+ _query_params: List[Tuple[str, str]] = []
785
+ _header_params: Dict[str, Optional[str]] = _headers or {}
786
+ _form_params: List[Tuple[str, str]] = []
787
+ _files: Dict[
788
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
789
+ ] = {}
790
+ _body_params: Optional[bytes] = None
791
+
792
+ # process the path parameters
793
+ if report_id is not None:
794
+ _path_params['reportId'] = report_id
795
+ # process the query parameters
796
+ # process the header parameters
797
+ # process the form parameters
798
+ # process the body parameter
799
+
800
+
801
+ # set the HTTP header `Accept`
802
+ if 'Accept' not in _header_params:
803
+ _header_params['Accept'] = self.api_client.select_header_accept(
804
+ [
805
+ 'text/plain',
806
+ 'application/json',
807
+ 'text/json'
808
+ ]
809
+ )
810
+
811
+
812
+ # authentication setting
813
+ _auth_settings: List[str] = [
814
+ 'bearer',
815
+ 'oauth2'
816
+ ]
817
+
818
+ return self.api_client.param_serialize(
819
+ method='GET',
820
+ resource_path='/rapid/report/{reportId}',
821
+ path_params=_path_params,
822
+ query_params=_query_params,
823
+ header_params=_header_params,
824
+ body=_body_params,
825
+ post_params=_form_params,
826
+ files=_files,
827
+ auth_settings=_auth_settings,
828
+ collection_formats=_collection_formats,
829
+ _host=_host,
830
+ _request_auth=_request_auth
831
+ )
832
+
833
+
834
+
835
+
836
+ @validate_call
837
+ def rapid_response_post(
838
+ self,
839
+ rapid_result_model: Annotated[Optional[RapidResultModel], Field(description="The model containing the user guess.")] = None,
840
+ _request_timeout: Union[
841
+ None,
842
+ Annotated[StrictFloat, Field(gt=0)],
843
+ Tuple[
844
+ Annotated[StrictFloat, Field(gt=0)],
845
+ Annotated[StrictFloat, Field(gt=0)]
846
+ ]
847
+ ] = None,
848
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
849
+ _content_type: Optional[StrictStr] = None,
850
+ _headers: Optional[Dict[StrictStr, Any]] = None,
851
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
852
+ ) -> AddUserResponseResult:
853
+ """Submits a response for a Rapid.
854
+
855
+
856
+ :param rapid_result_model: The model containing the user guess.
857
+ :type rapid_result_model: RapidResultModel
858
+ :param _request_timeout: timeout setting for this request. If one
859
+ number provided, it will be total request
860
+ timeout. It can also be a pair (tuple) of
861
+ (connection, read) timeouts.
862
+ :type _request_timeout: int, tuple(int, int), optional
863
+ :param _request_auth: set to override the auth_settings for an a single
864
+ request; this effectively ignores the
865
+ authentication in the spec for a single request.
866
+ :type _request_auth: dict, optional
867
+ :param _content_type: force content-type for the request.
868
+ :type _content_type: str, Optional
869
+ :param _headers: set to override the headers for a single
870
+ request; this effectively ignores the headers
871
+ in the spec for a single request.
872
+ :type _headers: dict, optional
873
+ :param _host_index: set to override the host_index for a single
874
+ request; this effectively ignores the host_index
875
+ in the spec for a single request.
876
+ :type _host_index: int, optional
877
+ :return: Returns the result object.
878
+ """ # noqa: E501
879
+
880
+ _param = self._rapid_response_post_serialize(
881
+ rapid_result_model=rapid_result_model,
882
+ _request_auth=_request_auth,
883
+ _content_type=_content_type,
884
+ _headers=_headers,
885
+ _host_index=_host_index
886
+ )
887
+
888
+ _response_types_map: Dict[str, Optional[str]] = {
889
+ '200': "AddUserResponseResult",
890
+ }
891
+ response_data = self.api_client.call_api(
892
+ *_param,
893
+ _request_timeout=_request_timeout
894
+ )
895
+ response_data.read()
896
+ return self.api_client.response_deserialize(
897
+ response_data=response_data,
898
+ response_types_map=_response_types_map,
899
+ ).data
900
+
901
+
902
+ @validate_call
903
+ def rapid_response_post_with_http_info(
904
+ self,
905
+ rapid_result_model: Annotated[Optional[RapidResultModel], Field(description="The model containing the user guess.")] = None,
906
+ _request_timeout: Union[
907
+ None,
908
+ Annotated[StrictFloat, Field(gt=0)],
909
+ Tuple[
910
+ Annotated[StrictFloat, Field(gt=0)],
911
+ Annotated[StrictFloat, Field(gt=0)]
912
+ ]
913
+ ] = None,
914
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
915
+ _content_type: Optional[StrictStr] = None,
916
+ _headers: Optional[Dict[StrictStr, Any]] = None,
917
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
918
+ ) -> ApiResponse[AddUserResponseResult]:
919
+ """Submits a response for a Rapid.
920
+
921
+
922
+ :param rapid_result_model: The model containing the user guess.
923
+ :type rapid_result_model: RapidResultModel
924
+ :param _request_timeout: timeout setting for this request. If one
925
+ number provided, it will be total request
926
+ timeout. It can also be a pair (tuple) of
927
+ (connection, read) timeouts.
928
+ :type _request_timeout: int, tuple(int, int), optional
929
+ :param _request_auth: set to override the auth_settings for an a single
930
+ request; this effectively ignores the
931
+ authentication in the spec for a single request.
932
+ :type _request_auth: dict, optional
933
+ :param _content_type: force content-type for the request.
934
+ :type _content_type: str, Optional
935
+ :param _headers: set to override the headers for a single
936
+ request; this effectively ignores the headers
937
+ in the spec for a single request.
938
+ :type _headers: dict, optional
939
+ :param _host_index: set to override the host_index for a single
940
+ request; this effectively ignores the host_index
941
+ in the spec for a single request.
942
+ :type _host_index: int, optional
943
+ :return: Returns the result object.
944
+ """ # noqa: E501
945
+
946
+ _param = self._rapid_response_post_serialize(
947
+ rapid_result_model=rapid_result_model,
948
+ _request_auth=_request_auth,
949
+ _content_type=_content_type,
950
+ _headers=_headers,
951
+ _host_index=_host_index
952
+ )
953
+
954
+ _response_types_map: Dict[str, Optional[str]] = {
955
+ '200': "AddUserResponseResult",
956
+ }
957
+ response_data = self.api_client.call_api(
958
+ *_param,
959
+ _request_timeout=_request_timeout
960
+ )
961
+ response_data.read()
962
+ return self.api_client.response_deserialize(
963
+ response_data=response_data,
964
+ response_types_map=_response_types_map,
965
+ )
966
+
967
+
968
+ @validate_call
969
+ def rapid_response_post_without_preload_content(
970
+ self,
971
+ rapid_result_model: Annotated[Optional[RapidResultModel], Field(description="The model containing the user guess.")] = None,
972
+ _request_timeout: Union[
973
+ None,
974
+ Annotated[StrictFloat, Field(gt=0)],
975
+ Tuple[
976
+ Annotated[StrictFloat, Field(gt=0)],
977
+ Annotated[StrictFloat, Field(gt=0)]
978
+ ]
979
+ ] = None,
980
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
981
+ _content_type: Optional[StrictStr] = None,
982
+ _headers: Optional[Dict[StrictStr, Any]] = None,
983
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
984
+ ) -> RESTResponseType:
985
+ """Submits a response for a Rapid.
986
+
987
+
988
+ :param rapid_result_model: The model containing the user guess.
989
+ :type rapid_result_model: RapidResultModel
990
+ :param _request_timeout: timeout setting for this request. If one
991
+ number provided, it will be total request
992
+ timeout. It can also be a pair (tuple) of
993
+ (connection, read) timeouts.
994
+ :type _request_timeout: int, tuple(int, int), optional
995
+ :param _request_auth: set to override the auth_settings for an a single
996
+ request; this effectively ignores the
997
+ authentication in the spec for a single request.
998
+ :type _request_auth: dict, optional
999
+ :param _content_type: force content-type for the request.
1000
+ :type _content_type: str, Optional
1001
+ :param _headers: set to override the headers for a single
1002
+ request; this effectively ignores the headers
1003
+ in the spec for a single request.
1004
+ :type _headers: dict, optional
1005
+ :param _host_index: set to override the host_index for a single
1006
+ request; this effectively ignores the host_index
1007
+ in the spec for a single request.
1008
+ :type _host_index: int, optional
1009
+ :return: Returns the result object.
1010
+ """ # noqa: E501
1011
+
1012
+ _param = self._rapid_response_post_serialize(
1013
+ rapid_result_model=rapid_result_model,
1014
+ _request_auth=_request_auth,
1015
+ _content_type=_content_type,
1016
+ _headers=_headers,
1017
+ _host_index=_host_index
1018
+ )
1019
+
1020
+ _response_types_map: Dict[str, Optional[str]] = {
1021
+ '200': "AddUserResponseResult",
1022
+ }
1023
+ response_data = self.api_client.call_api(
1024
+ *_param,
1025
+ _request_timeout=_request_timeout
1026
+ )
1027
+ return response_data.response
1028
+
1029
+
1030
+ def _rapid_response_post_serialize(
1031
+ self,
1032
+ rapid_result_model,
1033
+ _request_auth,
1034
+ _content_type,
1035
+ _headers,
1036
+ _host_index,
1037
+ ) -> RequestSerialized:
1038
+
1039
+ _host = None
1040
+
1041
+ _collection_formats: Dict[str, str] = {
1042
+ }
1043
+
1044
+ _path_params: Dict[str, str] = {}
1045
+ _query_params: List[Tuple[str, str]] = []
1046
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1047
+ _form_params: List[Tuple[str, str]] = []
1048
+ _files: Dict[
1049
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1050
+ ] = {}
1051
+ _body_params: Optional[bytes] = None
1052
+
1053
+ # process the path parameters
1054
+ # process the query parameters
1055
+ # process the header parameters
1056
+ # process the form parameters
1057
+ # process the body parameter
1058
+ if rapid_result_model is not None:
1059
+ _body_params = rapid_result_model
1060
+
1061
+
1062
+ # set the HTTP header `Accept`
1063
+ if 'Accept' not in _header_params:
1064
+ _header_params['Accept'] = self.api_client.select_header_accept(
1065
+ [
1066
+ 'text/plain',
1067
+ 'application/json',
1068
+ 'text/json'
1069
+ ]
1070
+ )
1071
+
1072
+ # set the HTTP header `Content-Type`
1073
+ if _content_type:
1074
+ _header_params['Content-Type'] = _content_type
1075
+ else:
1076
+ _default_content_type = (
1077
+ self.api_client.select_header_content_type(
1078
+ [
1079
+ 'application/json',
1080
+ 'text/json',
1081
+ 'application/*+json'
1082
+ ]
1083
+ )
1084
+ )
1085
+ if _default_content_type is not None:
1086
+ _header_params['Content-Type'] = _default_content_type
1087
+
1088
+ # authentication setting
1089
+ _auth_settings: List[str] = [
1090
+ 'bearer',
1091
+ 'oauth2'
1092
+ ]
1093
+
1094
+ return self.api_client.param_serialize(
1095
+ method='POST',
1096
+ resource_path='/rapid/response',
1097
+ path_params=_path_params,
1098
+ query_params=_query_params,
1099
+ header_params=_header_params,
1100
+ body=_body_params,
1101
+ post_params=_form_params,
1102
+ files=_files,
1103
+ auth_settings=_auth_settings,
1104
+ collection_formats=_collection_formats,
1105
+ _host=_host,
1106
+ _request_auth=_request_auth
1107
+ )
1108
+
1109
+
1110
+
1111
+
1112
+ @validate_call
1113
+ def rapid_skip_post(
1114
+ self,
1115
+ rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1116
+ _request_timeout: Union[
1117
+ None,
1118
+ Annotated[StrictFloat, Field(gt=0)],
1119
+ Tuple[
1120
+ Annotated[StrictFloat, Field(gt=0)],
1121
+ Annotated[StrictFloat, Field(gt=0)]
1122
+ ]
1123
+ ] = None,
1124
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1125
+ _content_type: Optional[StrictStr] = None,
1126
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1127
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1128
+ ) -> AddUserResponseResult:
1129
+ """Skips a Rapid for the user.
1130
+
1131
+
1132
+ :param rapid_skipped_model: The model containing the Rapid to skip.
1133
+ :type rapid_skipped_model: RapidSkippedModel
1134
+ :param _request_timeout: timeout setting for this request. If one
1135
+ number provided, it will be total request
1136
+ timeout. It can also be a pair (tuple) of
1137
+ (connection, read) timeouts.
1138
+ :type _request_timeout: int, tuple(int, int), optional
1139
+ :param _request_auth: set to override the auth_settings for an a single
1140
+ request; this effectively ignores the
1141
+ authentication in the spec for a single request.
1142
+ :type _request_auth: dict, optional
1143
+ :param _content_type: force content-type for the request.
1144
+ :type _content_type: str, Optional
1145
+ :param _headers: set to override the headers for a single
1146
+ request; this effectively ignores the headers
1147
+ in the spec for a single request.
1148
+ :type _headers: dict, optional
1149
+ :param _host_index: set to override the host_index for a single
1150
+ request; this effectively ignores the host_index
1151
+ in the spec for a single request.
1152
+ :type _host_index: int, optional
1153
+ :return: Returns the result object.
1154
+ """ # noqa: E501
1155
+
1156
+ _param = self._rapid_skip_post_serialize(
1157
+ rapid_skipped_model=rapid_skipped_model,
1158
+ _request_auth=_request_auth,
1159
+ _content_type=_content_type,
1160
+ _headers=_headers,
1161
+ _host_index=_host_index
1162
+ )
1163
+
1164
+ _response_types_map: Dict[str, Optional[str]] = {
1165
+ '200': "AddUserResponseResult",
1166
+ }
1167
+ response_data = self.api_client.call_api(
1168
+ *_param,
1169
+ _request_timeout=_request_timeout
1170
+ )
1171
+ response_data.read()
1172
+ return self.api_client.response_deserialize(
1173
+ response_data=response_data,
1174
+ response_types_map=_response_types_map,
1175
+ ).data
1176
+
1177
+
1178
+ @validate_call
1179
+ def rapid_skip_post_with_http_info(
1180
+ self,
1181
+ rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1182
+ _request_timeout: Union[
1183
+ None,
1184
+ Annotated[StrictFloat, Field(gt=0)],
1185
+ Tuple[
1186
+ Annotated[StrictFloat, Field(gt=0)],
1187
+ Annotated[StrictFloat, Field(gt=0)]
1188
+ ]
1189
+ ] = None,
1190
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1191
+ _content_type: Optional[StrictStr] = None,
1192
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1193
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1194
+ ) -> ApiResponse[AddUserResponseResult]:
1195
+ """Skips a Rapid for the user.
1196
+
1197
+
1198
+ :param rapid_skipped_model: The model containing the Rapid to skip.
1199
+ :type rapid_skipped_model: RapidSkippedModel
1200
+ :param _request_timeout: timeout setting for this request. If one
1201
+ number provided, it will be total request
1202
+ timeout. It can also be a pair (tuple) of
1203
+ (connection, read) timeouts.
1204
+ :type _request_timeout: int, tuple(int, int), optional
1205
+ :param _request_auth: set to override the auth_settings for an a single
1206
+ request; this effectively ignores the
1207
+ authentication in the spec for a single request.
1208
+ :type _request_auth: dict, optional
1209
+ :param _content_type: force content-type for the request.
1210
+ :type _content_type: str, Optional
1211
+ :param _headers: set to override the headers for a single
1212
+ request; this effectively ignores the headers
1213
+ in the spec for a single request.
1214
+ :type _headers: dict, optional
1215
+ :param _host_index: set to override the host_index for a single
1216
+ request; this effectively ignores the host_index
1217
+ in the spec for a single request.
1218
+ :type _host_index: int, optional
1219
+ :return: Returns the result object.
1220
+ """ # noqa: E501
1221
+
1222
+ _param = self._rapid_skip_post_serialize(
1223
+ rapid_skipped_model=rapid_skipped_model,
1224
+ _request_auth=_request_auth,
1225
+ _content_type=_content_type,
1226
+ _headers=_headers,
1227
+ _host_index=_host_index
1228
+ )
1229
+
1230
+ _response_types_map: Dict[str, Optional[str]] = {
1231
+ '200': "AddUserResponseResult",
1232
+ }
1233
+ response_data = self.api_client.call_api(
1234
+ *_param,
1235
+ _request_timeout=_request_timeout
1236
+ )
1237
+ response_data.read()
1238
+ return self.api_client.response_deserialize(
1239
+ response_data=response_data,
1240
+ response_types_map=_response_types_map,
1241
+ )
1242
+
1243
+
1244
+ @validate_call
1245
+ def rapid_skip_post_without_preload_content(
1246
+ self,
1247
+ rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1248
+ _request_timeout: Union[
1249
+ None,
1250
+ Annotated[StrictFloat, Field(gt=0)],
1251
+ Tuple[
1252
+ Annotated[StrictFloat, Field(gt=0)],
1253
+ Annotated[StrictFloat, Field(gt=0)]
1254
+ ]
1255
+ ] = None,
1256
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1257
+ _content_type: Optional[StrictStr] = None,
1258
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1259
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1260
+ ) -> RESTResponseType:
1261
+ """Skips a Rapid for the user.
1262
+
1263
+
1264
+ :param rapid_skipped_model: The model containing the Rapid to skip.
1265
+ :type rapid_skipped_model: RapidSkippedModel
1266
+ :param _request_timeout: timeout setting for this request. If one
1267
+ number provided, it will be total request
1268
+ timeout. It can also be a pair (tuple) of
1269
+ (connection, read) timeouts.
1270
+ :type _request_timeout: int, tuple(int, int), optional
1271
+ :param _request_auth: set to override the auth_settings for an a single
1272
+ request; this effectively ignores the
1273
+ authentication in the spec for a single request.
1274
+ :type _request_auth: dict, optional
1275
+ :param _content_type: force content-type for the request.
1276
+ :type _content_type: str, Optional
1277
+ :param _headers: set to override the headers for a single
1278
+ request; this effectively ignores the headers
1279
+ in the spec for a single request.
1280
+ :type _headers: dict, optional
1281
+ :param _host_index: set to override the host_index for a single
1282
+ request; this effectively ignores the host_index
1283
+ in the spec for a single request.
1284
+ :type _host_index: int, optional
1285
+ :return: Returns the result object.
1286
+ """ # noqa: E501
1287
+
1288
+ _param = self._rapid_skip_post_serialize(
1289
+ rapid_skipped_model=rapid_skipped_model,
1290
+ _request_auth=_request_auth,
1291
+ _content_type=_content_type,
1292
+ _headers=_headers,
1293
+ _host_index=_host_index
1294
+ )
1295
+
1296
+ _response_types_map: Dict[str, Optional[str]] = {
1297
+ '200': "AddUserResponseResult",
1298
+ }
1299
+ response_data = self.api_client.call_api(
1300
+ *_param,
1301
+ _request_timeout=_request_timeout
1302
+ )
1303
+ return response_data.response
1304
+
1305
+
1306
+ def _rapid_skip_post_serialize(
1307
+ self,
1308
+ rapid_skipped_model,
1309
+ _request_auth,
1310
+ _content_type,
1311
+ _headers,
1312
+ _host_index,
1313
+ ) -> RequestSerialized:
1314
+
1315
+ _host = None
1316
+
1317
+ _collection_formats: Dict[str, str] = {
1318
+ }
1319
+
1320
+ _path_params: Dict[str, str] = {}
1321
+ _query_params: List[Tuple[str, str]] = []
1322
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1323
+ _form_params: List[Tuple[str, str]] = []
1324
+ _files: Dict[
1325
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1326
+ ] = {}
1327
+ _body_params: Optional[bytes] = None
1328
+
1329
+ # process the path parameters
1330
+ # process the query parameters
1331
+ # process the header parameters
1332
+ # process the form parameters
1333
+ # process the body parameter
1334
+ if rapid_skipped_model is not None:
1335
+ _body_params = rapid_skipped_model
1336
+
1337
+
1338
+ # set the HTTP header `Accept`
1339
+ if 'Accept' not in _header_params:
1340
+ _header_params['Accept'] = self.api_client.select_header_accept(
1341
+ [
1342
+ 'text/plain',
1343
+ 'application/json',
1344
+ 'text/json'
1345
+ ]
1346
+ )
1347
+
1348
+ # set the HTTP header `Content-Type`
1349
+ if _content_type:
1350
+ _header_params['Content-Type'] = _content_type
1351
+ else:
1352
+ _default_content_type = (
1353
+ self.api_client.select_header_content_type(
1354
+ [
1355
+ 'application/json',
1356
+ 'text/json',
1357
+ 'application/*+json'
1358
+ ]
1359
+ )
1360
+ )
1361
+ if _default_content_type is not None:
1362
+ _header_params['Content-Type'] = _default_content_type
1363
+
1364
+ # authentication setting
1365
+ _auth_settings: List[str] = [
1366
+ 'bearer',
1367
+ 'oauth2'
1368
+ ]
1369
+
1370
+ return self.api_client.param_serialize(
1371
+ method='POST',
1372
+ resource_path='/rapid/skip',
1373
+ path_params=_path_params,
1374
+ query_params=_query_params,
1375
+ header_params=_header_params,
1376
+ body=_body_params,
1377
+ post_params=_form_params,
1378
+ files=_files,
1379
+ auth_settings=_auth_settings,
1380
+ collection_formats=_collection_formats,
1381
+ _host=_host,
1382
+ _request_auth=_request_auth
1383
+ )
1384
+
1385
+