rapidata 2.15.0__py3-none-any.whl → 2.17.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +1 -0
- rapidata/api_client/__init__.py +17 -7
- rapidata/api_client/api/__init__.py +2 -1
- rapidata/api_client/api/campaign_api.py +554 -30
- rapidata/api_client/api/client_api.py +295 -23
- rapidata/api_client/api/coco_api.py +594 -8
- rapidata/api_client/api/compare_workflow_api.py +23 -23
- rapidata/api_client/api/datapoint_api.py +548 -26
- rapidata/api_client/api/dataset_api.py +2198 -186
- rapidata/api_client/api/feedback_api.py +306 -0
- rapidata/api_client/api/identity_api.py +1143 -78
- rapidata/api_client/api/newsletter_api.py +299 -11
- rapidata/api_client/api/order_api.py +5367 -565
- rapidata/api_client/api/pipeline_api.py +249 -510
- rapidata/api_client/api/rapid_api.py +1930 -254
- rapidata/api_client/api/simple_workflow_api.py +23 -23
- rapidata/api_client/api/validation_set_api.py +5259 -0
- rapidata/api_client/api/workflow_api.py +932 -137
- rapidata/api_client/models/__init__.py +15 -6
- rapidata/api_client/models/ab_test_selection_a_inner.py +24 -10
- rapidata/api_client/models/add_campaign_model.py +1 -1
- rapidata/api_client/models/add_user_response_result.py +106 -0
- rapidata/api_client/models/add_user_response_result_validation_truth.py +258 -0
- rapidata/api_client/models/add_validation_rapid_model.py +3 -3
- rapidata/api_client/models/add_validation_text_rapid_model.py +3 -3
- rapidata/api_client/models/are_rapids_active_result.py +87 -0
- rapidata/api_client/models/compare_workflow_config_model.py +1 -1
- rapidata/api_client/models/compare_workflow_model.py +4 -4
- rapidata/api_client/models/create_datapoint_from_files_model.py +102 -0
- rapidata/api_client/models/create_datapoint_from_files_model_metadata_inner.py +168 -0
- rapidata/api_client/models/create_datapoint_from_text_sources_model.py +109 -0
- rapidata/api_client/models/create_datapoint_from_urls_model.py +5 -5
- rapidata/api_client/models/create_datapoints_from_s3_bucket_model.py +124 -0
- rapidata/api_client/models/create_order_model.py +1 -1
- rapidata/api_client/models/create_rapid_result.py +87 -0
- rapidata/api_client/models/create_validation_set_model.py +87 -0
- rapidata/api_client/models/datapoint_metadata_model.py +3 -3
- rapidata/api_client/models/early_stopping_referee_model.py +1 -1
- rapidata/api_client/models/elo_config_model.py +2 -2
- rapidata/api_client/models/evaluation_workflow_model.py +2 -2
- rapidata/api_client/models/get_validation_rapids_query.py +123 -0
- rapidata/api_client/models/get_validation_rapids_query_paged_result.py +105 -0
- rapidata/api_client/models/online_pair_maker_config_model.py +1 -1
- rapidata/api_client/models/pipeline_id_workflow_artifact_id_put_request.py +140 -0
- rapidata/api_client/models/query_validation_rapids_result.py +3 -3
- rapidata/api_client/models/rapid_issue.py +4 -0
- rapidata/api_client/models/report_model.py +4 -4
- rapidata/api_client/models/shuffling_selection.py +106 -0
- rapidata/api_client/models/simple_workflow_config_model.py +1 -1
- rapidata/api_client/models/simple_workflow_config_model_blueprint.py +1 -1
- rapidata/api_client/models/simple_workflow_model.py +1 -1
- rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
- rapidata/api_client/models/update_campaign_model.py +1 -1
- rapidata/api_client/models/update_dataset_name_model.py +87 -0
- rapidata/api_client/models/update_order_name_model.py +87 -0
- rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
- rapidata/api_client/models/user_score_user_filter_model.py +9 -2
- rapidata/api_client_README.md +153 -88
- rapidata/rapidata_client/__init__.py +1 -0
- rapidata/rapidata_client/demographic/demographic_manager.py +1 -1
- rapidata/rapidata_client/filter/user_score_filter.py +4 -1
- rapidata/rapidata_client/order/_rapidata_dataset.py +10 -11
- rapidata/rapidata_client/order/_rapidata_order_builder.py +1 -1
- rapidata/rapidata_client/order/rapidata_order.py +5 -5
- rapidata/rapidata_client/order/rapidata_order_manager.py +1 -1
- rapidata/rapidata_client/order/rapidata_results.py +1 -1
- rapidata/rapidata_client/selection/__init__.py +1 -0
- rapidata/rapidata_client/selection/rapidata_selections.py +4 -1
- rapidata/rapidata_client/selection/shuffling_selection.py +36 -0
- rapidata/rapidata_client/validation/rapidata_validation_set.py +11 -0
- rapidata/rapidata_client/validation/rapids/rapids.py +3 -5
- rapidata/rapidata_client/validation/validation_set_manager.py +36 -21
- rapidata/rapidata_client/workflow/_ranking_workflow.py +2 -2
- {rapidata-2.15.0.dist-info → rapidata-2.17.0.dist-info}/METADATA +1 -1
- {rapidata-2.15.0.dist-info → rapidata-2.17.0.dist-info}/RECORD +77 -59
- {rapidata-2.15.0.dist-info → rapidata-2.17.0.dist-info}/LICENSE +0 -0
- {rapidata-2.15.0.dist-info → rapidata-2.17.0.dist-info}/WHEEL +0 -0
|
@@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
19
|
from pydantic import Field
|
|
20
|
-
from typing import Optional
|
|
20
|
+
from typing import Any, Dict, Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from rapidata.api_client.models.newsletter_model import NewsletterModel
|
|
23
23
|
|
|
@@ -56,7 +56,7 @@ class NewsletterApi:
|
|
|
56
56
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
57
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
58
|
) -> None:
|
|
59
|
-
"""Signs a user up to the newsletter.
|
|
59
|
+
"""(Deprecated) Signs a user up to the newsletter.
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
:param newsletter_model: The model containing the email of a user and recaptcha token.
|
|
@@ -82,6 +82,7 @@ class NewsletterApi:
|
|
|
82
82
|
:type _host_index: int, optional
|
|
83
83
|
:return: Returns the result object.
|
|
84
84
|
""" # noqa: E501
|
|
85
|
+
warnings.warn("POST /newsletter is deprecated.", DeprecationWarning)
|
|
85
86
|
|
|
86
87
|
_param = self._newsletter_post_serialize(
|
|
87
88
|
newsletter_model=newsletter_model,
|
|
@@ -122,7 +123,7 @@ class NewsletterApi:
|
|
|
122
123
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
123
124
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
124
125
|
) -> ApiResponse[None]:
|
|
125
|
-
"""Signs a user up to the newsletter.
|
|
126
|
+
"""(Deprecated) Signs a user up to the newsletter.
|
|
126
127
|
|
|
127
128
|
|
|
128
129
|
:param newsletter_model: The model containing the email of a user and recaptcha token.
|
|
@@ -148,6 +149,7 @@ class NewsletterApi:
|
|
|
148
149
|
:type _host_index: int, optional
|
|
149
150
|
:return: Returns the result object.
|
|
150
151
|
""" # noqa: E501
|
|
152
|
+
warnings.warn("POST /newsletter is deprecated.", DeprecationWarning)
|
|
151
153
|
|
|
152
154
|
_param = self._newsletter_post_serialize(
|
|
153
155
|
newsletter_model=newsletter_model,
|
|
@@ -188,7 +190,7 @@ class NewsletterApi:
|
|
|
188
190
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
189
191
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
190
192
|
) -> RESTResponseType:
|
|
191
|
-
"""Signs a user up to the newsletter.
|
|
193
|
+
"""(Deprecated) Signs a user up to the newsletter.
|
|
192
194
|
|
|
193
195
|
|
|
194
196
|
:param newsletter_model: The model containing the email of a user and recaptcha token.
|
|
@@ -214,6 +216,7 @@ class NewsletterApi:
|
|
|
214
216
|
:type _host_index: int, optional
|
|
215
217
|
:return: Returns the result object.
|
|
216
218
|
""" # noqa: E501
|
|
219
|
+
warnings.warn("POST /newsletter is deprecated.", DeprecationWarning)
|
|
217
220
|
|
|
218
221
|
_param = self._newsletter_post_serialize(
|
|
219
222
|
newsletter_model=newsletter_model,
|
|
@@ -290,7 +293,283 @@ class NewsletterApi:
|
|
|
290
293
|
|
|
291
294
|
return self.api_client.param_serialize(
|
|
292
295
|
method='POST',
|
|
293
|
-
resource_path='/
|
|
296
|
+
resource_path='/newsletter',
|
|
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 newsletter_subscribe_post(
|
|
314
|
+
self,
|
|
315
|
+
newsletter_model: Annotated[Optional[NewsletterModel], Field(description="The model containing the email of a user and recaptcha token.")] = None,
|
|
316
|
+
_request_timeout: Union[
|
|
317
|
+
None,
|
|
318
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
319
|
+
Tuple[
|
|
320
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
321
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
322
|
+
]
|
|
323
|
+
] = None,
|
|
324
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
325
|
+
_content_type: Optional[StrictStr] = None,
|
|
326
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
327
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
328
|
+
) -> object:
|
|
329
|
+
"""Signs a user up to the newsletter.
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
:param newsletter_model: The model containing the email of a user and recaptcha token.
|
|
333
|
+
:type newsletter_model: NewsletterModel
|
|
334
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
335
|
+
number provided, it will be total request
|
|
336
|
+
timeout. It can also be a pair (tuple) of
|
|
337
|
+
(connection, read) timeouts.
|
|
338
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
339
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
340
|
+
request; this effectively ignores the
|
|
341
|
+
authentication in the spec for a single request.
|
|
342
|
+
:type _request_auth: dict, optional
|
|
343
|
+
:param _content_type: force content-type for the request.
|
|
344
|
+
:type _content_type: str, Optional
|
|
345
|
+
:param _headers: set to override the headers for a single
|
|
346
|
+
request; this effectively ignores the headers
|
|
347
|
+
in the spec for a single request.
|
|
348
|
+
:type _headers: dict, optional
|
|
349
|
+
:param _host_index: set to override the host_index for a single
|
|
350
|
+
request; this effectively ignores the host_index
|
|
351
|
+
in the spec for a single request.
|
|
352
|
+
:type _host_index: int, optional
|
|
353
|
+
:return: Returns the result object.
|
|
354
|
+
""" # noqa: E501
|
|
355
|
+
|
|
356
|
+
_param = self._newsletter_subscribe_post_serialize(
|
|
357
|
+
newsletter_model=newsletter_model,
|
|
358
|
+
_request_auth=_request_auth,
|
|
359
|
+
_content_type=_content_type,
|
|
360
|
+
_headers=_headers,
|
|
361
|
+
_host_index=_host_index
|
|
362
|
+
)
|
|
363
|
+
|
|
364
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
365
|
+
'200': "object",
|
|
366
|
+
}
|
|
367
|
+
response_data = self.api_client.call_api(
|
|
368
|
+
*_param,
|
|
369
|
+
_request_timeout=_request_timeout
|
|
370
|
+
)
|
|
371
|
+
response_data.read()
|
|
372
|
+
return self.api_client.response_deserialize(
|
|
373
|
+
response_data=response_data,
|
|
374
|
+
response_types_map=_response_types_map,
|
|
375
|
+
).data
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
@validate_call
|
|
379
|
+
def newsletter_subscribe_post_with_http_info(
|
|
380
|
+
self,
|
|
381
|
+
newsletter_model: Annotated[Optional[NewsletterModel], Field(description="The model containing the email of a user and recaptcha token.")] = None,
|
|
382
|
+
_request_timeout: Union[
|
|
383
|
+
None,
|
|
384
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
385
|
+
Tuple[
|
|
386
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
387
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
388
|
+
]
|
|
389
|
+
] = None,
|
|
390
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
391
|
+
_content_type: Optional[StrictStr] = None,
|
|
392
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
393
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
394
|
+
) -> ApiResponse[object]:
|
|
395
|
+
"""Signs a user up to the newsletter.
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
:param newsletter_model: The model containing the email of a user and recaptcha token.
|
|
399
|
+
:type newsletter_model: NewsletterModel
|
|
400
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
401
|
+
number provided, it will be total request
|
|
402
|
+
timeout. It can also be a pair (tuple) of
|
|
403
|
+
(connection, read) timeouts.
|
|
404
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
405
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
406
|
+
request; this effectively ignores the
|
|
407
|
+
authentication in the spec for a single request.
|
|
408
|
+
:type _request_auth: dict, optional
|
|
409
|
+
:param _content_type: force content-type for the request.
|
|
410
|
+
:type _content_type: str, Optional
|
|
411
|
+
:param _headers: set to override the headers for a single
|
|
412
|
+
request; this effectively ignores the headers
|
|
413
|
+
in the spec for a single request.
|
|
414
|
+
:type _headers: dict, optional
|
|
415
|
+
:param _host_index: set to override the host_index for a single
|
|
416
|
+
request; this effectively ignores the host_index
|
|
417
|
+
in the spec for a single request.
|
|
418
|
+
:type _host_index: int, optional
|
|
419
|
+
:return: Returns the result object.
|
|
420
|
+
""" # noqa: E501
|
|
421
|
+
|
|
422
|
+
_param = self._newsletter_subscribe_post_serialize(
|
|
423
|
+
newsletter_model=newsletter_model,
|
|
424
|
+
_request_auth=_request_auth,
|
|
425
|
+
_content_type=_content_type,
|
|
426
|
+
_headers=_headers,
|
|
427
|
+
_host_index=_host_index
|
|
428
|
+
)
|
|
429
|
+
|
|
430
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
431
|
+
'200': "object",
|
|
432
|
+
}
|
|
433
|
+
response_data = self.api_client.call_api(
|
|
434
|
+
*_param,
|
|
435
|
+
_request_timeout=_request_timeout
|
|
436
|
+
)
|
|
437
|
+
response_data.read()
|
|
438
|
+
return self.api_client.response_deserialize(
|
|
439
|
+
response_data=response_data,
|
|
440
|
+
response_types_map=_response_types_map,
|
|
441
|
+
)
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
@validate_call
|
|
445
|
+
def newsletter_subscribe_post_without_preload_content(
|
|
446
|
+
self,
|
|
447
|
+
newsletter_model: Annotated[Optional[NewsletterModel], Field(description="The model containing the email of a user and recaptcha token.")] = None,
|
|
448
|
+
_request_timeout: Union[
|
|
449
|
+
None,
|
|
450
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
451
|
+
Tuple[
|
|
452
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
453
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
454
|
+
]
|
|
455
|
+
] = None,
|
|
456
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
457
|
+
_content_type: Optional[StrictStr] = None,
|
|
458
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
459
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
460
|
+
) -> RESTResponseType:
|
|
461
|
+
"""Signs a user up to the newsletter.
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
:param newsletter_model: The model containing the email of a user and recaptcha token.
|
|
465
|
+
:type newsletter_model: NewsletterModel
|
|
466
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
467
|
+
number provided, it will be total request
|
|
468
|
+
timeout. It can also be a pair (tuple) of
|
|
469
|
+
(connection, read) timeouts.
|
|
470
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
471
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
472
|
+
request; this effectively ignores the
|
|
473
|
+
authentication in the spec for a single request.
|
|
474
|
+
:type _request_auth: dict, optional
|
|
475
|
+
:param _content_type: force content-type for the request.
|
|
476
|
+
:type _content_type: str, Optional
|
|
477
|
+
:param _headers: set to override the headers for a single
|
|
478
|
+
request; this effectively ignores the headers
|
|
479
|
+
in the spec for a single request.
|
|
480
|
+
:type _headers: dict, optional
|
|
481
|
+
:param _host_index: set to override the host_index for a single
|
|
482
|
+
request; this effectively ignores the host_index
|
|
483
|
+
in the spec for a single request.
|
|
484
|
+
:type _host_index: int, optional
|
|
485
|
+
:return: Returns the result object.
|
|
486
|
+
""" # noqa: E501
|
|
487
|
+
|
|
488
|
+
_param = self._newsletter_subscribe_post_serialize(
|
|
489
|
+
newsletter_model=newsletter_model,
|
|
490
|
+
_request_auth=_request_auth,
|
|
491
|
+
_content_type=_content_type,
|
|
492
|
+
_headers=_headers,
|
|
493
|
+
_host_index=_host_index
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
497
|
+
'200': "object",
|
|
498
|
+
}
|
|
499
|
+
response_data = self.api_client.call_api(
|
|
500
|
+
*_param,
|
|
501
|
+
_request_timeout=_request_timeout
|
|
502
|
+
)
|
|
503
|
+
return response_data.response
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
def _newsletter_subscribe_post_serialize(
|
|
507
|
+
self,
|
|
508
|
+
newsletter_model,
|
|
509
|
+
_request_auth,
|
|
510
|
+
_content_type,
|
|
511
|
+
_headers,
|
|
512
|
+
_host_index,
|
|
513
|
+
) -> RequestSerialized:
|
|
514
|
+
|
|
515
|
+
_host = None
|
|
516
|
+
|
|
517
|
+
_collection_formats: Dict[str, str] = {
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
_path_params: Dict[str, str] = {}
|
|
521
|
+
_query_params: List[Tuple[str, str]] = []
|
|
522
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
523
|
+
_form_params: List[Tuple[str, str]] = []
|
|
524
|
+
_files: Dict[
|
|
525
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
526
|
+
] = {}
|
|
527
|
+
_body_params: Optional[bytes] = None
|
|
528
|
+
|
|
529
|
+
# process the path parameters
|
|
530
|
+
# process the query parameters
|
|
531
|
+
# process the header parameters
|
|
532
|
+
# process the form parameters
|
|
533
|
+
# process the body parameter
|
|
534
|
+
if newsletter_model is not None:
|
|
535
|
+
_body_params = newsletter_model
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
# set the HTTP header `Accept`
|
|
539
|
+
if 'Accept' not in _header_params:
|
|
540
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
541
|
+
[
|
|
542
|
+
'text/plain',
|
|
543
|
+
'application/json',
|
|
544
|
+
'text/json'
|
|
545
|
+
]
|
|
546
|
+
)
|
|
547
|
+
|
|
548
|
+
# set the HTTP header `Content-Type`
|
|
549
|
+
if _content_type:
|
|
550
|
+
_header_params['Content-Type'] = _content_type
|
|
551
|
+
else:
|
|
552
|
+
_default_content_type = (
|
|
553
|
+
self.api_client.select_header_content_type(
|
|
554
|
+
[
|
|
555
|
+
'application/json',
|
|
556
|
+
'text/json',
|
|
557
|
+
'application/*+json'
|
|
558
|
+
]
|
|
559
|
+
)
|
|
560
|
+
)
|
|
561
|
+
if _default_content_type is not None:
|
|
562
|
+
_header_params['Content-Type'] = _default_content_type
|
|
563
|
+
|
|
564
|
+
# authentication setting
|
|
565
|
+
_auth_settings: List[str] = [
|
|
566
|
+
'bearer',
|
|
567
|
+
'oauth2'
|
|
568
|
+
]
|
|
569
|
+
|
|
570
|
+
return self.api_client.param_serialize(
|
|
571
|
+
method='POST',
|
|
572
|
+
resource_path='/newsletter/subscribe',
|
|
294
573
|
path_params=_path_params,
|
|
295
574
|
query_params=_query_params,
|
|
296
575
|
header_params=_header_params,
|
|
@@ -322,7 +601,7 @@ class NewsletterApi:
|
|
|
322
601
|
_content_type: Optional[StrictStr] = None,
|
|
323
602
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
324
603
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
325
|
-
) ->
|
|
604
|
+
) -> object:
|
|
326
605
|
"""Unsubscribes a user from the newsletter.
|
|
327
606
|
|
|
328
607
|
|
|
@@ -359,7 +638,7 @@ class NewsletterApi:
|
|
|
359
638
|
)
|
|
360
639
|
|
|
361
640
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
362
|
-
'200':
|
|
641
|
+
'200': "object",
|
|
363
642
|
}
|
|
364
643
|
response_data = self.api_client.call_api(
|
|
365
644
|
*_param,
|
|
@@ -388,7 +667,7 @@ class NewsletterApi:
|
|
|
388
667
|
_content_type: Optional[StrictStr] = None,
|
|
389
668
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
390
669
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
391
|
-
) -> ApiResponse[
|
|
670
|
+
) -> ApiResponse[object]:
|
|
392
671
|
"""Unsubscribes a user from the newsletter.
|
|
393
672
|
|
|
394
673
|
|
|
@@ -425,7 +704,7 @@ class NewsletterApi:
|
|
|
425
704
|
)
|
|
426
705
|
|
|
427
706
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
428
|
-
'200':
|
|
707
|
+
'200': "object",
|
|
429
708
|
}
|
|
430
709
|
response_data = self.api_client.call_api(
|
|
431
710
|
*_param,
|
|
@@ -491,7 +770,7 @@ class NewsletterApi:
|
|
|
491
770
|
)
|
|
492
771
|
|
|
493
772
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
494
|
-
'200':
|
|
773
|
+
'200': "object",
|
|
495
774
|
}
|
|
496
775
|
response_data = self.api_client.call_api(
|
|
497
776
|
*_param,
|
|
@@ -532,6 +811,15 @@ class NewsletterApi:
|
|
|
532
811
|
_body_params = newsletter_model
|
|
533
812
|
|
|
534
813
|
|
|
814
|
+
# set the HTTP header `Accept`
|
|
815
|
+
if 'Accept' not in _header_params:
|
|
816
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
817
|
+
[
|
|
818
|
+
'text/plain',
|
|
819
|
+
'application/json',
|
|
820
|
+
'text/json'
|
|
821
|
+
]
|
|
822
|
+
)
|
|
535
823
|
|
|
536
824
|
# set the HTTP header `Content-Type`
|
|
537
825
|
if _content_type:
|
|
@@ -557,7 +845,7 @@ class NewsletterApi:
|
|
|
557
845
|
|
|
558
846
|
return self.api_client.param_serialize(
|
|
559
847
|
method='POST',
|
|
560
|
-
resource_path='/
|
|
848
|
+
resource_path='/newsletter/unsubscribe',
|
|
561
849
|
path_params=_path_params,
|
|
562
850
|
query_params=_query_params,
|
|
563
851
|
header_params=_header_params,
|