rapidata 2.14.1__py3-none-any.whl → 2.16.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.

Files changed (69) hide show
  1. rapidata/api_client/__init__.py +18 -7
  2. rapidata/api_client/api/__init__.py +2 -1
  3. rapidata/api_client/api/campaign_api.py +868 -92
  4. rapidata/api_client/api/client_api.py +292 -20
  5. rapidata/api_client/api/coco_api.py +594 -8
  6. rapidata/api_client/api/compare_workflow_api.py +23 -23
  7. rapidata/api_client/api/datapoint_api.py +548 -26
  8. rapidata/api_client/api/dataset_api.py +2198 -186
  9. rapidata/api_client/api/feedback_api.py +306 -0
  10. rapidata/api_client/api/identity_api.py +1143 -78
  11. rapidata/api_client/api/newsletter_api.py +299 -11
  12. rapidata/api_client/api/order_api.py +5570 -516
  13. rapidata/api_client/api/pipeline_api.py +263 -524
  14. rapidata/api_client/api/rapid_api.py +1930 -254
  15. rapidata/api_client/api/simple_workflow_api.py +23 -23
  16. rapidata/api_client/api/validation_api.py +283 -0
  17. rapidata/api_client/api/validation_set_api.py +5259 -0
  18. rapidata/api_client/api/workflow_api.py +929 -134
  19. rapidata/api_client/models/__init__.py +16 -6
  20. rapidata/api_client/models/ab_test_selection_a_inner.py +24 -10
  21. rapidata/api_client/models/add_campaign_model.py +9 -2
  22. rapidata/api_client/models/add_user_response_result.py +106 -0
  23. rapidata/api_client/models/add_user_response_result_validation_truth.py +258 -0
  24. rapidata/api_client/models/add_validation_rapid_model.py +3 -3
  25. rapidata/api_client/models/add_validation_text_rapid_model.py +3 -3
  26. rapidata/api_client/models/are_rapids_active_result.py +87 -0
  27. rapidata/api_client/models/campaign_query_result.py +2 -2
  28. rapidata/api_client/models/campaign_status.py +1 -0
  29. rapidata/api_client/models/compare_workflow_model.py +3 -3
  30. rapidata/api_client/models/create_datapoint_from_files_model.py +102 -0
  31. rapidata/api_client/models/create_datapoint_from_files_model_metadata_inner.py +168 -0
  32. rapidata/api_client/models/create_datapoint_from_text_sources_model.py +109 -0
  33. rapidata/api_client/models/create_datapoint_from_urls_model.py +4 -4
  34. rapidata/api_client/models/create_datapoints_from_s3_bucket_model.py +124 -0
  35. rapidata/api_client/models/create_order_model.py +15 -1
  36. rapidata/api_client/models/create_rapid_result.py +87 -0
  37. rapidata/api_client/models/create_validation_set_model.py +87 -0
  38. rapidata/api_client/models/datapoint_metadata_model.py +3 -3
  39. rapidata/api_client/models/evaluation_workflow_model.py +1 -1
  40. rapidata/api_client/models/get_validation_rapids_query.py +123 -0
  41. rapidata/api_client/models/get_validation_rapids_query_paged_result.py +105 -0
  42. rapidata/api_client/models/order_model.py +2 -2
  43. rapidata/api_client/models/order_state.py +1 -0
  44. rapidata/api_client/models/pipeline_id_workflow_artifact_id_put_request.py +140 -0
  45. rapidata/api_client/models/query_validation_rapids_result.py +3 -3
  46. rapidata/api_client/models/rapid_issue.py +4 -0
  47. rapidata/api_client/models/report_model.py +4 -4
  48. rapidata/api_client/models/shuffling_selection.py +106 -0
  49. rapidata/api_client/models/update_dataset_name_model.py +87 -0
  50. rapidata/api_client/models/update_dimensions_model.py +87 -0
  51. rapidata/api_client/models/update_order_name_model.py +87 -0
  52. rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
  53. rapidata/api_client/models/user_score_user_filter_model.py +9 -2
  54. rapidata/api_client_README.md +154 -84
  55. rapidata/rapidata_client/demographic/demographic_manager.py +36 -1
  56. rapidata/rapidata_client/filter/user_score_filter.py +4 -1
  57. rapidata/rapidata_client/order/_rapidata_dataset.py +10 -11
  58. rapidata/rapidata_client/order/_rapidata_order_builder.py +3 -1
  59. rapidata/rapidata_client/order/rapidata_order.py +8 -10
  60. rapidata/rapidata_client/order/rapidata_order_manager.py +11 -2
  61. rapidata/rapidata_client/order/rapidata_results.py +1 -1
  62. rapidata/rapidata_client/validation/rapidata_validation_set.py +11 -0
  63. rapidata/rapidata_client/validation/rapids/rapids.py +3 -5
  64. rapidata/rapidata_client/validation/validation_set_manager.py +36 -21
  65. rapidata/rapidata_client/workflow/_ranking_workflow.py +2 -2
  66. {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/METADATA +1 -1
  67. {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/RECORD +69 -51
  68. {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/LICENSE +0 -0
  69. {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/WHEEL +0 -0
@@ -19,7 +19,10 @@ from typing_extensions import Annotated
19
19
  from pydantic import Field, StrictBytes, StrictStr
20
20
  from typing import List, Optional, Tuple, Union
21
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
22
24
  from rapidata.api_client.models.create_demographic_rapid_model import CreateDemographicRapidModel
25
+ from rapidata.api_client.models.create_rapid_result import CreateRapidResult
23
26
  from rapidata.api_client.models.get_rapid_responses_result import GetRapidResponsesResult
24
27
  from rapidata.api_client.models.inspect_report_result import InspectReportResult
25
28
  from rapidata.api_client.models.query_model import QueryModel
@@ -48,7 +51,7 @@ class RapidApi:
48
51
 
49
52
 
50
53
  @validate_call
51
- def rapid_add_user_guess_post(
54
+ def rapid_adduserguess_post(
52
55
  self,
53
56
  rapid_result_model: Annotated[Optional[RapidResultModel], Field(description="The model containing the user guess.")] = None,
54
57
  _request_timeout: Union[
@@ -64,7 +67,7 @@ class RapidApi:
64
67
  _headers: Optional[Dict[StrictStr, Any]] = None,
65
68
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
66
69
  ) -> None:
67
- """Submits a user guess for a Rapid.
70
+ """(Deprecated) Submits a user guess for a Rapid.
68
71
 
69
72
 
70
73
  :param rapid_result_model: The model containing the user guess.
@@ -90,8 +93,9 @@ class RapidApi:
90
93
  :type _host_index: int, optional
91
94
  :return: Returns the result object.
92
95
  """ # noqa: E501
96
+ warnings.warn("POST /rapid/adduserguess is deprecated.", DeprecationWarning)
93
97
 
94
- _param = self._rapid_add_user_guess_post_serialize(
98
+ _param = self._rapid_adduserguess_post_serialize(
95
99
  rapid_result_model=rapid_result_model,
96
100
  _request_auth=_request_auth,
97
101
  _content_type=_content_type,
@@ -114,7 +118,7 @@ class RapidApi:
114
118
 
115
119
 
116
120
  @validate_call
117
- def rapid_add_user_guess_post_with_http_info(
121
+ def rapid_adduserguess_post_with_http_info(
118
122
  self,
119
123
  rapid_result_model: Annotated[Optional[RapidResultModel], Field(description="The model containing the user guess.")] = None,
120
124
  _request_timeout: Union[
@@ -130,7 +134,7 @@ class RapidApi:
130
134
  _headers: Optional[Dict[StrictStr, Any]] = None,
131
135
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
132
136
  ) -> ApiResponse[None]:
133
- """Submits a user guess for a Rapid.
137
+ """(Deprecated) Submits a user guess for a Rapid.
134
138
 
135
139
 
136
140
  :param rapid_result_model: The model containing the user guess.
@@ -156,8 +160,9 @@ class RapidApi:
156
160
  :type _host_index: int, optional
157
161
  :return: Returns the result object.
158
162
  """ # noqa: E501
163
+ warnings.warn("POST /rapid/adduserguess is deprecated.", DeprecationWarning)
159
164
 
160
- _param = self._rapid_add_user_guess_post_serialize(
165
+ _param = self._rapid_adduserguess_post_serialize(
161
166
  rapid_result_model=rapid_result_model,
162
167
  _request_auth=_request_auth,
163
168
  _content_type=_content_type,
@@ -180,7 +185,7 @@ class RapidApi:
180
185
 
181
186
 
182
187
  @validate_call
183
- def rapid_add_user_guess_post_without_preload_content(
188
+ def rapid_adduserguess_post_without_preload_content(
184
189
  self,
185
190
  rapid_result_model: Annotated[Optional[RapidResultModel], Field(description="The model containing the user guess.")] = None,
186
191
  _request_timeout: Union[
@@ -196,7 +201,7 @@ class RapidApi:
196
201
  _headers: Optional[Dict[StrictStr, Any]] = None,
197
202
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
198
203
  ) -> RESTResponseType:
199
- """Submits a user guess for a Rapid.
204
+ """(Deprecated) Submits a user guess for a Rapid.
200
205
 
201
206
 
202
207
  :param rapid_result_model: The model containing the user guess.
@@ -222,8 +227,9 @@ class RapidApi:
222
227
  :type _host_index: int, optional
223
228
  :return: Returns the result object.
224
229
  """ # noqa: E501
230
+ warnings.warn("POST /rapid/adduserguess is deprecated.", DeprecationWarning)
225
231
 
226
- _param = self._rapid_add_user_guess_post_serialize(
232
+ _param = self._rapid_adduserguess_post_serialize(
227
233
  rapid_result_model=rapid_result_model,
228
234
  _request_auth=_request_auth,
229
235
  _content_type=_content_type,
@@ -241,7 +247,7 @@ class RapidApi:
241
247
  return response_data.response
242
248
 
243
249
 
244
- def _rapid_add_user_guess_post_serialize(
250
+ def _rapid_adduserguess_post_serialize(
245
251
  self,
246
252
  rapid_result_model,
247
253
  _request_auth,
@@ -298,7 +304,7 @@ class RapidApi:
298
304
 
299
305
  return self.api_client.param_serialize(
300
306
  method='POST',
301
- resource_path='/Rapid/AddUserGuess',
307
+ resource_path='/rapid/adduserguess',
302
308
  path_params=_path_params,
303
309
  query_params=_query_params,
304
310
  header_params=_header_params,
@@ -315,7 +321,7 @@ class RapidApi:
315
321
 
316
322
 
317
323
  @validate_call
318
- def rapid_create_demographic_rapid_post(
324
+ def rapid_createdemographicrapid_post(
319
325
  self,
320
326
  model: Optional[CreateDemographicRapidModel] = None,
321
327
  file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
@@ -332,7 +338,7 @@ class RapidApi:
332
338
  _headers: Optional[Dict[StrictStr, Any]] = None,
333
339
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
334
340
  ) -> None:
335
- """Creates a new Demographic Rapid.
341
+ """(Deprecated) Creates a new Demographic Rapid.
336
342
 
337
343
 
338
344
  :param model:
@@ -360,8 +366,9 @@ class RapidApi:
360
366
  :type _host_index: int, optional
361
367
  :return: Returns the result object.
362
368
  """ # noqa: E501
369
+ warnings.warn("POST /rapid/createdemographicrapid is deprecated.", DeprecationWarning)
363
370
 
364
- _param = self._rapid_create_demographic_rapid_post_serialize(
371
+ _param = self._rapid_createdemographicrapid_post_serialize(
365
372
  model=model,
366
373
  file=file,
367
374
  _request_auth=_request_auth,
@@ -385,7 +392,7 @@ class RapidApi:
385
392
 
386
393
 
387
394
  @validate_call
388
- def rapid_create_demographic_rapid_post_with_http_info(
395
+ def rapid_createdemographicrapid_post_with_http_info(
389
396
  self,
390
397
  model: Optional[CreateDemographicRapidModel] = None,
391
398
  file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
@@ -402,7 +409,7 @@ class RapidApi:
402
409
  _headers: Optional[Dict[StrictStr, Any]] = None,
403
410
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
404
411
  ) -> ApiResponse[None]:
405
- """Creates a new Demographic Rapid.
412
+ """(Deprecated) Creates a new Demographic Rapid.
406
413
 
407
414
 
408
415
  :param model:
@@ -430,8 +437,9 @@ class RapidApi:
430
437
  :type _host_index: int, optional
431
438
  :return: Returns the result object.
432
439
  """ # noqa: E501
440
+ warnings.warn("POST /rapid/createdemographicrapid is deprecated.", DeprecationWarning)
433
441
 
434
- _param = self._rapid_create_demographic_rapid_post_serialize(
442
+ _param = self._rapid_createdemographicrapid_post_serialize(
435
443
  model=model,
436
444
  file=file,
437
445
  _request_auth=_request_auth,
@@ -455,7 +463,7 @@ class RapidApi:
455
463
 
456
464
 
457
465
  @validate_call
458
- def rapid_create_demographic_rapid_post_without_preload_content(
466
+ def rapid_createdemographicrapid_post_without_preload_content(
459
467
  self,
460
468
  model: Optional[CreateDemographicRapidModel] = None,
461
469
  file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
@@ -472,7 +480,7 @@ class RapidApi:
472
480
  _headers: Optional[Dict[StrictStr, Any]] = None,
473
481
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
474
482
  ) -> RESTResponseType:
475
- """Creates a new Demographic Rapid.
483
+ """(Deprecated) Creates a new Demographic Rapid.
476
484
 
477
485
 
478
486
  :param model:
@@ -500,8 +508,9 @@ class RapidApi:
500
508
  :type _host_index: int, optional
501
509
  :return: Returns the result object.
502
510
  """ # noqa: E501
511
+ warnings.warn("POST /rapid/createdemographicrapid is deprecated.", DeprecationWarning)
503
512
 
504
- _param = self._rapid_create_demographic_rapid_post_serialize(
513
+ _param = self._rapid_createdemographicrapid_post_serialize(
505
514
  model=model,
506
515
  file=file,
507
516
  _request_auth=_request_auth,
@@ -520,7 +529,7 @@ class RapidApi:
520
529
  return response_data.response
521
530
 
522
531
 
523
- def _rapid_create_demographic_rapid_post_serialize(
532
+ def _rapid_createdemographicrapid_post_serialize(
524
533
  self,
525
534
  model,
526
535
  file,
@@ -579,7 +588,7 @@ class RapidApi:
579
588
 
580
589
  return self.api_client.param_serialize(
581
590
  method='POST',
582
- resource_path='/Rapid/CreateDemographicRapid',
591
+ resource_path='/rapid/createdemographicrapid',
583
592
  path_params=_path_params,
584
593
  query_params=_query_params,
585
594
  header_params=_header_params,
@@ -596,10 +605,10 @@ class RapidApi:
596
605
 
597
606
 
598
607
  @validate_call
599
- def rapid_query_validation_rapids_get(
608
+ def rapid_demographic_post(
600
609
  self,
601
- validation_set_id: Annotated[Optional[StrictStr], Field(description="The validation set to query.")] = None,
602
- model: Annotated[Optional[QueryModel], Field(description="The query model.")] = None,
610
+ model: Optional[CreateDemographicRapidModel] = None,
611
+ file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
603
612
  _request_timeout: Union[
604
613
  None,
605
614
  Annotated[StrictFloat, Field(gt=0)],
@@ -612,14 +621,14 @@ class RapidApi:
612
621
  _content_type: Optional[StrictStr] = None,
613
622
  _headers: Optional[Dict[StrictStr, Any]] = None,
614
623
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
615
- ) -> QueryValidationRapidsResultPagedResult:
616
- """Queries the validation rapids for a specific validation set.
624
+ ) -> CreateRapidResult:
625
+ """Creates a new Demographic Rapid.
617
626
 
618
627
 
619
- :param validation_set_id: The validation set to query.
620
- :type validation_set_id: str
621
- :param model: The query model.
622
- :type model: QueryModel
628
+ :param model:
629
+ :type model: CreateDemographicRapidModel
630
+ :param file:
631
+ :type file: List[bytearray]
623
632
  :param _request_timeout: timeout setting for this request. If one
624
633
  number provided, it will be total request
625
634
  timeout. It can also be a pair (tuple) of
@@ -642,9 +651,9 @@ class RapidApi:
642
651
  :return: Returns the result object.
643
652
  """ # noqa: E501
644
653
 
645
- _param = self._rapid_query_validation_rapids_get_serialize(
646
- validation_set_id=validation_set_id,
654
+ _param = self._rapid_demographic_post_serialize(
647
655
  model=model,
656
+ file=file,
648
657
  _request_auth=_request_auth,
649
658
  _content_type=_content_type,
650
659
  _headers=_headers,
@@ -652,7 +661,7 @@ class RapidApi:
652
661
  )
653
662
 
654
663
  _response_types_map: Dict[str, Optional[str]] = {
655
- '200': "QueryValidationRapidsResultPagedResult",
664
+ '200': "CreateRapidResult",
656
665
  }
657
666
  response_data = self.api_client.call_api(
658
667
  *_param,
@@ -666,10 +675,10 @@ class RapidApi:
666
675
 
667
676
 
668
677
  @validate_call
669
- def rapid_query_validation_rapids_get_with_http_info(
678
+ def rapid_demographic_post_with_http_info(
670
679
  self,
671
- validation_set_id: Annotated[Optional[StrictStr], Field(description="The validation set to query.")] = None,
672
- model: Annotated[Optional[QueryModel], Field(description="The query model.")] = None,
680
+ model: Optional[CreateDemographicRapidModel] = None,
681
+ file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
673
682
  _request_timeout: Union[
674
683
  None,
675
684
  Annotated[StrictFloat, Field(gt=0)],
@@ -682,14 +691,14 @@ class RapidApi:
682
691
  _content_type: Optional[StrictStr] = None,
683
692
  _headers: Optional[Dict[StrictStr, Any]] = None,
684
693
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
685
- ) -> ApiResponse[QueryValidationRapidsResultPagedResult]:
686
- """Queries the validation rapids for a specific validation set.
694
+ ) -> ApiResponse[CreateRapidResult]:
695
+ """Creates a new Demographic Rapid.
687
696
 
688
697
 
689
- :param validation_set_id: The validation set to query.
690
- :type validation_set_id: str
691
- :param model: The query model.
692
- :type model: QueryModel
698
+ :param model:
699
+ :type model: CreateDemographicRapidModel
700
+ :param file:
701
+ :type file: List[bytearray]
693
702
  :param _request_timeout: timeout setting for this request. If one
694
703
  number provided, it will be total request
695
704
  timeout. It can also be a pair (tuple) of
@@ -712,9 +721,9 @@ class RapidApi:
712
721
  :return: Returns the result object.
713
722
  """ # noqa: E501
714
723
 
715
- _param = self._rapid_query_validation_rapids_get_serialize(
716
- validation_set_id=validation_set_id,
724
+ _param = self._rapid_demographic_post_serialize(
717
725
  model=model,
726
+ file=file,
718
727
  _request_auth=_request_auth,
719
728
  _content_type=_content_type,
720
729
  _headers=_headers,
@@ -722,7 +731,7 @@ class RapidApi:
722
731
  )
723
732
 
724
733
  _response_types_map: Dict[str, Optional[str]] = {
725
- '200': "QueryValidationRapidsResultPagedResult",
734
+ '200': "CreateRapidResult",
726
735
  }
727
736
  response_data = self.api_client.call_api(
728
737
  *_param,
@@ -736,10 +745,10 @@ class RapidApi:
736
745
 
737
746
 
738
747
  @validate_call
739
- def rapid_query_validation_rapids_get_without_preload_content(
748
+ def rapid_demographic_post_without_preload_content(
740
749
  self,
741
- validation_set_id: Annotated[Optional[StrictStr], Field(description="The validation set to query.")] = None,
742
- model: Annotated[Optional[QueryModel], Field(description="The query model.")] = None,
750
+ model: Optional[CreateDemographicRapidModel] = None,
751
+ file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
743
752
  _request_timeout: Union[
744
753
  None,
745
754
  Annotated[StrictFloat, Field(gt=0)],
@@ -753,13 +762,13 @@ class RapidApi:
753
762
  _headers: Optional[Dict[StrictStr, Any]] = None,
754
763
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
755
764
  ) -> RESTResponseType:
756
- """Queries the validation rapids for a specific validation set.
765
+ """Creates a new Demographic Rapid.
757
766
 
758
767
 
759
- :param validation_set_id: The validation set to query.
760
- :type validation_set_id: str
761
- :param model: The query model.
762
- :type model: QueryModel
768
+ :param model:
769
+ :type model: CreateDemographicRapidModel
770
+ :param file:
771
+ :type file: List[bytearray]
763
772
  :param _request_timeout: timeout setting for this request. If one
764
773
  number provided, it will be total request
765
774
  timeout. It can also be a pair (tuple) of
@@ -782,9 +791,9 @@ class RapidApi:
782
791
  :return: Returns the result object.
783
792
  """ # noqa: E501
784
793
 
785
- _param = self._rapid_query_validation_rapids_get_serialize(
786
- validation_set_id=validation_set_id,
794
+ _param = self._rapid_demographic_post_serialize(
787
795
  model=model,
796
+ file=file,
788
797
  _request_auth=_request_auth,
789
798
  _content_type=_content_type,
790
799
  _headers=_headers,
@@ -792,7 +801,7 @@ class RapidApi:
792
801
  )
793
802
 
794
803
  _response_types_map: Dict[str, Optional[str]] = {
795
- '200': "QueryValidationRapidsResultPagedResult",
804
+ '200': "CreateRapidResult",
796
805
  }
797
806
  response_data = self.api_client.call_api(
798
807
  *_param,
@@ -801,10 +810,10 @@ class RapidApi:
801
810
  return response_data.response
802
811
 
803
812
 
804
- def _rapid_query_validation_rapids_get_serialize(
813
+ def _rapid_demographic_post_serialize(
805
814
  self,
806
- validation_set_id,
807
815
  model,
816
+ file,
808
817
  _request_auth,
809
818
  _content_type,
810
819
  _headers,
@@ -814,6 +823,7 @@ class RapidApi:
814
823
  _host = None
815
824
 
816
825
  _collection_formats: Dict[str, str] = {
826
+ 'file': 'multi',
817
827
  }
818
828
 
819
829
  _path_params: Dict[str, str] = {}
@@ -827,16 +837,12 @@ class RapidApi:
827
837
 
828
838
  # process the path parameters
829
839
  # process the query parameters
830
- if validation_set_id is not None:
831
-
832
- _query_params.append(('validationSetId', validation_set_id))
833
-
834
- if model is not None:
835
-
836
- _query_params.append(('model', model))
837
-
838
840
  # process the header parameters
839
841
  # process the form parameters
842
+ if model is not None:
843
+ _form_params.append(('model', model))
844
+ if file is not None:
845
+ _files['file'] = file
840
846
  # process the body parameter
841
847
 
842
848
 
@@ -850,6 +856,19 @@ class RapidApi:
850
856
  ]
851
857
  )
852
858
 
859
+ # set the HTTP header `Content-Type`
860
+ if _content_type:
861
+ _header_params['Content-Type'] = _content_type
862
+ else:
863
+ _default_content_type = (
864
+ self.api_client.select_header_content_type(
865
+ [
866
+ 'multipart/form-data'
867
+ ]
868
+ )
869
+ )
870
+ if _default_content_type is not None:
871
+ _header_params['Content-Type'] = _default_content_type
853
872
 
854
873
  # authentication setting
855
874
  _auth_settings: List[str] = [
@@ -858,8 +877,8 @@ class RapidApi:
858
877
  ]
859
878
 
860
879
  return self.api_client.param_serialize(
861
- method='GET',
862
- resource_path='/Rapid/QueryValidationRapids',
880
+ method='POST',
881
+ resource_path='/rapid/demographic',
863
882
  path_params=_path_params,
864
883
  query_params=_query_params,
865
884
  header_params=_header_params,
@@ -876,9 +895,10 @@ class RapidApi:
876
895
 
877
896
 
878
897
  @validate_call
879
- def rapid_rapid_id_delete(
898
+ def rapid_queryvalidationrapids_get(
880
899
  self,
881
- rapid_id: Annotated[StrictStr, Field(description="The rapid to be deleted")],
900
+ validation_set_id: Annotated[Optional[StrictStr], Field(description="The validation set to query.")] = None,
901
+ model: Annotated[Optional[QueryModel], Field(description="The query model.")] = None,
882
902
  _request_timeout: Union[
883
903
  None,
884
904
  Annotated[StrictFloat, Field(gt=0)],
@@ -891,12 +911,14 @@ class RapidApi:
891
911
  _content_type: Optional[StrictStr] = None,
892
912
  _headers: Optional[Dict[StrictStr, Any]] = None,
893
913
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
894
- ) -> None:
895
- """Deletes a rapid.
914
+ ) -> QueryValidationRapidsResultPagedResult:
915
+ """(Deprecated) Queries the validation rapids for a specific validation set.
896
916
 
897
917
 
898
- :param rapid_id: The rapid to be deleted (required)
899
- :type rapid_id: str
918
+ :param validation_set_id: The validation set to query.
919
+ :type validation_set_id: str
920
+ :param model: The query model.
921
+ :type model: QueryModel
900
922
  :param _request_timeout: timeout setting for this request. If one
901
923
  number provided, it will be total request
902
924
  timeout. It can also be a pair (tuple) of
@@ -918,9 +940,11 @@ class RapidApi:
918
940
  :type _host_index: int, optional
919
941
  :return: Returns the result object.
920
942
  """ # noqa: E501
943
+ warnings.warn("GET /rapid/queryvalidationrapids is deprecated.", DeprecationWarning)
921
944
 
922
- _param = self._rapid_rapid_id_delete_serialize(
923
- rapid_id=rapid_id,
945
+ _param = self._rapid_queryvalidationrapids_get_serialize(
946
+ validation_set_id=validation_set_id,
947
+ model=model,
924
948
  _request_auth=_request_auth,
925
949
  _content_type=_content_type,
926
950
  _headers=_headers,
@@ -928,7 +952,7 @@ class RapidApi:
928
952
  )
929
953
 
930
954
  _response_types_map: Dict[str, Optional[str]] = {
931
- '200': None,
955
+ '200': "QueryValidationRapidsResultPagedResult",
932
956
  }
933
957
  response_data = self.api_client.call_api(
934
958
  *_param,
@@ -942,9 +966,10 @@ class RapidApi:
942
966
 
943
967
 
944
968
  @validate_call
945
- def rapid_rapid_id_delete_with_http_info(
969
+ def rapid_queryvalidationrapids_get_with_http_info(
946
970
  self,
947
- rapid_id: Annotated[StrictStr, Field(description="The rapid to be deleted")],
971
+ validation_set_id: Annotated[Optional[StrictStr], Field(description="The validation set to query.")] = None,
972
+ model: Annotated[Optional[QueryModel], Field(description="The query model.")] = None,
948
973
  _request_timeout: Union[
949
974
  None,
950
975
  Annotated[StrictFloat, Field(gt=0)],
@@ -957,12 +982,14 @@ class RapidApi:
957
982
  _content_type: Optional[StrictStr] = None,
958
983
  _headers: Optional[Dict[StrictStr, Any]] = None,
959
984
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
960
- ) -> ApiResponse[None]:
961
- """Deletes a rapid.
985
+ ) -> ApiResponse[QueryValidationRapidsResultPagedResult]:
986
+ """(Deprecated) Queries the validation rapids for a specific validation set.
962
987
 
963
988
 
964
- :param rapid_id: The rapid to be deleted (required)
965
- :type rapid_id: str
989
+ :param validation_set_id: The validation set to query.
990
+ :type validation_set_id: str
991
+ :param model: The query model.
992
+ :type model: QueryModel
966
993
  :param _request_timeout: timeout setting for this request. If one
967
994
  number provided, it will be total request
968
995
  timeout. It can also be a pair (tuple) of
@@ -984,9 +1011,11 @@ class RapidApi:
984
1011
  :type _host_index: int, optional
985
1012
  :return: Returns the result object.
986
1013
  """ # noqa: E501
1014
+ warnings.warn("GET /rapid/queryvalidationrapids is deprecated.", DeprecationWarning)
987
1015
 
988
- _param = self._rapid_rapid_id_delete_serialize(
989
- rapid_id=rapid_id,
1016
+ _param = self._rapid_queryvalidationrapids_get_serialize(
1017
+ validation_set_id=validation_set_id,
1018
+ model=model,
990
1019
  _request_auth=_request_auth,
991
1020
  _content_type=_content_type,
992
1021
  _headers=_headers,
@@ -994,7 +1023,7 @@ class RapidApi:
994
1023
  )
995
1024
 
996
1025
  _response_types_map: Dict[str, Optional[str]] = {
997
- '200': None,
1026
+ '200': "QueryValidationRapidsResultPagedResult",
998
1027
  }
999
1028
  response_data = self.api_client.call_api(
1000
1029
  *_param,
@@ -1008,9 +1037,10 @@ class RapidApi:
1008
1037
 
1009
1038
 
1010
1039
  @validate_call
1011
- def rapid_rapid_id_delete_without_preload_content(
1040
+ def rapid_queryvalidationrapids_get_without_preload_content(
1012
1041
  self,
1013
- rapid_id: Annotated[StrictStr, Field(description="The rapid to be deleted")],
1042
+ validation_set_id: Annotated[Optional[StrictStr], Field(description="The validation set to query.")] = None,
1043
+ model: Annotated[Optional[QueryModel], Field(description="The query model.")] = None,
1014
1044
  _request_timeout: Union[
1015
1045
  None,
1016
1046
  Annotated[StrictFloat, Field(gt=0)],
@@ -1024,11 +1054,13 @@ class RapidApi:
1024
1054
  _headers: Optional[Dict[StrictStr, Any]] = None,
1025
1055
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1026
1056
  ) -> RESTResponseType:
1027
- """Deletes a rapid.
1057
+ """(Deprecated) Queries the validation rapids for a specific validation set.
1028
1058
 
1029
1059
 
1030
- :param rapid_id: The rapid to be deleted (required)
1031
- :type rapid_id: str
1060
+ :param validation_set_id: The validation set to query.
1061
+ :type validation_set_id: str
1062
+ :param model: The query model.
1063
+ :type model: QueryModel
1032
1064
  :param _request_timeout: timeout setting for this request. If one
1033
1065
  number provided, it will be total request
1034
1066
  timeout. It can also be a pair (tuple) of
@@ -1050,9 +1082,1590 @@ class RapidApi:
1050
1082
  :type _host_index: int, optional
1051
1083
  :return: Returns the result object.
1052
1084
  """ # noqa: E501
1085
+ warnings.warn("GET /rapid/queryvalidationrapids is deprecated.", DeprecationWarning)
1053
1086
 
1054
- _param = self._rapid_rapid_id_delete_serialize(
1055
- rapid_id=rapid_id,
1087
+ _param = self._rapid_queryvalidationrapids_get_serialize(
1088
+ validation_set_id=validation_set_id,
1089
+ model=model,
1090
+ _request_auth=_request_auth,
1091
+ _content_type=_content_type,
1092
+ _headers=_headers,
1093
+ _host_index=_host_index
1094
+ )
1095
+
1096
+ _response_types_map: Dict[str, Optional[str]] = {
1097
+ '200': "QueryValidationRapidsResultPagedResult",
1098
+ }
1099
+ response_data = self.api_client.call_api(
1100
+ *_param,
1101
+ _request_timeout=_request_timeout
1102
+ )
1103
+ return response_data.response
1104
+
1105
+
1106
+ def _rapid_queryvalidationrapids_get_serialize(
1107
+ self,
1108
+ validation_set_id,
1109
+ model,
1110
+ _request_auth,
1111
+ _content_type,
1112
+ _headers,
1113
+ _host_index,
1114
+ ) -> RequestSerialized:
1115
+
1116
+ _host = None
1117
+
1118
+ _collection_formats: Dict[str, str] = {
1119
+ }
1120
+
1121
+ _path_params: Dict[str, str] = {}
1122
+ _query_params: List[Tuple[str, str]] = []
1123
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1124
+ _form_params: List[Tuple[str, str]] = []
1125
+ _files: Dict[
1126
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1127
+ ] = {}
1128
+ _body_params: Optional[bytes] = None
1129
+
1130
+ # process the path parameters
1131
+ # process the query parameters
1132
+ if validation_set_id is not None:
1133
+
1134
+ _query_params.append(('validationSetId', validation_set_id))
1135
+
1136
+ if model is not None:
1137
+
1138
+ _query_params.append(('model', model))
1139
+
1140
+ # process the header parameters
1141
+ # process the form parameters
1142
+ # process the body parameter
1143
+
1144
+
1145
+ # set the HTTP header `Accept`
1146
+ if 'Accept' not in _header_params:
1147
+ _header_params['Accept'] = self.api_client.select_header_accept(
1148
+ [
1149
+ 'text/plain',
1150
+ 'application/json',
1151
+ 'text/json'
1152
+ ]
1153
+ )
1154
+
1155
+
1156
+ # authentication setting
1157
+ _auth_settings: List[str] = [
1158
+ 'bearer',
1159
+ 'oauth2'
1160
+ ]
1161
+
1162
+ return self.api_client.param_serialize(
1163
+ method='GET',
1164
+ resource_path='/rapid/queryvalidationrapids',
1165
+ path_params=_path_params,
1166
+ query_params=_query_params,
1167
+ header_params=_header_params,
1168
+ body=_body_params,
1169
+ post_params=_form_params,
1170
+ files=_files,
1171
+ auth_settings=_auth_settings,
1172
+ collection_formats=_collection_formats,
1173
+ _host=_host,
1174
+ _request_auth=_request_auth
1175
+ )
1176
+
1177
+
1178
+
1179
+
1180
+ @validate_call
1181
+ def rapid_rapid_bag_is_valid_get(
1182
+ self,
1183
+ _request_timeout: Union[
1184
+ None,
1185
+ Annotated[StrictFloat, Field(gt=0)],
1186
+ Tuple[
1187
+ Annotated[StrictFloat, Field(gt=0)],
1188
+ Annotated[StrictFloat, Field(gt=0)]
1189
+ ]
1190
+ ] = None,
1191
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1192
+ _content_type: Optional[StrictStr] = None,
1193
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1194
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1195
+ ) -> AreRapidsActiveResult:
1196
+ """Validates that the rapids associated with the current user are active.
1197
+
1198
+
1199
+ :param _request_timeout: timeout setting for this request. If one
1200
+ number provided, it will be total request
1201
+ timeout. It can also be a pair (tuple) of
1202
+ (connection, read) timeouts.
1203
+ :type _request_timeout: int, tuple(int, int), optional
1204
+ :param _request_auth: set to override the auth_settings for an a single
1205
+ request; this effectively ignores the
1206
+ authentication in the spec for a single request.
1207
+ :type _request_auth: dict, optional
1208
+ :param _content_type: force content-type for the request.
1209
+ :type _content_type: str, Optional
1210
+ :param _headers: set to override the headers for a single
1211
+ request; this effectively ignores the headers
1212
+ in the spec for a single request.
1213
+ :type _headers: dict, optional
1214
+ :param _host_index: set to override the host_index for a single
1215
+ request; this effectively ignores the host_index
1216
+ in the spec for a single request.
1217
+ :type _host_index: int, optional
1218
+ :return: Returns the result object.
1219
+ """ # noqa: E501
1220
+
1221
+ _param = self._rapid_rapid_bag_is_valid_get_serialize(
1222
+ _request_auth=_request_auth,
1223
+ _content_type=_content_type,
1224
+ _headers=_headers,
1225
+ _host_index=_host_index
1226
+ )
1227
+
1228
+ _response_types_map: Dict[str, Optional[str]] = {
1229
+ '200': "AreRapidsActiveResult",
1230
+ }
1231
+ response_data = self.api_client.call_api(
1232
+ *_param,
1233
+ _request_timeout=_request_timeout
1234
+ )
1235
+ response_data.read()
1236
+ return self.api_client.response_deserialize(
1237
+ response_data=response_data,
1238
+ response_types_map=_response_types_map,
1239
+ ).data
1240
+
1241
+
1242
+ @validate_call
1243
+ def rapid_rapid_bag_is_valid_get_with_http_info(
1244
+ self,
1245
+ _request_timeout: Union[
1246
+ None,
1247
+ Annotated[StrictFloat, Field(gt=0)],
1248
+ Tuple[
1249
+ Annotated[StrictFloat, Field(gt=0)],
1250
+ Annotated[StrictFloat, Field(gt=0)]
1251
+ ]
1252
+ ] = None,
1253
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1254
+ _content_type: Optional[StrictStr] = None,
1255
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1256
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1257
+ ) -> ApiResponse[AreRapidsActiveResult]:
1258
+ """Validates that the rapids associated with the current user are active.
1259
+
1260
+
1261
+ :param _request_timeout: timeout setting for this request. If one
1262
+ number provided, it will be total request
1263
+ timeout. It can also be a pair (tuple) of
1264
+ (connection, read) timeouts.
1265
+ :type _request_timeout: int, tuple(int, int), optional
1266
+ :param _request_auth: set to override the auth_settings for an a single
1267
+ request; this effectively ignores the
1268
+ authentication in the spec for a single request.
1269
+ :type _request_auth: dict, optional
1270
+ :param _content_type: force content-type for the request.
1271
+ :type _content_type: str, Optional
1272
+ :param _headers: set to override the headers for a single
1273
+ request; this effectively ignores the headers
1274
+ in the spec for a single request.
1275
+ :type _headers: dict, optional
1276
+ :param _host_index: set to override the host_index for a single
1277
+ request; this effectively ignores the host_index
1278
+ in the spec for a single request.
1279
+ :type _host_index: int, optional
1280
+ :return: Returns the result object.
1281
+ """ # noqa: E501
1282
+
1283
+ _param = self._rapid_rapid_bag_is_valid_get_serialize(
1284
+ _request_auth=_request_auth,
1285
+ _content_type=_content_type,
1286
+ _headers=_headers,
1287
+ _host_index=_host_index
1288
+ )
1289
+
1290
+ _response_types_map: Dict[str, Optional[str]] = {
1291
+ '200': "AreRapidsActiveResult",
1292
+ }
1293
+ response_data = self.api_client.call_api(
1294
+ *_param,
1295
+ _request_timeout=_request_timeout
1296
+ )
1297
+ response_data.read()
1298
+ return self.api_client.response_deserialize(
1299
+ response_data=response_data,
1300
+ response_types_map=_response_types_map,
1301
+ )
1302
+
1303
+
1304
+ @validate_call
1305
+ def rapid_rapid_bag_is_valid_get_without_preload_content(
1306
+ self,
1307
+ _request_timeout: Union[
1308
+ None,
1309
+ Annotated[StrictFloat, Field(gt=0)],
1310
+ Tuple[
1311
+ Annotated[StrictFloat, Field(gt=0)],
1312
+ Annotated[StrictFloat, Field(gt=0)]
1313
+ ]
1314
+ ] = None,
1315
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1316
+ _content_type: Optional[StrictStr] = None,
1317
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1318
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1319
+ ) -> RESTResponseType:
1320
+ """Validates that the rapids associated with the current user are active.
1321
+
1322
+
1323
+ :param _request_timeout: timeout setting for this request. If one
1324
+ number provided, it will be total request
1325
+ timeout. It can also be a pair (tuple) of
1326
+ (connection, read) timeouts.
1327
+ :type _request_timeout: int, tuple(int, int), optional
1328
+ :param _request_auth: set to override the auth_settings for an a single
1329
+ request; this effectively ignores the
1330
+ authentication in the spec for a single request.
1331
+ :type _request_auth: dict, optional
1332
+ :param _content_type: force content-type for the request.
1333
+ :type _content_type: str, Optional
1334
+ :param _headers: set to override the headers for a single
1335
+ request; this effectively ignores the headers
1336
+ in the spec for a single request.
1337
+ :type _headers: dict, optional
1338
+ :param _host_index: set to override the host_index for a single
1339
+ request; this effectively ignores the host_index
1340
+ in the spec for a single request.
1341
+ :type _host_index: int, optional
1342
+ :return: Returns the result object.
1343
+ """ # noqa: E501
1344
+
1345
+ _param = self._rapid_rapid_bag_is_valid_get_serialize(
1346
+ _request_auth=_request_auth,
1347
+ _content_type=_content_type,
1348
+ _headers=_headers,
1349
+ _host_index=_host_index
1350
+ )
1351
+
1352
+ _response_types_map: Dict[str, Optional[str]] = {
1353
+ '200': "AreRapidsActiveResult",
1354
+ }
1355
+ response_data = self.api_client.call_api(
1356
+ *_param,
1357
+ _request_timeout=_request_timeout
1358
+ )
1359
+ return response_data.response
1360
+
1361
+
1362
+ def _rapid_rapid_bag_is_valid_get_serialize(
1363
+ self,
1364
+ _request_auth,
1365
+ _content_type,
1366
+ _headers,
1367
+ _host_index,
1368
+ ) -> RequestSerialized:
1369
+
1370
+ _host = None
1371
+
1372
+ _collection_formats: Dict[str, str] = {
1373
+ }
1374
+
1375
+ _path_params: Dict[str, str] = {}
1376
+ _query_params: List[Tuple[str, str]] = []
1377
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1378
+ _form_params: List[Tuple[str, str]] = []
1379
+ _files: Dict[
1380
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1381
+ ] = {}
1382
+ _body_params: Optional[bytes] = None
1383
+
1384
+ # process the path parameters
1385
+ # process the query parameters
1386
+ # process the header parameters
1387
+ # process the form parameters
1388
+ # process the body parameter
1389
+
1390
+
1391
+ # set the HTTP header `Accept`
1392
+ if 'Accept' not in _header_params:
1393
+ _header_params['Accept'] = self.api_client.select_header_accept(
1394
+ [
1395
+ 'text/plain',
1396
+ 'application/json',
1397
+ 'text/json'
1398
+ ]
1399
+ )
1400
+
1401
+
1402
+ # authentication setting
1403
+ _auth_settings: List[str] = [
1404
+ 'bearer',
1405
+ 'oauth2'
1406
+ ]
1407
+
1408
+ return self.api_client.param_serialize(
1409
+ method='GET',
1410
+ resource_path='/rapid/rapid-bag/is-valid',
1411
+ path_params=_path_params,
1412
+ query_params=_query_params,
1413
+ header_params=_header_params,
1414
+ body=_body_params,
1415
+ post_params=_form_params,
1416
+ files=_files,
1417
+ auth_settings=_auth_settings,
1418
+ collection_formats=_collection_formats,
1419
+ _host=_host,
1420
+ _request_auth=_request_auth
1421
+ )
1422
+
1423
+
1424
+
1425
+
1426
+ @validate_call
1427
+ def rapid_rapid_id_delete(
1428
+ self,
1429
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to be deleted")],
1430
+ _request_timeout: Union[
1431
+ None,
1432
+ Annotated[StrictFloat, Field(gt=0)],
1433
+ Tuple[
1434
+ Annotated[StrictFloat, Field(gt=0)],
1435
+ Annotated[StrictFloat, Field(gt=0)]
1436
+ ]
1437
+ ] = None,
1438
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1439
+ _content_type: Optional[StrictStr] = None,
1440
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1441
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1442
+ ) -> None:
1443
+ """Deletes a rapid.
1444
+
1445
+
1446
+ :param rapid_id: The rapid to be deleted (required)
1447
+ :type rapid_id: str
1448
+ :param _request_timeout: timeout setting for this request. If one
1449
+ number provided, it will be total request
1450
+ timeout. It can also be a pair (tuple) of
1451
+ (connection, read) timeouts.
1452
+ :type _request_timeout: int, tuple(int, int), optional
1453
+ :param _request_auth: set to override the auth_settings for an a single
1454
+ request; this effectively ignores the
1455
+ authentication in the spec for a single request.
1456
+ :type _request_auth: dict, optional
1457
+ :param _content_type: force content-type for the request.
1458
+ :type _content_type: str, Optional
1459
+ :param _headers: set to override the headers for a single
1460
+ request; this effectively ignores the headers
1461
+ in the spec for a single request.
1462
+ :type _headers: dict, optional
1463
+ :param _host_index: set to override the host_index for a single
1464
+ request; this effectively ignores the host_index
1465
+ in the spec for a single request.
1466
+ :type _host_index: int, optional
1467
+ :return: Returns the result object.
1468
+ """ # noqa: E501
1469
+
1470
+ _param = self._rapid_rapid_id_delete_serialize(
1471
+ rapid_id=rapid_id,
1472
+ _request_auth=_request_auth,
1473
+ _content_type=_content_type,
1474
+ _headers=_headers,
1475
+ _host_index=_host_index
1476
+ )
1477
+
1478
+ _response_types_map: Dict[str, Optional[str]] = {
1479
+ '204': None,
1480
+ }
1481
+ response_data = self.api_client.call_api(
1482
+ *_param,
1483
+ _request_timeout=_request_timeout
1484
+ )
1485
+ response_data.read()
1486
+ return self.api_client.response_deserialize(
1487
+ response_data=response_data,
1488
+ response_types_map=_response_types_map,
1489
+ ).data
1490
+
1491
+
1492
+ @validate_call
1493
+ def rapid_rapid_id_delete_with_http_info(
1494
+ self,
1495
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to be deleted")],
1496
+ _request_timeout: Union[
1497
+ None,
1498
+ Annotated[StrictFloat, Field(gt=0)],
1499
+ Tuple[
1500
+ Annotated[StrictFloat, Field(gt=0)],
1501
+ Annotated[StrictFloat, Field(gt=0)]
1502
+ ]
1503
+ ] = None,
1504
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1505
+ _content_type: Optional[StrictStr] = None,
1506
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1507
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1508
+ ) -> ApiResponse[None]:
1509
+ """Deletes a rapid.
1510
+
1511
+
1512
+ :param rapid_id: The rapid to be deleted (required)
1513
+ :type rapid_id: str
1514
+ :param _request_timeout: timeout setting for this request. If one
1515
+ number provided, it will be total request
1516
+ timeout. It can also be a pair (tuple) of
1517
+ (connection, read) timeouts.
1518
+ :type _request_timeout: int, tuple(int, int), optional
1519
+ :param _request_auth: set to override the auth_settings for an a single
1520
+ request; this effectively ignores the
1521
+ authentication in the spec for a single request.
1522
+ :type _request_auth: dict, optional
1523
+ :param _content_type: force content-type for the request.
1524
+ :type _content_type: str, Optional
1525
+ :param _headers: set to override the headers for a single
1526
+ request; this effectively ignores the headers
1527
+ in the spec for a single request.
1528
+ :type _headers: dict, optional
1529
+ :param _host_index: set to override the host_index for a single
1530
+ request; this effectively ignores the host_index
1531
+ in the spec for a single request.
1532
+ :type _host_index: int, optional
1533
+ :return: Returns the result object.
1534
+ """ # noqa: E501
1535
+
1536
+ _param = self._rapid_rapid_id_delete_serialize(
1537
+ rapid_id=rapid_id,
1538
+ _request_auth=_request_auth,
1539
+ _content_type=_content_type,
1540
+ _headers=_headers,
1541
+ _host_index=_host_index
1542
+ )
1543
+
1544
+ _response_types_map: Dict[str, Optional[str]] = {
1545
+ '204': None,
1546
+ }
1547
+ response_data = self.api_client.call_api(
1548
+ *_param,
1549
+ _request_timeout=_request_timeout
1550
+ )
1551
+ response_data.read()
1552
+ return self.api_client.response_deserialize(
1553
+ response_data=response_data,
1554
+ response_types_map=_response_types_map,
1555
+ )
1556
+
1557
+
1558
+ @validate_call
1559
+ def rapid_rapid_id_delete_without_preload_content(
1560
+ self,
1561
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to be deleted")],
1562
+ _request_timeout: Union[
1563
+ None,
1564
+ Annotated[StrictFloat, Field(gt=0)],
1565
+ Tuple[
1566
+ Annotated[StrictFloat, Field(gt=0)],
1567
+ Annotated[StrictFloat, Field(gt=0)]
1568
+ ]
1569
+ ] = None,
1570
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1571
+ _content_type: Optional[StrictStr] = None,
1572
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1573
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1574
+ ) -> RESTResponseType:
1575
+ """Deletes a rapid.
1576
+
1577
+
1578
+ :param rapid_id: The rapid to be deleted (required)
1579
+ :type rapid_id: str
1580
+ :param _request_timeout: timeout setting for this request. If one
1581
+ number provided, it will be total request
1582
+ timeout. It can also be a pair (tuple) of
1583
+ (connection, read) timeouts.
1584
+ :type _request_timeout: int, tuple(int, int), optional
1585
+ :param _request_auth: set to override the auth_settings for an a single
1586
+ request; this effectively ignores the
1587
+ authentication in the spec for a single request.
1588
+ :type _request_auth: dict, optional
1589
+ :param _content_type: force content-type for the request.
1590
+ :type _content_type: str, Optional
1591
+ :param _headers: set to override the headers for a single
1592
+ request; this effectively ignores the headers
1593
+ in the spec for a single request.
1594
+ :type _headers: dict, optional
1595
+ :param _host_index: set to override the host_index for a single
1596
+ request; this effectively ignores the host_index
1597
+ in the spec for a single request.
1598
+ :type _host_index: int, optional
1599
+ :return: Returns the result object.
1600
+ """ # noqa: E501
1601
+
1602
+ _param = self._rapid_rapid_id_delete_serialize(
1603
+ rapid_id=rapid_id,
1604
+ _request_auth=_request_auth,
1605
+ _content_type=_content_type,
1606
+ _headers=_headers,
1607
+ _host_index=_host_index
1608
+ )
1609
+
1610
+ _response_types_map: Dict[str, Optional[str]] = {
1611
+ '204': None,
1612
+ }
1613
+ response_data = self.api_client.call_api(
1614
+ *_param,
1615
+ _request_timeout=_request_timeout
1616
+ )
1617
+ return response_data.response
1618
+
1619
+
1620
+ def _rapid_rapid_id_delete_serialize(
1621
+ self,
1622
+ rapid_id,
1623
+ _request_auth,
1624
+ _content_type,
1625
+ _headers,
1626
+ _host_index,
1627
+ ) -> RequestSerialized:
1628
+
1629
+ _host = None
1630
+
1631
+ _collection_formats: Dict[str, str] = {
1632
+ }
1633
+
1634
+ _path_params: Dict[str, str] = {}
1635
+ _query_params: List[Tuple[str, str]] = []
1636
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1637
+ _form_params: List[Tuple[str, str]] = []
1638
+ _files: Dict[
1639
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1640
+ ] = {}
1641
+ _body_params: Optional[bytes] = None
1642
+
1643
+ # process the path parameters
1644
+ if rapid_id is not None:
1645
+ _path_params['rapidId'] = rapid_id
1646
+ # process the query parameters
1647
+ # process the header parameters
1648
+ # process the form parameters
1649
+ # process the body parameter
1650
+
1651
+
1652
+
1653
+
1654
+ # authentication setting
1655
+ _auth_settings: List[str] = [
1656
+ 'bearer',
1657
+ 'oauth2'
1658
+ ]
1659
+
1660
+ return self.api_client.param_serialize(
1661
+ method='DELETE',
1662
+ resource_path='/rapid/{rapidId}',
1663
+ path_params=_path_params,
1664
+ query_params=_query_params,
1665
+ header_params=_header_params,
1666
+ body=_body_params,
1667
+ post_params=_form_params,
1668
+ files=_files,
1669
+ auth_settings=_auth_settings,
1670
+ collection_formats=_collection_formats,
1671
+ _host=_host,
1672
+ _request_auth=_request_auth
1673
+ )
1674
+
1675
+
1676
+
1677
+
1678
+ @validate_call
1679
+ def rapid_rapid_id_report_post(
1680
+ self,
1681
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to report.")],
1682
+ report_model: Annotated[Optional[ReportModel], Field(description="The body request.")] = None,
1683
+ _request_timeout: Union[
1684
+ None,
1685
+ Annotated[StrictFloat, Field(gt=0)],
1686
+ Tuple[
1687
+ Annotated[StrictFloat, Field(gt=0)],
1688
+ Annotated[StrictFloat, Field(gt=0)]
1689
+ ]
1690
+ ] = None,
1691
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1692
+ _content_type: Optional[StrictStr] = None,
1693
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1694
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1695
+ ) -> None:
1696
+ """Used to report an issue with a rapid.
1697
+
1698
+
1699
+ :param rapid_id: The rapid to report. (required)
1700
+ :type rapid_id: str
1701
+ :param report_model: The body request.
1702
+ :type report_model: ReportModel
1703
+ :param _request_timeout: timeout setting for this request. If one
1704
+ number provided, it will be total request
1705
+ timeout. It can also be a pair (tuple) of
1706
+ (connection, read) timeouts.
1707
+ :type _request_timeout: int, tuple(int, int), optional
1708
+ :param _request_auth: set to override the auth_settings for an a single
1709
+ request; this effectively ignores the
1710
+ authentication in the spec for a single request.
1711
+ :type _request_auth: dict, optional
1712
+ :param _content_type: force content-type for the request.
1713
+ :type _content_type: str, Optional
1714
+ :param _headers: set to override the headers for a single
1715
+ request; this effectively ignores the headers
1716
+ in the spec for a single request.
1717
+ :type _headers: dict, optional
1718
+ :param _host_index: set to override the host_index for a single
1719
+ request; this effectively ignores the host_index
1720
+ in the spec for a single request.
1721
+ :type _host_index: int, optional
1722
+ :return: Returns the result object.
1723
+ """ # noqa: E501
1724
+
1725
+ _param = self._rapid_rapid_id_report_post_serialize(
1726
+ rapid_id=rapid_id,
1727
+ report_model=report_model,
1728
+ _request_auth=_request_auth,
1729
+ _content_type=_content_type,
1730
+ _headers=_headers,
1731
+ _host_index=_host_index
1732
+ )
1733
+
1734
+ _response_types_map: Dict[str, Optional[str]] = {
1735
+ '204': None,
1736
+ }
1737
+ response_data = self.api_client.call_api(
1738
+ *_param,
1739
+ _request_timeout=_request_timeout
1740
+ )
1741
+ response_data.read()
1742
+ return self.api_client.response_deserialize(
1743
+ response_data=response_data,
1744
+ response_types_map=_response_types_map,
1745
+ ).data
1746
+
1747
+
1748
+ @validate_call
1749
+ def rapid_rapid_id_report_post_with_http_info(
1750
+ self,
1751
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to report.")],
1752
+ report_model: Annotated[Optional[ReportModel], Field(description="The body request.")] = None,
1753
+ _request_timeout: Union[
1754
+ None,
1755
+ Annotated[StrictFloat, Field(gt=0)],
1756
+ Tuple[
1757
+ Annotated[StrictFloat, Field(gt=0)],
1758
+ Annotated[StrictFloat, Field(gt=0)]
1759
+ ]
1760
+ ] = None,
1761
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1762
+ _content_type: Optional[StrictStr] = None,
1763
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1764
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1765
+ ) -> ApiResponse[None]:
1766
+ """Used to report an issue with a rapid.
1767
+
1768
+
1769
+ :param rapid_id: The rapid to report. (required)
1770
+ :type rapid_id: str
1771
+ :param report_model: The body request.
1772
+ :type report_model: ReportModel
1773
+ :param _request_timeout: timeout setting for this request. If one
1774
+ number provided, it will be total request
1775
+ timeout. It can also be a pair (tuple) of
1776
+ (connection, read) timeouts.
1777
+ :type _request_timeout: int, tuple(int, int), optional
1778
+ :param _request_auth: set to override the auth_settings for an a single
1779
+ request; this effectively ignores the
1780
+ authentication in the spec for a single request.
1781
+ :type _request_auth: dict, optional
1782
+ :param _content_type: force content-type for the request.
1783
+ :type _content_type: str, Optional
1784
+ :param _headers: set to override the headers for a single
1785
+ request; this effectively ignores the headers
1786
+ in the spec for a single request.
1787
+ :type _headers: dict, optional
1788
+ :param _host_index: set to override the host_index for a single
1789
+ request; this effectively ignores the host_index
1790
+ in the spec for a single request.
1791
+ :type _host_index: int, optional
1792
+ :return: Returns the result object.
1793
+ """ # noqa: E501
1794
+
1795
+ _param = self._rapid_rapid_id_report_post_serialize(
1796
+ rapid_id=rapid_id,
1797
+ report_model=report_model,
1798
+ _request_auth=_request_auth,
1799
+ _content_type=_content_type,
1800
+ _headers=_headers,
1801
+ _host_index=_host_index
1802
+ )
1803
+
1804
+ _response_types_map: Dict[str, Optional[str]] = {
1805
+ '204': None,
1806
+ }
1807
+ response_data = self.api_client.call_api(
1808
+ *_param,
1809
+ _request_timeout=_request_timeout
1810
+ )
1811
+ response_data.read()
1812
+ return self.api_client.response_deserialize(
1813
+ response_data=response_data,
1814
+ response_types_map=_response_types_map,
1815
+ )
1816
+
1817
+
1818
+ @validate_call
1819
+ def rapid_rapid_id_report_post_without_preload_content(
1820
+ self,
1821
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to report.")],
1822
+ report_model: Annotated[Optional[ReportModel], Field(description="The body request.")] = None,
1823
+ _request_timeout: Union[
1824
+ None,
1825
+ Annotated[StrictFloat, Field(gt=0)],
1826
+ Tuple[
1827
+ Annotated[StrictFloat, Field(gt=0)],
1828
+ Annotated[StrictFloat, Field(gt=0)]
1829
+ ]
1830
+ ] = None,
1831
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1832
+ _content_type: Optional[StrictStr] = None,
1833
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1834
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1835
+ ) -> RESTResponseType:
1836
+ """Used to report an issue with a rapid.
1837
+
1838
+
1839
+ :param rapid_id: The rapid to report. (required)
1840
+ :type rapid_id: str
1841
+ :param report_model: The body request.
1842
+ :type report_model: ReportModel
1843
+ :param _request_timeout: timeout setting for this request. If one
1844
+ number provided, it will be total request
1845
+ timeout. It can also be a pair (tuple) of
1846
+ (connection, read) timeouts.
1847
+ :type _request_timeout: int, tuple(int, int), optional
1848
+ :param _request_auth: set to override the auth_settings for an a single
1849
+ request; this effectively ignores the
1850
+ authentication in the spec for a single request.
1851
+ :type _request_auth: dict, optional
1852
+ :param _content_type: force content-type for the request.
1853
+ :type _content_type: str, Optional
1854
+ :param _headers: set to override the headers for a single
1855
+ request; this effectively ignores the headers
1856
+ in the spec for a single request.
1857
+ :type _headers: dict, optional
1858
+ :param _host_index: set to override the host_index for a single
1859
+ request; this effectively ignores the host_index
1860
+ in the spec for a single request.
1861
+ :type _host_index: int, optional
1862
+ :return: Returns the result object.
1863
+ """ # noqa: E501
1864
+
1865
+ _param = self._rapid_rapid_id_report_post_serialize(
1866
+ rapid_id=rapid_id,
1867
+ report_model=report_model,
1868
+ _request_auth=_request_auth,
1869
+ _content_type=_content_type,
1870
+ _headers=_headers,
1871
+ _host_index=_host_index
1872
+ )
1873
+
1874
+ _response_types_map: Dict[str, Optional[str]] = {
1875
+ '204': None,
1876
+ }
1877
+ response_data = self.api_client.call_api(
1878
+ *_param,
1879
+ _request_timeout=_request_timeout
1880
+ )
1881
+ return response_data.response
1882
+
1883
+
1884
+ def _rapid_rapid_id_report_post_serialize(
1885
+ self,
1886
+ rapid_id,
1887
+ report_model,
1888
+ _request_auth,
1889
+ _content_type,
1890
+ _headers,
1891
+ _host_index,
1892
+ ) -> RequestSerialized:
1893
+
1894
+ _host = None
1895
+
1896
+ _collection_formats: Dict[str, str] = {
1897
+ }
1898
+
1899
+ _path_params: Dict[str, str] = {}
1900
+ _query_params: List[Tuple[str, str]] = []
1901
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1902
+ _form_params: List[Tuple[str, str]] = []
1903
+ _files: Dict[
1904
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1905
+ ] = {}
1906
+ _body_params: Optional[bytes] = None
1907
+
1908
+ # process the path parameters
1909
+ if rapid_id is not None:
1910
+ _path_params['rapidId'] = rapid_id
1911
+ # process the query parameters
1912
+ # process the header parameters
1913
+ # process the form parameters
1914
+ # process the body parameter
1915
+ if report_model is not None:
1916
+ _body_params = report_model
1917
+
1918
+
1919
+
1920
+ # set the HTTP header `Content-Type`
1921
+ if _content_type:
1922
+ _header_params['Content-Type'] = _content_type
1923
+ else:
1924
+ _default_content_type = (
1925
+ self.api_client.select_header_content_type(
1926
+ [
1927
+ 'application/json',
1928
+ 'text/json',
1929
+ 'application/*+json'
1930
+ ]
1931
+ )
1932
+ )
1933
+ if _default_content_type is not None:
1934
+ _header_params['Content-Type'] = _default_content_type
1935
+
1936
+ # authentication setting
1937
+ _auth_settings: List[str] = [
1938
+ 'bearer',
1939
+ 'oauth2'
1940
+ ]
1941
+
1942
+ return self.api_client.param_serialize(
1943
+ method='POST',
1944
+ resource_path='/rapid/{rapidId}/report',
1945
+ path_params=_path_params,
1946
+ query_params=_query_params,
1947
+ header_params=_header_params,
1948
+ body=_body_params,
1949
+ post_params=_form_params,
1950
+ files=_files,
1951
+ auth_settings=_auth_settings,
1952
+ collection_formats=_collection_formats,
1953
+ _host=_host,
1954
+ _request_auth=_request_auth
1955
+ )
1956
+
1957
+
1958
+
1959
+
1960
+ @validate_call
1961
+ def rapid_rapid_id_responses_get(
1962
+ self,
1963
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to get the responses for.")],
1964
+ _request_timeout: Union[
1965
+ None,
1966
+ Annotated[StrictFloat, Field(gt=0)],
1967
+ Tuple[
1968
+ Annotated[StrictFloat, Field(gt=0)],
1969
+ Annotated[StrictFloat, Field(gt=0)]
1970
+ ]
1971
+ ] = None,
1972
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1973
+ _content_type: Optional[StrictStr] = None,
1974
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1975
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1976
+ ) -> GetRapidResponsesResult:
1977
+ """Gets all responses for a given rapid.
1978
+
1979
+
1980
+ :param rapid_id: The rapid to get the responses for. (required)
1981
+ :type rapid_id: str
1982
+ :param _request_timeout: timeout setting for this request. If one
1983
+ number provided, it will be total request
1984
+ timeout. It can also be a pair (tuple) of
1985
+ (connection, read) timeouts.
1986
+ :type _request_timeout: int, tuple(int, int), optional
1987
+ :param _request_auth: set to override the auth_settings for an a single
1988
+ request; this effectively ignores the
1989
+ authentication in the spec for a single request.
1990
+ :type _request_auth: dict, optional
1991
+ :param _content_type: force content-type for the request.
1992
+ :type _content_type: str, Optional
1993
+ :param _headers: set to override the headers for a single
1994
+ request; this effectively ignores the headers
1995
+ in the spec for a single request.
1996
+ :type _headers: dict, optional
1997
+ :param _host_index: set to override the host_index for a single
1998
+ request; this effectively ignores the host_index
1999
+ in the spec for a single request.
2000
+ :type _host_index: int, optional
2001
+ :return: Returns the result object.
2002
+ """ # noqa: E501
2003
+
2004
+ _param = self._rapid_rapid_id_responses_get_serialize(
2005
+ rapid_id=rapid_id,
2006
+ _request_auth=_request_auth,
2007
+ _content_type=_content_type,
2008
+ _headers=_headers,
2009
+ _host_index=_host_index
2010
+ )
2011
+
2012
+ _response_types_map: Dict[str, Optional[str]] = {
2013
+ '200': "GetRapidResponsesResult",
2014
+ }
2015
+ response_data = self.api_client.call_api(
2016
+ *_param,
2017
+ _request_timeout=_request_timeout
2018
+ )
2019
+ response_data.read()
2020
+ return self.api_client.response_deserialize(
2021
+ response_data=response_data,
2022
+ response_types_map=_response_types_map,
2023
+ ).data
2024
+
2025
+
2026
+ @validate_call
2027
+ def rapid_rapid_id_responses_get_with_http_info(
2028
+ self,
2029
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to get the responses for.")],
2030
+ _request_timeout: Union[
2031
+ None,
2032
+ Annotated[StrictFloat, Field(gt=0)],
2033
+ Tuple[
2034
+ Annotated[StrictFloat, Field(gt=0)],
2035
+ Annotated[StrictFloat, Field(gt=0)]
2036
+ ]
2037
+ ] = None,
2038
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2039
+ _content_type: Optional[StrictStr] = None,
2040
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2041
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2042
+ ) -> ApiResponse[GetRapidResponsesResult]:
2043
+ """Gets all responses for a given rapid.
2044
+
2045
+
2046
+ :param rapid_id: The rapid to get the responses for. (required)
2047
+ :type rapid_id: str
2048
+ :param _request_timeout: timeout setting for this request. If one
2049
+ number provided, it will be total request
2050
+ timeout. It can also be a pair (tuple) of
2051
+ (connection, read) timeouts.
2052
+ :type _request_timeout: int, tuple(int, int), optional
2053
+ :param _request_auth: set to override the auth_settings for an a single
2054
+ request; this effectively ignores the
2055
+ authentication in the spec for a single request.
2056
+ :type _request_auth: dict, optional
2057
+ :param _content_type: force content-type for the request.
2058
+ :type _content_type: str, Optional
2059
+ :param _headers: set to override the headers for a single
2060
+ request; this effectively ignores the headers
2061
+ in the spec for a single request.
2062
+ :type _headers: dict, optional
2063
+ :param _host_index: set to override the host_index for a single
2064
+ request; this effectively ignores the host_index
2065
+ in the spec for a single request.
2066
+ :type _host_index: int, optional
2067
+ :return: Returns the result object.
2068
+ """ # noqa: E501
2069
+
2070
+ _param = self._rapid_rapid_id_responses_get_serialize(
2071
+ rapid_id=rapid_id,
2072
+ _request_auth=_request_auth,
2073
+ _content_type=_content_type,
2074
+ _headers=_headers,
2075
+ _host_index=_host_index
2076
+ )
2077
+
2078
+ _response_types_map: Dict[str, Optional[str]] = {
2079
+ '200': "GetRapidResponsesResult",
2080
+ }
2081
+ response_data = self.api_client.call_api(
2082
+ *_param,
2083
+ _request_timeout=_request_timeout
2084
+ )
2085
+ response_data.read()
2086
+ return self.api_client.response_deserialize(
2087
+ response_data=response_data,
2088
+ response_types_map=_response_types_map,
2089
+ )
2090
+
2091
+
2092
+ @validate_call
2093
+ def rapid_rapid_id_responses_get_without_preload_content(
2094
+ self,
2095
+ rapid_id: Annotated[StrictStr, Field(description="The rapid to get the responses for.")],
2096
+ _request_timeout: Union[
2097
+ None,
2098
+ Annotated[StrictFloat, Field(gt=0)],
2099
+ Tuple[
2100
+ Annotated[StrictFloat, Field(gt=0)],
2101
+ Annotated[StrictFloat, Field(gt=0)]
2102
+ ]
2103
+ ] = None,
2104
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2105
+ _content_type: Optional[StrictStr] = None,
2106
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2107
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2108
+ ) -> RESTResponseType:
2109
+ """Gets all responses for a given rapid.
2110
+
2111
+
2112
+ :param rapid_id: The rapid to get the responses for. (required)
2113
+ :type rapid_id: str
2114
+ :param _request_timeout: timeout setting for this request. If one
2115
+ number provided, it will be total request
2116
+ timeout. It can also be a pair (tuple) of
2117
+ (connection, read) timeouts.
2118
+ :type _request_timeout: int, tuple(int, int), optional
2119
+ :param _request_auth: set to override the auth_settings for an a single
2120
+ request; this effectively ignores the
2121
+ authentication in the spec for a single request.
2122
+ :type _request_auth: dict, optional
2123
+ :param _content_type: force content-type for the request.
2124
+ :type _content_type: str, Optional
2125
+ :param _headers: set to override the headers for a single
2126
+ request; this effectively ignores the headers
2127
+ in the spec for a single request.
2128
+ :type _headers: dict, optional
2129
+ :param _host_index: set to override the host_index for a single
2130
+ request; this effectively ignores the host_index
2131
+ in the spec for a single request.
2132
+ :type _host_index: int, optional
2133
+ :return: Returns the result object.
2134
+ """ # noqa: E501
2135
+
2136
+ _param = self._rapid_rapid_id_responses_get_serialize(
2137
+ rapid_id=rapid_id,
2138
+ _request_auth=_request_auth,
2139
+ _content_type=_content_type,
2140
+ _headers=_headers,
2141
+ _host_index=_host_index
2142
+ )
2143
+
2144
+ _response_types_map: Dict[str, Optional[str]] = {
2145
+ '200': "GetRapidResponsesResult",
2146
+ }
2147
+ response_data = self.api_client.call_api(
2148
+ *_param,
2149
+ _request_timeout=_request_timeout
2150
+ )
2151
+ return response_data.response
2152
+
2153
+
2154
+ def _rapid_rapid_id_responses_get_serialize(
2155
+ self,
2156
+ rapid_id,
2157
+ _request_auth,
2158
+ _content_type,
2159
+ _headers,
2160
+ _host_index,
2161
+ ) -> RequestSerialized:
2162
+
2163
+ _host = None
2164
+
2165
+ _collection_formats: Dict[str, str] = {
2166
+ }
2167
+
2168
+ _path_params: Dict[str, str] = {}
2169
+ _query_params: List[Tuple[str, str]] = []
2170
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2171
+ _form_params: List[Tuple[str, str]] = []
2172
+ _files: Dict[
2173
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2174
+ ] = {}
2175
+ _body_params: Optional[bytes] = None
2176
+
2177
+ # process the path parameters
2178
+ if rapid_id is not None:
2179
+ _path_params['rapidId'] = rapid_id
2180
+ # process the query parameters
2181
+ # process the header parameters
2182
+ # process the form parameters
2183
+ # process the body parameter
2184
+
2185
+
2186
+ # set the HTTP header `Accept`
2187
+ if 'Accept' not in _header_params:
2188
+ _header_params['Accept'] = self.api_client.select_header_accept(
2189
+ [
2190
+ 'text/plain',
2191
+ 'application/json',
2192
+ 'text/json'
2193
+ ]
2194
+ )
2195
+
2196
+
2197
+ # authentication setting
2198
+ _auth_settings: List[str] = [
2199
+ 'bearer',
2200
+ 'oauth2'
2201
+ ]
2202
+
2203
+ return self.api_client.param_serialize(
2204
+ method='GET',
2205
+ resource_path='/rapid/{rapidId}/responses',
2206
+ path_params=_path_params,
2207
+ query_params=_query_params,
2208
+ header_params=_header_params,
2209
+ body=_body_params,
2210
+ post_params=_form_params,
2211
+ files=_files,
2212
+ auth_settings=_auth_settings,
2213
+ collection_formats=_collection_formats,
2214
+ _host=_host,
2215
+ _request_auth=_request_auth
2216
+ )
2217
+
2218
+
2219
+
2220
+
2221
+ @validate_call
2222
+ def rapid_report_post(
2223
+ self,
2224
+ report_model: Optional[ReportModel] = None,
2225
+ _request_timeout: Union[
2226
+ None,
2227
+ Annotated[StrictFloat, Field(gt=0)],
2228
+ Tuple[
2229
+ Annotated[StrictFloat, Field(gt=0)],
2230
+ Annotated[StrictFloat, Field(gt=0)]
2231
+ ]
2232
+ ] = None,
2233
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2234
+ _content_type: Optional[StrictStr] = None,
2235
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2236
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2237
+ ) -> None:
2238
+ """(Deprecated) Used to report an issue with a rapid.
2239
+
2240
+
2241
+ :param report_model:
2242
+ :type report_model: ReportModel
2243
+ :param _request_timeout: timeout setting for this request. If one
2244
+ number provided, it will be total request
2245
+ timeout. It can also be a pair (tuple) of
2246
+ (connection, read) timeouts.
2247
+ :type _request_timeout: int, tuple(int, int), optional
2248
+ :param _request_auth: set to override the auth_settings for an a single
2249
+ request; this effectively ignores the
2250
+ authentication in the spec for a single request.
2251
+ :type _request_auth: dict, optional
2252
+ :param _content_type: force content-type for the request.
2253
+ :type _content_type: str, Optional
2254
+ :param _headers: set to override the headers for a single
2255
+ request; this effectively ignores the headers
2256
+ in the spec for a single request.
2257
+ :type _headers: dict, optional
2258
+ :param _host_index: set to override the host_index for a single
2259
+ request; this effectively ignores the host_index
2260
+ in the spec for a single request.
2261
+ :type _host_index: int, optional
2262
+ :return: Returns the result object.
2263
+ """ # noqa: E501
2264
+ warnings.warn("POST /rapid/report is deprecated.", DeprecationWarning)
2265
+
2266
+ _param = self._rapid_report_post_serialize(
2267
+ report_model=report_model,
2268
+ _request_auth=_request_auth,
2269
+ _content_type=_content_type,
2270
+ _headers=_headers,
2271
+ _host_index=_host_index
2272
+ )
2273
+
2274
+ _response_types_map: Dict[str, Optional[str]] = {
2275
+ '204': None,
2276
+ }
2277
+ response_data = self.api_client.call_api(
2278
+ *_param,
2279
+ _request_timeout=_request_timeout
2280
+ )
2281
+ response_data.read()
2282
+ return self.api_client.response_deserialize(
2283
+ response_data=response_data,
2284
+ response_types_map=_response_types_map,
2285
+ ).data
2286
+
2287
+
2288
+ @validate_call
2289
+ def rapid_report_post_with_http_info(
2290
+ self,
2291
+ report_model: Optional[ReportModel] = None,
2292
+ _request_timeout: Union[
2293
+ None,
2294
+ Annotated[StrictFloat, Field(gt=0)],
2295
+ Tuple[
2296
+ Annotated[StrictFloat, Field(gt=0)],
2297
+ Annotated[StrictFloat, Field(gt=0)]
2298
+ ]
2299
+ ] = None,
2300
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2301
+ _content_type: Optional[StrictStr] = None,
2302
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2303
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2304
+ ) -> ApiResponse[None]:
2305
+ """(Deprecated) Used to report an issue with a rapid.
2306
+
2307
+
2308
+ :param report_model:
2309
+ :type report_model: ReportModel
2310
+ :param _request_timeout: timeout setting for this request. If one
2311
+ number provided, it will be total request
2312
+ timeout. It can also be a pair (tuple) of
2313
+ (connection, read) timeouts.
2314
+ :type _request_timeout: int, tuple(int, int), optional
2315
+ :param _request_auth: set to override the auth_settings for an a single
2316
+ request; this effectively ignores the
2317
+ authentication in the spec for a single request.
2318
+ :type _request_auth: dict, optional
2319
+ :param _content_type: force content-type for the request.
2320
+ :type _content_type: str, Optional
2321
+ :param _headers: set to override the headers for a single
2322
+ request; this effectively ignores the headers
2323
+ in the spec for a single request.
2324
+ :type _headers: dict, optional
2325
+ :param _host_index: set to override the host_index for a single
2326
+ request; this effectively ignores the host_index
2327
+ in the spec for a single request.
2328
+ :type _host_index: int, optional
2329
+ :return: Returns the result object.
2330
+ """ # noqa: E501
2331
+ warnings.warn("POST /rapid/report is deprecated.", DeprecationWarning)
2332
+
2333
+ _param = self._rapid_report_post_serialize(
2334
+ report_model=report_model,
2335
+ _request_auth=_request_auth,
2336
+ _content_type=_content_type,
2337
+ _headers=_headers,
2338
+ _host_index=_host_index
2339
+ )
2340
+
2341
+ _response_types_map: Dict[str, Optional[str]] = {
2342
+ '204': None,
2343
+ }
2344
+ response_data = self.api_client.call_api(
2345
+ *_param,
2346
+ _request_timeout=_request_timeout
2347
+ )
2348
+ response_data.read()
2349
+ return self.api_client.response_deserialize(
2350
+ response_data=response_data,
2351
+ response_types_map=_response_types_map,
2352
+ )
2353
+
2354
+
2355
+ @validate_call
2356
+ def rapid_report_post_without_preload_content(
2357
+ self,
2358
+ report_model: Optional[ReportModel] = None,
2359
+ _request_timeout: Union[
2360
+ None,
2361
+ Annotated[StrictFloat, Field(gt=0)],
2362
+ Tuple[
2363
+ Annotated[StrictFloat, Field(gt=0)],
2364
+ Annotated[StrictFloat, Field(gt=0)]
2365
+ ]
2366
+ ] = None,
2367
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2368
+ _content_type: Optional[StrictStr] = None,
2369
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2370
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2371
+ ) -> RESTResponseType:
2372
+ """(Deprecated) Used to report an issue with a rapid.
2373
+
2374
+
2375
+ :param report_model:
2376
+ :type report_model: ReportModel
2377
+ :param _request_timeout: timeout setting for this request. If one
2378
+ number provided, it will be total request
2379
+ timeout. It can also be a pair (tuple) of
2380
+ (connection, read) timeouts.
2381
+ :type _request_timeout: int, tuple(int, int), optional
2382
+ :param _request_auth: set to override the auth_settings for an a single
2383
+ request; this effectively ignores the
2384
+ authentication in the spec for a single request.
2385
+ :type _request_auth: dict, optional
2386
+ :param _content_type: force content-type for the request.
2387
+ :type _content_type: str, Optional
2388
+ :param _headers: set to override the headers for a single
2389
+ request; this effectively ignores the headers
2390
+ in the spec for a single request.
2391
+ :type _headers: dict, optional
2392
+ :param _host_index: set to override the host_index for a single
2393
+ request; this effectively ignores the host_index
2394
+ in the spec for a single request.
2395
+ :type _host_index: int, optional
2396
+ :return: Returns the result object.
2397
+ """ # noqa: E501
2398
+ warnings.warn("POST /rapid/report is deprecated.", DeprecationWarning)
2399
+
2400
+ _param = self._rapid_report_post_serialize(
2401
+ report_model=report_model,
2402
+ _request_auth=_request_auth,
2403
+ _content_type=_content_type,
2404
+ _headers=_headers,
2405
+ _host_index=_host_index
2406
+ )
2407
+
2408
+ _response_types_map: Dict[str, Optional[str]] = {
2409
+ '204': None,
2410
+ }
2411
+ response_data = self.api_client.call_api(
2412
+ *_param,
2413
+ _request_timeout=_request_timeout
2414
+ )
2415
+ return response_data.response
2416
+
2417
+
2418
+ def _rapid_report_post_serialize(
2419
+ self,
2420
+ report_model,
2421
+ _request_auth,
2422
+ _content_type,
2423
+ _headers,
2424
+ _host_index,
2425
+ ) -> RequestSerialized:
2426
+
2427
+ _host = None
2428
+
2429
+ _collection_formats: Dict[str, str] = {
2430
+ }
2431
+
2432
+ _path_params: Dict[str, str] = {}
2433
+ _query_params: List[Tuple[str, str]] = []
2434
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2435
+ _form_params: List[Tuple[str, str]] = []
2436
+ _files: Dict[
2437
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2438
+ ] = {}
2439
+ _body_params: Optional[bytes] = None
2440
+
2441
+ # process the path parameters
2442
+ # process the query parameters
2443
+ # process the header parameters
2444
+ # process the form parameters
2445
+ # process the body parameter
2446
+ if report_model is not None:
2447
+ _body_params = report_model
2448
+
2449
+
2450
+
2451
+ # set the HTTP header `Content-Type`
2452
+ if _content_type:
2453
+ _header_params['Content-Type'] = _content_type
2454
+ else:
2455
+ _default_content_type = (
2456
+ self.api_client.select_header_content_type(
2457
+ [
2458
+ 'application/json',
2459
+ 'text/json',
2460
+ 'application/*+json'
2461
+ ]
2462
+ )
2463
+ )
2464
+ if _default_content_type is not None:
2465
+ _header_params['Content-Type'] = _default_content_type
2466
+
2467
+ # authentication setting
2468
+ _auth_settings: List[str] = [
2469
+ 'bearer',
2470
+ 'oauth2'
2471
+ ]
2472
+
2473
+ return self.api_client.param_serialize(
2474
+ method='POST',
2475
+ resource_path='/rapid/report',
2476
+ path_params=_path_params,
2477
+ query_params=_query_params,
2478
+ header_params=_header_params,
2479
+ body=_body_params,
2480
+ post_params=_form_params,
2481
+ files=_files,
2482
+ auth_settings=_auth_settings,
2483
+ collection_formats=_collection_formats,
2484
+ _host=_host,
2485
+ _request_auth=_request_auth
2486
+ )
2487
+
2488
+
2489
+
2490
+
2491
+ @validate_call
2492
+ def rapid_report_report_id_get(
2493
+ self,
2494
+ report_id: Annotated[StrictStr, Field(description="The report id")],
2495
+ _request_timeout: Union[
2496
+ None,
2497
+ Annotated[StrictFloat, Field(gt=0)],
2498
+ Tuple[
2499
+ Annotated[StrictFloat, Field(gt=0)],
2500
+ Annotated[StrictFloat, Field(gt=0)]
2501
+ ]
2502
+ ] = None,
2503
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2504
+ _content_type: Optional[StrictStr] = None,
2505
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2506
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2507
+ ) -> InspectReportResult:
2508
+ """Inspects a report's dump. can be used to restore zustand state or anything alike.
2509
+
2510
+
2511
+ :param report_id: The report id (required)
2512
+ :type report_id: str
2513
+ :param _request_timeout: timeout setting for this request. If one
2514
+ number provided, it will be total request
2515
+ timeout. It can also be a pair (tuple) of
2516
+ (connection, read) timeouts.
2517
+ :type _request_timeout: int, tuple(int, int), optional
2518
+ :param _request_auth: set to override the auth_settings for an a single
2519
+ request; this effectively ignores the
2520
+ authentication in the spec for a single request.
2521
+ :type _request_auth: dict, optional
2522
+ :param _content_type: force content-type for the request.
2523
+ :type _content_type: str, Optional
2524
+ :param _headers: set to override the headers for a single
2525
+ request; this effectively ignores the headers
2526
+ in the spec for a single request.
2527
+ :type _headers: dict, optional
2528
+ :param _host_index: set to override the host_index for a single
2529
+ request; this effectively ignores the host_index
2530
+ in the spec for a single request.
2531
+ :type _host_index: int, optional
2532
+ :return: Returns the result object.
2533
+ """ # noqa: E501
2534
+
2535
+ _param = self._rapid_report_report_id_get_serialize(
2536
+ report_id=report_id,
2537
+ _request_auth=_request_auth,
2538
+ _content_type=_content_type,
2539
+ _headers=_headers,
2540
+ _host_index=_host_index
2541
+ )
2542
+
2543
+ _response_types_map: Dict[str, Optional[str]] = {
2544
+ '200': "InspectReportResult",
2545
+ }
2546
+ response_data = self.api_client.call_api(
2547
+ *_param,
2548
+ _request_timeout=_request_timeout
2549
+ )
2550
+ response_data.read()
2551
+ return self.api_client.response_deserialize(
2552
+ response_data=response_data,
2553
+ response_types_map=_response_types_map,
2554
+ ).data
2555
+
2556
+
2557
+ @validate_call
2558
+ def rapid_report_report_id_get_with_http_info(
2559
+ self,
2560
+ report_id: Annotated[StrictStr, Field(description="The report id")],
2561
+ _request_timeout: Union[
2562
+ None,
2563
+ Annotated[StrictFloat, Field(gt=0)],
2564
+ Tuple[
2565
+ Annotated[StrictFloat, Field(gt=0)],
2566
+ Annotated[StrictFloat, Field(gt=0)]
2567
+ ]
2568
+ ] = None,
2569
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2570
+ _content_type: Optional[StrictStr] = None,
2571
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2572
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2573
+ ) -> ApiResponse[InspectReportResult]:
2574
+ """Inspects a report's dump. can be used to restore zustand state or anything alike.
2575
+
2576
+
2577
+ :param report_id: The report id (required)
2578
+ :type report_id: str
2579
+ :param _request_timeout: timeout setting for this request. If one
2580
+ number provided, it will be total request
2581
+ timeout. It can also be a pair (tuple) of
2582
+ (connection, read) timeouts.
2583
+ :type _request_timeout: int, tuple(int, int), optional
2584
+ :param _request_auth: set to override the auth_settings for an a single
2585
+ request; this effectively ignores the
2586
+ authentication in the spec for a single request.
2587
+ :type _request_auth: dict, optional
2588
+ :param _content_type: force content-type for the request.
2589
+ :type _content_type: str, Optional
2590
+ :param _headers: set to override the headers for a single
2591
+ request; this effectively ignores the headers
2592
+ in the spec for a single request.
2593
+ :type _headers: dict, optional
2594
+ :param _host_index: set to override the host_index for a single
2595
+ request; this effectively ignores the host_index
2596
+ in the spec for a single request.
2597
+ :type _host_index: int, optional
2598
+ :return: Returns the result object.
2599
+ """ # noqa: E501
2600
+
2601
+ _param = self._rapid_report_report_id_get_serialize(
2602
+ report_id=report_id,
2603
+ _request_auth=_request_auth,
2604
+ _content_type=_content_type,
2605
+ _headers=_headers,
2606
+ _host_index=_host_index
2607
+ )
2608
+
2609
+ _response_types_map: Dict[str, Optional[str]] = {
2610
+ '200': "InspectReportResult",
2611
+ }
2612
+ response_data = self.api_client.call_api(
2613
+ *_param,
2614
+ _request_timeout=_request_timeout
2615
+ )
2616
+ response_data.read()
2617
+ return self.api_client.response_deserialize(
2618
+ response_data=response_data,
2619
+ response_types_map=_response_types_map,
2620
+ )
2621
+
2622
+
2623
+ @validate_call
2624
+ def rapid_report_report_id_get_without_preload_content(
2625
+ self,
2626
+ report_id: Annotated[StrictStr, Field(description="The report id")],
2627
+ _request_timeout: Union[
2628
+ None,
2629
+ Annotated[StrictFloat, Field(gt=0)],
2630
+ Tuple[
2631
+ Annotated[StrictFloat, Field(gt=0)],
2632
+ Annotated[StrictFloat, Field(gt=0)]
2633
+ ]
2634
+ ] = None,
2635
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2636
+ _content_type: Optional[StrictStr] = None,
2637
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2638
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2639
+ ) -> RESTResponseType:
2640
+ """Inspects a report's dump. can be used to restore zustand state or anything alike.
2641
+
2642
+
2643
+ :param report_id: The report id (required)
2644
+ :type report_id: str
2645
+ :param _request_timeout: timeout setting for this request. If one
2646
+ number provided, it will be total request
2647
+ timeout. It can also be a pair (tuple) of
2648
+ (connection, read) timeouts.
2649
+ :type _request_timeout: int, tuple(int, int), optional
2650
+ :param _request_auth: set to override the auth_settings for an a single
2651
+ request; this effectively ignores the
2652
+ authentication in the spec for a single request.
2653
+ :type _request_auth: dict, optional
2654
+ :param _content_type: force content-type for the request.
2655
+ :type _content_type: str, Optional
2656
+ :param _headers: set to override the headers for a single
2657
+ request; this effectively ignores the headers
2658
+ in the spec for a single request.
2659
+ :type _headers: dict, optional
2660
+ :param _host_index: set to override the host_index for a single
2661
+ request; this effectively ignores the host_index
2662
+ in the spec for a single request.
2663
+ :type _host_index: int, optional
2664
+ :return: Returns the result object.
2665
+ """ # noqa: E501
2666
+
2667
+ _param = self._rapid_report_report_id_get_serialize(
2668
+ report_id=report_id,
1056
2669
  _request_auth=_request_auth,
1057
2670
  _content_type=_content_type,
1058
2671
  _headers=_headers,
@@ -1060,7 +2673,7 @@ class RapidApi:
1060
2673
  )
1061
2674
 
1062
2675
  _response_types_map: Dict[str, Optional[str]] = {
1063
- '200': None,
2676
+ '200': "InspectReportResult",
1064
2677
  }
1065
2678
  response_data = self.api_client.call_api(
1066
2679
  *_param,
@@ -1069,9 +2682,9 @@ class RapidApi:
1069
2682
  return response_data.response
1070
2683
 
1071
2684
 
1072
- def _rapid_rapid_id_delete_serialize(
2685
+ def _rapid_report_report_id_get_serialize(
1073
2686
  self,
1074
- rapid_id,
2687
+ report_id,
1075
2688
  _request_auth,
1076
2689
  _content_type,
1077
2690
  _headers,
@@ -1093,14 +2706,23 @@ class RapidApi:
1093
2706
  _body_params: Optional[bytes] = None
1094
2707
 
1095
2708
  # process the path parameters
1096
- if rapid_id is not None:
1097
- _path_params['rapidId'] = rapid_id
2709
+ if report_id is not None:
2710
+ _path_params['reportId'] = report_id
1098
2711
  # process the query parameters
1099
2712
  # process the header parameters
1100
2713
  # process the form parameters
1101
2714
  # process the body parameter
1102
2715
 
1103
2716
 
2717
+ # set the HTTP header `Accept`
2718
+ if 'Accept' not in _header_params:
2719
+ _header_params['Accept'] = self.api_client.select_header_accept(
2720
+ [
2721
+ 'text/plain',
2722
+ 'application/json',
2723
+ 'text/json'
2724
+ ]
2725
+ )
1104
2726
 
1105
2727
 
1106
2728
  # authentication setting
@@ -1110,8 +2732,8 @@ class RapidApi:
1110
2732
  ]
1111
2733
 
1112
2734
  return self.api_client.param_serialize(
1113
- method='DELETE',
1114
- resource_path='/rapid/{rapidId}',
2735
+ method='GET',
2736
+ resource_path='/rapid/report/{reportId}',
1115
2737
  path_params=_path_params,
1116
2738
  query_params=_query_params,
1117
2739
  header_params=_header_params,
@@ -1128,9 +2750,9 @@ class RapidApi:
1128
2750
 
1129
2751
 
1130
2752
  @validate_call
1131
- def rapid_rapid_id_responses_get(
2753
+ def rapid_response_post(
1132
2754
  self,
1133
- rapid_id: Annotated[StrictStr, Field(description="The rapid to get the responses for.")],
2755
+ rapid_result_model: Annotated[Optional[RapidResultModel], Field(description="The model containing the user guess.")] = None,
1134
2756
  _request_timeout: Union[
1135
2757
  None,
1136
2758
  Annotated[StrictFloat, Field(gt=0)],
@@ -1143,12 +2765,12 @@ class RapidApi:
1143
2765
  _content_type: Optional[StrictStr] = None,
1144
2766
  _headers: Optional[Dict[StrictStr, Any]] = None,
1145
2767
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1146
- ) -> GetRapidResponsesResult:
1147
- """Gets all responses for a given rapid.
2768
+ ) -> AddUserResponseResult:
2769
+ """Submits a response for a Rapid.
1148
2770
 
1149
2771
 
1150
- :param rapid_id: The rapid to get the responses for. (required)
1151
- :type rapid_id: str
2772
+ :param rapid_result_model: The model containing the user guess.
2773
+ :type rapid_result_model: RapidResultModel
1152
2774
  :param _request_timeout: timeout setting for this request. If one
1153
2775
  number provided, it will be total request
1154
2776
  timeout. It can also be a pair (tuple) of
@@ -1171,8 +2793,8 @@ class RapidApi:
1171
2793
  :return: Returns the result object.
1172
2794
  """ # noqa: E501
1173
2795
 
1174
- _param = self._rapid_rapid_id_responses_get_serialize(
1175
- rapid_id=rapid_id,
2796
+ _param = self._rapid_response_post_serialize(
2797
+ rapid_result_model=rapid_result_model,
1176
2798
  _request_auth=_request_auth,
1177
2799
  _content_type=_content_type,
1178
2800
  _headers=_headers,
@@ -1180,7 +2802,7 @@ class RapidApi:
1180
2802
  )
1181
2803
 
1182
2804
  _response_types_map: Dict[str, Optional[str]] = {
1183
- '200': "GetRapidResponsesResult",
2805
+ '200': "AddUserResponseResult",
1184
2806
  }
1185
2807
  response_data = self.api_client.call_api(
1186
2808
  *_param,
@@ -1194,9 +2816,9 @@ class RapidApi:
1194
2816
 
1195
2817
 
1196
2818
  @validate_call
1197
- def rapid_rapid_id_responses_get_with_http_info(
2819
+ def rapid_response_post_with_http_info(
1198
2820
  self,
1199
- rapid_id: Annotated[StrictStr, Field(description="The rapid to get the responses for.")],
2821
+ rapid_result_model: Annotated[Optional[RapidResultModel], Field(description="The model containing the user guess.")] = None,
1200
2822
  _request_timeout: Union[
1201
2823
  None,
1202
2824
  Annotated[StrictFloat, Field(gt=0)],
@@ -1209,12 +2831,12 @@ class RapidApi:
1209
2831
  _content_type: Optional[StrictStr] = None,
1210
2832
  _headers: Optional[Dict[StrictStr, Any]] = None,
1211
2833
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1212
- ) -> ApiResponse[GetRapidResponsesResult]:
1213
- """Gets all responses for a given rapid.
2834
+ ) -> ApiResponse[AddUserResponseResult]:
2835
+ """Submits a response for a Rapid.
1214
2836
 
1215
2837
 
1216
- :param rapid_id: The rapid to get the responses for. (required)
1217
- :type rapid_id: str
2838
+ :param rapid_result_model: The model containing the user guess.
2839
+ :type rapid_result_model: RapidResultModel
1218
2840
  :param _request_timeout: timeout setting for this request. If one
1219
2841
  number provided, it will be total request
1220
2842
  timeout. It can also be a pair (tuple) of
@@ -1237,8 +2859,8 @@ class RapidApi:
1237
2859
  :return: Returns the result object.
1238
2860
  """ # noqa: E501
1239
2861
 
1240
- _param = self._rapid_rapid_id_responses_get_serialize(
1241
- rapid_id=rapid_id,
2862
+ _param = self._rapid_response_post_serialize(
2863
+ rapid_result_model=rapid_result_model,
1242
2864
  _request_auth=_request_auth,
1243
2865
  _content_type=_content_type,
1244
2866
  _headers=_headers,
@@ -1246,7 +2868,7 @@ class RapidApi:
1246
2868
  )
1247
2869
 
1248
2870
  _response_types_map: Dict[str, Optional[str]] = {
1249
- '200': "GetRapidResponsesResult",
2871
+ '200': "AddUserResponseResult",
1250
2872
  }
1251
2873
  response_data = self.api_client.call_api(
1252
2874
  *_param,
@@ -1260,9 +2882,9 @@ class RapidApi:
1260
2882
 
1261
2883
 
1262
2884
  @validate_call
1263
- def rapid_rapid_id_responses_get_without_preload_content(
2885
+ def rapid_response_post_without_preload_content(
1264
2886
  self,
1265
- rapid_id: Annotated[StrictStr, Field(description="The rapid to get the responses for.")],
2887
+ rapid_result_model: Annotated[Optional[RapidResultModel], Field(description="The model containing the user guess.")] = None,
1266
2888
  _request_timeout: Union[
1267
2889
  None,
1268
2890
  Annotated[StrictFloat, Field(gt=0)],
@@ -1276,11 +2898,11 @@ class RapidApi:
1276
2898
  _headers: Optional[Dict[StrictStr, Any]] = None,
1277
2899
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1278
2900
  ) -> RESTResponseType:
1279
- """Gets all responses for a given rapid.
2901
+ """Submits a response for a Rapid.
1280
2902
 
1281
2903
 
1282
- :param rapid_id: The rapid to get the responses for. (required)
1283
- :type rapid_id: str
2904
+ :param rapid_result_model: The model containing the user guess.
2905
+ :type rapid_result_model: RapidResultModel
1284
2906
  :param _request_timeout: timeout setting for this request. If one
1285
2907
  number provided, it will be total request
1286
2908
  timeout. It can also be a pair (tuple) of
@@ -1303,8 +2925,8 @@ class RapidApi:
1303
2925
  :return: Returns the result object.
1304
2926
  """ # noqa: E501
1305
2927
 
1306
- _param = self._rapid_rapid_id_responses_get_serialize(
1307
- rapid_id=rapid_id,
2928
+ _param = self._rapid_response_post_serialize(
2929
+ rapid_result_model=rapid_result_model,
1308
2930
  _request_auth=_request_auth,
1309
2931
  _content_type=_content_type,
1310
2932
  _headers=_headers,
@@ -1312,7 +2934,7 @@ class RapidApi:
1312
2934
  )
1313
2935
 
1314
2936
  _response_types_map: Dict[str, Optional[str]] = {
1315
- '200': "GetRapidResponsesResult",
2937
+ '200': "AddUserResponseResult",
1316
2938
  }
1317
2939
  response_data = self.api_client.call_api(
1318
2940
  *_param,
@@ -1321,9 +2943,9 @@ class RapidApi:
1321
2943
  return response_data.response
1322
2944
 
1323
2945
 
1324
- def _rapid_rapid_id_responses_get_serialize(
2946
+ def _rapid_response_post_serialize(
1325
2947
  self,
1326
- rapid_id,
2948
+ rapid_result_model,
1327
2949
  _request_auth,
1328
2950
  _content_type,
1329
2951
  _headers,
@@ -1345,12 +2967,12 @@ class RapidApi:
1345
2967
  _body_params: Optional[bytes] = None
1346
2968
 
1347
2969
  # process the path parameters
1348
- if rapid_id is not None:
1349
- _path_params['rapidId'] = rapid_id
1350
2970
  # process the query parameters
1351
2971
  # process the header parameters
1352
2972
  # process the form parameters
1353
2973
  # process the body parameter
2974
+ if rapid_result_model is not None:
2975
+ _body_params = rapid_result_model
1354
2976
 
1355
2977
 
1356
2978
  # set the HTTP header `Accept`
@@ -1363,6 +2985,21 @@ class RapidApi:
1363
2985
  ]
1364
2986
  )
1365
2987
 
2988
+ # set the HTTP header `Content-Type`
2989
+ if _content_type:
2990
+ _header_params['Content-Type'] = _content_type
2991
+ else:
2992
+ _default_content_type = (
2993
+ self.api_client.select_header_content_type(
2994
+ [
2995
+ 'application/json',
2996
+ 'text/json',
2997
+ 'application/*+json'
2998
+ ]
2999
+ )
3000
+ )
3001
+ if _default_content_type is not None:
3002
+ _header_params['Content-Type'] = _default_content_type
1366
3003
 
1367
3004
  # authentication setting
1368
3005
  _auth_settings: List[str] = [
@@ -1371,8 +3008,8 @@ class RapidApi:
1371
3008
  ]
1372
3009
 
1373
3010
  return self.api_client.param_serialize(
1374
- method='GET',
1375
- resource_path='/rapid/{rapidId}/responses',
3011
+ method='POST',
3012
+ resource_path='/rapid/response',
1376
3013
  path_params=_path_params,
1377
3014
  query_params=_query_params,
1378
3015
  header_params=_header_params,
@@ -1389,9 +3026,9 @@ class RapidApi:
1389
3026
 
1390
3027
 
1391
3028
  @validate_call
1392
- def rapid_report_id_get(
3029
+ def rapid_skip_post(
1393
3030
  self,
1394
- id: Annotated[StrictStr, Field(description="The report id")],
3031
+ rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1395
3032
  _request_timeout: Union[
1396
3033
  None,
1397
3034
  Annotated[StrictFloat, Field(gt=0)],
@@ -1404,12 +3041,12 @@ class RapidApi:
1404
3041
  _content_type: Optional[StrictStr] = None,
1405
3042
  _headers: Optional[Dict[StrictStr, Any]] = None,
1406
3043
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1407
- ) -> InspectReportResult:
1408
- """Inspects a report's dump. can be used to restore zustand state or anything alike.
3044
+ ) -> AddUserResponseResult:
3045
+ """Skips a Rapid for the user.
1409
3046
 
1410
3047
 
1411
- :param id: The report id (required)
1412
- :type id: str
3048
+ :param rapid_skipped_model: The model containing the Rapid to skip.
3049
+ :type rapid_skipped_model: RapidSkippedModel
1413
3050
  :param _request_timeout: timeout setting for this request. If one
1414
3051
  number provided, it will be total request
1415
3052
  timeout. It can also be a pair (tuple) of
@@ -1432,8 +3069,8 @@ class RapidApi:
1432
3069
  :return: Returns the result object.
1433
3070
  """ # noqa: E501
1434
3071
 
1435
- _param = self._rapid_report_id_get_serialize(
1436
- id=id,
3072
+ _param = self._rapid_skip_post_serialize(
3073
+ rapid_skipped_model=rapid_skipped_model,
1437
3074
  _request_auth=_request_auth,
1438
3075
  _content_type=_content_type,
1439
3076
  _headers=_headers,
@@ -1441,7 +3078,7 @@ class RapidApi:
1441
3078
  )
1442
3079
 
1443
3080
  _response_types_map: Dict[str, Optional[str]] = {
1444
- '200': "InspectReportResult",
3081
+ '200': "AddUserResponseResult",
1445
3082
  }
1446
3083
  response_data = self.api_client.call_api(
1447
3084
  *_param,
@@ -1455,9 +3092,9 @@ class RapidApi:
1455
3092
 
1456
3093
 
1457
3094
  @validate_call
1458
- def rapid_report_id_get_with_http_info(
3095
+ def rapid_skip_post_with_http_info(
1459
3096
  self,
1460
- id: Annotated[StrictStr, Field(description="The report id")],
3097
+ rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1461
3098
  _request_timeout: Union[
1462
3099
  None,
1463
3100
  Annotated[StrictFloat, Field(gt=0)],
@@ -1470,12 +3107,12 @@ class RapidApi:
1470
3107
  _content_type: Optional[StrictStr] = None,
1471
3108
  _headers: Optional[Dict[StrictStr, Any]] = None,
1472
3109
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1473
- ) -> ApiResponse[InspectReportResult]:
1474
- """Inspects a report's dump. can be used to restore zustand state or anything alike.
3110
+ ) -> ApiResponse[AddUserResponseResult]:
3111
+ """Skips a Rapid for the user.
1475
3112
 
1476
3113
 
1477
- :param id: The report id (required)
1478
- :type id: str
3114
+ :param rapid_skipped_model: The model containing the Rapid to skip.
3115
+ :type rapid_skipped_model: RapidSkippedModel
1479
3116
  :param _request_timeout: timeout setting for this request. If one
1480
3117
  number provided, it will be total request
1481
3118
  timeout. It can also be a pair (tuple) of
@@ -1498,8 +3135,8 @@ class RapidApi:
1498
3135
  :return: Returns the result object.
1499
3136
  """ # noqa: E501
1500
3137
 
1501
- _param = self._rapid_report_id_get_serialize(
1502
- id=id,
3138
+ _param = self._rapid_skip_post_serialize(
3139
+ rapid_skipped_model=rapid_skipped_model,
1503
3140
  _request_auth=_request_auth,
1504
3141
  _content_type=_content_type,
1505
3142
  _headers=_headers,
@@ -1507,7 +3144,7 @@ class RapidApi:
1507
3144
  )
1508
3145
 
1509
3146
  _response_types_map: Dict[str, Optional[str]] = {
1510
- '200': "InspectReportResult",
3147
+ '200': "AddUserResponseResult",
1511
3148
  }
1512
3149
  response_data = self.api_client.call_api(
1513
3150
  *_param,
@@ -1521,9 +3158,9 @@ class RapidApi:
1521
3158
 
1522
3159
 
1523
3160
  @validate_call
1524
- def rapid_report_id_get_without_preload_content(
3161
+ def rapid_skip_post_without_preload_content(
1525
3162
  self,
1526
- id: Annotated[StrictStr, Field(description="The report id")],
3163
+ rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1527
3164
  _request_timeout: Union[
1528
3165
  None,
1529
3166
  Annotated[StrictFloat, Field(gt=0)],
@@ -1537,11 +3174,11 @@ class RapidApi:
1537
3174
  _headers: Optional[Dict[StrictStr, Any]] = None,
1538
3175
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1539
3176
  ) -> RESTResponseType:
1540
- """Inspects a report's dump. can be used to restore zustand state or anything alike.
3177
+ """Skips a Rapid for the user.
1541
3178
 
1542
3179
 
1543
- :param id: The report id (required)
1544
- :type id: str
3180
+ :param rapid_skipped_model: The model containing the Rapid to skip.
3181
+ :type rapid_skipped_model: RapidSkippedModel
1545
3182
  :param _request_timeout: timeout setting for this request. If one
1546
3183
  number provided, it will be total request
1547
3184
  timeout. It can also be a pair (tuple) of
@@ -1564,8 +3201,8 @@ class RapidApi:
1564
3201
  :return: Returns the result object.
1565
3202
  """ # noqa: E501
1566
3203
 
1567
- _param = self._rapid_report_id_get_serialize(
1568
- id=id,
3204
+ _param = self._rapid_skip_post_serialize(
3205
+ rapid_skipped_model=rapid_skipped_model,
1569
3206
  _request_auth=_request_auth,
1570
3207
  _content_type=_content_type,
1571
3208
  _headers=_headers,
@@ -1573,7 +3210,7 @@ class RapidApi:
1573
3210
  )
1574
3211
 
1575
3212
  _response_types_map: Dict[str, Optional[str]] = {
1576
- '200': "InspectReportResult",
3213
+ '200': "AddUserResponseResult",
1577
3214
  }
1578
3215
  response_data = self.api_client.call_api(
1579
3216
  *_param,
@@ -1582,9 +3219,9 @@ class RapidApi:
1582
3219
  return response_data.response
1583
3220
 
1584
3221
 
1585
- def _rapid_report_id_get_serialize(
3222
+ def _rapid_skip_post_serialize(
1586
3223
  self,
1587
- id,
3224
+ rapid_skipped_model,
1588
3225
  _request_auth,
1589
3226
  _content_type,
1590
3227
  _headers,
@@ -1606,12 +3243,12 @@ class RapidApi:
1606
3243
  _body_params: Optional[bytes] = None
1607
3244
 
1608
3245
  # process the path parameters
1609
- if id is not None:
1610
- _path_params['id'] = id
1611
3246
  # process the query parameters
1612
3247
  # process the header parameters
1613
3248
  # process the form parameters
1614
3249
  # process the body parameter
3250
+ if rapid_skipped_model is not None:
3251
+ _body_params = rapid_skipped_model
1615
3252
 
1616
3253
 
1617
3254
  # set the HTTP header `Accept`
@@ -1624,6 +3261,21 @@ class RapidApi:
1624
3261
  ]
1625
3262
  )
1626
3263
 
3264
+ # set the HTTP header `Content-Type`
3265
+ if _content_type:
3266
+ _header_params['Content-Type'] = _content_type
3267
+ else:
3268
+ _default_content_type = (
3269
+ self.api_client.select_header_content_type(
3270
+ [
3271
+ 'application/json',
3272
+ 'text/json',
3273
+ 'application/*+json'
3274
+ ]
3275
+ )
3276
+ )
3277
+ if _default_content_type is not None:
3278
+ _header_params['Content-Type'] = _default_content_type
1627
3279
 
1628
3280
  # authentication setting
1629
3281
  _auth_settings: List[str] = [
@@ -1632,8 +3284,8 @@ class RapidApi:
1632
3284
  ]
1633
3285
 
1634
3286
  return self.api_client.param_serialize(
1635
- method='GET',
1636
- resource_path='/rapid/report/{id}',
3287
+ method='POST',
3288
+ resource_path='/rapid/skip',
1637
3289
  path_params=_path_params,
1638
3290
  query_params=_query_params,
1639
3291
  header_params=_header_params,
@@ -1650,9 +3302,9 @@ class RapidApi:
1650
3302
 
1651
3303
 
1652
3304
  @validate_call
1653
- def rapid_report_post(
3305
+ def rapid_skipuserguess_post(
1654
3306
  self,
1655
- report_model: Optional[ReportModel] = None,
3307
+ rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1656
3308
  _request_timeout: Union[
1657
3309
  None,
1658
3310
  Annotated[StrictFloat, Field(gt=0)],
@@ -1666,11 +3318,11 @@ class RapidApi:
1666
3318
  _headers: Optional[Dict[StrictStr, Any]] = None,
1667
3319
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1668
3320
  ) -> None:
1669
- """Used to report an issue with a rapid.
3321
+ """(Deprecated) Skips a Rapid for the user.
1670
3322
 
1671
3323
 
1672
- :param report_model:
1673
- :type report_model: ReportModel
3324
+ :param rapid_skipped_model: The model containing the Rapid to skip.
3325
+ :type rapid_skipped_model: RapidSkippedModel
1674
3326
  :param _request_timeout: timeout setting for this request. If one
1675
3327
  number provided, it will be total request
1676
3328
  timeout. It can also be a pair (tuple) of
@@ -1692,9 +3344,10 @@ class RapidApi:
1692
3344
  :type _host_index: int, optional
1693
3345
  :return: Returns the result object.
1694
3346
  """ # noqa: E501
3347
+ warnings.warn("POST /rapid/skipuserguess is deprecated.", DeprecationWarning)
1695
3348
 
1696
- _param = self._rapid_report_post_serialize(
1697
- report_model=report_model,
3349
+ _param = self._rapid_skipuserguess_post_serialize(
3350
+ rapid_skipped_model=rapid_skipped_model,
1698
3351
  _request_auth=_request_auth,
1699
3352
  _content_type=_content_type,
1700
3353
  _headers=_headers,
@@ -1702,7 +3355,7 @@ class RapidApi:
1702
3355
  )
1703
3356
 
1704
3357
  _response_types_map: Dict[str, Optional[str]] = {
1705
- '204': None,
3358
+ '200': None,
1706
3359
  }
1707
3360
  response_data = self.api_client.call_api(
1708
3361
  *_param,
@@ -1716,9 +3369,9 @@ class RapidApi:
1716
3369
 
1717
3370
 
1718
3371
  @validate_call
1719
- def rapid_report_post_with_http_info(
3372
+ def rapid_skipuserguess_post_with_http_info(
1720
3373
  self,
1721
- report_model: Optional[ReportModel] = None,
3374
+ rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1722
3375
  _request_timeout: Union[
1723
3376
  None,
1724
3377
  Annotated[StrictFloat, Field(gt=0)],
@@ -1732,11 +3385,11 @@ class RapidApi:
1732
3385
  _headers: Optional[Dict[StrictStr, Any]] = None,
1733
3386
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1734
3387
  ) -> ApiResponse[None]:
1735
- """Used to report an issue with a rapid.
3388
+ """(Deprecated) Skips a Rapid for the user.
1736
3389
 
1737
3390
 
1738
- :param report_model:
1739
- :type report_model: ReportModel
3391
+ :param rapid_skipped_model: The model containing the Rapid to skip.
3392
+ :type rapid_skipped_model: RapidSkippedModel
1740
3393
  :param _request_timeout: timeout setting for this request. If one
1741
3394
  number provided, it will be total request
1742
3395
  timeout. It can also be a pair (tuple) of
@@ -1758,9 +3411,10 @@ class RapidApi:
1758
3411
  :type _host_index: int, optional
1759
3412
  :return: Returns the result object.
1760
3413
  """ # noqa: E501
3414
+ warnings.warn("POST /rapid/skipuserguess is deprecated.", DeprecationWarning)
1761
3415
 
1762
- _param = self._rapid_report_post_serialize(
1763
- report_model=report_model,
3416
+ _param = self._rapid_skipuserguess_post_serialize(
3417
+ rapid_skipped_model=rapid_skipped_model,
1764
3418
  _request_auth=_request_auth,
1765
3419
  _content_type=_content_type,
1766
3420
  _headers=_headers,
@@ -1768,7 +3422,7 @@ class RapidApi:
1768
3422
  )
1769
3423
 
1770
3424
  _response_types_map: Dict[str, Optional[str]] = {
1771
- '204': None,
3425
+ '200': None,
1772
3426
  }
1773
3427
  response_data = self.api_client.call_api(
1774
3428
  *_param,
@@ -1782,9 +3436,9 @@ class RapidApi:
1782
3436
 
1783
3437
 
1784
3438
  @validate_call
1785
- def rapid_report_post_without_preload_content(
3439
+ def rapid_skipuserguess_post_without_preload_content(
1786
3440
  self,
1787
- report_model: Optional[ReportModel] = None,
3441
+ rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1788
3442
  _request_timeout: Union[
1789
3443
  None,
1790
3444
  Annotated[StrictFloat, Field(gt=0)],
@@ -1798,11 +3452,11 @@ class RapidApi:
1798
3452
  _headers: Optional[Dict[StrictStr, Any]] = None,
1799
3453
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1800
3454
  ) -> RESTResponseType:
1801
- """Used to report an issue with a rapid.
3455
+ """(Deprecated) Skips a Rapid for the user.
1802
3456
 
1803
3457
 
1804
- :param report_model:
1805
- :type report_model: ReportModel
3458
+ :param rapid_skipped_model: The model containing the Rapid to skip.
3459
+ :type rapid_skipped_model: RapidSkippedModel
1806
3460
  :param _request_timeout: timeout setting for this request. If one
1807
3461
  number provided, it will be total request
1808
3462
  timeout. It can also be a pair (tuple) of
@@ -1824,9 +3478,10 @@ class RapidApi:
1824
3478
  :type _host_index: int, optional
1825
3479
  :return: Returns the result object.
1826
3480
  """ # noqa: E501
3481
+ warnings.warn("POST /rapid/skipuserguess is deprecated.", DeprecationWarning)
1827
3482
 
1828
- _param = self._rapid_report_post_serialize(
1829
- report_model=report_model,
3483
+ _param = self._rapid_skipuserguess_post_serialize(
3484
+ rapid_skipped_model=rapid_skipped_model,
1830
3485
  _request_auth=_request_auth,
1831
3486
  _content_type=_content_type,
1832
3487
  _headers=_headers,
@@ -1834,7 +3489,7 @@ class RapidApi:
1834
3489
  )
1835
3490
 
1836
3491
  _response_types_map: Dict[str, Optional[str]] = {
1837
- '204': None,
3492
+ '200': None,
1838
3493
  }
1839
3494
  response_data = self.api_client.call_api(
1840
3495
  *_param,
@@ -1843,9 +3498,9 @@ class RapidApi:
1843
3498
  return response_data.response
1844
3499
 
1845
3500
 
1846
- def _rapid_report_post_serialize(
3501
+ def _rapid_skipuserguess_post_serialize(
1847
3502
  self,
1848
- report_model,
3503
+ rapid_skipped_model,
1849
3504
  _request_auth,
1850
3505
  _content_type,
1851
3506
  _headers,
@@ -1871,8 +3526,8 @@ class RapidApi:
1871
3526
  # process the header parameters
1872
3527
  # process the form parameters
1873
3528
  # process the body parameter
1874
- if report_model is not None:
1875
- _body_params = report_model
3529
+ if rapid_skipped_model is not None:
3530
+ _body_params = rapid_skipped_model
1876
3531
 
1877
3532
 
1878
3533
 
@@ -1900,7 +3555,7 @@ class RapidApi:
1900
3555
 
1901
3556
  return self.api_client.param_serialize(
1902
3557
  method='POST',
1903
- resource_path='/Rapid/Report',
3558
+ resource_path='/rapid/skipuserguess',
1904
3559
  path_params=_path_params,
1905
3560
  query_params=_query_params,
1906
3561
  header_params=_header_params,
@@ -1917,9 +3572,8 @@ class RapidApi:
1917
3572
 
1918
3573
 
1919
3574
  @validate_call
1920
- def rapid_skip_user_guess_post(
3575
+ def rapid_validatecurrentrapidbag_get(
1921
3576
  self,
1922
- rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1923
3577
  _request_timeout: Union[
1924
3578
  None,
1925
3579
  Annotated[StrictFloat, Field(gt=0)],
@@ -1933,11 +3587,9 @@ class RapidApi:
1933
3587
  _headers: Optional[Dict[StrictStr, Any]] = None,
1934
3588
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1935
3589
  ) -> None:
1936
- """Skips a Rapid for the user.
3590
+ """(Deprecated) Validates that the rapids associated with the current user are active.
1937
3591
 
1938
3592
 
1939
- :param rapid_skipped_model: The model containing the Rapid to skip.
1940
- :type rapid_skipped_model: RapidSkippedModel
1941
3593
  :param _request_timeout: timeout setting for this request. If one
1942
3594
  number provided, it will be total request
1943
3595
  timeout. It can also be a pair (tuple) of
@@ -1959,9 +3611,9 @@ class RapidApi:
1959
3611
  :type _host_index: int, optional
1960
3612
  :return: Returns the result object.
1961
3613
  """ # noqa: E501
3614
+ warnings.warn("GET /rapid/validatecurrentrapidbag is deprecated.", DeprecationWarning)
1962
3615
 
1963
- _param = self._rapid_skip_user_guess_post_serialize(
1964
- rapid_skipped_model=rapid_skipped_model,
3616
+ _param = self._rapid_validatecurrentrapidbag_get_serialize(
1965
3617
  _request_auth=_request_auth,
1966
3618
  _content_type=_content_type,
1967
3619
  _headers=_headers,
@@ -1983,9 +3635,8 @@ class RapidApi:
1983
3635
 
1984
3636
 
1985
3637
  @validate_call
1986
- def rapid_skip_user_guess_post_with_http_info(
3638
+ def rapid_validatecurrentrapidbag_get_with_http_info(
1987
3639
  self,
1988
- rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
1989
3640
  _request_timeout: Union[
1990
3641
  None,
1991
3642
  Annotated[StrictFloat, Field(gt=0)],
@@ -1999,11 +3650,9 @@ class RapidApi:
1999
3650
  _headers: Optional[Dict[StrictStr, Any]] = None,
2000
3651
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2001
3652
  ) -> ApiResponse[None]:
2002
- """Skips a Rapid for the user.
3653
+ """(Deprecated) Validates that the rapids associated with the current user are active.
2003
3654
 
2004
3655
 
2005
- :param rapid_skipped_model: The model containing the Rapid to skip.
2006
- :type rapid_skipped_model: RapidSkippedModel
2007
3656
  :param _request_timeout: timeout setting for this request. If one
2008
3657
  number provided, it will be total request
2009
3658
  timeout. It can also be a pair (tuple) of
@@ -2025,9 +3674,9 @@ class RapidApi:
2025
3674
  :type _host_index: int, optional
2026
3675
  :return: Returns the result object.
2027
3676
  """ # noqa: E501
3677
+ warnings.warn("GET /rapid/validatecurrentrapidbag is deprecated.", DeprecationWarning)
2028
3678
 
2029
- _param = self._rapid_skip_user_guess_post_serialize(
2030
- rapid_skipped_model=rapid_skipped_model,
3679
+ _param = self._rapid_validatecurrentrapidbag_get_serialize(
2031
3680
  _request_auth=_request_auth,
2032
3681
  _content_type=_content_type,
2033
3682
  _headers=_headers,
@@ -2049,9 +3698,8 @@ class RapidApi:
2049
3698
 
2050
3699
 
2051
3700
  @validate_call
2052
- def rapid_skip_user_guess_post_without_preload_content(
3701
+ def rapid_validatecurrentrapidbag_get_without_preload_content(
2053
3702
  self,
2054
- rapid_skipped_model: Annotated[Optional[RapidSkippedModel], Field(description="The model containing the Rapid to skip.")] = None,
2055
3703
  _request_timeout: Union[
2056
3704
  None,
2057
3705
  Annotated[StrictFloat, Field(gt=0)],
@@ -2065,11 +3713,9 @@ class RapidApi:
2065
3713
  _headers: Optional[Dict[StrictStr, Any]] = None,
2066
3714
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2067
3715
  ) -> RESTResponseType:
2068
- """Skips a Rapid for the user.
3716
+ """(Deprecated) Validates that the rapids associated with the current user are active.
2069
3717
 
2070
3718
 
2071
- :param rapid_skipped_model: The model containing the Rapid to skip.
2072
- :type rapid_skipped_model: RapidSkippedModel
2073
3719
  :param _request_timeout: timeout setting for this request. If one
2074
3720
  number provided, it will be total request
2075
3721
  timeout. It can also be a pair (tuple) of
@@ -2091,9 +3737,9 @@ class RapidApi:
2091
3737
  :type _host_index: int, optional
2092
3738
  :return: Returns the result object.
2093
3739
  """ # noqa: E501
3740
+ warnings.warn("GET /rapid/validatecurrentrapidbag is deprecated.", DeprecationWarning)
2094
3741
 
2095
- _param = self._rapid_skip_user_guess_post_serialize(
2096
- rapid_skipped_model=rapid_skipped_model,
3742
+ _param = self._rapid_validatecurrentrapidbag_get_serialize(
2097
3743
  _request_auth=_request_auth,
2098
3744
  _content_type=_content_type,
2099
3745
  _headers=_headers,
@@ -2110,9 +3756,8 @@ class RapidApi:
2110
3756
  return response_data.response
2111
3757
 
2112
3758
 
2113
- def _rapid_skip_user_guess_post_serialize(
3759
+ def _rapid_validatecurrentrapidbag_get_serialize(
2114
3760
  self,
2115
- rapid_skipped_model,
2116
3761
  _request_auth,
2117
3762
  _content_type,
2118
3763
  _headers,
@@ -2138,26 +3783,9 @@ class RapidApi:
2138
3783
  # process the header parameters
2139
3784
  # process the form parameters
2140
3785
  # process the body parameter
2141
- if rapid_skipped_model is not None:
2142
- _body_params = rapid_skipped_model
2143
3786
 
2144
3787
 
2145
3788
 
2146
- # set the HTTP header `Content-Type`
2147
- if _content_type:
2148
- _header_params['Content-Type'] = _content_type
2149
- else:
2150
- _default_content_type = (
2151
- self.api_client.select_header_content_type(
2152
- [
2153
- 'application/json',
2154
- 'text/json',
2155
- 'application/*+json'
2156
- ]
2157
- )
2158
- )
2159
- if _default_content_type is not None:
2160
- _header_params['Content-Type'] = _default_content_type
2161
3789
 
2162
3790
  # authentication setting
2163
3791
  _auth_settings: List[str] = [
@@ -2166,8 +3794,8 @@ class RapidApi:
2166
3794
  ]
2167
3795
 
2168
3796
  return self.api_client.param_serialize(
2169
- method='POST',
2170
- resource_path='/Rapid/SkipUserGuess',
3797
+ method='GET',
3798
+ resource_path='/rapid/validatecurrentrapidbag',
2171
3799
  path_params=_path_params,
2172
3800
  query_params=_query_params,
2173
3801
  header_params=_header_params,
@@ -2184,8 +3812,10 @@ class RapidApi:
2184
3812
 
2185
3813
 
2186
3814
  @validate_call
2187
- def rapid_validate_current_rapid_bag_get(
3815
+ def rapid_validation_rapid_id_patch(
2188
3816
  self,
3817
+ rapid_id: Annotated[StrictStr, Field(description="The id of the rapid to update")],
3818
+ update_validation_rapid_model: Annotated[Optional[UpdateValidationRapidModel], Field(description="The body request")] = None,
2189
3819
  _request_timeout: Union[
2190
3820
  None,
2191
3821
  Annotated[StrictFloat, Field(gt=0)],
@@ -2199,9 +3829,13 @@ class RapidApi:
2199
3829
  _headers: Optional[Dict[StrictStr, Any]] = None,
2200
3830
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2201
3831
  ) -> None:
2202
- """Validates that the rapids associated with the current user are active.
3832
+ """Updates the validation information of a rapid.
2203
3833
 
2204
3834
 
3835
+ :param rapid_id: The id of the rapid to update (required)
3836
+ :type rapid_id: str
3837
+ :param update_validation_rapid_model: The body request
3838
+ :type update_validation_rapid_model: UpdateValidationRapidModel
2205
3839
  :param _request_timeout: timeout setting for this request. If one
2206
3840
  number provided, it will be total request
2207
3841
  timeout. It can also be a pair (tuple) of
@@ -2224,7 +3858,9 @@ class RapidApi:
2224
3858
  :return: Returns the result object.
2225
3859
  """ # noqa: E501
2226
3860
 
2227
- _param = self._rapid_validate_current_rapid_bag_get_serialize(
3861
+ _param = self._rapid_validation_rapid_id_patch_serialize(
3862
+ rapid_id=rapid_id,
3863
+ update_validation_rapid_model=update_validation_rapid_model,
2228
3864
  _request_auth=_request_auth,
2229
3865
  _content_type=_content_type,
2230
3866
  _headers=_headers,
@@ -2232,7 +3868,7 @@ class RapidApi:
2232
3868
  )
2233
3869
 
2234
3870
  _response_types_map: Dict[str, Optional[str]] = {
2235
- '200': None,
3871
+ '204': None,
2236
3872
  }
2237
3873
  response_data = self.api_client.call_api(
2238
3874
  *_param,
@@ -2246,8 +3882,10 @@ class RapidApi:
2246
3882
 
2247
3883
 
2248
3884
  @validate_call
2249
- def rapid_validate_current_rapid_bag_get_with_http_info(
3885
+ def rapid_validation_rapid_id_patch_with_http_info(
2250
3886
  self,
3887
+ rapid_id: Annotated[StrictStr, Field(description="The id of the rapid to update")],
3888
+ update_validation_rapid_model: Annotated[Optional[UpdateValidationRapidModel], Field(description="The body request")] = None,
2251
3889
  _request_timeout: Union[
2252
3890
  None,
2253
3891
  Annotated[StrictFloat, Field(gt=0)],
@@ -2261,9 +3899,13 @@ class RapidApi:
2261
3899
  _headers: Optional[Dict[StrictStr, Any]] = None,
2262
3900
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2263
3901
  ) -> ApiResponse[None]:
2264
- """Validates that the rapids associated with the current user are active.
3902
+ """Updates the validation information of a rapid.
2265
3903
 
2266
3904
 
3905
+ :param rapid_id: The id of the rapid to update (required)
3906
+ :type rapid_id: str
3907
+ :param update_validation_rapid_model: The body request
3908
+ :type update_validation_rapid_model: UpdateValidationRapidModel
2267
3909
  :param _request_timeout: timeout setting for this request. If one
2268
3910
  number provided, it will be total request
2269
3911
  timeout. It can also be a pair (tuple) of
@@ -2286,7 +3928,9 @@ class RapidApi:
2286
3928
  :return: Returns the result object.
2287
3929
  """ # noqa: E501
2288
3930
 
2289
- _param = self._rapid_validate_current_rapid_bag_get_serialize(
3931
+ _param = self._rapid_validation_rapid_id_patch_serialize(
3932
+ rapid_id=rapid_id,
3933
+ update_validation_rapid_model=update_validation_rapid_model,
2290
3934
  _request_auth=_request_auth,
2291
3935
  _content_type=_content_type,
2292
3936
  _headers=_headers,
@@ -2294,7 +3938,7 @@ class RapidApi:
2294
3938
  )
2295
3939
 
2296
3940
  _response_types_map: Dict[str, Optional[str]] = {
2297
- '200': None,
3941
+ '204': None,
2298
3942
  }
2299
3943
  response_data = self.api_client.call_api(
2300
3944
  *_param,
@@ -2308,8 +3952,10 @@ class RapidApi:
2308
3952
 
2309
3953
 
2310
3954
  @validate_call
2311
- def rapid_validate_current_rapid_bag_get_without_preload_content(
3955
+ def rapid_validation_rapid_id_patch_without_preload_content(
2312
3956
  self,
3957
+ rapid_id: Annotated[StrictStr, Field(description="The id of the rapid to update")],
3958
+ update_validation_rapid_model: Annotated[Optional[UpdateValidationRapidModel], Field(description="The body request")] = None,
2313
3959
  _request_timeout: Union[
2314
3960
  None,
2315
3961
  Annotated[StrictFloat, Field(gt=0)],
@@ -2323,9 +3969,13 @@ class RapidApi:
2323
3969
  _headers: Optional[Dict[StrictStr, Any]] = None,
2324
3970
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2325
3971
  ) -> RESTResponseType:
2326
- """Validates that the rapids associated with the current user are active.
3972
+ """Updates the validation information of a rapid.
2327
3973
 
2328
3974
 
3975
+ :param rapid_id: The id of the rapid to update (required)
3976
+ :type rapid_id: str
3977
+ :param update_validation_rapid_model: The body request
3978
+ :type update_validation_rapid_model: UpdateValidationRapidModel
2329
3979
  :param _request_timeout: timeout setting for this request. If one
2330
3980
  number provided, it will be total request
2331
3981
  timeout. It can also be a pair (tuple) of
@@ -2348,7 +3998,9 @@ class RapidApi:
2348
3998
  :return: Returns the result object.
2349
3999
  """ # noqa: E501
2350
4000
 
2351
- _param = self._rapid_validate_current_rapid_bag_get_serialize(
4001
+ _param = self._rapid_validation_rapid_id_patch_serialize(
4002
+ rapid_id=rapid_id,
4003
+ update_validation_rapid_model=update_validation_rapid_model,
2352
4004
  _request_auth=_request_auth,
2353
4005
  _content_type=_content_type,
2354
4006
  _headers=_headers,
@@ -2356,7 +4008,7 @@ class RapidApi:
2356
4008
  )
2357
4009
 
2358
4010
  _response_types_map: Dict[str, Optional[str]] = {
2359
- '200': None,
4011
+ '204': None,
2360
4012
  }
2361
4013
  response_data = self.api_client.call_api(
2362
4014
  *_param,
@@ -2365,8 +4017,10 @@ class RapidApi:
2365
4017
  return response_data.response
2366
4018
 
2367
4019
 
2368
- def _rapid_validate_current_rapid_bag_get_serialize(
4020
+ def _rapid_validation_rapid_id_patch_serialize(
2369
4021
  self,
4022
+ rapid_id,
4023
+ update_validation_rapid_model,
2370
4024
  _request_auth,
2371
4025
  _content_type,
2372
4026
  _headers,
@@ -2388,13 +4042,32 @@ class RapidApi:
2388
4042
  _body_params: Optional[bytes] = None
2389
4043
 
2390
4044
  # process the path parameters
4045
+ if rapid_id is not None:
4046
+ _path_params['rapidId'] = rapid_id
2391
4047
  # process the query parameters
2392
4048
  # process the header parameters
2393
4049
  # process the form parameters
2394
4050
  # process the body parameter
4051
+ if update_validation_rapid_model is not None:
4052
+ _body_params = update_validation_rapid_model
2395
4053
 
2396
4054
 
2397
4055
 
4056
+ # set the HTTP header `Content-Type`
4057
+ if _content_type:
4058
+ _header_params['Content-Type'] = _content_type
4059
+ else:
4060
+ _default_content_type = (
4061
+ self.api_client.select_header_content_type(
4062
+ [
4063
+ 'application/json',
4064
+ 'text/json',
4065
+ 'application/*+json'
4066
+ ]
4067
+ )
4068
+ )
4069
+ if _default_content_type is not None:
4070
+ _header_params['Content-Type'] = _default_content_type
2398
4071
 
2399
4072
  # authentication setting
2400
4073
  _auth_settings: List[str] = [
@@ -2403,8 +4076,8 @@ class RapidApi:
2403
4076
  ]
2404
4077
 
2405
4078
  return self.api_client.param_serialize(
2406
- method='GET',
2407
- resource_path='/Rapid/ValidateCurrentRapidBag',
4079
+ method='PATCH',
4080
+ resource_path='/rapid/validation/{rapidId}',
2408
4081
  path_params=_path_params,
2409
4082
  query_params=_query_params,
2410
4083
  header_params=_header_params,
@@ -2438,7 +4111,7 @@ class RapidApi:
2438
4111
  _headers: Optional[Dict[StrictStr, Any]] = None,
2439
4112
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2440
4113
  ) -> None:
2441
- """Updates the validation information of a rapid.
4114
+ """(Deprecated) Updates the validation information of a rapid.
2442
4115
 
2443
4116
 
2444
4117
  :param rapid_id: (required)
@@ -2466,6 +4139,7 @@ class RapidApi:
2466
4139
  :type _host_index: int, optional
2467
4140
  :return: Returns the result object.
2468
4141
  """ # noqa: E501
4142
+ warnings.warn("PUT /rapid/validation/{rapidId} is deprecated.", DeprecationWarning)
2469
4143
 
2470
4144
  _param = self._rapid_validation_rapid_id_put_serialize(
2471
4145
  rapid_id=rapid_id,
@@ -2508,7 +4182,7 @@ class RapidApi:
2508
4182
  _headers: Optional[Dict[StrictStr, Any]] = None,
2509
4183
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2510
4184
  ) -> ApiResponse[None]:
2511
- """Updates the validation information of a rapid.
4185
+ """(Deprecated) Updates the validation information of a rapid.
2512
4186
 
2513
4187
 
2514
4188
  :param rapid_id: (required)
@@ -2536,6 +4210,7 @@ class RapidApi:
2536
4210
  :type _host_index: int, optional
2537
4211
  :return: Returns the result object.
2538
4212
  """ # noqa: E501
4213
+ warnings.warn("PUT /rapid/validation/{rapidId} is deprecated.", DeprecationWarning)
2539
4214
 
2540
4215
  _param = self._rapid_validation_rapid_id_put_serialize(
2541
4216
  rapid_id=rapid_id,
@@ -2578,7 +4253,7 @@ class RapidApi:
2578
4253
  _headers: Optional[Dict[StrictStr, Any]] = None,
2579
4254
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2580
4255
  ) -> RESTResponseType:
2581
- """Updates the validation information of a rapid.
4256
+ """(Deprecated) Updates the validation information of a rapid.
2582
4257
 
2583
4258
 
2584
4259
  :param rapid_id: (required)
@@ -2606,6 +4281,7 @@ class RapidApi:
2606
4281
  :type _host_index: int, optional
2607
4282
  :return: Returns the result object.
2608
4283
  """ # noqa: E501
4284
+ warnings.warn("PUT /rapid/validation/{rapidId} is deprecated.", DeprecationWarning)
2609
4285
 
2610
4286
  _param = self._rapid_validation_rapid_id_put_serialize(
2611
4287
  rapid_id=rapid_id,