hatchet-sdk 1.18.1__py3-none-any.whl → 1.20.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 hatchet-sdk might be problematic. Click here for more details.
- hatchet_sdk/clients/dispatcher/action_listener.py +0 -1
- hatchet_sdk/clients/dispatcher/dispatcher.py +0 -30
- hatchet_sdk/hatchet.py +0 -20
- hatchet_sdk/opentelemetry/instrumentor.py +1 -27
- hatchet_sdk/runnables/action.py +2 -5
- hatchet_sdk/runnables/task.py +0 -1
- hatchet_sdk/utils/opentelemetry.py +0 -1
- hatchet_sdk/worker/action_listener_process.py +0 -29
- hatchet_sdk/worker/runner/runner.py +1 -105
- {hatchet_sdk-1.18.1.dist-info → hatchet_sdk-1.20.0.dist-info}/METADATA +2 -3
- {hatchet_sdk-1.18.1.dist-info → hatchet_sdk-1.20.0.dist-info}/RECORD +13 -234
- hatchet_sdk/v0/__init__.py +0 -251
- hatchet_sdk/v0/client.py +0 -119
- hatchet_sdk/v0/clients/admin.py +0 -541
- hatchet_sdk/v0/clients/dispatcher/action_listener.py +0 -422
- hatchet_sdk/v0/clients/dispatcher/dispatcher.py +0 -204
- hatchet_sdk/v0/clients/event_ts.py +0 -28
- hatchet_sdk/v0/clients/events.py +0 -182
- hatchet_sdk/v0/clients/rest/__init__.py +0 -307
- hatchet_sdk/v0/clients/rest/api/__init__.py +0 -19
- hatchet_sdk/v0/clients/rest/api/api_token_api.py +0 -858
- hatchet_sdk/v0/clients/rest/api/default_api.py +0 -2259
- hatchet_sdk/v0/clients/rest/api/event_api.py +0 -2548
- hatchet_sdk/v0/clients/rest/api/github_api.py +0 -331
- hatchet_sdk/v0/clients/rest/api/healthcheck_api.py +0 -483
- hatchet_sdk/v0/clients/rest/api/log_api.py +0 -449
- hatchet_sdk/v0/clients/rest/api/metadata_api.py +0 -728
- hatchet_sdk/v0/clients/rest/api/rate_limits_api.py +0 -423
- hatchet_sdk/v0/clients/rest/api/slack_api.py +0 -577
- hatchet_sdk/v0/clients/rest/api/sns_api.py +0 -872
- hatchet_sdk/v0/clients/rest/api/step_run_api.py +0 -2202
- hatchet_sdk/v0/clients/rest/api/tenant_api.py +0 -4430
- hatchet_sdk/v0/clients/rest/api/user_api.py +0 -2888
- hatchet_sdk/v0/clients/rest/api/worker_api.py +0 -858
- hatchet_sdk/v0/clients/rest/api/workflow_api.py +0 -6312
- hatchet_sdk/v0/clients/rest/api/workflow_run_api.py +0 -1932
- hatchet_sdk/v0/clients/rest/api/workflow_runs_api.py +0 -610
- hatchet_sdk/v0/clients/rest/api_client.py +0 -759
- hatchet_sdk/v0/clients/rest/api_response.py +0 -22
- hatchet_sdk/v0/clients/rest/configuration.py +0 -611
- hatchet_sdk/v0/clients/rest/exceptions.py +0 -200
- hatchet_sdk/v0/clients/rest/models/__init__.py +0 -274
- hatchet_sdk/v0/clients/rest/models/accept_invite_request.py +0 -83
- hatchet_sdk/v0/clients/rest/models/api_error.py +0 -102
- hatchet_sdk/v0/clients/rest/models/api_errors.py +0 -100
- hatchet_sdk/v0/clients/rest/models/api_meta.py +0 -144
- hatchet_sdk/v0/clients/rest/models/api_meta_auth.py +0 -85
- hatchet_sdk/v0/clients/rest/models/api_meta_integration.py +0 -88
- hatchet_sdk/v0/clients/rest/models/api_meta_posthog.py +0 -90
- hatchet_sdk/v0/clients/rest/models/api_resource_meta.py +0 -98
- hatchet_sdk/v0/clients/rest/models/api_token.py +0 -105
- hatchet_sdk/v0/clients/rest/models/bulk_create_event_request.py +0 -100
- hatchet_sdk/v0/clients/rest/models/bulk_create_event_response.py +0 -110
- hatchet_sdk/v0/clients/rest/models/cancel_event_request.py +0 -85
- hatchet_sdk/v0/clients/rest/models/cancel_step_run_request.py +0 -83
- hatchet_sdk/v0/clients/rest/models/concurrency_limit_strategy.py +0 -39
- hatchet_sdk/v0/clients/rest/models/create_api_token_request.py +0 -92
- hatchet_sdk/v0/clients/rest/models/create_api_token_response.py +0 -83
- hatchet_sdk/v0/clients/rest/models/create_cron_workflow_trigger_request.py +0 -98
- hatchet_sdk/v0/clients/rest/models/create_event_request.py +0 -95
- hatchet_sdk/v0/clients/rest/models/create_pull_request_from_step_run.py +0 -83
- hatchet_sdk/v0/clients/rest/models/create_sns_integration_request.py +0 -85
- hatchet_sdk/v0/clients/rest/models/create_tenant_alert_email_group_request.py +0 -83
- hatchet_sdk/v0/clients/rest/models/create_tenant_invite_request.py +0 -86
- hatchet_sdk/v0/clients/rest/models/create_tenant_request.py +0 -84
- hatchet_sdk/v0/clients/rest/models/cron_workflows.py +0 -131
- hatchet_sdk/v0/clients/rest/models/cron_workflows_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/cron_workflows_method.py +0 -37
- hatchet_sdk/v0/clients/rest/models/cron_workflows_order_by_field.py +0 -37
- hatchet_sdk/v0/clients/rest/models/event.py +0 -143
- hatchet_sdk/v0/clients/rest/models/event_data.py +0 -83
- hatchet_sdk/v0/clients/rest/models/event_key_list.py +0 -98
- hatchet_sdk/v0/clients/rest/models/event_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/event_order_by_direction.py +0 -37
- hatchet_sdk/v0/clients/rest/models/event_order_by_field.py +0 -36
- hatchet_sdk/v0/clients/rest/models/event_update_cancel200_response.py +0 -85
- hatchet_sdk/v0/clients/rest/models/event_workflow_run_summary.py +0 -116
- hatchet_sdk/v0/clients/rest/models/events.py +0 -110
- hatchet_sdk/v0/clients/rest/models/get_step_run_diff_response.py +0 -100
- hatchet_sdk/v0/clients/rest/models/github_app_installation.py +0 -107
- hatchet_sdk/v0/clients/rest/models/github_branch.py +0 -86
- hatchet_sdk/v0/clients/rest/models/github_repo.py +0 -86
- hatchet_sdk/v0/clients/rest/models/info_get_version200_response.py +0 -83
- hatchet_sdk/v0/clients/rest/models/job.py +0 -132
- hatchet_sdk/v0/clients/rest/models/job_run.py +0 -176
- hatchet_sdk/v0/clients/rest/models/job_run_status.py +0 -41
- hatchet_sdk/v0/clients/rest/models/link_github_repository_request.py +0 -106
- hatchet_sdk/v0/clients/rest/models/list_api_tokens_response.py +0 -110
- hatchet_sdk/v0/clients/rest/models/list_github_app_installations_response.py +0 -112
- hatchet_sdk/v0/clients/rest/models/list_pull_requests_response.py +0 -100
- hatchet_sdk/v0/clients/rest/models/list_slack_webhooks.py +0 -110
- hatchet_sdk/v0/clients/rest/models/list_sns_integrations.py +0 -110
- hatchet_sdk/v0/clients/rest/models/log_line.py +0 -94
- hatchet_sdk/v0/clients/rest/models/log_line_level.py +0 -39
- hatchet_sdk/v0/clients/rest/models/log_line_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/log_line_order_by_direction.py +0 -37
- hatchet_sdk/v0/clients/rest/models/log_line_order_by_field.py +0 -36
- hatchet_sdk/v0/clients/rest/models/pagination_response.py +0 -95
- hatchet_sdk/v0/clients/rest/models/pull_request.py +0 -112
- hatchet_sdk/v0/clients/rest/models/pull_request_state.py +0 -37
- hatchet_sdk/v0/clients/rest/models/queue_metrics.py +0 -97
- hatchet_sdk/v0/clients/rest/models/rate_limit.py +0 -117
- hatchet_sdk/v0/clients/rest/models/rate_limit_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/rate_limit_order_by_direction.py +0 -37
- hatchet_sdk/v0/clients/rest/models/rate_limit_order_by_field.py +0 -38
- hatchet_sdk/v0/clients/rest/models/recent_step_runs.py +0 -118
- hatchet_sdk/v0/clients/rest/models/reject_invite_request.py +0 -83
- hatchet_sdk/v0/clients/rest/models/replay_event_request.py +0 -85
- hatchet_sdk/v0/clients/rest/models/replay_workflow_runs_request.py +0 -85
- hatchet_sdk/v0/clients/rest/models/replay_workflow_runs_response.py +0 -100
- hatchet_sdk/v0/clients/rest/models/rerun_step_run_request.py +0 -83
- hatchet_sdk/v0/clients/rest/models/schedule_workflow_run_request.py +0 -92
- hatchet_sdk/v0/clients/rest/models/scheduled_run_status.py +0 -42
- hatchet_sdk/v0/clients/rest/models/scheduled_workflows.py +0 -149
- hatchet_sdk/v0/clients/rest/models/scheduled_workflows_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/scheduled_workflows_method.py +0 -37
- hatchet_sdk/v0/clients/rest/models/scheduled_workflows_order_by_field.py +0 -37
- hatchet_sdk/v0/clients/rest/models/semaphore_slots.py +0 -113
- hatchet_sdk/v0/clients/rest/models/slack_webhook.py +0 -127
- hatchet_sdk/v0/clients/rest/models/sns_integration.py +0 -114
- hatchet_sdk/v0/clients/rest/models/step.py +0 -123
- hatchet_sdk/v0/clients/rest/models/step_run.py +0 -202
- hatchet_sdk/v0/clients/rest/models/step_run_archive.py +0 -142
- hatchet_sdk/v0/clients/rest/models/step_run_archive_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/step_run_diff.py +0 -91
- hatchet_sdk/v0/clients/rest/models/step_run_event.py +0 -122
- hatchet_sdk/v0/clients/rest/models/step_run_event_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/step_run_event_reason.py +0 -52
- hatchet_sdk/v0/clients/rest/models/step_run_event_severity.py +0 -38
- hatchet_sdk/v0/clients/rest/models/step_run_status.py +0 -44
- hatchet_sdk/v0/clients/rest/models/tenant.py +0 -118
- hatchet_sdk/v0/clients/rest/models/tenant_alert_email_group.py +0 -98
- hatchet_sdk/v0/clients/rest/models/tenant_alert_email_group_list.py +0 -112
- hatchet_sdk/v0/clients/rest/models/tenant_alerting_settings.py +0 -143
- hatchet_sdk/v0/clients/rest/models/tenant_invite.py +0 -120
- hatchet_sdk/v0/clients/rest/models/tenant_invite_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/tenant_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/tenant_member.py +0 -123
- hatchet_sdk/v0/clients/rest/models/tenant_member_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/tenant_member_role.py +0 -38
- hatchet_sdk/v0/clients/rest/models/tenant_queue_metrics.py +0 -116
- hatchet_sdk/v0/clients/rest/models/tenant_resource.py +0 -40
- hatchet_sdk/v0/clients/rest/models/tenant_resource_limit.py +0 -135
- hatchet_sdk/v0/clients/rest/models/tenant_resource_policy.py +0 -102
- hatchet_sdk/v0/clients/rest/models/tenant_step_run_queue_metrics.py +0 -83
- hatchet_sdk/v0/clients/rest/models/trigger_workflow_run_request.py +0 -91
- hatchet_sdk/v0/clients/rest/models/update_tenant_alert_email_group_request.py +0 -83
- hatchet_sdk/v0/clients/rest/models/update_tenant_invite_request.py +0 -85
- hatchet_sdk/v0/clients/rest/models/update_tenant_request.py +0 -137
- hatchet_sdk/v0/clients/rest/models/update_worker_request.py +0 -87
- hatchet_sdk/v0/clients/rest/models/user.py +0 -126
- hatchet_sdk/v0/clients/rest/models/user_change_password_request.py +0 -88
- hatchet_sdk/v0/clients/rest/models/user_login_request.py +0 -86
- hatchet_sdk/v0/clients/rest/models/user_register_request.py +0 -91
- hatchet_sdk/v0/clients/rest/models/user_tenant_memberships_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/user_tenant_public.py +0 -86
- hatchet_sdk/v0/clients/rest/models/webhook_worker.py +0 -100
- hatchet_sdk/v0/clients/rest/models/webhook_worker_create_request.py +0 -94
- hatchet_sdk/v0/clients/rest/models/webhook_worker_create_response.py +0 -98
- hatchet_sdk/v0/clients/rest/models/webhook_worker_created.py +0 -102
- hatchet_sdk/v0/clients/rest/models/webhook_worker_list_response.py +0 -110
- hatchet_sdk/v0/clients/rest/models/webhook_worker_request.py +0 -102
- hatchet_sdk/v0/clients/rest/models/webhook_worker_request_list_response.py +0 -104
- hatchet_sdk/v0/clients/rest/models/webhook_worker_request_method.py +0 -38
- hatchet_sdk/v0/clients/rest/models/worker.py +0 -239
- hatchet_sdk/v0/clients/rest/models/worker_label.py +0 -102
- hatchet_sdk/v0/clients/rest/models/worker_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/worker_runtime_info.py +0 -103
- hatchet_sdk/v0/clients/rest/models/worker_runtime_sdks.py +0 -38
- hatchet_sdk/v0/clients/rest/models/worker_type.py +0 -38
- hatchet_sdk/v0/clients/rest/models/workflow.py +0 -165
- hatchet_sdk/v0/clients/rest/models/workflow_concurrency.py +0 -107
- hatchet_sdk/v0/clients/rest/models/workflow_deployment_config.py +0 -136
- hatchet_sdk/v0/clients/rest/models/workflow_kind.py +0 -38
- hatchet_sdk/v0/clients/rest/models/workflow_list.py +0 -120
- hatchet_sdk/v0/clients/rest/models/workflow_metrics.py +0 -97
- hatchet_sdk/v0/clients/rest/models/workflow_run.py +0 -188
- hatchet_sdk/v0/clients/rest/models/workflow_run_cancel200_response.py +0 -85
- hatchet_sdk/v0/clients/rest/models/workflow_run_list.py +0 -110
- hatchet_sdk/v0/clients/rest/models/workflow_run_order_by_direction.py +0 -37
- hatchet_sdk/v0/clients/rest/models/workflow_run_order_by_field.py +0 -39
- hatchet_sdk/v0/clients/rest/models/workflow_run_shape.py +0 -186
- hatchet_sdk/v0/clients/rest/models/workflow_run_status.py +0 -42
- hatchet_sdk/v0/clients/rest/models/workflow_run_triggered_by.py +0 -112
- hatchet_sdk/v0/clients/rest/models/workflow_runs_cancel_request.py +0 -85
- hatchet_sdk/v0/clients/rest/models/workflow_runs_metrics.py +0 -94
- hatchet_sdk/v0/clients/rest/models/workflow_runs_metrics_counts.py +0 -104
- hatchet_sdk/v0/clients/rest/models/workflow_tag.py +0 -84
- hatchet_sdk/v0/clients/rest/models/workflow_trigger_cron_ref.py +0 -86
- hatchet_sdk/v0/clients/rest/models/workflow_trigger_event_ref.py +0 -86
- hatchet_sdk/v0/clients/rest/models/workflow_triggers.py +0 -141
- hatchet_sdk/v0/clients/rest/models/workflow_update_request.py +0 -85
- hatchet_sdk/v0/clients/rest/models/workflow_version.py +0 -170
- hatchet_sdk/v0/clients/rest/models/workflow_version_concurrency.py +0 -114
- hatchet_sdk/v0/clients/rest/models/workflow_version_definition.py +0 -85
- hatchet_sdk/v0/clients/rest/models/workflow_version_meta.py +0 -123
- hatchet_sdk/v0/clients/rest/models/workflow_workers_count.py +0 -95
- hatchet_sdk/v0/clients/rest/rest.py +0 -187
- hatchet_sdk/v0/clients/rest/tenacity_utils.py +0 -39
- hatchet_sdk/v0/clients/rest_client.py +0 -622
- hatchet_sdk/v0/clients/run_event_listener.py +0 -260
- hatchet_sdk/v0/clients/workflow_listener.py +0 -277
- hatchet_sdk/v0/connection.py +0 -63
- hatchet_sdk/v0/context/__init__.py +0 -1
- hatchet_sdk/v0/context/context.py +0 -446
- hatchet_sdk/v0/context/worker_context.py +0 -28
- hatchet_sdk/v0/features/cron.py +0 -286
- hatchet_sdk/v0/features/scheduled.py +0 -248
- hatchet_sdk/v0/hatchet.py +0 -310
- hatchet_sdk/v0/labels.py +0 -10
- hatchet_sdk/v0/loader.py +0 -244
- hatchet_sdk/v0/metadata.py +0 -2
- hatchet_sdk/v0/opentelemetry/instrumentor.py +0 -393
- hatchet_sdk/v0/rate_limit.py +0 -126
- hatchet_sdk/v0/semver.py +0 -30
- hatchet_sdk/v0/token.py +0 -27
- hatchet_sdk/v0/utils/aio_utils.py +0 -137
- hatchet_sdk/v0/utils/backoff.py +0 -9
- hatchet_sdk/v0/utils/types.py +0 -8
- hatchet_sdk/v0/utils/typing.py +0 -12
- hatchet_sdk/v0/v2/callable.py +0 -202
- hatchet_sdk/v0/v2/concurrency.py +0 -47
- hatchet_sdk/v0/v2/hatchet.py +0 -224
- hatchet_sdk/v0/worker/__init__.py +0 -1
- hatchet_sdk/v0/worker/action_listener_process.py +0 -294
- hatchet_sdk/v0/worker/runner/run_loop_manager.py +0 -112
- hatchet_sdk/v0/worker/runner/runner.py +0 -460
- hatchet_sdk/v0/worker/runner/utils/capture_logs.py +0 -81
- hatchet_sdk/v0/worker/runner/utils/error_with_traceback.py +0 -6
- hatchet_sdk/v0/worker/worker.py +0 -391
- hatchet_sdk/v0/workflow.py +0 -261
- hatchet_sdk/v0/workflow_run.py +0 -59
- {hatchet_sdk-1.18.1.dist-info → hatchet_sdk-1.20.0.dist-info}/WHEEL +0 -0
- {hatchet_sdk-1.18.1.dist-info → hatchet_sdk-1.20.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,2548 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Hatchet API
|
|
5
|
-
|
|
6
|
-
The Hatchet API
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.0.0
|
|
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 typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
|
-
|
|
17
|
-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
|
|
18
|
-
from typing_extensions import Annotated
|
|
19
|
-
|
|
20
|
-
from hatchet_sdk.v0.clients.rest.api_client import ApiClient, RequestSerialized
|
|
21
|
-
from hatchet_sdk.v0.clients.rest.api_response import ApiResponse
|
|
22
|
-
from hatchet_sdk.v0.clients.rest.models.bulk_create_event_request import (
|
|
23
|
-
BulkCreateEventRequest,
|
|
24
|
-
)
|
|
25
|
-
from hatchet_sdk.v0.clients.rest.models.cancel_event_request import CancelEventRequest
|
|
26
|
-
from hatchet_sdk.v0.clients.rest.models.create_event_request import CreateEventRequest
|
|
27
|
-
from hatchet_sdk.v0.clients.rest.models.event import Event
|
|
28
|
-
from hatchet_sdk.v0.clients.rest.models.event_data import EventData
|
|
29
|
-
from hatchet_sdk.v0.clients.rest.models.event_key_list import EventKeyList
|
|
30
|
-
from hatchet_sdk.v0.clients.rest.models.event_list import EventList
|
|
31
|
-
from hatchet_sdk.v0.clients.rest.models.event_order_by_direction import (
|
|
32
|
-
EventOrderByDirection,
|
|
33
|
-
)
|
|
34
|
-
from hatchet_sdk.v0.clients.rest.models.event_order_by_field import EventOrderByField
|
|
35
|
-
from hatchet_sdk.v0.clients.rest.models.event_update_cancel200_response import (
|
|
36
|
-
EventUpdateCancel200Response,
|
|
37
|
-
)
|
|
38
|
-
from hatchet_sdk.v0.clients.rest.models.events import Events
|
|
39
|
-
from hatchet_sdk.v0.clients.rest.models.replay_event_request import ReplayEventRequest
|
|
40
|
-
from hatchet_sdk.v0.clients.rest.models.workflow_run_status import WorkflowRunStatus
|
|
41
|
-
from hatchet_sdk.v0.clients.rest.rest import RESTResponseType
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class EventApi:
|
|
45
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
46
|
-
Ref: https://openapi-generator.tech
|
|
47
|
-
|
|
48
|
-
Do not edit the class manually.
|
|
49
|
-
"""
|
|
50
|
-
|
|
51
|
-
def __init__(self, api_client=None) -> None:
|
|
52
|
-
if api_client is None:
|
|
53
|
-
api_client = ApiClient.get_default()
|
|
54
|
-
self.api_client = api_client
|
|
55
|
-
|
|
56
|
-
@validate_call
|
|
57
|
-
async def event_create(
|
|
58
|
-
self,
|
|
59
|
-
tenant: Annotated[
|
|
60
|
-
str,
|
|
61
|
-
Field(
|
|
62
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
63
|
-
),
|
|
64
|
-
],
|
|
65
|
-
create_event_request: Annotated[
|
|
66
|
-
CreateEventRequest, Field(description="The event to create")
|
|
67
|
-
],
|
|
68
|
-
_request_timeout: Union[
|
|
69
|
-
None,
|
|
70
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
71
|
-
Tuple[
|
|
72
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
73
|
-
],
|
|
74
|
-
] = None,
|
|
75
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
76
|
-
_content_type: Optional[StrictStr] = None,
|
|
77
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
78
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
79
|
-
) -> Event:
|
|
80
|
-
"""Create event
|
|
81
|
-
|
|
82
|
-
Creates a new event.
|
|
83
|
-
|
|
84
|
-
:param tenant: The tenant id (required)
|
|
85
|
-
:type tenant: str
|
|
86
|
-
:param create_event_request: The event to create (required)
|
|
87
|
-
:type create_event_request: CreateEventRequest
|
|
88
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
89
|
-
number provided, it will be total request
|
|
90
|
-
timeout. It can also be a pair (tuple) of
|
|
91
|
-
(connection, read) timeouts.
|
|
92
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
93
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
94
|
-
request; this effectively ignores the
|
|
95
|
-
authentication in the spec for a single request.
|
|
96
|
-
:type _request_auth: dict, optional
|
|
97
|
-
:param _content_type: force content-type for the request.
|
|
98
|
-
:type _content_type: str, Optional
|
|
99
|
-
:param _headers: set to override the headers for a single
|
|
100
|
-
request; this effectively ignores the headers
|
|
101
|
-
in the spec for a single request.
|
|
102
|
-
:type _headers: dict, optional
|
|
103
|
-
:param _host_index: set to override the host_index for a single
|
|
104
|
-
request; this effectively ignores the host_index
|
|
105
|
-
in the spec for a single request.
|
|
106
|
-
:type _host_index: int, optional
|
|
107
|
-
:return: Returns the result object.
|
|
108
|
-
""" # noqa: E501
|
|
109
|
-
|
|
110
|
-
_param = self._event_create_serialize(
|
|
111
|
-
tenant=tenant,
|
|
112
|
-
create_event_request=create_event_request,
|
|
113
|
-
_request_auth=_request_auth,
|
|
114
|
-
_content_type=_content_type,
|
|
115
|
-
_headers=_headers,
|
|
116
|
-
_host_index=_host_index,
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
120
|
-
"200": "Event",
|
|
121
|
-
"400": "APIErrors",
|
|
122
|
-
"403": "APIErrors",
|
|
123
|
-
"429": "APIErrors",
|
|
124
|
-
}
|
|
125
|
-
response_data = await self.api_client.call_api(
|
|
126
|
-
*_param, _request_timeout=_request_timeout
|
|
127
|
-
)
|
|
128
|
-
await response_data.read()
|
|
129
|
-
return self.api_client.response_deserialize(
|
|
130
|
-
response_data=response_data,
|
|
131
|
-
response_types_map=_response_types_map,
|
|
132
|
-
).data
|
|
133
|
-
|
|
134
|
-
@validate_call
|
|
135
|
-
async def event_create_with_http_info(
|
|
136
|
-
self,
|
|
137
|
-
tenant: Annotated[
|
|
138
|
-
str,
|
|
139
|
-
Field(
|
|
140
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
141
|
-
),
|
|
142
|
-
],
|
|
143
|
-
create_event_request: Annotated[
|
|
144
|
-
CreateEventRequest, Field(description="The event to create")
|
|
145
|
-
],
|
|
146
|
-
_request_timeout: Union[
|
|
147
|
-
None,
|
|
148
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
149
|
-
Tuple[
|
|
150
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
151
|
-
],
|
|
152
|
-
] = None,
|
|
153
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
154
|
-
_content_type: Optional[StrictStr] = None,
|
|
155
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
156
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
157
|
-
) -> ApiResponse[Event]:
|
|
158
|
-
"""Create event
|
|
159
|
-
|
|
160
|
-
Creates a new event.
|
|
161
|
-
|
|
162
|
-
:param tenant: The tenant id (required)
|
|
163
|
-
:type tenant: str
|
|
164
|
-
:param create_event_request: The event to create (required)
|
|
165
|
-
:type create_event_request: CreateEventRequest
|
|
166
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
167
|
-
number provided, it will be total request
|
|
168
|
-
timeout. It can also be a pair (tuple) of
|
|
169
|
-
(connection, read) timeouts.
|
|
170
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
171
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
172
|
-
request; this effectively ignores the
|
|
173
|
-
authentication in the spec for a single request.
|
|
174
|
-
:type _request_auth: dict, optional
|
|
175
|
-
:param _content_type: force content-type for the request.
|
|
176
|
-
:type _content_type: str, Optional
|
|
177
|
-
:param _headers: set to override the headers for a single
|
|
178
|
-
request; this effectively ignores the headers
|
|
179
|
-
in the spec for a single request.
|
|
180
|
-
:type _headers: dict, optional
|
|
181
|
-
:param _host_index: set to override the host_index for a single
|
|
182
|
-
request; this effectively ignores the host_index
|
|
183
|
-
in the spec for a single request.
|
|
184
|
-
:type _host_index: int, optional
|
|
185
|
-
:return: Returns the result object.
|
|
186
|
-
""" # noqa: E501
|
|
187
|
-
|
|
188
|
-
_param = self._event_create_serialize(
|
|
189
|
-
tenant=tenant,
|
|
190
|
-
create_event_request=create_event_request,
|
|
191
|
-
_request_auth=_request_auth,
|
|
192
|
-
_content_type=_content_type,
|
|
193
|
-
_headers=_headers,
|
|
194
|
-
_host_index=_host_index,
|
|
195
|
-
)
|
|
196
|
-
|
|
197
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
198
|
-
"200": "Event",
|
|
199
|
-
"400": "APIErrors",
|
|
200
|
-
"403": "APIErrors",
|
|
201
|
-
"429": "APIErrors",
|
|
202
|
-
}
|
|
203
|
-
response_data = await self.api_client.call_api(
|
|
204
|
-
*_param, _request_timeout=_request_timeout
|
|
205
|
-
)
|
|
206
|
-
await response_data.read()
|
|
207
|
-
return self.api_client.response_deserialize(
|
|
208
|
-
response_data=response_data,
|
|
209
|
-
response_types_map=_response_types_map,
|
|
210
|
-
)
|
|
211
|
-
|
|
212
|
-
@validate_call
|
|
213
|
-
async def event_create_without_preload_content(
|
|
214
|
-
self,
|
|
215
|
-
tenant: Annotated[
|
|
216
|
-
str,
|
|
217
|
-
Field(
|
|
218
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
219
|
-
),
|
|
220
|
-
],
|
|
221
|
-
create_event_request: Annotated[
|
|
222
|
-
CreateEventRequest, Field(description="The event to create")
|
|
223
|
-
],
|
|
224
|
-
_request_timeout: Union[
|
|
225
|
-
None,
|
|
226
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
227
|
-
Tuple[
|
|
228
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
229
|
-
],
|
|
230
|
-
] = None,
|
|
231
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
232
|
-
_content_type: Optional[StrictStr] = None,
|
|
233
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
234
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
235
|
-
) -> RESTResponseType:
|
|
236
|
-
"""Create event
|
|
237
|
-
|
|
238
|
-
Creates a new event.
|
|
239
|
-
|
|
240
|
-
:param tenant: The tenant id (required)
|
|
241
|
-
:type tenant: str
|
|
242
|
-
:param create_event_request: The event to create (required)
|
|
243
|
-
:type create_event_request: CreateEventRequest
|
|
244
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
245
|
-
number provided, it will be total request
|
|
246
|
-
timeout. It can also be a pair (tuple) of
|
|
247
|
-
(connection, read) timeouts.
|
|
248
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
249
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
250
|
-
request; this effectively ignores the
|
|
251
|
-
authentication in the spec for a single request.
|
|
252
|
-
:type _request_auth: dict, optional
|
|
253
|
-
:param _content_type: force content-type for the request.
|
|
254
|
-
:type _content_type: str, Optional
|
|
255
|
-
:param _headers: set to override the headers for a single
|
|
256
|
-
request; this effectively ignores the headers
|
|
257
|
-
in the spec for a single request.
|
|
258
|
-
:type _headers: dict, optional
|
|
259
|
-
:param _host_index: set to override the host_index for a single
|
|
260
|
-
request; this effectively ignores the host_index
|
|
261
|
-
in the spec for a single request.
|
|
262
|
-
:type _host_index: int, optional
|
|
263
|
-
:return: Returns the result object.
|
|
264
|
-
""" # noqa: E501
|
|
265
|
-
|
|
266
|
-
_param = self._event_create_serialize(
|
|
267
|
-
tenant=tenant,
|
|
268
|
-
create_event_request=create_event_request,
|
|
269
|
-
_request_auth=_request_auth,
|
|
270
|
-
_content_type=_content_type,
|
|
271
|
-
_headers=_headers,
|
|
272
|
-
_host_index=_host_index,
|
|
273
|
-
)
|
|
274
|
-
|
|
275
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
276
|
-
"200": "Event",
|
|
277
|
-
"400": "APIErrors",
|
|
278
|
-
"403": "APIErrors",
|
|
279
|
-
"429": "APIErrors",
|
|
280
|
-
}
|
|
281
|
-
response_data = await self.api_client.call_api(
|
|
282
|
-
*_param, _request_timeout=_request_timeout
|
|
283
|
-
)
|
|
284
|
-
return response_data.response
|
|
285
|
-
|
|
286
|
-
def _event_create_serialize(
|
|
287
|
-
self,
|
|
288
|
-
tenant,
|
|
289
|
-
create_event_request,
|
|
290
|
-
_request_auth,
|
|
291
|
-
_content_type,
|
|
292
|
-
_headers,
|
|
293
|
-
_host_index,
|
|
294
|
-
) -> RequestSerialized:
|
|
295
|
-
|
|
296
|
-
_host = None
|
|
297
|
-
|
|
298
|
-
_collection_formats: Dict[str, str] = {}
|
|
299
|
-
|
|
300
|
-
_path_params: Dict[str, str] = {}
|
|
301
|
-
_query_params: List[Tuple[str, str]] = []
|
|
302
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
303
|
-
_form_params: List[Tuple[str, str]] = []
|
|
304
|
-
_files: Dict[
|
|
305
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
306
|
-
] = {}
|
|
307
|
-
_body_params: Optional[bytes] = None
|
|
308
|
-
|
|
309
|
-
# process the path parameters
|
|
310
|
-
if tenant is not None:
|
|
311
|
-
_path_params["tenant"] = tenant
|
|
312
|
-
# process the query parameters
|
|
313
|
-
# process the header parameters
|
|
314
|
-
# process the form parameters
|
|
315
|
-
# process the body parameter
|
|
316
|
-
if create_event_request is not None:
|
|
317
|
-
_body_params = create_event_request
|
|
318
|
-
|
|
319
|
-
# set the HTTP header `Accept`
|
|
320
|
-
if "Accept" not in _header_params:
|
|
321
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
322
|
-
["application/json"]
|
|
323
|
-
)
|
|
324
|
-
|
|
325
|
-
# set the HTTP header `Content-Type`
|
|
326
|
-
if _content_type:
|
|
327
|
-
_header_params["Content-Type"] = _content_type
|
|
328
|
-
else:
|
|
329
|
-
_default_content_type = self.api_client.select_header_content_type(
|
|
330
|
-
["application/json"]
|
|
331
|
-
)
|
|
332
|
-
if _default_content_type is not None:
|
|
333
|
-
_header_params["Content-Type"] = _default_content_type
|
|
334
|
-
|
|
335
|
-
# authentication setting
|
|
336
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
337
|
-
|
|
338
|
-
return self.api_client.param_serialize(
|
|
339
|
-
method="POST",
|
|
340
|
-
resource_path="/api/v1/tenants/{tenant}/events",
|
|
341
|
-
path_params=_path_params,
|
|
342
|
-
query_params=_query_params,
|
|
343
|
-
header_params=_header_params,
|
|
344
|
-
body=_body_params,
|
|
345
|
-
post_params=_form_params,
|
|
346
|
-
files=_files,
|
|
347
|
-
auth_settings=_auth_settings,
|
|
348
|
-
collection_formats=_collection_formats,
|
|
349
|
-
_host=_host,
|
|
350
|
-
_request_auth=_request_auth,
|
|
351
|
-
)
|
|
352
|
-
|
|
353
|
-
@validate_call
|
|
354
|
-
async def event_create_bulk(
|
|
355
|
-
self,
|
|
356
|
-
tenant: Annotated[
|
|
357
|
-
str,
|
|
358
|
-
Field(
|
|
359
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
360
|
-
),
|
|
361
|
-
],
|
|
362
|
-
bulk_create_event_request: Annotated[
|
|
363
|
-
BulkCreateEventRequest, Field(description="The events to create")
|
|
364
|
-
],
|
|
365
|
-
_request_timeout: Union[
|
|
366
|
-
None,
|
|
367
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
368
|
-
Tuple[
|
|
369
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
370
|
-
],
|
|
371
|
-
] = None,
|
|
372
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
373
|
-
_content_type: Optional[StrictStr] = None,
|
|
374
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
375
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
376
|
-
) -> Events:
|
|
377
|
-
"""Bulk Create events
|
|
378
|
-
|
|
379
|
-
Bulk creates new events.
|
|
380
|
-
|
|
381
|
-
:param tenant: The tenant id (required)
|
|
382
|
-
:type tenant: str
|
|
383
|
-
:param bulk_create_event_request: The events to create (required)
|
|
384
|
-
:type bulk_create_event_request: BulkCreateEventRequest
|
|
385
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
386
|
-
number provided, it will be total request
|
|
387
|
-
timeout. It can also be a pair (tuple) of
|
|
388
|
-
(connection, read) timeouts.
|
|
389
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
390
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
391
|
-
request; this effectively ignores the
|
|
392
|
-
authentication in the spec for a single request.
|
|
393
|
-
:type _request_auth: dict, optional
|
|
394
|
-
:param _content_type: force content-type for the request.
|
|
395
|
-
:type _content_type: str, Optional
|
|
396
|
-
:param _headers: set to override the headers for a single
|
|
397
|
-
request; this effectively ignores the headers
|
|
398
|
-
in the spec for a single request.
|
|
399
|
-
:type _headers: dict, optional
|
|
400
|
-
:param _host_index: set to override the host_index for a single
|
|
401
|
-
request; this effectively ignores the host_index
|
|
402
|
-
in the spec for a single request.
|
|
403
|
-
:type _host_index: int, optional
|
|
404
|
-
:return: Returns the result object.
|
|
405
|
-
""" # noqa: E501
|
|
406
|
-
|
|
407
|
-
_param = self._event_create_bulk_serialize(
|
|
408
|
-
tenant=tenant,
|
|
409
|
-
bulk_create_event_request=bulk_create_event_request,
|
|
410
|
-
_request_auth=_request_auth,
|
|
411
|
-
_content_type=_content_type,
|
|
412
|
-
_headers=_headers,
|
|
413
|
-
_host_index=_host_index,
|
|
414
|
-
)
|
|
415
|
-
|
|
416
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
417
|
-
"200": "Events",
|
|
418
|
-
"400": "APIErrors",
|
|
419
|
-
"403": "APIErrors",
|
|
420
|
-
"429": "APIErrors",
|
|
421
|
-
}
|
|
422
|
-
response_data = await self.api_client.call_api(
|
|
423
|
-
*_param, _request_timeout=_request_timeout
|
|
424
|
-
)
|
|
425
|
-
await response_data.read()
|
|
426
|
-
return self.api_client.response_deserialize(
|
|
427
|
-
response_data=response_data,
|
|
428
|
-
response_types_map=_response_types_map,
|
|
429
|
-
).data
|
|
430
|
-
|
|
431
|
-
@validate_call
|
|
432
|
-
async def event_create_bulk_with_http_info(
|
|
433
|
-
self,
|
|
434
|
-
tenant: Annotated[
|
|
435
|
-
str,
|
|
436
|
-
Field(
|
|
437
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
438
|
-
),
|
|
439
|
-
],
|
|
440
|
-
bulk_create_event_request: Annotated[
|
|
441
|
-
BulkCreateEventRequest, Field(description="The events to create")
|
|
442
|
-
],
|
|
443
|
-
_request_timeout: Union[
|
|
444
|
-
None,
|
|
445
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
446
|
-
Tuple[
|
|
447
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
448
|
-
],
|
|
449
|
-
] = None,
|
|
450
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
451
|
-
_content_type: Optional[StrictStr] = None,
|
|
452
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
453
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
454
|
-
) -> ApiResponse[Events]:
|
|
455
|
-
"""Bulk Create events
|
|
456
|
-
|
|
457
|
-
Bulk creates new events.
|
|
458
|
-
|
|
459
|
-
:param tenant: The tenant id (required)
|
|
460
|
-
:type tenant: str
|
|
461
|
-
:param bulk_create_event_request: The events to create (required)
|
|
462
|
-
:type bulk_create_event_request: BulkCreateEventRequest
|
|
463
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
464
|
-
number provided, it will be total request
|
|
465
|
-
timeout. It can also be a pair (tuple) of
|
|
466
|
-
(connection, read) timeouts.
|
|
467
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
468
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
469
|
-
request; this effectively ignores the
|
|
470
|
-
authentication in the spec for a single request.
|
|
471
|
-
:type _request_auth: dict, optional
|
|
472
|
-
:param _content_type: force content-type for the request.
|
|
473
|
-
:type _content_type: str, Optional
|
|
474
|
-
:param _headers: set to override the headers for a single
|
|
475
|
-
request; this effectively ignores the headers
|
|
476
|
-
in the spec for a single request.
|
|
477
|
-
:type _headers: dict, optional
|
|
478
|
-
:param _host_index: set to override the host_index for a single
|
|
479
|
-
request; this effectively ignores the host_index
|
|
480
|
-
in the spec for a single request.
|
|
481
|
-
:type _host_index: int, optional
|
|
482
|
-
:return: Returns the result object.
|
|
483
|
-
""" # noqa: E501
|
|
484
|
-
|
|
485
|
-
_param = self._event_create_bulk_serialize(
|
|
486
|
-
tenant=tenant,
|
|
487
|
-
bulk_create_event_request=bulk_create_event_request,
|
|
488
|
-
_request_auth=_request_auth,
|
|
489
|
-
_content_type=_content_type,
|
|
490
|
-
_headers=_headers,
|
|
491
|
-
_host_index=_host_index,
|
|
492
|
-
)
|
|
493
|
-
|
|
494
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
495
|
-
"200": "Events",
|
|
496
|
-
"400": "APIErrors",
|
|
497
|
-
"403": "APIErrors",
|
|
498
|
-
"429": "APIErrors",
|
|
499
|
-
}
|
|
500
|
-
response_data = await self.api_client.call_api(
|
|
501
|
-
*_param, _request_timeout=_request_timeout
|
|
502
|
-
)
|
|
503
|
-
await response_data.read()
|
|
504
|
-
return self.api_client.response_deserialize(
|
|
505
|
-
response_data=response_data,
|
|
506
|
-
response_types_map=_response_types_map,
|
|
507
|
-
)
|
|
508
|
-
|
|
509
|
-
@validate_call
|
|
510
|
-
async def event_create_bulk_without_preload_content(
|
|
511
|
-
self,
|
|
512
|
-
tenant: Annotated[
|
|
513
|
-
str,
|
|
514
|
-
Field(
|
|
515
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
516
|
-
),
|
|
517
|
-
],
|
|
518
|
-
bulk_create_event_request: Annotated[
|
|
519
|
-
BulkCreateEventRequest, Field(description="The events to create")
|
|
520
|
-
],
|
|
521
|
-
_request_timeout: Union[
|
|
522
|
-
None,
|
|
523
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
524
|
-
Tuple[
|
|
525
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
526
|
-
],
|
|
527
|
-
] = None,
|
|
528
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
529
|
-
_content_type: Optional[StrictStr] = None,
|
|
530
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
531
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
532
|
-
) -> RESTResponseType:
|
|
533
|
-
"""Bulk Create events
|
|
534
|
-
|
|
535
|
-
Bulk creates new events.
|
|
536
|
-
|
|
537
|
-
:param tenant: The tenant id (required)
|
|
538
|
-
:type tenant: str
|
|
539
|
-
:param bulk_create_event_request: The events to create (required)
|
|
540
|
-
:type bulk_create_event_request: BulkCreateEventRequest
|
|
541
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
542
|
-
number provided, it will be total request
|
|
543
|
-
timeout. It can also be a pair (tuple) of
|
|
544
|
-
(connection, read) timeouts.
|
|
545
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
546
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
547
|
-
request; this effectively ignores the
|
|
548
|
-
authentication in the spec for a single request.
|
|
549
|
-
:type _request_auth: dict, optional
|
|
550
|
-
:param _content_type: force content-type for the request.
|
|
551
|
-
:type _content_type: str, Optional
|
|
552
|
-
:param _headers: set to override the headers for a single
|
|
553
|
-
request; this effectively ignores the headers
|
|
554
|
-
in the spec for a single request.
|
|
555
|
-
:type _headers: dict, optional
|
|
556
|
-
:param _host_index: set to override the host_index for a single
|
|
557
|
-
request; this effectively ignores the host_index
|
|
558
|
-
in the spec for a single request.
|
|
559
|
-
:type _host_index: int, optional
|
|
560
|
-
:return: Returns the result object.
|
|
561
|
-
""" # noqa: E501
|
|
562
|
-
|
|
563
|
-
_param = self._event_create_bulk_serialize(
|
|
564
|
-
tenant=tenant,
|
|
565
|
-
bulk_create_event_request=bulk_create_event_request,
|
|
566
|
-
_request_auth=_request_auth,
|
|
567
|
-
_content_type=_content_type,
|
|
568
|
-
_headers=_headers,
|
|
569
|
-
_host_index=_host_index,
|
|
570
|
-
)
|
|
571
|
-
|
|
572
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
573
|
-
"200": "Events",
|
|
574
|
-
"400": "APIErrors",
|
|
575
|
-
"403": "APIErrors",
|
|
576
|
-
"429": "APIErrors",
|
|
577
|
-
}
|
|
578
|
-
response_data = await self.api_client.call_api(
|
|
579
|
-
*_param, _request_timeout=_request_timeout
|
|
580
|
-
)
|
|
581
|
-
return response_data.response
|
|
582
|
-
|
|
583
|
-
def _event_create_bulk_serialize(
|
|
584
|
-
self,
|
|
585
|
-
tenant,
|
|
586
|
-
bulk_create_event_request,
|
|
587
|
-
_request_auth,
|
|
588
|
-
_content_type,
|
|
589
|
-
_headers,
|
|
590
|
-
_host_index,
|
|
591
|
-
) -> RequestSerialized:
|
|
592
|
-
|
|
593
|
-
_host = None
|
|
594
|
-
|
|
595
|
-
_collection_formats: Dict[str, str] = {}
|
|
596
|
-
|
|
597
|
-
_path_params: Dict[str, str] = {}
|
|
598
|
-
_query_params: List[Tuple[str, str]] = []
|
|
599
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
600
|
-
_form_params: List[Tuple[str, str]] = []
|
|
601
|
-
_files: Dict[
|
|
602
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
603
|
-
] = {}
|
|
604
|
-
_body_params: Optional[bytes] = None
|
|
605
|
-
|
|
606
|
-
# process the path parameters
|
|
607
|
-
if tenant is not None:
|
|
608
|
-
_path_params["tenant"] = tenant
|
|
609
|
-
# process the query parameters
|
|
610
|
-
# process the header parameters
|
|
611
|
-
# process the form parameters
|
|
612
|
-
# process the body parameter
|
|
613
|
-
if bulk_create_event_request is not None:
|
|
614
|
-
_body_params = bulk_create_event_request
|
|
615
|
-
|
|
616
|
-
# set the HTTP header `Accept`
|
|
617
|
-
if "Accept" not in _header_params:
|
|
618
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
619
|
-
["application/json"]
|
|
620
|
-
)
|
|
621
|
-
|
|
622
|
-
# set the HTTP header `Content-Type`
|
|
623
|
-
if _content_type:
|
|
624
|
-
_header_params["Content-Type"] = _content_type
|
|
625
|
-
else:
|
|
626
|
-
_default_content_type = self.api_client.select_header_content_type(
|
|
627
|
-
["application/json"]
|
|
628
|
-
)
|
|
629
|
-
if _default_content_type is not None:
|
|
630
|
-
_header_params["Content-Type"] = _default_content_type
|
|
631
|
-
|
|
632
|
-
# authentication setting
|
|
633
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
634
|
-
|
|
635
|
-
return self.api_client.param_serialize(
|
|
636
|
-
method="POST",
|
|
637
|
-
resource_path="/api/v1/tenants/{tenant}/events/bulk",
|
|
638
|
-
path_params=_path_params,
|
|
639
|
-
query_params=_query_params,
|
|
640
|
-
header_params=_header_params,
|
|
641
|
-
body=_body_params,
|
|
642
|
-
post_params=_form_params,
|
|
643
|
-
files=_files,
|
|
644
|
-
auth_settings=_auth_settings,
|
|
645
|
-
collection_formats=_collection_formats,
|
|
646
|
-
_host=_host,
|
|
647
|
-
_request_auth=_request_auth,
|
|
648
|
-
)
|
|
649
|
-
|
|
650
|
-
@validate_call
|
|
651
|
-
async def event_data_get(
|
|
652
|
-
self,
|
|
653
|
-
event: Annotated[
|
|
654
|
-
str,
|
|
655
|
-
Field(
|
|
656
|
-
min_length=36, strict=True, max_length=36, description="The event id"
|
|
657
|
-
),
|
|
658
|
-
],
|
|
659
|
-
_request_timeout: Union[
|
|
660
|
-
None,
|
|
661
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
662
|
-
Tuple[
|
|
663
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
664
|
-
],
|
|
665
|
-
] = None,
|
|
666
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
667
|
-
_content_type: Optional[StrictStr] = None,
|
|
668
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
669
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
670
|
-
) -> EventData:
|
|
671
|
-
"""Get event data
|
|
672
|
-
|
|
673
|
-
Get the data for an event.
|
|
674
|
-
|
|
675
|
-
:param event: The event id (required)
|
|
676
|
-
:type event: str
|
|
677
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
678
|
-
number provided, it will be total request
|
|
679
|
-
timeout. It can also be a pair (tuple) of
|
|
680
|
-
(connection, read) timeouts.
|
|
681
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
682
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
683
|
-
request; this effectively ignores the
|
|
684
|
-
authentication in the spec for a single request.
|
|
685
|
-
:type _request_auth: dict, optional
|
|
686
|
-
:param _content_type: force content-type for the request.
|
|
687
|
-
:type _content_type: str, Optional
|
|
688
|
-
:param _headers: set to override the headers for a single
|
|
689
|
-
request; this effectively ignores the headers
|
|
690
|
-
in the spec for a single request.
|
|
691
|
-
:type _headers: dict, optional
|
|
692
|
-
:param _host_index: set to override the host_index for a single
|
|
693
|
-
request; this effectively ignores the host_index
|
|
694
|
-
in the spec for a single request.
|
|
695
|
-
:type _host_index: int, optional
|
|
696
|
-
:return: Returns the result object.
|
|
697
|
-
""" # noqa: E501
|
|
698
|
-
|
|
699
|
-
_param = self._event_data_get_serialize(
|
|
700
|
-
event=event,
|
|
701
|
-
_request_auth=_request_auth,
|
|
702
|
-
_content_type=_content_type,
|
|
703
|
-
_headers=_headers,
|
|
704
|
-
_host_index=_host_index,
|
|
705
|
-
)
|
|
706
|
-
|
|
707
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
708
|
-
"200": "EventData",
|
|
709
|
-
"400": "APIErrors",
|
|
710
|
-
"403": "APIErrors",
|
|
711
|
-
}
|
|
712
|
-
response_data = await self.api_client.call_api(
|
|
713
|
-
*_param, _request_timeout=_request_timeout
|
|
714
|
-
)
|
|
715
|
-
await response_data.read()
|
|
716
|
-
return self.api_client.response_deserialize(
|
|
717
|
-
response_data=response_data,
|
|
718
|
-
response_types_map=_response_types_map,
|
|
719
|
-
).data
|
|
720
|
-
|
|
721
|
-
@validate_call
|
|
722
|
-
async def event_data_get_with_http_info(
|
|
723
|
-
self,
|
|
724
|
-
event: Annotated[
|
|
725
|
-
str,
|
|
726
|
-
Field(
|
|
727
|
-
min_length=36, strict=True, max_length=36, description="The event id"
|
|
728
|
-
),
|
|
729
|
-
],
|
|
730
|
-
_request_timeout: Union[
|
|
731
|
-
None,
|
|
732
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
733
|
-
Tuple[
|
|
734
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
735
|
-
],
|
|
736
|
-
] = None,
|
|
737
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
738
|
-
_content_type: Optional[StrictStr] = None,
|
|
739
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
740
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
741
|
-
) -> ApiResponse[EventData]:
|
|
742
|
-
"""Get event data
|
|
743
|
-
|
|
744
|
-
Get the data for an event.
|
|
745
|
-
|
|
746
|
-
:param event: The event id (required)
|
|
747
|
-
:type event: str
|
|
748
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
749
|
-
number provided, it will be total request
|
|
750
|
-
timeout. It can also be a pair (tuple) of
|
|
751
|
-
(connection, read) timeouts.
|
|
752
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
753
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
754
|
-
request; this effectively ignores the
|
|
755
|
-
authentication in the spec for a single request.
|
|
756
|
-
:type _request_auth: dict, optional
|
|
757
|
-
:param _content_type: force content-type for the request.
|
|
758
|
-
:type _content_type: str, Optional
|
|
759
|
-
:param _headers: set to override the headers for a single
|
|
760
|
-
request; this effectively ignores the headers
|
|
761
|
-
in the spec for a single request.
|
|
762
|
-
:type _headers: dict, optional
|
|
763
|
-
:param _host_index: set to override the host_index for a single
|
|
764
|
-
request; this effectively ignores the host_index
|
|
765
|
-
in the spec for a single request.
|
|
766
|
-
:type _host_index: int, optional
|
|
767
|
-
:return: Returns the result object.
|
|
768
|
-
""" # noqa: E501
|
|
769
|
-
|
|
770
|
-
_param = self._event_data_get_serialize(
|
|
771
|
-
event=event,
|
|
772
|
-
_request_auth=_request_auth,
|
|
773
|
-
_content_type=_content_type,
|
|
774
|
-
_headers=_headers,
|
|
775
|
-
_host_index=_host_index,
|
|
776
|
-
)
|
|
777
|
-
|
|
778
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
779
|
-
"200": "EventData",
|
|
780
|
-
"400": "APIErrors",
|
|
781
|
-
"403": "APIErrors",
|
|
782
|
-
}
|
|
783
|
-
response_data = await self.api_client.call_api(
|
|
784
|
-
*_param, _request_timeout=_request_timeout
|
|
785
|
-
)
|
|
786
|
-
await response_data.read()
|
|
787
|
-
return self.api_client.response_deserialize(
|
|
788
|
-
response_data=response_data,
|
|
789
|
-
response_types_map=_response_types_map,
|
|
790
|
-
)
|
|
791
|
-
|
|
792
|
-
@validate_call
|
|
793
|
-
async def event_data_get_without_preload_content(
|
|
794
|
-
self,
|
|
795
|
-
event: Annotated[
|
|
796
|
-
str,
|
|
797
|
-
Field(
|
|
798
|
-
min_length=36, strict=True, max_length=36, description="The event id"
|
|
799
|
-
),
|
|
800
|
-
],
|
|
801
|
-
_request_timeout: Union[
|
|
802
|
-
None,
|
|
803
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
804
|
-
Tuple[
|
|
805
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
806
|
-
],
|
|
807
|
-
] = None,
|
|
808
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
809
|
-
_content_type: Optional[StrictStr] = None,
|
|
810
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
811
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
812
|
-
) -> RESTResponseType:
|
|
813
|
-
"""Get event data
|
|
814
|
-
|
|
815
|
-
Get the data for an event.
|
|
816
|
-
|
|
817
|
-
:param event: The event id (required)
|
|
818
|
-
:type event: str
|
|
819
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
820
|
-
number provided, it will be total request
|
|
821
|
-
timeout. It can also be a pair (tuple) of
|
|
822
|
-
(connection, read) timeouts.
|
|
823
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
824
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
825
|
-
request; this effectively ignores the
|
|
826
|
-
authentication in the spec for a single request.
|
|
827
|
-
:type _request_auth: dict, optional
|
|
828
|
-
:param _content_type: force content-type for the request.
|
|
829
|
-
:type _content_type: str, Optional
|
|
830
|
-
:param _headers: set to override the headers for a single
|
|
831
|
-
request; this effectively ignores the headers
|
|
832
|
-
in the spec for a single request.
|
|
833
|
-
:type _headers: dict, optional
|
|
834
|
-
:param _host_index: set to override the host_index for a single
|
|
835
|
-
request; this effectively ignores the host_index
|
|
836
|
-
in the spec for a single request.
|
|
837
|
-
:type _host_index: int, optional
|
|
838
|
-
:return: Returns the result object.
|
|
839
|
-
""" # noqa: E501
|
|
840
|
-
|
|
841
|
-
_param = self._event_data_get_serialize(
|
|
842
|
-
event=event,
|
|
843
|
-
_request_auth=_request_auth,
|
|
844
|
-
_content_type=_content_type,
|
|
845
|
-
_headers=_headers,
|
|
846
|
-
_host_index=_host_index,
|
|
847
|
-
)
|
|
848
|
-
|
|
849
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
850
|
-
"200": "EventData",
|
|
851
|
-
"400": "APIErrors",
|
|
852
|
-
"403": "APIErrors",
|
|
853
|
-
}
|
|
854
|
-
response_data = await self.api_client.call_api(
|
|
855
|
-
*_param, _request_timeout=_request_timeout
|
|
856
|
-
)
|
|
857
|
-
return response_data.response
|
|
858
|
-
|
|
859
|
-
def _event_data_get_serialize(
|
|
860
|
-
self,
|
|
861
|
-
event,
|
|
862
|
-
_request_auth,
|
|
863
|
-
_content_type,
|
|
864
|
-
_headers,
|
|
865
|
-
_host_index,
|
|
866
|
-
) -> RequestSerialized:
|
|
867
|
-
|
|
868
|
-
_host = None
|
|
869
|
-
|
|
870
|
-
_collection_formats: Dict[str, str] = {}
|
|
871
|
-
|
|
872
|
-
_path_params: Dict[str, str] = {}
|
|
873
|
-
_query_params: List[Tuple[str, str]] = []
|
|
874
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
875
|
-
_form_params: List[Tuple[str, str]] = []
|
|
876
|
-
_files: Dict[
|
|
877
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
878
|
-
] = {}
|
|
879
|
-
_body_params: Optional[bytes] = None
|
|
880
|
-
|
|
881
|
-
# process the path parameters
|
|
882
|
-
if event is not None:
|
|
883
|
-
_path_params["event"] = event
|
|
884
|
-
# process the query parameters
|
|
885
|
-
# process the header parameters
|
|
886
|
-
# process the form parameters
|
|
887
|
-
# process the body parameter
|
|
888
|
-
|
|
889
|
-
# set the HTTP header `Accept`
|
|
890
|
-
if "Accept" not in _header_params:
|
|
891
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
892
|
-
["application/json"]
|
|
893
|
-
)
|
|
894
|
-
|
|
895
|
-
# authentication setting
|
|
896
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
897
|
-
|
|
898
|
-
return self.api_client.param_serialize(
|
|
899
|
-
method="GET",
|
|
900
|
-
resource_path="/api/v1/events/{event}/data",
|
|
901
|
-
path_params=_path_params,
|
|
902
|
-
query_params=_query_params,
|
|
903
|
-
header_params=_header_params,
|
|
904
|
-
body=_body_params,
|
|
905
|
-
post_params=_form_params,
|
|
906
|
-
files=_files,
|
|
907
|
-
auth_settings=_auth_settings,
|
|
908
|
-
collection_formats=_collection_formats,
|
|
909
|
-
_host=_host,
|
|
910
|
-
_request_auth=_request_auth,
|
|
911
|
-
)
|
|
912
|
-
|
|
913
|
-
@validate_call
|
|
914
|
-
async def event_get(
|
|
915
|
-
self,
|
|
916
|
-
event: Annotated[
|
|
917
|
-
str,
|
|
918
|
-
Field(
|
|
919
|
-
min_length=36, strict=True, max_length=36, description="The event id"
|
|
920
|
-
),
|
|
921
|
-
],
|
|
922
|
-
_request_timeout: Union[
|
|
923
|
-
None,
|
|
924
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
925
|
-
Tuple[
|
|
926
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
927
|
-
],
|
|
928
|
-
] = None,
|
|
929
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
930
|
-
_content_type: Optional[StrictStr] = None,
|
|
931
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
932
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
933
|
-
) -> Event:
|
|
934
|
-
"""Get event data
|
|
935
|
-
|
|
936
|
-
Get an event.
|
|
937
|
-
|
|
938
|
-
:param event: The event id (required)
|
|
939
|
-
:type event: str
|
|
940
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
941
|
-
number provided, it will be total request
|
|
942
|
-
timeout. It can also be a pair (tuple) of
|
|
943
|
-
(connection, read) timeouts.
|
|
944
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
945
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
946
|
-
request; this effectively ignores the
|
|
947
|
-
authentication in the spec for a single request.
|
|
948
|
-
:type _request_auth: dict, optional
|
|
949
|
-
:param _content_type: force content-type for the request.
|
|
950
|
-
:type _content_type: str, Optional
|
|
951
|
-
:param _headers: set to override the headers for a single
|
|
952
|
-
request; this effectively ignores the headers
|
|
953
|
-
in the spec for a single request.
|
|
954
|
-
:type _headers: dict, optional
|
|
955
|
-
:param _host_index: set to override the host_index for a single
|
|
956
|
-
request; this effectively ignores the host_index
|
|
957
|
-
in the spec for a single request.
|
|
958
|
-
:type _host_index: int, optional
|
|
959
|
-
:return: Returns the result object.
|
|
960
|
-
""" # noqa: E501
|
|
961
|
-
|
|
962
|
-
_param = self._event_get_serialize(
|
|
963
|
-
event=event,
|
|
964
|
-
_request_auth=_request_auth,
|
|
965
|
-
_content_type=_content_type,
|
|
966
|
-
_headers=_headers,
|
|
967
|
-
_host_index=_host_index,
|
|
968
|
-
)
|
|
969
|
-
|
|
970
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
971
|
-
"200": "Event",
|
|
972
|
-
"400": "APIErrors",
|
|
973
|
-
"403": "APIErrors",
|
|
974
|
-
}
|
|
975
|
-
response_data = await self.api_client.call_api(
|
|
976
|
-
*_param, _request_timeout=_request_timeout
|
|
977
|
-
)
|
|
978
|
-
await response_data.read()
|
|
979
|
-
return self.api_client.response_deserialize(
|
|
980
|
-
response_data=response_data,
|
|
981
|
-
response_types_map=_response_types_map,
|
|
982
|
-
).data
|
|
983
|
-
|
|
984
|
-
@validate_call
|
|
985
|
-
async def event_get_with_http_info(
|
|
986
|
-
self,
|
|
987
|
-
event: Annotated[
|
|
988
|
-
str,
|
|
989
|
-
Field(
|
|
990
|
-
min_length=36, strict=True, max_length=36, description="The event id"
|
|
991
|
-
),
|
|
992
|
-
],
|
|
993
|
-
_request_timeout: Union[
|
|
994
|
-
None,
|
|
995
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
996
|
-
Tuple[
|
|
997
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
998
|
-
],
|
|
999
|
-
] = None,
|
|
1000
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1001
|
-
_content_type: Optional[StrictStr] = None,
|
|
1002
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1003
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1004
|
-
) -> ApiResponse[Event]:
|
|
1005
|
-
"""Get event data
|
|
1006
|
-
|
|
1007
|
-
Get an event.
|
|
1008
|
-
|
|
1009
|
-
:param event: The event id (required)
|
|
1010
|
-
:type event: str
|
|
1011
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1012
|
-
number provided, it will be total request
|
|
1013
|
-
timeout. It can also be a pair (tuple) of
|
|
1014
|
-
(connection, read) timeouts.
|
|
1015
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1016
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1017
|
-
request; this effectively ignores the
|
|
1018
|
-
authentication in the spec for a single request.
|
|
1019
|
-
:type _request_auth: dict, optional
|
|
1020
|
-
:param _content_type: force content-type for the request.
|
|
1021
|
-
:type _content_type: str, Optional
|
|
1022
|
-
:param _headers: set to override the headers for a single
|
|
1023
|
-
request; this effectively ignores the headers
|
|
1024
|
-
in the spec for a single request.
|
|
1025
|
-
:type _headers: dict, optional
|
|
1026
|
-
:param _host_index: set to override the host_index for a single
|
|
1027
|
-
request; this effectively ignores the host_index
|
|
1028
|
-
in the spec for a single request.
|
|
1029
|
-
:type _host_index: int, optional
|
|
1030
|
-
:return: Returns the result object.
|
|
1031
|
-
""" # noqa: E501
|
|
1032
|
-
|
|
1033
|
-
_param = self._event_get_serialize(
|
|
1034
|
-
event=event,
|
|
1035
|
-
_request_auth=_request_auth,
|
|
1036
|
-
_content_type=_content_type,
|
|
1037
|
-
_headers=_headers,
|
|
1038
|
-
_host_index=_host_index,
|
|
1039
|
-
)
|
|
1040
|
-
|
|
1041
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1042
|
-
"200": "Event",
|
|
1043
|
-
"400": "APIErrors",
|
|
1044
|
-
"403": "APIErrors",
|
|
1045
|
-
}
|
|
1046
|
-
response_data = await self.api_client.call_api(
|
|
1047
|
-
*_param, _request_timeout=_request_timeout
|
|
1048
|
-
)
|
|
1049
|
-
await response_data.read()
|
|
1050
|
-
return self.api_client.response_deserialize(
|
|
1051
|
-
response_data=response_data,
|
|
1052
|
-
response_types_map=_response_types_map,
|
|
1053
|
-
)
|
|
1054
|
-
|
|
1055
|
-
@validate_call
|
|
1056
|
-
async def event_get_without_preload_content(
|
|
1057
|
-
self,
|
|
1058
|
-
event: Annotated[
|
|
1059
|
-
str,
|
|
1060
|
-
Field(
|
|
1061
|
-
min_length=36, strict=True, max_length=36, description="The event id"
|
|
1062
|
-
),
|
|
1063
|
-
],
|
|
1064
|
-
_request_timeout: Union[
|
|
1065
|
-
None,
|
|
1066
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1067
|
-
Tuple[
|
|
1068
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1069
|
-
],
|
|
1070
|
-
] = None,
|
|
1071
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1072
|
-
_content_type: Optional[StrictStr] = None,
|
|
1073
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1074
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1075
|
-
) -> RESTResponseType:
|
|
1076
|
-
"""Get event data
|
|
1077
|
-
|
|
1078
|
-
Get an event.
|
|
1079
|
-
|
|
1080
|
-
:param event: The event id (required)
|
|
1081
|
-
:type event: str
|
|
1082
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1083
|
-
number provided, it will be total request
|
|
1084
|
-
timeout. It can also be a pair (tuple) of
|
|
1085
|
-
(connection, read) timeouts.
|
|
1086
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1087
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1088
|
-
request; this effectively ignores the
|
|
1089
|
-
authentication in the spec for a single request.
|
|
1090
|
-
:type _request_auth: dict, optional
|
|
1091
|
-
:param _content_type: force content-type for the request.
|
|
1092
|
-
:type _content_type: str, Optional
|
|
1093
|
-
:param _headers: set to override the headers for a single
|
|
1094
|
-
request; this effectively ignores the headers
|
|
1095
|
-
in the spec for a single request.
|
|
1096
|
-
:type _headers: dict, optional
|
|
1097
|
-
:param _host_index: set to override the host_index for a single
|
|
1098
|
-
request; this effectively ignores the host_index
|
|
1099
|
-
in the spec for a single request.
|
|
1100
|
-
:type _host_index: int, optional
|
|
1101
|
-
:return: Returns the result object.
|
|
1102
|
-
""" # noqa: E501
|
|
1103
|
-
|
|
1104
|
-
_param = self._event_get_serialize(
|
|
1105
|
-
event=event,
|
|
1106
|
-
_request_auth=_request_auth,
|
|
1107
|
-
_content_type=_content_type,
|
|
1108
|
-
_headers=_headers,
|
|
1109
|
-
_host_index=_host_index,
|
|
1110
|
-
)
|
|
1111
|
-
|
|
1112
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1113
|
-
"200": "Event",
|
|
1114
|
-
"400": "APIErrors",
|
|
1115
|
-
"403": "APIErrors",
|
|
1116
|
-
}
|
|
1117
|
-
response_data = await self.api_client.call_api(
|
|
1118
|
-
*_param, _request_timeout=_request_timeout
|
|
1119
|
-
)
|
|
1120
|
-
return response_data.response
|
|
1121
|
-
|
|
1122
|
-
def _event_get_serialize(
|
|
1123
|
-
self,
|
|
1124
|
-
event,
|
|
1125
|
-
_request_auth,
|
|
1126
|
-
_content_type,
|
|
1127
|
-
_headers,
|
|
1128
|
-
_host_index,
|
|
1129
|
-
) -> RequestSerialized:
|
|
1130
|
-
|
|
1131
|
-
_host = None
|
|
1132
|
-
|
|
1133
|
-
_collection_formats: Dict[str, str] = {}
|
|
1134
|
-
|
|
1135
|
-
_path_params: Dict[str, str] = {}
|
|
1136
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1137
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1138
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1139
|
-
_files: Dict[
|
|
1140
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1141
|
-
] = {}
|
|
1142
|
-
_body_params: Optional[bytes] = None
|
|
1143
|
-
|
|
1144
|
-
# process the path parameters
|
|
1145
|
-
if event is not None:
|
|
1146
|
-
_path_params["event"] = event
|
|
1147
|
-
# process the query parameters
|
|
1148
|
-
# process the header parameters
|
|
1149
|
-
# process the form parameters
|
|
1150
|
-
# process the body parameter
|
|
1151
|
-
|
|
1152
|
-
# set the HTTP header `Accept`
|
|
1153
|
-
if "Accept" not in _header_params:
|
|
1154
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1155
|
-
["application/json"]
|
|
1156
|
-
)
|
|
1157
|
-
|
|
1158
|
-
# authentication setting
|
|
1159
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
1160
|
-
|
|
1161
|
-
return self.api_client.param_serialize(
|
|
1162
|
-
method="GET",
|
|
1163
|
-
resource_path="/api/v1/events/{event}",
|
|
1164
|
-
path_params=_path_params,
|
|
1165
|
-
query_params=_query_params,
|
|
1166
|
-
header_params=_header_params,
|
|
1167
|
-
body=_body_params,
|
|
1168
|
-
post_params=_form_params,
|
|
1169
|
-
files=_files,
|
|
1170
|
-
auth_settings=_auth_settings,
|
|
1171
|
-
collection_formats=_collection_formats,
|
|
1172
|
-
_host=_host,
|
|
1173
|
-
_request_auth=_request_auth,
|
|
1174
|
-
)
|
|
1175
|
-
|
|
1176
|
-
@validate_call
|
|
1177
|
-
async def event_key_list(
|
|
1178
|
-
self,
|
|
1179
|
-
tenant: Annotated[
|
|
1180
|
-
str,
|
|
1181
|
-
Field(
|
|
1182
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1183
|
-
),
|
|
1184
|
-
],
|
|
1185
|
-
_request_timeout: Union[
|
|
1186
|
-
None,
|
|
1187
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1188
|
-
Tuple[
|
|
1189
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1190
|
-
],
|
|
1191
|
-
] = None,
|
|
1192
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1193
|
-
_content_type: Optional[StrictStr] = None,
|
|
1194
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1195
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1196
|
-
) -> EventKeyList:
|
|
1197
|
-
"""List event keys
|
|
1198
|
-
|
|
1199
|
-
Lists all event keys for a tenant.
|
|
1200
|
-
|
|
1201
|
-
:param tenant: The tenant id (required)
|
|
1202
|
-
:type tenant: str
|
|
1203
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1204
|
-
number provided, it will be total request
|
|
1205
|
-
timeout. It can also be a pair (tuple) of
|
|
1206
|
-
(connection, read) timeouts.
|
|
1207
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1208
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1209
|
-
request; this effectively ignores the
|
|
1210
|
-
authentication in the spec for a single request.
|
|
1211
|
-
:type _request_auth: dict, optional
|
|
1212
|
-
:param _content_type: force content-type for the request.
|
|
1213
|
-
:type _content_type: str, Optional
|
|
1214
|
-
:param _headers: set to override the headers for a single
|
|
1215
|
-
request; this effectively ignores the headers
|
|
1216
|
-
in the spec for a single request.
|
|
1217
|
-
:type _headers: dict, optional
|
|
1218
|
-
:param _host_index: set to override the host_index for a single
|
|
1219
|
-
request; this effectively ignores the host_index
|
|
1220
|
-
in the spec for a single request.
|
|
1221
|
-
:type _host_index: int, optional
|
|
1222
|
-
:return: Returns the result object.
|
|
1223
|
-
""" # noqa: E501
|
|
1224
|
-
|
|
1225
|
-
_param = self._event_key_list_serialize(
|
|
1226
|
-
tenant=tenant,
|
|
1227
|
-
_request_auth=_request_auth,
|
|
1228
|
-
_content_type=_content_type,
|
|
1229
|
-
_headers=_headers,
|
|
1230
|
-
_host_index=_host_index,
|
|
1231
|
-
)
|
|
1232
|
-
|
|
1233
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1234
|
-
"200": "EventKeyList",
|
|
1235
|
-
"400": "APIErrors",
|
|
1236
|
-
"403": "APIErrors",
|
|
1237
|
-
}
|
|
1238
|
-
response_data = await self.api_client.call_api(
|
|
1239
|
-
*_param, _request_timeout=_request_timeout
|
|
1240
|
-
)
|
|
1241
|
-
await response_data.read()
|
|
1242
|
-
return self.api_client.response_deserialize(
|
|
1243
|
-
response_data=response_data,
|
|
1244
|
-
response_types_map=_response_types_map,
|
|
1245
|
-
).data
|
|
1246
|
-
|
|
1247
|
-
@validate_call
|
|
1248
|
-
async def event_key_list_with_http_info(
|
|
1249
|
-
self,
|
|
1250
|
-
tenant: Annotated[
|
|
1251
|
-
str,
|
|
1252
|
-
Field(
|
|
1253
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1254
|
-
),
|
|
1255
|
-
],
|
|
1256
|
-
_request_timeout: Union[
|
|
1257
|
-
None,
|
|
1258
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1259
|
-
Tuple[
|
|
1260
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1261
|
-
],
|
|
1262
|
-
] = None,
|
|
1263
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1264
|
-
_content_type: Optional[StrictStr] = None,
|
|
1265
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1266
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1267
|
-
) -> ApiResponse[EventKeyList]:
|
|
1268
|
-
"""List event keys
|
|
1269
|
-
|
|
1270
|
-
Lists all event keys for a tenant.
|
|
1271
|
-
|
|
1272
|
-
:param tenant: The tenant id (required)
|
|
1273
|
-
:type tenant: str
|
|
1274
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1275
|
-
number provided, it will be total request
|
|
1276
|
-
timeout. It can also be a pair (tuple) of
|
|
1277
|
-
(connection, read) timeouts.
|
|
1278
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1279
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1280
|
-
request; this effectively ignores the
|
|
1281
|
-
authentication in the spec for a single request.
|
|
1282
|
-
:type _request_auth: dict, optional
|
|
1283
|
-
:param _content_type: force content-type for the request.
|
|
1284
|
-
:type _content_type: str, Optional
|
|
1285
|
-
:param _headers: set to override the headers for a single
|
|
1286
|
-
request; this effectively ignores the headers
|
|
1287
|
-
in the spec for a single request.
|
|
1288
|
-
:type _headers: dict, optional
|
|
1289
|
-
:param _host_index: set to override the host_index for a single
|
|
1290
|
-
request; this effectively ignores the host_index
|
|
1291
|
-
in the spec for a single request.
|
|
1292
|
-
:type _host_index: int, optional
|
|
1293
|
-
:return: Returns the result object.
|
|
1294
|
-
""" # noqa: E501
|
|
1295
|
-
|
|
1296
|
-
_param = self._event_key_list_serialize(
|
|
1297
|
-
tenant=tenant,
|
|
1298
|
-
_request_auth=_request_auth,
|
|
1299
|
-
_content_type=_content_type,
|
|
1300
|
-
_headers=_headers,
|
|
1301
|
-
_host_index=_host_index,
|
|
1302
|
-
)
|
|
1303
|
-
|
|
1304
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1305
|
-
"200": "EventKeyList",
|
|
1306
|
-
"400": "APIErrors",
|
|
1307
|
-
"403": "APIErrors",
|
|
1308
|
-
}
|
|
1309
|
-
response_data = await self.api_client.call_api(
|
|
1310
|
-
*_param, _request_timeout=_request_timeout
|
|
1311
|
-
)
|
|
1312
|
-
await response_data.read()
|
|
1313
|
-
return self.api_client.response_deserialize(
|
|
1314
|
-
response_data=response_data,
|
|
1315
|
-
response_types_map=_response_types_map,
|
|
1316
|
-
)
|
|
1317
|
-
|
|
1318
|
-
@validate_call
|
|
1319
|
-
async def event_key_list_without_preload_content(
|
|
1320
|
-
self,
|
|
1321
|
-
tenant: Annotated[
|
|
1322
|
-
str,
|
|
1323
|
-
Field(
|
|
1324
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1325
|
-
),
|
|
1326
|
-
],
|
|
1327
|
-
_request_timeout: Union[
|
|
1328
|
-
None,
|
|
1329
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1330
|
-
Tuple[
|
|
1331
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1332
|
-
],
|
|
1333
|
-
] = None,
|
|
1334
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1335
|
-
_content_type: Optional[StrictStr] = None,
|
|
1336
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1337
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1338
|
-
) -> RESTResponseType:
|
|
1339
|
-
"""List event keys
|
|
1340
|
-
|
|
1341
|
-
Lists all event keys for a tenant.
|
|
1342
|
-
|
|
1343
|
-
:param tenant: The tenant id (required)
|
|
1344
|
-
:type tenant: str
|
|
1345
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1346
|
-
number provided, it will be total request
|
|
1347
|
-
timeout. It can also be a pair (tuple) of
|
|
1348
|
-
(connection, read) timeouts.
|
|
1349
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1350
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1351
|
-
request; this effectively ignores the
|
|
1352
|
-
authentication in the spec for a single request.
|
|
1353
|
-
:type _request_auth: dict, optional
|
|
1354
|
-
:param _content_type: force content-type for the request.
|
|
1355
|
-
:type _content_type: str, Optional
|
|
1356
|
-
:param _headers: set to override the headers for a single
|
|
1357
|
-
request; this effectively ignores the headers
|
|
1358
|
-
in the spec for a single request.
|
|
1359
|
-
:type _headers: dict, optional
|
|
1360
|
-
:param _host_index: set to override the host_index for a single
|
|
1361
|
-
request; this effectively ignores the host_index
|
|
1362
|
-
in the spec for a single request.
|
|
1363
|
-
:type _host_index: int, optional
|
|
1364
|
-
:return: Returns the result object.
|
|
1365
|
-
""" # noqa: E501
|
|
1366
|
-
|
|
1367
|
-
_param = self._event_key_list_serialize(
|
|
1368
|
-
tenant=tenant,
|
|
1369
|
-
_request_auth=_request_auth,
|
|
1370
|
-
_content_type=_content_type,
|
|
1371
|
-
_headers=_headers,
|
|
1372
|
-
_host_index=_host_index,
|
|
1373
|
-
)
|
|
1374
|
-
|
|
1375
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1376
|
-
"200": "EventKeyList",
|
|
1377
|
-
"400": "APIErrors",
|
|
1378
|
-
"403": "APIErrors",
|
|
1379
|
-
}
|
|
1380
|
-
response_data = await self.api_client.call_api(
|
|
1381
|
-
*_param, _request_timeout=_request_timeout
|
|
1382
|
-
)
|
|
1383
|
-
return response_data.response
|
|
1384
|
-
|
|
1385
|
-
def _event_key_list_serialize(
|
|
1386
|
-
self,
|
|
1387
|
-
tenant,
|
|
1388
|
-
_request_auth,
|
|
1389
|
-
_content_type,
|
|
1390
|
-
_headers,
|
|
1391
|
-
_host_index,
|
|
1392
|
-
) -> RequestSerialized:
|
|
1393
|
-
|
|
1394
|
-
_host = None
|
|
1395
|
-
|
|
1396
|
-
_collection_formats: Dict[str, str] = {}
|
|
1397
|
-
|
|
1398
|
-
_path_params: Dict[str, str] = {}
|
|
1399
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1400
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1401
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1402
|
-
_files: Dict[
|
|
1403
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1404
|
-
] = {}
|
|
1405
|
-
_body_params: Optional[bytes] = None
|
|
1406
|
-
|
|
1407
|
-
# process the path parameters
|
|
1408
|
-
if tenant is not None:
|
|
1409
|
-
_path_params["tenant"] = tenant
|
|
1410
|
-
# process the query parameters
|
|
1411
|
-
# process the header parameters
|
|
1412
|
-
# process the form parameters
|
|
1413
|
-
# process the body parameter
|
|
1414
|
-
|
|
1415
|
-
# set the HTTP header `Accept`
|
|
1416
|
-
if "Accept" not in _header_params:
|
|
1417
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1418
|
-
["application/json"]
|
|
1419
|
-
)
|
|
1420
|
-
|
|
1421
|
-
# authentication setting
|
|
1422
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
1423
|
-
|
|
1424
|
-
return self.api_client.param_serialize(
|
|
1425
|
-
method="GET",
|
|
1426
|
-
resource_path="/api/v1/tenants/{tenant}/events/keys",
|
|
1427
|
-
path_params=_path_params,
|
|
1428
|
-
query_params=_query_params,
|
|
1429
|
-
header_params=_header_params,
|
|
1430
|
-
body=_body_params,
|
|
1431
|
-
post_params=_form_params,
|
|
1432
|
-
files=_files,
|
|
1433
|
-
auth_settings=_auth_settings,
|
|
1434
|
-
collection_formats=_collection_formats,
|
|
1435
|
-
_host=_host,
|
|
1436
|
-
_request_auth=_request_auth,
|
|
1437
|
-
)
|
|
1438
|
-
|
|
1439
|
-
@validate_call
|
|
1440
|
-
async def event_list(
|
|
1441
|
-
self,
|
|
1442
|
-
tenant: Annotated[
|
|
1443
|
-
str,
|
|
1444
|
-
Field(
|
|
1445
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1446
|
-
),
|
|
1447
|
-
],
|
|
1448
|
-
offset: Annotated[
|
|
1449
|
-
Optional[StrictInt], Field(description="The number to skip")
|
|
1450
|
-
] = None,
|
|
1451
|
-
limit: Annotated[
|
|
1452
|
-
Optional[StrictInt], Field(description="The number to limit by")
|
|
1453
|
-
] = None,
|
|
1454
|
-
keys: Annotated[
|
|
1455
|
-
Optional[List[StrictStr]], Field(description="A list of keys to filter by")
|
|
1456
|
-
] = None,
|
|
1457
|
-
workflows: Annotated[
|
|
1458
|
-
Optional[List[StrictStr]],
|
|
1459
|
-
Field(description="A list of workflow IDs to filter by"),
|
|
1460
|
-
] = None,
|
|
1461
|
-
statuses: Annotated[
|
|
1462
|
-
Optional[List[WorkflowRunStatus]],
|
|
1463
|
-
Field(description="A list of workflow run statuses to filter by"),
|
|
1464
|
-
] = None,
|
|
1465
|
-
search: Annotated[
|
|
1466
|
-
Optional[StrictStr], Field(description="The search query to filter for")
|
|
1467
|
-
] = None,
|
|
1468
|
-
order_by_field: Annotated[
|
|
1469
|
-
Optional[EventOrderByField], Field(description="What to order by")
|
|
1470
|
-
] = None,
|
|
1471
|
-
order_by_direction: Annotated[
|
|
1472
|
-
Optional[EventOrderByDirection], Field(description="The order direction")
|
|
1473
|
-
] = None,
|
|
1474
|
-
additional_metadata: Annotated[
|
|
1475
|
-
Optional[List[StrictStr]],
|
|
1476
|
-
Field(description="A list of metadata key value pairs to filter by"),
|
|
1477
|
-
] = None,
|
|
1478
|
-
event_ids: Annotated[
|
|
1479
|
-
Optional[
|
|
1480
|
-
List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]
|
|
1481
|
-
],
|
|
1482
|
-
Field(description="A list of event ids to filter by"),
|
|
1483
|
-
] = None,
|
|
1484
|
-
_request_timeout: Union[
|
|
1485
|
-
None,
|
|
1486
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1487
|
-
Tuple[
|
|
1488
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1489
|
-
],
|
|
1490
|
-
] = None,
|
|
1491
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1492
|
-
_content_type: Optional[StrictStr] = None,
|
|
1493
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1494
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1495
|
-
) -> EventList:
|
|
1496
|
-
"""List events
|
|
1497
|
-
|
|
1498
|
-
Lists all events for a tenant.
|
|
1499
|
-
|
|
1500
|
-
:param tenant: The tenant id (required)
|
|
1501
|
-
:type tenant: str
|
|
1502
|
-
:param offset: The number to skip
|
|
1503
|
-
:type offset: int
|
|
1504
|
-
:param limit: The number to limit by
|
|
1505
|
-
:type limit: int
|
|
1506
|
-
:param keys: A list of keys to filter by
|
|
1507
|
-
:type keys: List[str]
|
|
1508
|
-
:param workflows: A list of workflow IDs to filter by
|
|
1509
|
-
:type workflows: List[str]
|
|
1510
|
-
:param statuses: A list of workflow run statuses to filter by
|
|
1511
|
-
:type statuses: List[WorkflowRunStatus]
|
|
1512
|
-
:param search: The search query to filter for
|
|
1513
|
-
:type search: str
|
|
1514
|
-
:param order_by_field: What to order by
|
|
1515
|
-
:type order_by_field: EventOrderByField
|
|
1516
|
-
:param order_by_direction: The order direction
|
|
1517
|
-
:type order_by_direction: EventOrderByDirection
|
|
1518
|
-
:param additional_metadata: A list of metadata key value pairs to filter by
|
|
1519
|
-
:type additional_metadata: List[str]
|
|
1520
|
-
:param event_ids: A list of event ids to filter by
|
|
1521
|
-
:type event_ids: List[str]
|
|
1522
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1523
|
-
number provided, it will be total request
|
|
1524
|
-
timeout. It can also be a pair (tuple) of
|
|
1525
|
-
(connection, read) timeouts.
|
|
1526
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1527
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1528
|
-
request; this effectively ignores the
|
|
1529
|
-
authentication in the spec for a single request.
|
|
1530
|
-
:type _request_auth: dict, optional
|
|
1531
|
-
:param _content_type: force content-type for the request.
|
|
1532
|
-
:type _content_type: str, Optional
|
|
1533
|
-
:param _headers: set to override the headers for a single
|
|
1534
|
-
request; this effectively ignores the headers
|
|
1535
|
-
in the spec for a single request.
|
|
1536
|
-
:type _headers: dict, optional
|
|
1537
|
-
:param _host_index: set to override the host_index for a single
|
|
1538
|
-
request; this effectively ignores the host_index
|
|
1539
|
-
in the spec for a single request.
|
|
1540
|
-
:type _host_index: int, optional
|
|
1541
|
-
:return: Returns the result object.
|
|
1542
|
-
""" # noqa: E501
|
|
1543
|
-
|
|
1544
|
-
_param = self._event_list_serialize(
|
|
1545
|
-
tenant=tenant,
|
|
1546
|
-
offset=offset,
|
|
1547
|
-
limit=limit,
|
|
1548
|
-
keys=keys,
|
|
1549
|
-
workflows=workflows,
|
|
1550
|
-
statuses=statuses,
|
|
1551
|
-
search=search,
|
|
1552
|
-
order_by_field=order_by_field,
|
|
1553
|
-
order_by_direction=order_by_direction,
|
|
1554
|
-
additional_metadata=additional_metadata,
|
|
1555
|
-
event_ids=event_ids,
|
|
1556
|
-
_request_auth=_request_auth,
|
|
1557
|
-
_content_type=_content_type,
|
|
1558
|
-
_headers=_headers,
|
|
1559
|
-
_host_index=_host_index,
|
|
1560
|
-
)
|
|
1561
|
-
|
|
1562
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1563
|
-
"200": "EventList",
|
|
1564
|
-
"400": "APIErrors",
|
|
1565
|
-
"403": "APIErrors",
|
|
1566
|
-
}
|
|
1567
|
-
response_data = await self.api_client.call_api(
|
|
1568
|
-
*_param, _request_timeout=_request_timeout
|
|
1569
|
-
)
|
|
1570
|
-
await response_data.read()
|
|
1571
|
-
return self.api_client.response_deserialize(
|
|
1572
|
-
response_data=response_data,
|
|
1573
|
-
response_types_map=_response_types_map,
|
|
1574
|
-
).data
|
|
1575
|
-
|
|
1576
|
-
@validate_call
|
|
1577
|
-
async def event_list_with_http_info(
|
|
1578
|
-
self,
|
|
1579
|
-
tenant: Annotated[
|
|
1580
|
-
str,
|
|
1581
|
-
Field(
|
|
1582
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1583
|
-
),
|
|
1584
|
-
],
|
|
1585
|
-
offset: Annotated[
|
|
1586
|
-
Optional[StrictInt], Field(description="The number to skip")
|
|
1587
|
-
] = None,
|
|
1588
|
-
limit: Annotated[
|
|
1589
|
-
Optional[StrictInt], Field(description="The number to limit by")
|
|
1590
|
-
] = None,
|
|
1591
|
-
keys: Annotated[
|
|
1592
|
-
Optional[List[StrictStr]], Field(description="A list of keys to filter by")
|
|
1593
|
-
] = None,
|
|
1594
|
-
workflows: Annotated[
|
|
1595
|
-
Optional[List[StrictStr]],
|
|
1596
|
-
Field(description="A list of workflow IDs to filter by"),
|
|
1597
|
-
] = None,
|
|
1598
|
-
statuses: Annotated[
|
|
1599
|
-
Optional[List[WorkflowRunStatus]],
|
|
1600
|
-
Field(description="A list of workflow run statuses to filter by"),
|
|
1601
|
-
] = None,
|
|
1602
|
-
search: Annotated[
|
|
1603
|
-
Optional[StrictStr], Field(description="The search query to filter for")
|
|
1604
|
-
] = None,
|
|
1605
|
-
order_by_field: Annotated[
|
|
1606
|
-
Optional[EventOrderByField], Field(description="What to order by")
|
|
1607
|
-
] = None,
|
|
1608
|
-
order_by_direction: Annotated[
|
|
1609
|
-
Optional[EventOrderByDirection], Field(description="The order direction")
|
|
1610
|
-
] = None,
|
|
1611
|
-
additional_metadata: Annotated[
|
|
1612
|
-
Optional[List[StrictStr]],
|
|
1613
|
-
Field(description="A list of metadata key value pairs to filter by"),
|
|
1614
|
-
] = None,
|
|
1615
|
-
event_ids: Annotated[
|
|
1616
|
-
Optional[
|
|
1617
|
-
List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]
|
|
1618
|
-
],
|
|
1619
|
-
Field(description="A list of event ids to filter by"),
|
|
1620
|
-
] = None,
|
|
1621
|
-
_request_timeout: Union[
|
|
1622
|
-
None,
|
|
1623
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1624
|
-
Tuple[
|
|
1625
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1626
|
-
],
|
|
1627
|
-
] = None,
|
|
1628
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1629
|
-
_content_type: Optional[StrictStr] = None,
|
|
1630
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1631
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1632
|
-
) -> ApiResponse[EventList]:
|
|
1633
|
-
"""List events
|
|
1634
|
-
|
|
1635
|
-
Lists all events for a tenant.
|
|
1636
|
-
|
|
1637
|
-
:param tenant: The tenant id (required)
|
|
1638
|
-
:type tenant: str
|
|
1639
|
-
:param offset: The number to skip
|
|
1640
|
-
:type offset: int
|
|
1641
|
-
:param limit: The number to limit by
|
|
1642
|
-
:type limit: int
|
|
1643
|
-
:param keys: A list of keys to filter by
|
|
1644
|
-
:type keys: List[str]
|
|
1645
|
-
:param workflows: A list of workflow IDs to filter by
|
|
1646
|
-
:type workflows: List[str]
|
|
1647
|
-
:param statuses: A list of workflow run statuses to filter by
|
|
1648
|
-
:type statuses: List[WorkflowRunStatus]
|
|
1649
|
-
:param search: The search query to filter for
|
|
1650
|
-
:type search: str
|
|
1651
|
-
:param order_by_field: What to order by
|
|
1652
|
-
:type order_by_field: EventOrderByField
|
|
1653
|
-
:param order_by_direction: The order direction
|
|
1654
|
-
:type order_by_direction: EventOrderByDirection
|
|
1655
|
-
:param additional_metadata: A list of metadata key value pairs to filter by
|
|
1656
|
-
:type additional_metadata: List[str]
|
|
1657
|
-
:param event_ids: A list of event ids to filter by
|
|
1658
|
-
:type event_ids: List[str]
|
|
1659
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1660
|
-
number provided, it will be total request
|
|
1661
|
-
timeout. It can also be a pair (tuple) of
|
|
1662
|
-
(connection, read) timeouts.
|
|
1663
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1664
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1665
|
-
request; this effectively ignores the
|
|
1666
|
-
authentication in the spec for a single request.
|
|
1667
|
-
:type _request_auth: dict, optional
|
|
1668
|
-
:param _content_type: force content-type for the request.
|
|
1669
|
-
:type _content_type: str, Optional
|
|
1670
|
-
:param _headers: set to override the headers for a single
|
|
1671
|
-
request; this effectively ignores the headers
|
|
1672
|
-
in the spec for a single request.
|
|
1673
|
-
:type _headers: dict, optional
|
|
1674
|
-
:param _host_index: set to override the host_index for a single
|
|
1675
|
-
request; this effectively ignores the host_index
|
|
1676
|
-
in the spec for a single request.
|
|
1677
|
-
:type _host_index: int, optional
|
|
1678
|
-
:return: Returns the result object.
|
|
1679
|
-
""" # noqa: E501
|
|
1680
|
-
|
|
1681
|
-
_param = self._event_list_serialize(
|
|
1682
|
-
tenant=tenant,
|
|
1683
|
-
offset=offset,
|
|
1684
|
-
limit=limit,
|
|
1685
|
-
keys=keys,
|
|
1686
|
-
workflows=workflows,
|
|
1687
|
-
statuses=statuses,
|
|
1688
|
-
search=search,
|
|
1689
|
-
order_by_field=order_by_field,
|
|
1690
|
-
order_by_direction=order_by_direction,
|
|
1691
|
-
additional_metadata=additional_metadata,
|
|
1692
|
-
event_ids=event_ids,
|
|
1693
|
-
_request_auth=_request_auth,
|
|
1694
|
-
_content_type=_content_type,
|
|
1695
|
-
_headers=_headers,
|
|
1696
|
-
_host_index=_host_index,
|
|
1697
|
-
)
|
|
1698
|
-
|
|
1699
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1700
|
-
"200": "EventList",
|
|
1701
|
-
"400": "APIErrors",
|
|
1702
|
-
"403": "APIErrors",
|
|
1703
|
-
}
|
|
1704
|
-
response_data = await self.api_client.call_api(
|
|
1705
|
-
*_param, _request_timeout=_request_timeout
|
|
1706
|
-
)
|
|
1707
|
-
await response_data.read()
|
|
1708
|
-
return self.api_client.response_deserialize(
|
|
1709
|
-
response_data=response_data,
|
|
1710
|
-
response_types_map=_response_types_map,
|
|
1711
|
-
)
|
|
1712
|
-
|
|
1713
|
-
@validate_call
|
|
1714
|
-
async def event_list_without_preload_content(
|
|
1715
|
-
self,
|
|
1716
|
-
tenant: Annotated[
|
|
1717
|
-
str,
|
|
1718
|
-
Field(
|
|
1719
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1720
|
-
),
|
|
1721
|
-
],
|
|
1722
|
-
offset: Annotated[
|
|
1723
|
-
Optional[StrictInt], Field(description="The number to skip")
|
|
1724
|
-
] = None,
|
|
1725
|
-
limit: Annotated[
|
|
1726
|
-
Optional[StrictInt], Field(description="The number to limit by")
|
|
1727
|
-
] = None,
|
|
1728
|
-
keys: Annotated[
|
|
1729
|
-
Optional[List[StrictStr]], Field(description="A list of keys to filter by")
|
|
1730
|
-
] = None,
|
|
1731
|
-
workflows: Annotated[
|
|
1732
|
-
Optional[List[StrictStr]],
|
|
1733
|
-
Field(description="A list of workflow IDs to filter by"),
|
|
1734
|
-
] = None,
|
|
1735
|
-
statuses: Annotated[
|
|
1736
|
-
Optional[List[WorkflowRunStatus]],
|
|
1737
|
-
Field(description="A list of workflow run statuses to filter by"),
|
|
1738
|
-
] = None,
|
|
1739
|
-
search: Annotated[
|
|
1740
|
-
Optional[StrictStr], Field(description="The search query to filter for")
|
|
1741
|
-
] = None,
|
|
1742
|
-
order_by_field: Annotated[
|
|
1743
|
-
Optional[EventOrderByField], Field(description="What to order by")
|
|
1744
|
-
] = None,
|
|
1745
|
-
order_by_direction: Annotated[
|
|
1746
|
-
Optional[EventOrderByDirection], Field(description="The order direction")
|
|
1747
|
-
] = None,
|
|
1748
|
-
additional_metadata: Annotated[
|
|
1749
|
-
Optional[List[StrictStr]],
|
|
1750
|
-
Field(description="A list of metadata key value pairs to filter by"),
|
|
1751
|
-
] = None,
|
|
1752
|
-
event_ids: Annotated[
|
|
1753
|
-
Optional[
|
|
1754
|
-
List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]
|
|
1755
|
-
],
|
|
1756
|
-
Field(description="A list of event ids to filter by"),
|
|
1757
|
-
] = None,
|
|
1758
|
-
_request_timeout: Union[
|
|
1759
|
-
None,
|
|
1760
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1761
|
-
Tuple[
|
|
1762
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1763
|
-
],
|
|
1764
|
-
] = None,
|
|
1765
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1766
|
-
_content_type: Optional[StrictStr] = None,
|
|
1767
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1768
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1769
|
-
) -> RESTResponseType:
|
|
1770
|
-
"""List events
|
|
1771
|
-
|
|
1772
|
-
Lists all events for a tenant.
|
|
1773
|
-
|
|
1774
|
-
:param tenant: The tenant id (required)
|
|
1775
|
-
:type tenant: str
|
|
1776
|
-
:param offset: The number to skip
|
|
1777
|
-
:type offset: int
|
|
1778
|
-
:param limit: The number to limit by
|
|
1779
|
-
:type limit: int
|
|
1780
|
-
:param keys: A list of keys to filter by
|
|
1781
|
-
:type keys: List[str]
|
|
1782
|
-
:param workflows: A list of workflow IDs to filter by
|
|
1783
|
-
:type workflows: List[str]
|
|
1784
|
-
:param statuses: A list of workflow run statuses to filter by
|
|
1785
|
-
:type statuses: List[WorkflowRunStatus]
|
|
1786
|
-
:param search: The search query to filter for
|
|
1787
|
-
:type search: str
|
|
1788
|
-
:param order_by_field: What to order by
|
|
1789
|
-
:type order_by_field: EventOrderByField
|
|
1790
|
-
:param order_by_direction: The order direction
|
|
1791
|
-
:type order_by_direction: EventOrderByDirection
|
|
1792
|
-
:param additional_metadata: A list of metadata key value pairs to filter by
|
|
1793
|
-
:type additional_metadata: List[str]
|
|
1794
|
-
:param event_ids: A list of event ids to filter by
|
|
1795
|
-
:type event_ids: List[str]
|
|
1796
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1797
|
-
number provided, it will be total request
|
|
1798
|
-
timeout. It can also be a pair (tuple) of
|
|
1799
|
-
(connection, read) timeouts.
|
|
1800
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1801
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1802
|
-
request; this effectively ignores the
|
|
1803
|
-
authentication in the spec for a single request.
|
|
1804
|
-
:type _request_auth: dict, optional
|
|
1805
|
-
:param _content_type: force content-type for the request.
|
|
1806
|
-
:type _content_type: str, Optional
|
|
1807
|
-
:param _headers: set to override the headers for a single
|
|
1808
|
-
request; this effectively ignores the headers
|
|
1809
|
-
in the spec for a single request.
|
|
1810
|
-
:type _headers: dict, optional
|
|
1811
|
-
:param _host_index: set to override the host_index for a single
|
|
1812
|
-
request; this effectively ignores the host_index
|
|
1813
|
-
in the spec for a single request.
|
|
1814
|
-
:type _host_index: int, optional
|
|
1815
|
-
:return: Returns the result object.
|
|
1816
|
-
""" # noqa: E501
|
|
1817
|
-
|
|
1818
|
-
_param = self._event_list_serialize(
|
|
1819
|
-
tenant=tenant,
|
|
1820
|
-
offset=offset,
|
|
1821
|
-
limit=limit,
|
|
1822
|
-
keys=keys,
|
|
1823
|
-
workflows=workflows,
|
|
1824
|
-
statuses=statuses,
|
|
1825
|
-
search=search,
|
|
1826
|
-
order_by_field=order_by_field,
|
|
1827
|
-
order_by_direction=order_by_direction,
|
|
1828
|
-
additional_metadata=additional_metadata,
|
|
1829
|
-
event_ids=event_ids,
|
|
1830
|
-
_request_auth=_request_auth,
|
|
1831
|
-
_content_type=_content_type,
|
|
1832
|
-
_headers=_headers,
|
|
1833
|
-
_host_index=_host_index,
|
|
1834
|
-
)
|
|
1835
|
-
|
|
1836
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1837
|
-
"200": "EventList",
|
|
1838
|
-
"400": "APIErrors",
|
|
1839
|
-
"403": "APIErrors",
|
|
1840
|
-
}
|
|
1841
|
-
response_data = await self.api_client.call_api(
|
|
1842
|
-
*_param, _request_timeout=_request_timeout
|
|
1843
|
-
)
|
|
1844
|
-
return response_data.response
|
|
1845
|
-
|
|
1846
|
-
def _event_list_serialize(
|
|
1847
|
-
self,
|
|
1848
|
-
tenant,
|
|
1849
|
-
offset,
|
|
1850
|
-
limit,
|
|
1851
|
-
keys,
|
|
1852
|
-
workflows,
|
|
1853
|
-
statuses,
|
|
1854
|
-
search,
|
|
1855
|
-
order_by_field,
|
|
1856
|
-
order_by_direction,
|
|
1857
|
-
additional_metadata,
|
|
1858
|
-
event_ids,
|
|
1859
|
-
_request_auth,
|
|
1860
|
-
_content_type,
|
|
1861
|
-
_headers,
|
|
1862
|
-
_host_index,
|
|
1863
|
-
) -> RequestSerialized:
|
|
1864
|
-
|
|
1865
|
-
_host = None
|
|
1866
|
-
|
|
1867
|
-
_collection_formats: Dict[str, str] = {
|
|
1868
|
-
"keys": "multi",
|
|
1869
|
-
"workflows": "multi",
|
|
1870
|
-
"statuses": "multi",
|
|
1871
|
-
"additionalMetadata": "multi",
|
|
1872
|
-
"eventIds": "multi",
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
_path_params: Dict[str, str] = {}
|
|
1876
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1877
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1878
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1879
|
-
_files: Dict[
|
|
1880
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1881
|
-
] = {}
|
|
1882
|
-
_body_params: Optional[bytes] = None
|
|
1883
|
-
|
|
1884
|
-
# process the path parameters
|
|
1885
|
-
if tenant is not None:
|
|
1886
|
-
_path_params["tenant"] = tenant
|
|
1887
|
-
# process the query parameters
|
|
1888
|
-
if offset is not None:
|
|
1889
|
-
|
|
1890
|
-
_query_params.append(("offset", offset))
|
|
1891
|
-
|
|
1892
|
-
if limit is not None:
|
|
1893
|
-
|
|
1894
|
-
_query_params.append(("limit", limit))
|
|
1895
|
-
|
|
1896
|
-
if keys is not None:
|
|
1897
|
-
|
|
1898
|
-
_query_params.append(("keys", keys))
|
|
1899
|
-
|
|
1900
|
-
if workflows is not None:
|
|
1901
|
-
|
|
1902
|
-
_query_params.append(("workflows", workflows))
|
|
1903
|
-
|
|
1904
|
-
if statuses is not None:
|
|
1905
|
-
|
|
1906
|
-
_query_params.append(("statuses", statuses))
|
|
1907
|
-
|
|
1908
|
-
if search is not None:
|
|
1909
|
-
|
|
1910
|
-
_query_params.append(("search", search))
|
|
1911
|
-
|
|
1912
|
-
if order_by_field is not None:
|
|
1913
|
-
|
|
1914
|
-
_query_params.append(("orderByField", order_by_field.value))
|
|
1915
|
-
|
|
1916
|
-
if order_by_direction is not None:
|
|
1917
|
-
|
|
1918
|
-
_query_params.append(("orderByDirection", order_by_direction.value))
|
|
1919
|
-
|
|
1920
|
-
if additional_metadata is not None:
|
|
1921
|
-
|
|
1922
|
-
_query_params.append(("additionalMetadata", additional_metadata))
|
|
1923
|
-
|
|
1924
|
-
if event_ids is not None:
|
|
1925
|
-
|
|
1926
|
-
_query_params.append(("eventIds", event_ids))
|
|
1927
|
-
|
|
1928
|
-
# process the header parameters
|
|
1929
|
-
# process the form parameters
|
|
1930
|
-
# process the body parameter
|
|
1931
|
-
|
|
1932
|
-
# set the HTTP header `Accept`
|
|
1933
|
-
if "Accept" not in _header_params:
|
|
1934
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1935
|
-
["application/json"]
|
|
1936
|
-
)
|
|
1937
|
-
|
|
1938
|
-
# authentication setting
|
|
1939
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
1940
|
-
|
|
1941
|
-
return self.api_client.param_serialize(
|
|
1942
|
-
method="GET",
|
|
1943
|
-
resource_path="/api/v1/tenants/{tenant}/events",
|
|
1944
|
-
path_params=_path_params,
|
|
1945
|
-
query_params=_query_params,
|
|
1946
|
-
header_params=_header_params,
|
|
1947
|
-
body=_body_params,
|
|
1948
|
-
post_params=_form_params,
|
|
1949
|
-
files=_files,
|
|
1950
|
-
auth_settings=_auth_settings,
|
|
1951
|
-
collection_formats=_collection_formats,
|
|
1952
|
-
_host=_host,
|
|
1953
|
-
_request_auth=_request_auth,
|
|
1954
|
-
)
|
|
1955
|
-
|
|
1956
|
-
@validate_call
|
|
1957
|
-
async def event_update_cancel(
|
|
1958
|
-
self,
|
|
1959
|
-
tenant: Annotated[
|
|
1960
|
-
str,
|
|
1961
|
-
Field(
|
|
1962
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1963
|
-
),
|
|
1964
|
-
],
|
|
1965
|
-
cancel_event_request: Annotated[
|
|
1966
|
-
CancelEventRequest, Field(description="The event ids to replay")
|
|
1967
|
-
],
|
|
1968
|
-
_request_timeout: Union[
|
|
1969
|
-
None,
|
|
1970
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1971
|
-
Tuple[
|
|
1972
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1973
|
-
],
|
|
1974
|
-
] = None,
|
|
1975
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1976
|
-
_content_type: Optional[StrictStr] = None,
|
|
1977
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1978
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1979
|
-
) -> EventUpdateCancel200Response:
|
|
1980
|
-
"""Replay events
|
|
1981
|
-
|
|
1982
|
-
Cancels all runs for a list of events.
|
|
1983
|
-
|
|
1984
|
-
:param tenant: The tenant id (required)
|
|
1985
|
-
:type tenant: str
|
|
1986
|
-
:param cancel_event_request: The event ids to replay (required)
|
|
1987
|
-
:type cancel_event_request: CancelEventRequest
|
|
1988
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1989
|
-
number provided, it will be total request
|
|
1990
|
-
timeout. It can also be a pair (tuple) of
|
|
1991
|
-
(connection, read) timeouts.
|
|
1992
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1993
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1994
|
-
request; this effectively ignores the
|
|
1995
|
-
authentication in the spec for a single request.
|
|
1996
|
-
:type _request_auth: dict, optional
|
|
1997
|
-
:param _content_type: force content-type for the request.
|
|
1998
|
-
:type _content_type: str, Optional
|
|
1999
|
-
:param _headers: set to override the headers for a single
|
|
2000
|
-
request; this effectively ignores the headers
|
|
2001
|
-
in the spec for a single request.
|
|
2002
|
-
:type _headers: dict, optional
|
|
2003
|
-
:param _host_index: set to override the host_index for a single
|
|
2004
|
-
request; this effectively ignores the host_index
|
|
2005
|
-
in the spec for a single request.
|
|
2006
|
-
:type _host_index: int, optional
|
|
2007
|
-
:return: Returns the result object.
|
|
2008
|
-
""" # noqa: E501
|
|
2009
|
-
|
|
2010
|
-
_param = self._event_update_cancel_serialize(
|
|
2011
|
-
tenant=tenant,
|
|
2012
|
-
cancel_event_request=cancel_event_request,
|
|
2013
|
-
_request_auth=_request_auth,
|
|
2014
|
-
_content_type=_content_type,
|
|
2015
|
-
_headers=_headers,
|
|
2016
|
-
_host_index=_host_index,
|
|
2017
|
-
)
|
|
2018
|
-
|
|
2019
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2020
|
-
"200": "EventUpdateCancel200Response",
|
|
2021
|
-
"400": "APIErrors",
|
|
2022
|
-
"403": "APIErrors",
|
|
2023
|
-
"429": "APIErrors",
|
|
2024
|
-
}
|
|
2025
|
-
response_data = await self.api_client.call_api(
|
|
2026
|
-
*_param, _request_timeout=_request_timeout
|
|
2027
|
-
)
|
|
2028
|
-
await response_data.read()
|
|
2029
|
-
return self.api_client.response_deserialize(
|
|
2030
|
-
response_data=response_data,
|
|
2031
|
-
response_types_map=_response_types_map,
|
|
2032
|
-
).data
|
|
2033
|
-
|
|
2034
|
-
@validate_call
|
|
2035
|
-
async def event_update_cancel_with_http_info(
|
|
2036
|
-
self,
|
|
2037
|
-
tenant: Annotated[
|
|
2038
|
-
str,
|
|
2039
|
-
Field(
|
|
2040
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
2041
|
-
),
|
|
2042
|
-
],
|
|
2043
|
-
cancel_event_request: Annotated[
|
|
2044
|
-
CancelEventRequest, Field(description="The event ids to replay")
|
|
2045
|
-
],
|
|
2046
|
-
_request_timeout: Union[
|
|
2047
|
-
None,
|
|
2048
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2049
|
-
Tuple[
|
|
2050
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
2051
|
-
],
|
|
2052
|
-
] = None,
|
|
2053
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2054
|
-
_content_type: Optional[StrictStr] = None,
|
|
2055
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2056
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2057
|
-
) -> ApiResponse[EventUpdateCancel200Response]:
|
|
2058
|
-
"""Replay events
|
|
2059
|
-
|
|
2060
|
-
Cancels all runs for a list of events.
|
|
2061
|
-
|
|
2062
|
-
:param tenant: The tenant id (required)
|
|
2063
|
-
:type tenant: str
|
|
2064
|
-
:param cancel_event_request: The event ids to replay (required)
|
|
2065
|
-
:type cancel_event_request: CancelEventRequest
|
|
2066
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2067
|
-
number provided, it will be total request
|
|
2068
|
-
timeout. It can also be a pair (tuple) of
|
|
2069
|
-
(connection, read) timeouts.
|
|
2070
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2071
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2072
|
-
request; this effectively ignores the
|
|
2073
|
-
authentication in the spec for a single request.
|
|
2074
|
-
:type _request_auth: dict, optional
|
|
2075
|
-
:param _content_type: force content-type for the request.
|
|
2076
|
-
:type _content_type: str, Optional
|
|
2077
|
-
:param _headers: set to override the headers for a single
|
|
2078
|
-
request; this effectively ignores the headers
|
|
2079
|
-
in the spec for a single request.
|
|
2080
|
-
:type _headers: dict, optional
|
|
2081
|
-
:param _host_index: set to override the host_index for a single
|
|
2082
|
-
request; this effectively ignores the host_index
|
|
2083
|
-
in the spec for a single request.
|
|
2084
|
-
:type _host_index: int, optional
|
|
2085
|
-
:return: Returns the result object.
|
|
2086
|
-
""" # noqa: E501
|
|
2087
|
-
|
|
2088
|
-
_param = self._event_update_cancel_serialize(
|
|
2089
|
-
tenant=tenant,
|
|
2090
|
-
cancel_event_request=cancel_event_request,
|
|
2091
|
-
_request_auth=_request_auth,
|
|
2092
|
-
_content_type=_content_type,
|
|
2093
|
-
_headers=_headers,
|
|
2094
|
-
_host_index=_host_index,
|
|
2095
|
-
)
|
|
2096
|
-
|
|
2097
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2098
|
-
"200": "EventUpdateCancel200Response",
|
|
2099
|
-
"400": "APIErrors",
|
|
2100
|
-
"403": "APIErrors",
|
|
2101
|
-
"429": "APIErrors",
|
|
2102
|
-
}
|
|
2103
|
-
response_data = await self.api_client.call_api(
|
|
2104
|
-
*_param, _request_timeout=_request_timeout
|
|
2105
|
-
)
|
|
2106
|
-
await response_data.read()
|
|
2107
|
-
return self.api_client.response_deserialize(
|
|
2108
|
-
response_data=response_data,
|
|
2109
|
-
response_types_map=_response_types_map,
|
|
2110
|
-
)
|
|
2111
|
-
|
|
2112
|
-
@validate_call
|
|
2113
|
-
async def event_update_cancel_without_preload_content(
|
|
2114
|
-
self,
|
|
2115
|
-
tenant: Annotated[
|
|
2116
|
-
str,
|
|
2117
|
-
Field(
|
|
2118
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
2119
|
-
),
|
|
2120
|
-
],
|
|
2121
|
-
cancel_event_request: Annotated[
|
|
2122
|
-
CancelEventRequest, Field(description="The event ids to replay")
|
|
2123
|
-
],
|
|
2124
|
-
_request_timeout: Union[
|
|
2125
|
-
None,
|
|
2126
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2127
|
-
Tuple[
|
|
2128
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
2129
|
-
],
|
|
2130
|
-
] = None,
|
|
2131
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2132
|
-
_content_type: Optional[StrictStr] = None,
|
|
2133
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2134
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2135
|
-
) -> RESTResponseType:
|
|
2136
|
-
"""Replay events
|
|
2137
|
-
|
|
2138
|
-
Cancels all runs for a list of events.
|
|
2139
|
-
|
|
2140
|
-
:param tenant: The tenant id (required)
|
|
2141
|
-
:type tenant: str
|
|
2142
|
-
:param cancel_event_request: The event ids to replay (required)
|
|
2143
|
-
:type cancel_event_request: CancelEventRequest
|
|
2144
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2145
|
-
number provided, it will be total request
|
|
2146
|
-
timeout. It can also be a pair (tuple) of
|
|
2147
|
-
(connection, read) timeouts.
|
|
2148
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2149
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2150
|
-
request; this effectively ignores the
|
|
2151
|
-
authentication in the spec for a single request.
|
|
2152
|
-
:type _request_auth: dict, optional
|
|
2153
|
-
:param _content_type: force content-type for the request.
|
|
2154
|
-
:type _content_type: str, Optional
|
|
2155
|
-
:param _headers: set to override the headers for a single
|
|
2156
|
-
request; this effectively ignores the headers
|
|
2157
|
-
in the spec for a single request.
|
|
2158
|
-
:type _headers: dict, optional
|
|
2159
|
-
:param _host_index: set to override the host_index for a single
|
|
2160
|
-
request; this effectively ignores the host_index
|
|
2161
|
-
in the spec for a single request.
|
|
2162
|
-
:type _host_index: int, optional
|
|
2163
|
-
:return: Returns the result object.
|
|
2164
|
-
""" # noqa: E501
|
|
2165
|
-
|
|
2166
|
-
_param = self._event_update_cancel_serialize(
|
|
2167
|
-
tenant=tenant,
|
|
2168
|
-
cancel_event_request=cancel_event_request,
|
|
2169
|
-
_request_auth=_request_auth,
|
|
2170
|
-
_content_type=_content_type,
|
|
2171
|
-
_headers=_headers,
|
|
2172
|
-
_host_index=_host_index,
|
|
2173
|
-
)
|
|
2174
|
-
|
|
2175
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2176
|
-
"200": "EventUpdateCancel200Response",
|
|
2177
|
-
"400": "APIErrors",
|
|
2178
|
-
"403": "APIErrors",
|
|
2179
|
-
"429": "APIErrors",
|
|
2180
|
-
}
|
|
2181
|
-
response_data = await self.api_client.call_api(
|
|
2182
|
-
*_param, _request_timeout=_request_timeout
|
|
2183
|
-
)
|
|
2184
|
-
return response_data.response
|
|
2185
|
-
|
|
2186
|
-
def _event_update_cancel_serialize(
|
|
2187
|
-
self,
|
|
2188
|
-
tenant,
|
|
2189
|
-
cancel_event_request,
|
|
2190
|
-
_request_auth,
|
|
2191
|
-
_content_type,
|
|
2192
|
-
_headers,
|
|
2193
|
-
_host_index,
|
|
2194
|
-
) -> RequestSerialized:
|
|
2195
|
-
|
|
2196
|
-
_host = None
|
|
2197
|
-
|
|
2198
|
-
_collection_formats: Dict[str, str] = {}
|
|
2199
|
-
|
|
2200
|
-
_path_params: Dict[str, str] = {}
|
|
2201
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2202
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2203
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2204
|
-
_files: Dict[
|
|
2205
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2206
|
-
] = {}
|
|
2207
|
-
_body_params: Optional[bytes] = None
|
|
2208
|
-
|
|
2209
|
-
# process the path parameters
|
|
2210
|
-
if tenant is not None:
|
|
2211
|
-
_path_params["tenant"] = tenant
|
|
2212
|
-
# process the query parameters
|
|
2213
|
-
# process the header parameters
|
|
2214
|
-
# process the form parameters
|
|
2215
|
-
# process the body parameter
|
|
2216
|
-
if cancel_event_request is not None:
|
|
2217
|
-
_body_params = cancel_event_request
|
|
2218
|
-
|
|
2219
|
-
# set the HTTP header `Accept`
|
|
2220
|
-
if "Accept" not in _header_params:
|
|
2221
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
2222
|
-
["application/json"]
|
|
2223
|
-
)
|
|
2224
|
-
|
|
2225
|
-
# set the HTTP header `Content-Type`
|
|
2226
|
-
if _content_type:
|
|
2227
|
-
_header_params["Content-Type"] = _content_type
|
|
2228
|
-
else:
|
|
2229
|
-
_default_content_type = self.api_client.select_header_content_type(
|
|
2230
|
-
["application/json"]
|
|
2231
|
-
)
|
|
2232
|
-
if _default_content_type is not None:
|
|
2233
|
-
_header_params["Content-Type"] = _default_content_type
|
|
2234
|
-
|
|
2235
|
-
# authentication setting
|
|
2236
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
2237
|
-
|
|
2238
|
-
return self.api_client.param_serialize(
|
|
2239
|
-
method="POST",
|
|
2240
|
-
resource_path="/api/v1/tenants/{tenant}/events/cancel",
|
|
2241
|
-
path_params=_path_params,
|
|
2242
|
-
query_params=_query_params,
|
|
2243
|
-
header_params=_header_params,
|
|
2244
|
-
body=_body_params,
|
|
2245
|
-
post_params=_form_params,
|
|
2246
|
-
files=_files,
|
|
2247
|
-
auth_settings=_auth_settings,
|
|
2248
|
-
collection_formats=_collection_formats,
|
|
2249
|
-
_host=_host,
|
|
2250
|
-
_request_auth=_request_auth,
|
|
2251
|
-
)
|
|
2252
|
-
|
|
2253
|
-
@validate_call
|
|
2254
|
-
async def event_update_replay(
|
|
2255
|
-
self,
|
|
2256
|
-
tenant: Annotated[
|
|
2257
|
-
str,
|
|
2258
|
-
Field(
|
|
2259
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
2260
|
-
),
|
|
2261
|
-
],
|
|
2262
|
-
replay_event_request: Annotated[
|
|
2263
|
-
ReplayEventRequest, Field(description="The event ids to replay")
|
|
2264
|
-
],
|
|
2265
|
-
_request_timeout: Union[
|
|
2266
|
-
None,
|
|
2267
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2268
|
-
Tuple[
|
|
2269
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
2270
|
-
],
|
|
2271
|
-
] = None,
|
|
2272
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2273
|
-
_content_type: Optional[StrictStr] = None,
|
|
2274
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2275
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2276
|
-
) -> EventList:
|
|
2277
|
-
"""Replay events
|
|
2278
|
-
|
|
2279
|
-
Replays a list of events.
|
|
2280
|
-
|
|
2281
|
-
:param tenant: The tenant id (required)
|
|
2282
|
-
:type tenant: str
|
|
2283
|
-
:param replay_event_request: The event ids to replay (required)
|
|
2284
|
-
:type replay_event_request: ReplayEventRequest
|
|
2285
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2286
|
-
number provided, it will be total request
|
|
2287
|
-
timeout. It can also be a pair (tuple) of
|
|
2288
|
-
(connection, read) timeouts.
|
|
2289
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2290
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2291
|
-
request; this effectively ignores the
|
|
2292
|
-
authentication in the spec for a single request.
|
|
2293
|
-
:type _request_auth: dict, optional
|
|
2294
|
-
:param _content_type: force content-type for the request.
|
|
2295
|
-
:type _content_type: str, Optional
|
|
2296
|
-
:param _headers: set to override the headers for a single
|
|
2297
|
-
request; this effectively ignores the headers
|
|
2298
|
-
in the spec for a single request.
|
|
2299
|
-
:type _headers: dict, optional
|
|
2300
|
-
:param _host_index: set to override the host_index for a single
|
|
2301
|
-
request; this effectively ignores the host_index
|
|
2302
|
-
in the spec for a single request.
|
|
2303
|
-
:type _host_index: int, optional
|
|
2304
|
-
:return: Returns the result object.
|
|
2305
|
-
""" # noqa: E501
|
|
2306
|
-
|
|
2307
|
-
_param = self._event_update_replay_serialize(
|
|
2308
|
-
tenant=tenant,
|
|
2309
|
-
replay_event_request=replay_event_request,
|
|
2310
|
-
_request_auth=_request_auth,
|
|
2311
|
-
_content_type=_content_type,
|
|
2312
|
-
_headers=_headers,
|
|
2313
|
-
_host_index=_host_index,
|
|
2314
|
-
)
|
|
2315
|
-
|
|
2316
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2317
|
-
"200": "EventList",
|
|
2318
|
-
"400": "APIErrors",
|
|
2319
|
-
"403": "APIErrors",
|
|
2320
|
-
"429": "APIErrors",
|
|
2321
|
-
}
|
|
2322
|
-
response_data = await self.api_client.call_api(
|
|
2323
|
-
*_param, _request_timeout=_request_timeout
|
|
2324
|
-
)
|
|
2325
|
-
await response_data.read()
|
|
2326
|
-
return self.api_client.response_deserialize(
|
|
2327
|
-
response_data=response_data,
|
|
2328
|
-
response_types_map=_response_types_map,
|
|
2329
|
-
).data
|
|
2330
|
-
|
|
2331
|
-
@validate_call
|
|
2332
|
-
async def event_update_replay_with_http_info(
|
|
2333
|
-
self,
|
|
2334
|
-
tenant: Annotated[
|
|
2335
|
-
str,
|
|
2336
|
-
Field(
|
|
2337
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
2338
|
-
),
|
|
2339
|
-
],
|
|
2340
|
-
replay_event_request: Annotated[
|
|
2341
|
-
ReplayEventRequest, Field(description="The event ids to replay")
|
|
2342
|
-
],
|
|
2343
|
-
_request_timeout: Union[
|
|
2344
|
-
None,
|
|
2345
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2346
|
-
Tuple[
|
|
2347
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
2348
|
-
],
|
|
2349
|
-
] = None,
|
|
2350
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2351
|
-
_content_type: Optional[StrictStr] = None,
|
|
2352
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2353
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2354
|
-
) -> ApiResponse[EventList]:
|
|
2355
|
-
"""Replay events
|
|
2356
|
-
|
|
2357
|
-
Replays a list of events.
|
|
2358
|
-
|
|
2359
|
-
:param tenant: The tenant id (required)
|
|
2360
|
-
:type tenant: str
|
|
2361
|
-
:param replay_event_request: The event ids to replay (required)
|
|
2362
|
-
:type replay_event_request: ReplayEventRequest
|
|
2363
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2364
|
-
number provided, it will be total request
|
|
2365
|
-
timeout. It can also be a pair (tuple) of
|
|
2366
|
-
(connection, read) timeouts.
|
|
2367
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2368
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2369
|
-
request; this effectively ignores the
|
|
2370
|
-
authentication in the spec for a single request.
|
|
2371
|
-
:type _request_auth: dict, optional
|
|
2372
|
-
:param _content_type: force content-type for the request.
|
|
2373
|
-
:type _content_type: str, Optional
|
|
2374
|
-
:param _headers: set to override the headers for a single
|
|
2375
|
-
request; this effectively ignores the headers
|
|
2376
|
-
in the spec for a single request.
|
|
2377
|
-
:type _headers: dict, optional
|
|
2378
|
-
:param _host_index: set to override the host_index for a single
|
|
2379
|
-
request; this effectively ignores the host_index
|
|
2380
|
-
in the spec for a single request.
|
|
2381
|
-
:type _host_index: int, optional
|
|
2382
|
-
:return: Returns the result object.
|
|
2383
|
-
""" # noqa: E501
|
|
2384
|
-
|
|
2385
|
-
_param = self._event_update_replay_serialize(
|
|
2386
|
-
tenant=tenant,
|
|
2387
|
-
replay_event_request=replay_event_request,
|
|
2388
|
-
_request_auth=_request_auth,
|
|
2389
|
-
_content_type=_content_type,
|
|
2390
|
-
_headers=_headers,
|
|
2391
|
-
_host_index=_host_index,
|
|
2392
|
-
)
|
|
2393
|
-
|
|
2394
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2395
|
-
"200": "EventList",
|
|
2396
|
-
"400": "APIErrors",
|
|
2397
|
-
"403": "APIErrors",
|
|
2398
|
-
"429": "APIErrors",
|
|
2399
|
-
}
|
|
2400
|
-
response_data = await self.api_client.call_api(
|
|
2401
|
-
*_param, _request_timeout=_request_timeout
|
|
2402
|
-
)
|
|
2403
|
-
await response_data.read()
|
|
2404
|
-
return self.api_client.response_deserialize(
|
|
2405
|
-
response_data=response_data,
|
|
2406
|
-
response_types_map=_response_types_map,
|
|
2407
|
-
)
|
|
2408
|
-
|
|
2409
|
-
@validate_call
|
|
2410
|
-
async def event_update_replay_without_preload_content(
|
|
2411
|
-
self,
|
|
2412
|
-
tenant: Annotated[
|
|
2413
|
-
str,
|
|
2414
|
-
Field(
|
|
2415
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
2416
|
-
),
|
|
2417
|
-
],
|
|
2418
|
-
replay_event_request: Annotated[
|
|
2419
|
-
ReplayEventRequest, Field(description="The event ids to replay")
|
|
2420
|
-
],
|
|
2421
|
-
_request_timeout: Union[
|
|
2422
|
-
None,
|
|
2423
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2424
|
-
Tuple[
|
|
2425
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
2426
|
-
],
|
|
2427
|
-
] = None,
|
|
2428
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2429
|
-
_content_type: Optional[StrictStr] = None,
|
|
2430
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2431
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2432
|
-
) -> RESTResponseType:
|
|
2433
|
-
"""Replay events
|
|
2434
|
-
|
|
2435
|
-
Replays a list of events.
|
|
2436
|
-
|
|
2437
|
-
:param tenant: The tenant id (required)
|
|
2438
|
-
:type tenant: str
|
|
2439
|
-
:param replay_event_request: The event ids to replay (required)
|
|
2440
|
-
:type replay_event_request: ReplayEventRequest
|
|
2441
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2442
|
-
number provided, it will be total request
|
|
2443
|
-
timeout. It can also be a pair (tuple) of
|
|
2444
|
-
(connection, read) timeouts.
|
|
2445
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2446
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2447
|
-
request; this effectively ignores the
|
|
2448
|
-
authentication in the spec for a single request.
|
|
2449
|
-
:type _request_auth: dict, optional
|
|
2450
|
-
:param _content_type: force content-type for the request.
|
|
2451
|
-
:type _content_type: str, Optional
|
|
2452
|
-
:param _headers: set to override the headers for a single
|
|
2453
|
-
request; this effectively ignores the headers
|
|
2454
|
-
in the spec for a single request.
|
|
2455
|
-
:type _headers: dict, optional
|
|
2456
|
-
:param _host_index: set to override the host_index for a single
|
|
2457
|
-
request; this effectively ignores the host_index
|
|
2458
|
-
in the spec for a single request.
|
|
2459
|
-
:type _host_index: int, optional
|
|
2460
|
-
:return: Returns the result object.
|
|
2461
|
-
""" # noqa: E501
|
|
2462
|
-
|
|
2463
|
-
_param = self._event_update_replay_serialize(
|
|
2464
|
-
tenant=tenant,
|
|
2465
|
-
replay_event_request=replay_event_request,
|
|
2466
|
-
_request_auth=_request_auth,
|
|
2467
|
-
_content_type=_content_type,
|
|
2468
|
-
_headers=_headers,
|
|
2469
|
-
_host_index=_host_index,
|
|
2470
|
-
)
|
|
2471
|
-
|
|
2472
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2473
|
-
"200": "EventList",
|
|
2474
|
-
"400": "APIErrors",
|
|
2475
|
-
"403": "APIErrors",
|
|
2476
|
-
"429": "APIErrors",
|
|
2477
|
-
}
|
|
2478
|
-
response_data = await self.api_client.call_api(
|
|
2479
|
-
*_param, _request_timeout=_request_timeout
|
|
2480
|
-
)
|
|
2481
|
-
return response_data.response
|
|
2482
|
-
|
|
2483
|
-
def _event_update_replay_serialize(
|
|
2484
|
-
self,
|
|
2485
|
-
tenant,
|
|
2486
|
-
replay_event_request,
|
|
2487
|
-
_request_auth,
|
|
2488
|
-
_content_type,
|
|
2489
|
-
_headers,
|
|
2490
|
-
_host_index,
|
|
2491
|
-
) -> RequestSerialized:
|
|
2492
|
-
|
|
2493
|
-
_host = None
|
|
2494
|
-
|
|
2495
|
-
_collection_formats: Dict[str, str] = {}
|
|
2496
|
-
|
|
2497
|
-
_path_params: Dict[str, str] = {}
|
|
2498
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2499
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2500
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2501
|
-
_files: Dict[
|
|
2502
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2503
|
-
] = {}
|
|
2504
|
-
_body_params: Optional[bytes] = None
|
|
2505
|
-
|
|
2506
|
-
# process the path parameters
|
|
2507
|
-
if tenant is not None:
|
|
2508
|
-
_path_params["tenant"] = tenant
|
|
2509
|
-
# process the query parameters
|
|
2510
|
-
# process the header parameters
|
|
2511
|
-
# process the form parameters
|
|
2512
|
-
# process the body parameter
|
|
2513
|
-
if replay_event_request is not None:
|
|
2514
|
-
_body_params = replay_event_request
|
|
2515
|
-
|
|
2516
|
-
# set the HTTP header `Accept`
|
|
2517
|
-
if "Accept" not in _header_params:
|
|
2518
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
2519
|
-
["application/json"]
|
|
2520
|
-
)
|
|
2521
|
-
|
|
2522
|
-
# set the HTTP header `Content-Type`
|
|
2523
|
-
if _content_type:
|
|
2524
|
-
_header_params["Content-Type"] = _content_type
|
|
2525
|
-
else:
|
|
2526
|
-
_default_content_type = self.api_client.select_header_content_type(
|
|
2527
|
-
["application/json"]
|
|
2528
|
-
)
|
|
2529
|
-
if _default_content_type is not None:
|
|
2530
|
-
_header_params["Content-Type"] = _default_content_type
|
|
2531
|
-
|
|
2532
|
-
# authentication setting
|
|
2533
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
2534
|
-
|
|
2535
|
-
return self.api_client.param_serialize(
|
|
2536
|
-
method="POST",
|
|
2537
|
-
resource_path="/api/v1/tenants/{tenant}/events/replay",
|
|
2538
|
-
path_params=_path_params,
|
|
2539
|
-
query_params=_query_params,
|
|
2540
|
-
header_params=_header_params,
|
|
2541
|
-
body=_body_params,
|
|
2542
|
-
post_params=_form_params,
|
|
2543
|
-
files=_files,
|
|
2544
|
-
auth_settings=_auth_settings,
|
|
2545
|
-
collection_formats=_collection_formats,
|
|
2546
|
-
_host=_host,
|
|
2547
|
-
_request_auth=_request_auth,
|
|
2548
|
-
)
|