rapidata 0.1.18__py3-none-any.whl → 0.1.19__py3-none-any.whl

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