hatchet-sdk 1.18.1__py3-none-any.whl → 1.19.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-1.18.1.dist-info → hatchet_sdk-1.19.0.dist-info}/METADATA +2 -3
- {hatchet_sdk-1.18.1.dist-info → hatchet_sdk-1.19.0.dist-info}/RECORD +4 -225
- 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.19.0.dist-info}/WHEEL +0 -0
- {hatchet_sdk-1.18.1.dist-info → hatchet_sdk-1.19.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,1932 +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.create_cron_workflow_trigger_request import (
|
|
23
|
-
CreateCronWorkflowTriggerRequest,
|
|
24
|
-
)
|
|
25
|
-
from hatchet_sdk.v0.clients.rest.models.cron_workflows import CronWorkflows
|
|
26
|
-
from hatchet_sdk.v0.clients.rest.models.event_update_cancel200_response import (
|
|
27
|
-
EventUpdateCancel200Response,
|
|
28
|
-
)
|
|
29
|
-
from hatchet_sdk.v0.clients.rest.models.replay_workflow_runs_request import (
|
|
30
|
-
ReplayWorkflowRunsRequest,
|
|
31
|
-
)
|
|
32
|
-
from hatchet_sdk.v0.clients.rest.models.replay_workflow_runs_response import (
|
|
33
|
-
ReplayWorkflowRunsResponse,
|
|
34
|
-
)
|
|
35
|
-
from hatchet_sdk.v0.clients.rest.models.schedule_workflow_run_request import (
|
|
36
|
-
ScheduleWorkflowRunRequest,
|
|
37
|
-
)
|
|
38
|
-
from hatchet_sdk.v0.clients.rest.models.scheduled_workflows import ScheduledWorkflows
|
|
39
|
-
from hatchet_sdk.v0.clients.rest.models.trigger_workflow_run_request import (
|
|
40
|
-
TriggerWorkflowRunRequest,
|
|
41
|
-
)
|
|
42
|
-
from hatchet_sdk.v0.clients.rest.models.workflow_run import WorkflowRun
|
|
43
|
-
from hatchet_sdk.v0.clients.rest.models.workflow_runs_cancel_request import (
|
|
44
|
-
WorkflowRunsCancelRequest,
|
|
45
|
-
)
|
|
46
|
-
from hatchet_sdk.v0.clients.rest.rest import RESTResponseType
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
class WorkflowRunApi:
|
|
50
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
51
|
-
Ref: https://openapi-generator.tech
|
|
52
|
-
|
|
53
|
-
Do not edit the class manually.
|
|
54
|
-
"""
|
|
55
|
-
|
|
56
|
-
def __init__(self, api_client=None) -> None:
|
|
57
|
-
if api_client is None:
|
|
58
|
-
api_client = ApiClient.get_default()
|
|
59
|
-
self.api_client = api_client
|
|
60
|
-
|
|
61
|
-
@validate_call
|
|
62
|
-
async def cron_workflow_trigger_create(
|
|
63
|
-
self,
|
|
64
|
-
tenant: Annotated[
|
|
65
|
-
str,
|
|
66
|
-
Field(
|
|
67
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
68
|
-
),
|
|
69
|
-
],
|
|
70
|
-
workflow: Annotated[StrictStr, Field(description="The workflow name")],
|
|
71
|
-
create_cron_workflow_trigger_request: Annotated[
|
|
72
|
-
CreateCronWorkflowTriggerRequest,
|
|
73
|
-
Field(description="The input to the cron job workflow trigger"),
|
|
74
|
-
],
|
|
75
|
-
_request_timeout: Union[
|
|
76
|
-
None,
|
|
77
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
78
|
-
Tuple[
|
|
79
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
80
|
-
],
|
|
81
|
-
] = None,
|
|
82
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
83
|
-
_content_type: Optional[StrictStr] = None,
|
|
84
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
85
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
86
|
-
) -> CronWorkflows:
|
|
87
|
-
"""Create cron job workflow trigger
|
|
88
|
-
|
|
89
|
-
Create a new cron job workflow trigger for a tenant
|
|
90
|
-
|
|
91
|
-
:param tenant: The tenant id (required)
|
|
92
|
-
:type tenant: str
|
|
93
|
-
:param workflow: The workflow name (required)
|
|
94
|
-
:type workflow: str
|
|
95
|
-
:param create_cron_workflow_trigger_request: The input to the cron job workflow trigger (required)
|
|
96
|
-
:type create_cron_workflow_trigger_request: CreateCronWorkflowTriggerRequest
|
|
97
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
98
|
-
number provided, it will be total request
|
|
99
|
-
timeout. It can also be a pair (tuple) of
|
|
100
|
-
(connection, read) timeouts.
|
|
101
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
102
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
103
|
-
request; this effectively ignores the
|
|
104
|
-
authentication in the spec for a single request.
|
|
105
|
-
:type _request_auth: dict, optional
|
|
106
|
-
:param _content_type: force content-type for the request.
|
|
107
|
-
:type _content_type: str, Optional
|
|
108
|
-
:param _headers: set to override the headers for a single
|
|
109
|
-
request; this effectively ignores the headers
|
|
110
|
-
in the spec for a single request.
|
|
111
|
-
:type _headers: dict, optional
|
|
112
|
-
:param _host_index: set to override the host_index for a single
|
|
113
|
-
request; this effectively ignores the host_index
|
|
114
|
-
in the spec for a single request.
|
|
115
|
-
:type _host_index: int, optional
|
|
116
|
-
:return: Returns the result object.
|
|
117
|
-
""" # noqa: E501
|
|
118
|
-
|
|
119
|
-
_param = self._cron_workflow_trigger_create_serialize(
|
|
120
|
-
tenant=tenant,
|
|
121
|
-
workflow=workflow,
|
|
122
|
-
create_cron_workflow_trigger_request=create_cron_workflow_trigger_request,
|
|
123
|
-
_request_auth=_request_auth,
|
|
124
|
-
_content_type=_content_type,
|
|
125
|
-
_headers=_headers,
|
|
126
|
-
_host_index=_host_index,
|
|
127
|
-
)
|
|
128
|
-
|
|
129
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
130
|
-
"200": "CronWorkflows",
|
|
131
|
-
"400": "APIErrors",
|
|
132
|
-
"403": "APIErrors",
|
|
133
|
-
"404": "APIErrors",
|
|
134
|
-
"429": "APIErrors",
|
|
135
|
-
}
|
|
136
|
-
response_data = await self.api_client.call_api(
|
|
137
|
-
*_param, _request_timeout=_request_timeout
|
|
138
|
-
)
|
|
139
|
-
await response_data.read()
|
|
140
|
-
return self.api_client.response_deserialize(
|
|
141
|
-
response_data=response_data,
|
|
142
|
-
response_types_map=_response_types_map,
|
|
143
|
-
).data
|
|
144
|
-
|
|
145
|
-
@validate_call
|
|
146
|
-
async def cron_workflow_trigger_create_with_http_info(
|
|
147
|
-
self,
|
|
148
|
-
tenant: Annotated[
|
|
149
|
-
str,
|
|
150
|
-
Field(
|
|
151
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
152
|
-
),
|
|
153
|
-
],
|
|
154
|
-
workflow: Annotated[StrictStr, Field(description="The workflow name")],
|
|
155
|
-
create_cron_workflow_trigger_request: Annotated[
|
|
156
|
-
CreateCronWorkflowTriggerRequest,
|
|
157
|
-
Field(description="The input to the cron job workflow trigger"),
|
|
158
|
-
],
|
|
159
|
-
_request_timeout: Union[
|
|
160
|
-
None,
|
|
161
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
162
|
-
Tuple[
|
|
163
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
164
|
-
],
|
|
165
|
-
] = None,
|
|
166
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
167
|
-
_content_type: Optional[StrictStr] = None,
|
|
168
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
169
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
170
|
-
) -> ApiResponse[CronWorkflows]:
|
|
171
|
-
"""Create cron job workflow trigger
|
|
172
|
-
|
|
173
|
-
Create a new cron job workflow trigger for a tenant
|
|
174
|
-
|
|
175
|
-
:param tenant: The tenant id (required)
|
|
176
|
-
:type tenant: str
|
|
177
|
-
:param workflow: The workflow name (required)
|
|
178
|
-
:type workflow: str
|
|
179
|
-
:param create_cron_workflow_trigger_request: The input to the cron job workflow trigger (required)
|
|
180
|
-
:type create_cron_workflow_trigger_request: CreateCronWorkflowTriggerRequest
|
|
181
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
182
|
-
number provided, it will be total request
|
|
183
|
-
timeout. It can also be a pair (tuple) of
|
|
184
|
-
(connection, read) timeouts.
|
|
185
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
186
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
187
|
-
request; this effectively ignores the
|
|
188
|
-
authentication in the spec for a single request.
|
|
189
|
-
:type _request_auth: dict, optional
|
|
190
|
-
:param _content_type: force content-type for the request.
|
|
191
|
-
:type _content_type: str, Optional
|
|
192
|
-
:param _headers: set to override the headers for a single
|
|
193
|
-
request; this effectively ignores the headers
|
|
194
|
-
in the spec for a single request.
|
|
195
|
-
:type _headers: dict, optional
|
|
196
|
-
:param _host_index: set to override the host_index for a single
|
|
197
|
-
request; this effectively ignores the host_index
|
|
198
|
-
in the spec for a single request.
|
|
199
|
-
:type _host_index: int, optional
|
|
200
|
-
:return: Returns the result object.
|
|
201
|
-
""" # noqa: E501
|
|
202
|
-
|
|
203
|
-
_param = self._cron_workflow_trigger_create_serialize(
|
|
204
|
-
tenant=tenant,
|
|
205
|
-
workflow=workflow,
|
|
206
|
-
create_cron_workflow_trigger_request=create_cron_workflow_trigger_request,
|
|
207
|
-
_request_auth=_request_auth,
|
|
208
|
-
_content_type=_content_type,
|
|
209
|
-
_headers=_headers,
|
|
210
|
-
_host_index=_host_index,
|
|
211
|
-
)
|
|
212
|
-
|
|
213
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
214
|
-
"200": "CronWorkflows",
|
|
215
|
-
"400": "APIErrors",
|
|
216
|
-
"403": "APIErrors",
|
|
217
|
-
"404": "APIErrors",
|
|
218
|
-
"429": "APIErrors",
|
|
219
|
-
}
|
|
220
|
-
response_data = await self.api_client.call_api(
|
|
221
|
-
*_param, _request_timeout=_request_timeout
|
|
222
|
-
)
|
|
223
|
-
await response_data.read()
|
|
224
|
-
return self.api_client.response_deserialize(
|
|
225
|
-
response_data=response_data,
|
|
226
|
-
response_types_map=_response_types_map,
|
|
227
|
-
)
|
|
228
|
-
|
|
229
|
-
@validate_call
|
|
230
|
-
async def cron_workflow_trigger_create_without_preload_content(
|
|
231
|
-
self,
|
|
232
|
-
tenant: Annotated[
|
|
233
|
-
str,
|
|
234
|
-
Field(
|
|
235
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
236
|
-
),
|
|
237
|
-
],
|
|
238
|
-
workflow: Annotated[StrictStr, Field(description="The workflow name")],
|
|
239
|
-
create_cron_workflow_trigger_request: Annotated[
|
|
240
|
-
CreateCronWorkflowTriggerRequest,
|
|
241
|
-
Field(description="The input to the cron job workflow trigger"),
|
|
242
|
-
],
|
|
243
|
-
_request_timeout: Union[
|
|
244
|
-
None,
|
|
245
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
246
|
-
Tuple[
|
|
247
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
248
|
-
],
|
|
249
|
-
] = None,
|
|
250
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
251
|
-
_content_type: Optional[StrictStr] = None,
|
|
252
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
253
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
254
|
-
) -> RESTResponseType:
|
|
255
|
-
"""Create cron job workflow trigger
|
|
256
|
-
|
|
257
|
-
Create a new cron job workflow trigger for a tenant
|
|
258
|
-
|
|
259
|
-
:param tenant: The tenant id (required)
|
|
260
|
-
:type tenant: str
|
|
261
|
-
:param workflow: The workflow name (required)
|
|
262
|
-
:type workflow: str
|
|
263
|
-
:param create_cron_workflow_trigger_request: The input to the cron job workflow trigger (required)
|
|
264
|
-
:type create_cron_workflow_trigger_request: CreateCronWorkflowTriggerRequest
|
|
265
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
266
|
-
number provided, it will be total request
|
|
267
|
-
timeout. It can also be a pair (tuple) of
|
|
268
|
-
(connection, read) timeouts.
|
|
269
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
270
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
271
|
-
request; this effectively ignores the
|
|
272
|
-
authentication in the spec for a single request.
|
|
273
|
-
:type _request_auth: dict, optional
|
|
274
|
-
:param _content_type: force content-type for the request.
|
|
275
|
-
:type _content_type: str, Optional
|
|
276
|
-
:param _headers: set to override the headers for a single
|
|
277
|
-
request; this effectively ignores the headers
|
|
278
|
-
in the spec for a single request.
|
|
279
|
-
:type _headers: dict, optional
|
|
280
|
-
:param _host_index: set to override the host_index for a single
|
|
281
|
-
request; this effectively ignores the host_index
|
|
282
|
-
in the spec for a single request.
|
|
283
|
-
:type _host_index: int, optional
|
|
284
|
-
:return: Returns the result object.
|
|
285
|
-
""" # noqa: E501
|
|
286
|
-
|
|
287
|
-
_param = self._cron_workflow_trigger_create_serialize(
|
|
288
|
-
tenant=tenant,
|
|
289
|
-
workflow=workflow,
|
|
290
|
-
create_cron_workflow_trigger_request=create_cron_workflow_trigger_request,
|
|
291
|
-
_request_auth=_request_auth,
|
|
292
|
-
_content_type=_content_type,
|
|
293
|
-
_headers=_headers,
|
|
294
|
-
_host_index=_host_index,
|
|
295
|
-
)
|
|
296
|
-
|
|
297
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
298
|
-
"200": "CronWorkflows",
|
|
299
|
-
"400": "APIErrors",
|
|
300
|
-
"403": "APIErrors",
|
|
301
|
-
"404": "APIErrors",
|
|
302
|
-
"429": "APIErrors",
|
|
303
|
-
}
|
|
304
|
-
response_data = await self.api_client.call_api(
|
|
305
|
-
*_param, _request_timeout=_request_timeout
|
|
306
|
-
)
|
|
307
|
-
return response_data.response
|
|
308
|
-
|
|
309
|
-
def _cron_workflow_trigger_create_serialize(
|
|
310
|
-
self,
|
|
311
|
-
tenant,
|
|
312
|
-
workflow,
|
|
313
|
-
create_cron_workflow_trigger_request,
|
|
314
|
-
_request_auth,
|
|
315
|
-
_content_type,
|
|
316
|
-
_headers,
|
|
317
|
-
_host_index,
|
|
318
|
-
) -> RequestSerialized:
|
|
319
|
-
|
|
320
|
-
_host = None
|
|
321
|
-
|
|
322
|
-
_collection_formats: Dict[str, str] = {}
|
|
323
|
-
|
|
324
|
-
_path_params: Dict[str, str] = {}
|
|
325
|
-
_query_params: List[Tuple[str, str]] = []
|
|
326
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
327
|
-
_form_params: List[Tuple[str, str]] = []
|
|
328
|
-
_files: Dict[
|
|
329
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
330
|
-
] = {}
|
|
331
|
-
_body_params: Optional[bytes] = None
|
|
332
|
-
|
|
333
|
-
# process the path parameters
|
|
334
|
-
if tenant is not None:
|
|
335
|
-
_path_params["tenant"] = tenant
|
|
336
|
-
if workflow is not None:
|
|
337
|
-
_path_params["workflow"] = workflow
|
|
338
|
-
# process the query parameters
|
|
339
|
-
# process the header parameters
|
|
340
|
-
# process the form parameters
|
|
341
|
-
# process the body parameter
|
|
342
|
-
if create_cron_workflow_trigger_request is not None:
|
|
343
|
-
_body_params = create_cron_workflow_trigger_request
|
|
344
|
-
|
|
345
|
-
# set the HTTP header `Accept`
|
|
346
|
-
if "Accept" not in _header_params:
|
|
347
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
348
|
-
["application/json"]
|
|
349
|
-
)
|
|
350
|
-
|
|
351
|
-
# set the HTTP header `Content-Type`
|
|
352
|
-
if _content_type:
|
|
353
|
-
_header_params["Content-Type"] = _content_type
|
|
354
|
-
else:
|
|
355
|
-
_default_content_type = self.api_client.select_header_content_type(
|
|
356
|
-
["application/json"]
|
|
357
|
-
)
|
|
358
|
-
if _default_content_type is not None:
|
|
359
|
-
_header_params["Content-Type"] = _default_content_type
|
|
360
|
-
|
|
361
|
-
# authentication setting
|
|
362
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
363
|
-
|
|
364
|
-
return self.api_client.param_serialize(
|
|
365
|
-
method="POST",
|
|
366
|
-
resource_path="/api/v1/tenants/{tenant}/workflows/{workflow}/crons",
|
|
367
|
-
path_params=_path_params,
|
|
368
|
-
query_params=_query_params,
|
|
369
|
-
header_params=_header_params,
|
|
370
|
-
body=_body_params,
|
|
371
|
-
post_params=_form_params,
|
|
372
|
-
files=_files,
|
|
373
|
-
auth_settings=_auth_settings,
|
|
374
|
-
collection_formats=_collection_formats,
|
|
375
|
-
_host=_host,
|
|
376
|
-
_request_auth=_request_auth,
|
|
377
|
-
)
|
|
378
|
-
|
|
379
|
-
@validate_call
|
|
380
|
-
async def scheduled_workflow_run_create(
|
|
381
|
-
self,
|
|
382
|
-
tenant: Annotated[
|
|
383
|
-
str,
|
|
384
|
-
Field(
|
|
385
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
386
|
-
),
|
|
387
|
-
],
|
|
388
|
-
workflow: Annotated[StrictStr, Field(description="The workflow name")],
|
|
389
|
-
schedule_workflow_run_request: Annotated[
|
|
390
|
-
ScheduleWorkflowRunRequest,
|
|
391
|
-
Field(description="The input to the scheduled workflow run"),
|
|
392
|
-
],
|
|
393
|
-
_request_timeout: Union[
|
|
394
|
-
None,
|
|
395
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
396
|
-
Tuple[
|
|
397
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
398
|
-
],
|
|
399
|
-
] = None,
|
|
400
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
401
|
-
_content_type: Optional[StrictStr] = None,
|
|
402
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
403
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
404
|
-
) -> ScheduledWorkflows:
|
|
405
|
-
"""Trigger workflow run
|
|
406
|
-
|
|
407
|
-
Schedule a new workflow run for a tenant
|
|
408
|
-
|
|
409
|
-
:param tenant: The tenant id (required)
|
|
410
|
-
:type tenant: str
|
|
411
|
-
:param workflow: The workflow name (required)
|
|
412
|
-
:type workflow: str
|
|
413
|
-
:param schedule_workflow_run_request: The input to the scheduled workflow run (required)
|
|
414
|
-
:type schedule_workflow_run_request: ScheduleWorkflowRunRequest
|
|
415
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
416
|
-
number provided, it will be total request
|
|
417
|
-
timeout. It can also be a pair (tuple) of
|
|
418
|
-
(connection, read) timeouts.
|
|
419
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
420
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
421
|
-
request; this effectively ignores the
|
|
422
|
-
authentication in the spec for a single request.
|
|
423
|
-
:type _request_auth: dict, optional
|
|
424
|
-
:param _content_type: force content-type for the request.
|
|
425
|
-
:type _content_type: str, Optional
|
|
426
|
-
:param _headers: set to override the headers for a single
|
|
427
|
-
request; this effectively ignores the headers
|
|
428
|
-
in the spec for a single request.
|
|
429
|
-
:type _headers: dict, optional
|
|
430
|
-
:param _host_index: set to override the host_index for a single
|
|
431
|
-
request; this effectively ignores the host_index
|
|
432
|
-
in the spec for a single request.
|
|
433
|
-
:type _host_index: int, optional
|
|
434
|
-
:return: Returns the result object.
|
|
435
|
-
""" # noqa: E501
|
|
436
|
-
|
|
437
|
-
_param = self._scheduled_workflow_run_create_serialize(
|
|
438
|
-
tenant=tenant,
|
|
439
|
-
workflow=workflow,
|
|
440
|
-
schedule_workflow_run_request=schedule_workflow_run_request,
|
|
441
|
-
_request_auth=_request_auth,
|
|
442
|
-
_content_type=_content_type,
|
|
443
|
-
_headers=_headers,
|
|
444
|
-
_host_index=_host_index,
|
|
445
|
-
)
|
|
446
|
-
|
|
447
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
448
|
-
"200": "ScheduledWorkflows",
|
|
449
|
-
"400": "APIErrors",
|
|
450
|
-
"403": "APIErrors",
|
|
451
|
-
"404": "APIErrors",
|
|
452
|
-
"429": "APIErrors",
|
|
453
|
-
}
|
|
454
|
-
response_data = await self.api_client.call_api(
|
|
455
|
-
*_param, _request_timeout=_request_timeout
|
|
456
|
-
)
|
|
457
|
-
await response_data.read()
|
|
458
|
-
return self.api_client.response_deserialize(
|
|
459
|
-
response_data=response_data,
|
|
460
|
-
response_types_map=_response_types_map,
|
|
461
|
-
).data
|
|
462
|
-
|
|
463
|
-
@validate_call
|
|
464
|
-
async def scheduled_workflow_run_create_with_http_info(
|
|
465
|
-
self,
|
|
466
|
-
tenant: Annotated[
|
|
467
|
-
str,
|
|
468
|
-
Field(
|
|
469
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
470
|
-
),
|
|
471
|
-
],
|
|
472
|
-
workflow: Annotated[StrictStr, Field(description="The workflow name")],
|
|
473
|
-
schedule_workflow_run_request: Annotated[
|
|
474
|
-
ScheduleWorkflowRunRequest,
|
|
475
|
-
Field(description="The input to the scheduled workflow run"),
|
|
476
|
-
],
|
|
477
|
-
_request_timeout: Union[
|
|
478
|
-
None,
|
|
479
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
480
|
-
Tuple[
|
|
481
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
482
|
-
],
|
|
483
|
-
] = None,
|
|
484
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
485
|
-
_content_type: Optional[StrictStr] = None,
|
|
486
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
487
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
488
|
-
) -> ApiResponse[ScheduledWorkflows]:
|
|
489
|
-
"""Trigger workflow run
|
|
490
|
-
|
|
491
|
-
Schedule a new workflow run for a tenant
|
|
492
|
-
|
|
493
|
-
:param tenant: The tenant id (required)
|
|
494
|
-
:type tenant: str
|
|
495
|
-
:param workflow: The workflow name (required)
|
|
496
|
-
:type workflow: str
|
|
497
|
-
:param schedule_workflow_run_request: The input to the scheduled workflow run (required)
|
|
498
|
-
:type schedule_workflow_run_request: ScheduleWorkflowRunRequest
|
|
499
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
500
|
-
number provided, it will be total request
|
|
501
|
-
timeout. It can also be a pair (tuple) of
|
|
502
|
-
(connection, read) timeouts.
|
|
503
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
504
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
505
|
-
request; this effectively ignores the
|
|
506
|
-
authentication in the spec for a single request.
|
|
507
|
-
:type _request_auth: dict, optional
|
|
508
|
-
:param _content_type: force content-type for the request.
|
|
509
|
-
:type _content_type: str, Optional
|
|
510
|
-
:param _headers: set to override the headers for a single
|
|
511
|
-
request; this effectively ignores the headers
|
|
512
|
-
in the spec for a single request.
|
|
513
|
-
:type _headers: dict, optional
|
|
514
|
-
:param _host_index: set to override the host_index for a single
|
|
515
|
-
request; this effectively ignores the host_index
|
|
516
|
-
in the spec for a single request.
|
|
517
|
-
:type _host_index: int, optional
|
|
518
|
-
:return: Returns the result object.
|
|
519
|
-
""" # noqa: E501
|
|
520
|
-
|
|
521
|
-
_param = self._scheduled_workflow_run_create_serialize(
|
|
522
|
-
tenant=tenant,
|
|
523
|
-
workflow=workflow,
|
|
524
|
-
schedule_workflow_run_request=schedule_workflow_run_request,
|
|
525
|
-
_request_auth=_request_auth,
|
|
526
|
-
_content_type=_content_type,
|
|
527
|
-
_headers=_headers,
|
|
528
|
-
_host_index=_host_index,
|
|
529
|
-
)
|
|
530
|
-
|
|
531
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
532
|
-
"200": "ScheduledWorkflows",
|
|
533
|
-
"400": "APIErrors",
|
|
534
|
-
"403": "APIErrors",
|
|
535
|
-
"404": "APIErrors",
|
|
536
|
-
"429": "APIErrors",
|
|
537
|
-
}
|
|
538
|
-
response_data = await self.api_client.call_api(
|
|
539
|
-
*_param, _request_timeout=_request_timeout
|
|
540
|
-
)
|
|
541
|
-
await response_data.read()
|
|
542
|
-
return self.api_client.response_deserialize(
|
|
543
|
-
response_data=response_data,
|
|
544
|
-
response_types_map=_response_types_map,
|
|
545
|
-
)
|
|
546
|
-
|
|
547
|
-
@validate_call
|
|
548
|
-
async def scheduled_workflow_run_create_without_preload_content(
|
|
549
|
-
self,
|
|
550
|
-
tenant: Annotated[
|
|
551
|
-
str,
|
|
552
|
-
Field(
|
|
553
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
554
|
-
),
|
|
555
|
-
],
|
|
556
|
-
workflow: Annotated[StrictStr, Field(description="The workflow name")],
|
|
557
|
-
schedule_workflow_run_request: Annotated[
|
|
558
|
-
ScheduleWorkflowRunRequest,
|
|
559
|
-
Field(description="The input to the scheduled workflow run"),
|
|
560
|
-
],
|
|
561
|
-
_request_timeout: Union[
|
|
562
|
-
None,
|
|
563
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
564
|
-
Tuple[
|
|
565
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
566
|
-
],
|
|
567
|
-
] = None,
|
|
568
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
569
|
-
_content_type: Optional[StrictStr] = None,
|
|
570
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
571
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
572
|
-
) -> RESTResponseType:
|
|
573
|
-
"""Trigger workflow run
|
|
574
|
-
|
|
575
|
-
Schedule a new workflow run for a tenant
|
|
576
|
-
|
|
577
|
-
:param tenant: The tenant id (required)
|
|
578
|
-
:type tenant: str
|
|
579
|
-
:param workflow: The workflow name (required)
|
|
580
|
-
:type workflow: str
|
|
581
|
-
:param schedule_workflow_run_request: The input to the scheduled workflow run (required)
|
|
582
|
-
:type schedule_workflow_run_request: ScheduleWorkflowRunRequest
|
|
583
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
584
|
-
number provided, it will be total request
|
|
585
|
-
timeout. It can also be a pair (tuple) of
|
|
586
|
-
(connection, read) timeouts.
|
|
587
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
588
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
589
|
-
request; this effectively ignores the
|
|
590
|
-
authentication in the spec for a single request.
|
|
591
|
-
:type _request_auth: dict, optional
|
|
592
|
-
:param _content_type: force content-type for the request.
|
|
593
|
-
:type _content_type: str, Optional
|
|
594
|
-
:param _headers: set to override the headers for a single
|
|
595
|
-
request; this effectively ignores the headers
|
|
596
|
-
in the spec for a single request.
|
|
597
|
-
:type _headers: dict, optional
|
|
598
|
-
:param _host_index: set to override the host_index for a single
|
|
599
|
-
request; this effectively ignores the host_index
|
|
600
|
-
in the spec for a single request.
|
|
601
|
-
:type _host_index: int, optional
|
|
602
|
-
:return: Returns the result object.
|
|
603
|
-
""" # noqa: E501
|
|
604
|
-
|
|
605
|
-
_param = self._scheduled_workflow_run_create_serialize(
|
|
606
|
-
tenant=tenant,
|
|
607
|
-
workflow=workflow,
|
|
608
|
-
schedule_workflow_run_request=schedule_workflow_run_request,
|
|
609
|
-
_request_auth=_request_auth,
|
|
610
|
-
_content_type=_content_type,
|
|
611
|
-
_headers=_headers,
|
|
612
|
-
_host_index=_host_index,
|
|
613
|
-
)
|
|
614
|
-
|
|
615
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
616
|
-
"200": "ScheduledWorkflows",
|
|
617
|
-
"400": "APIErrors",
|
|
618
|
-
"403": "APIErrors",
|
|
619
|
-
"404": "APIErrors",
|
|
620
|
-
"429": "APIErrors",
|
|
621
|
-
}
|
|
622
|
-
response_data = await self.api_client.call_api(
|
|
623
|
-
*_param, _request_timeout=_request_timeout
|
|
624
|
-
)
|
|
625
|
-
return response_data.response
|
|
626
|
-
|
|
627
|
-
def _scheduled_workflow_run_create_serialize(
|
|
628
|
-
self,
|
|
629
|
-
tenant,
|
|
630
|
-
workflow,
|
|
631
|
-
schedule_workflow_run_request,
|
|
632
|
-
_request_auth,
|
|
633
|
-
_content_type,
|
|
634
|
-
_headers,
|
|
635
|
-
_host_index,
|
|
636
|
-
) -> RequestSerialized:
|
|
637
|
-
|
|
638
|
-
_host = None
|
|
639
|
-
|
|
640
|
-
_collection_formats: Dict[str, str] = {}
|
|
641
|
-
|
|
642
|
-
_path_params: Dict[str, str] = {}
|
|
643
|
-
_query_params: List[Tuple[str, str]] = []
|
|
644
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
645
|
-
_form_params: List[Tuple[str, str]] = []
|
|
646
|
-
_files: Dict[
|
|
647
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
648
|
-
] = {}
|
|
649
|
-
_body_params: Optional[bytes] = None
|
|
650
|
-
|
|
651
|
-
# process the path parameters
|
|
652
|
-
if tenant is not None:
|
|
653
|
-
_path_params["tenant"] = tenant
|
|
654
|
-
if workflow is not None:
|
|
655
|
-
_path_params["workflow"] = workflow
|
|
656
|
-
# process the query parameters
|
|
657
|
-
# process the header parameters
|
|
658
|
-
# process the form parameters
|
|
659
|
-
# process the body parameter
|
|
660
|
-
if schedule_workflow_run_request is not None:
|
|
661
|
-
_body_params = schedule_workflow_run_request
|
|
662
|
-
|
|
663
|
-
# set the HTTP header `Accept`
|
|
664
|
-
if "Accept" not in _header_params:
|
|
665
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
666
|
-
["application/json"]
|
|
667
|
-
)
|
|
668
|
-
|
|
669
|
-
# set the HTTP header `Content-Type`
|
|
670
|
-
if _content_type:
|
|
671
|
-
_header_params["Content-Type"] = _content_type
|
|
672
|
-
else:
|
|
673
|
-
_default_content_type = self.api_client.select_header_content_type(
|
|
674
|
-
["application/json"]
|
|
675
|
-
)
|
|
676
|
-
if _default_content_type is not None:
|
|
677
|
-
_header_params["Content-Type"] = _default_content_type
|
|
678
|
-
|
|
679
|
-
# authentication setting
|
|
680
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
681
|
-
|
|
682
|
-
return self.api_client.param_serialize(
|
|
683
|
-
method="POST",
|
|
684
|
-
resource_path="/api/v1/tenants/{tenant}/workflows/{workflow}/scheduled",
|
|
685
|
-
path_params=_path_params,
|
|
686
|
-
query_params=_query_params,
|
|
687
|
-
header_params=_header_params,
|
|
688
|
-
body=_body_params,
|
|
689
|
-
post_params=_form_params,
|
|
690
|
-
files=_files,
|
|
691
|
-
auth_settings=_auth_settings,
|
|
692
|
-
collection_formats=_collection_formats,
|
|
693
|
-
_host=_host,
|
|
694
|
-
_request_auth=_request_auth,
|
|
695
|
-
)
|
|
696
|
-
|
|
697
|
-
@validate_call
|
|
698
|
-
async def workflow_run_cancel(
|
|
699
|
-
self,
|
|
700
|
-
tenant: Annotated[
|
|
701
|
-
str,
|
|
702
|
-
Field(
|
|
703
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
704
|
-
),
|
|
705
|
-
],
|
|
706
|
-
workflow_runs_cancel_request: Annotated[
|
|
707
|
-
WorkflowRunsCancelRequest,
|
|
708
|
-
Field(description="The input to cancel the workflow runs"),
|
|
709
|
-
],
|
|
710
|
-
_request_timeout: Union[
|
|
711
|
-
None,
|
|
712
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
713
|
-
Tuple[
|
|
714
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
715
|
-
],
|
|
716
|
-
] = None,
|
|
717
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
718
|
-
_content_type: Optional[StrictStr] = None,
|
|
719
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
720
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
721
|
-
) -> EventUpdateCancel200Response:
|
|
722
|
-
"""Cancel workflow runs
|
|
723
|
-
|
|
724
|
-
Cancel a batch of workflow runs
|
|
725
|
-
|
|
726
|
-
:param tenant: The tenant id (required)
|
|
727
|
-
:type tenant: str
|
|
728
|
-
:param workflow_runs_cancel_request: The input to cancel the workflow runs (required)
|
|
729
|
-
:type workflow_runs_cancel_request: WorkflowRunsCancelRequest
|
|
730
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
731
|
-
number provided, it will be total request
|
|
732
|
-
timeout. It can also be a pair (tuple) of
|
|
733
|
-
(connection, read) timeouts.
|
|
734
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
735
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
736
|
-
request; this effectively ignores the
|
|
737
|
-
authentication in the spec for a single request.
|
|
738
|
-
:type _request_auth: dict, optional
|
|
739
|
-
:param _content_type: force content-type for the request.
|
|
740
|
-
:type _content_type: str, Optional
|
|
741
|
-
:param _headers: set to override the headers for a single
|
|
742
|
-
request; this effectively ignores the headers
|
|
743
|
-
in the spec for a single request.
|
|
744
|
-
:type _headers: dict, optional
|
|
745
|
-
:param _host_index: set to override the host_index for a single
|
|
746
|
-
request; this effectively ignores the host_index
|
|
747
|
-
in the spec for a single request.
|
|
748
|
-
:type _host_index: int, optional
|
|
749
|
-
:return: Returns the result object.
|
|
750
|
-
""" # noqa: E501
|
|
751
|
-
|
|
752
|
-
_param = self._workflow_run_cancel_serialize(
|
|
753
|
-
tenant=tenant,
|
|
754
|
-
workflow_runs_cancel_request=workflow_runs_cancel_request,
|
|
755
|
-
_request_auth=_request_auth,
|
|
756
|
-
_content_type=_content_type,
|
|
757
|
-
_headers=_headers,
|
|
758
|
-
_host_index=_host_index,
|
|
759
|
-
)
|
|
760
|
-
|
|
761
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
762
|
-
"200": "EventUpdateCancel200Response",
|
|
763
|
-
"400": "APIErrors",
|
|
764
|
-
"403": "APIErrors",
|
|
765
|
-
}
|
|
766
|
-
response_data = await self.api_client.call_api(
|
|
767
|
-
*_param, _request_timeout=_request_timeout
|
|
768
|
-
)
|
|
769
|
-
await response_data.read()
|
|
770
|
-
return self.api_client.response_deserialize(
|
|
771
|
-
response_data=response_data,
|
|
772
|
-
response_types_map=_response_types_map,
|
|
773
|
-
).data
|
|
774
|
-
|
|
775
|
-
@validate_call
|
|
776
|
-
async def workflow_run_cancel_with_http_info(
|
|
777
|
-
self,
|
|
778
|
-
tenant: Annotated[
|
|
779
|
-
str,
|
|
780
|
-
Field(
|
|
781
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
782
|
-
),
|
|
783
|
-
],
|
|
784
|
-
workflow_runs_cancel_request: Annotated[
|
|
785
|
-
WorkflowRunsCancelRequest,
|
|
786
|
-
Field(description="The input to cancel the workflow runs"),
|
|
787
|
-
],
|
|
788
|
-
_request_timeout: Union[
|
|
789
|
-
None,
|
|
790
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
791
|
-
Tuple[
|
|
792
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
793
|
-
],
|
|
794
|
-
] = None,
|
|
795
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
796
|
-
_content_type: Optional[StrictStr] = None,
|
|
797
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
798
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
799
|
-
) -> ApiResponse[EventUpdateCancel200Response]:
|
|
800
|
-
"""Cancel workflow runs
|
|
801
|
-
|
|
802
|
-
Cancel a batch of workflow runs
|
|
803
|
-
|
|
804
|
-
:param tenant: The tenant id (required)
|
|
805
|
-
:type tenant: str
|
|
806
|
-
:param workflow_runs_cancel_request: The input to cancel the workflow runs (required)
|
|
807
|
-
:type workflow_runs_cancel_request: WorkflowRunsCancelRequest
|
|
808
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
809
|
-
number provided, it will be total request
|
|
810
|
-
timeout. It can also be a pair (tuple) of
|
|
811
|
-
(connection, read) timeouts.
|
|
812
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
813
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
814
|
-
request; this effectively ignores the
|
|
815
|
-
authentication in the spec for a single request.
|
|
816
|
-
:type _request_auth: dict, optional
|
|
817
|
-
:param _content_type: force content-type for the request.
|
|
818
|
-
:type _content_type: str, Optional
|
|
819
|
-
:param _headers: set to override the headers for a single
|
|
820
|
-
request; this effectively ignores the headers
|
|
821
|
-
in the spec for a single request.
|
|
822
|
-
:type _headers: dict, optional
|
|
823
|
-
:param _host_index: set to override the host_index for a single
|
|
824
|
-
request; this effectively ignores the host_index
|
|
825
|
-
in the spec for a single request.
|
|
826
|
-
:type _host_index: int, optional
|
|
827
|
-
:return: Returns the result object.
|
|
828
|
-
""" # noqa: E501
|
|
829
|
-
|
|
830
|
-
_param = self._workflow_run_cancel_serialize(
|
|
831
|
-
tenant=tenant,
|
|
832
|
-
workflow_runs_cancel_request=workflow_runs_cancel_request,
|
|
833
|
-
_request_auth=_request_auth,
|
|
834
|
-
_content_type=_content_type,
|
|
835
|
-
_headers=_headers,
|
|
836
|
-
_host_index=_host_index,
|
|
837
|
-
)
|
|
838
|
-
|
|
839
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
840
|
-
"200": "EventUpdateCancel200Response",
|
|
841
|
-
"400": "APIErrors",
|
|
842
|
-
"403": "APIErrors",
|
|
843
|
-
}
|
|
844
|
-
response_data = await self.api_client.call_api(
|
|
845
|
-
*_param, _request_timeout=_request_timeout
|
|
846
|
-
)
|
|
847
|
-
await response_data.read()
|
|
848
|
-
return self.api_client.response_deserialize(
|
|
849
|
-
response_data=response_data,
|
|
850
|
-
response_types_map=_response_types_map,
|
|
851
|
-
)
|
|
852
|
-
|
|
853
|
-
@validate_call
|
|
854
|
-
async def workflow_run_cancel_without_preload_content(
|
|
855
|
-
self,
|
|
856
|
-
tenant: Annotated[
|
|
857
|
-
str,
|
|
858
|
-
Field(
|
|
859
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
860
|
-
),
|
|
861
|
-
],
|
|
862
|
-
workflow_runs_cancel_request: Annotated[
|
|
863
|
-
WorkflowRunsCancelRequest,
|
|
864
|
-
Field(description="The input to cancel the workflow runs"),
|
|
865
|
-
],
|
|
866
|
-
_request_timeout: Union[
|
|
867
|
-
None,
|
|
868
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
869
|
-
Tuple[
|
|
870
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
871
|
-
],
|
|
872
|
-
] = None,
|
|
873
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
874
|
-
_content_type: Optional[StrictStr] = None,
|
|
875
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
876
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
877
|
-
) -> RESTResponseType:
|
|
878
|
-
"""Cancel workflow runs
|
|
879
|
-
|
|
880
|
-
Cancel a batch of workflow runs
|
|
881
|
-
|
|
882
|
-
:param tenant: The tenant id (required)
|
|
883
|
-
:type tenant: str
|
|
884
|
-
:param workflow_runs_cancel_request: The input to cancel the workflow runs (required)
|
|
885
|
-
:type workflow_runs_cancel_request: WorkflowRunsCancelRequest
|
|
886
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
887
|
-
number provided, it will be total request
|
|
888
|
-
timeout. It can also be a pair (tuple) of
|
|
889
|
-
(connection, read) timeouts.
|
|
890
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
891
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
892
|
-
request; this effectively ignores the
|
|
893
|
-
authentication in the spec for a single request.
|
|
894
|
-
:type _request_auth: dict, optional
|
|
895
|
-
:param _content_type: force content-type for the request.
|
|
896
|
-
:type _content_type: str, Optional
|
|
897
|
-
:param _headers: set to override the headers for a single
|
|
898
|
-
request; this effectively ignores the headers
|
|
899
|
-
in the spec for a single request.
|
|
900
|
-
:type _headers: dict, optional
|
|
901
|
-
:param _host_index: set to override the host_index for a single
|
|
902
|
-
request; this effectively ignores the host_index
|
|
903
|
-
in the spec for a single request.
|
|
904
|
-
:type _host_index: int, optional
|
|
905
|
-
:return: Returns the result object.
|
|
906
|
-
""" # noqa: E501
|
|
907
|
-
|
|
908
|
-
_param = self._workflow_run_cancel_serialize(
|
|
909
|
-
tenant=tenant,
|
|
910
|
-
workflow_runs_cancel_request=workflow_runs_cancel_request,
|
|
911
|
-
_request_auth=_request_auth,
|
|
912
|
-
_content_type=_content_type,
|
|
913
|
-
_headers=_headers,
|
|
914
|
-
_host_index=_host_index,
|
|
915
|
-
)
|
|
916
|
-
|
|
917
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
918
|
-
"200": "EventUpdateCancel200Response",
|
|
919
|
-
"400": "APIErrors",
|
|
920
|
-
"403": "APIErrors",
|
|
921
|
-
}
|
|
922
|
-
response_data = await self.api_client.call_api(
|
|
923
|
-
*_param, _request_timeout=_request_timeout
|
|
924
|
-
)
|
|
925
|
-
return response_data.response
|
|
926
|
-
|
|
927
|
-
def _workflow_run_cancel_serialize(
|
|
928
|
-
self,
|
|
929
|
-
tenant,
|
|
930
|
-
workflow_runs_cancel_request,
|
|
931
|
-
_request_auth,
|
|
932
|
-
_content_type,
|
|
933
|
-
_headers,
|
|
934
|
-
_host_index,
|
|
935
|
-
) -> RequestSerialized:
|
|
936
|
-
|
|
937
|
-
_host = None
|
|
938
|
-
|
|
939
|
-
_collection_formats: Dict[str, str] = {}
|
|
940
|
-
|
|
941
|
-
_path_params: Dict[str, str] = {}
|
|
942
|
-
_query_params: List[Tuple[str, str]] = []
|
|
943
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
944
|
-
_form_params: List[Tuple[str, str]] = []
|
|
945
|
-
_files: Dict[
|
|
946
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
947
|
-
] = {}
|
|
948
|
-
_body_params: Optional[bytes] = None
|
|
949
|
-
|
|
950
|
-
# process the path parameters
|
|
951
|
-
if tenant is not None:
|
|
952
|
-
_path_params["tenant"] = tenant
|
|
953
|
-
# process the query parameters
|
|
954
|
-
# process the header parameters
|
|
955
|
-
# process the form parameters
|
|
956
|
-
# process the body parameter
|
|
957
|
-
if workflow_runs_cancel_request is not None:
|
|
958
|
-
_body_params = workflow_runs_cancel_request
|
|
959
|
-
|
|
960
|
-
# set the HTTP header `Accept`
|
|
961
|
-
if "Accept" not in _header_params:
|
|
962
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
963
|
-
["application/json"]
|
|
964
|
-
)
|
|
965
|
-
|
|
966
|
-
# set the HTTP header `Content-Type`
|
|
967
|
-
if _content_type:
|
|
968
|
-
_header_params["Content-Type"] = _content_type
|
|
969
|
-
else:
|
|
970
|
-
_default_content_type = self.api_client.select_header_content_type(
|
|
971
|
-
["application/json"]
|
|
972
|
-
)
|
|
973
|
-
if _default_content_type is not None:
|
|
974
|
-
_header_params["Content-Type"] = _default_content_type
|
|
975
|
-
|
|
976
|
-
# authentication setting
|
|
977
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
978
|
-
|
|
979
|
-
return self.api_client.param_serialize(
|
|
980
|
-
method="POST",
|
|
981
|
-
resource_path="/api/v1/tenants/{tenant}/workflows/cancel",
|
|
982
|
-
path_params=_path_params,
|
|
983
|
-
query_params=_query_params,
|
|
984
|
-
header_params=_header_params,
|
|
985
|
-
body=_body_params,
|
|
986
|
-
post_params=_form_params,
|
|
987
|
-
files=_files,
|
|
988
|
-
auth_settings=_auth_settings,
|
|
989
|
-
collection_formats=_collection_formats,
|
|
990
|
-
_host=_host,
|
|
991
|
-
_request_auth=_request_auth,
|
|
992
|
-
)
|
|
993
|
-
|
|
994
|
-
@validate_call
|
|
995
|
-
async def workflow_run_create(
|
|
996
|
-
self,
|
|
997
|
-
workflow: Annotated[
|
|
998
|
-
str,
|
|
999
|
-
Field(
|
|
1000
|
-
min_length=36, strict=True, max_length=36, description="The workflow id"
|
|
1001
|
-
),
|
|
1002
|
-
],
|
|
1003
|
-
trigger_workflow_run_request: Annotated[
|
|
1004
|
-
TriggerWorkflowRunRequest,
|
|
1005
|
-
Field(description="The input to the workflow run"),
|
|
1006
|
-
],
|
|
1007
|
-
version: Annotated[
|
|
1008
|
-
Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]],
|
|
1009
|
-
Field(
|
|
1010
|
-
description="The workflow version. If not supplied, the latest version is fetched."
|
|
1011
|
-
),
|
|
1012
|
-
] = None,
|
|
1013
|
-
_request_timeout: Union[
|
|
1014
|
-
None,
|
|
1015
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1016
|
-
Tuple[
|
|
1017
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1018
|
-
],
|
|
1019
|
-
] = None,
|
|
1020
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1021
|
-
_content_type: Optional[StrictStr] = None,
|
|
1022
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1023
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1024
|
-
) -> WorkflowRun:
|
|
1025
|
-
"""Trigger workflow run
|
|
1026
|
-
|
|
1027
|
-
Trigger a new workflow run for a tenant
|
|
1028
|
-
|
|
1029
|
-
:param workflow: The workflow id (required)
|
|
1030
|
-
:type workflow: str
|
|
1031
|
-
:param trigger_workflow_run_request: The input to the workflow run (required)
|
|
1032
|
-
:type trigger_workflow_run_request: TriggerWorkflowRunRequest
|
|
1033
|
-
:param version: The workflow version. If not supplied, the latest version is fetched.
|
|
1034
|
-
:type version: str
|
|
1035
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1036
|
-
number provided, it will be total request
|
|
1037
|
-
timeout. It can also be a pair (tuple) of
|
|
1038
|
-
(connection, read) timeouts.
|
|
1039
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1040
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1041
|
-
request; this effectively ignores the
|
|
1042
|
-
authentication in the spec for a single request.
|
|
1043
|
-
:type _request_auth: dict, optional
|
|
1044
|
-
:param _content_type: force content-type for the request.
|
|
1045
|
-
:type _content_type: str, Optional
|
|
1046
|
-
:param _headers: set to override the headers for a single
|
|
1047
|
-
request; this effectively ignores the headers
|
|
1048
|
-
in the spec for a single request.
|
|
1049
|
-
:type _headers: dict, optional
|
|
1050
|
-
:param _host_index: set to override the host_index for a single
|
|
1051
|
-
request; this effectively ignores the host_index
|
|
1052
|
-
in the spec for a single request.
|
|
1053
|
-
:type _host_index: int, optional
|
|
1054
|
-
:return: Returns the result object.
|
|
1055
|
-
""" # noqa: E501
|
|
1056
|
-
|
|
1057
|
-
_param = self._workflow_run_create_serialize(
|
|
1058
|
-
workflow=workflow,
|
|
1059
|
-
trigger_workflow_run_request=trigger_workflow_run_request,
|
|
1060
|
-
version=version,
|
|
1061
|
-
_request_auth=_request_auth,
|
|
1062
|
-
_content_type=_content_type,
|
|
1063
|
-
_headers=_headers,
|
|
1064
|
-
_host_index=_host_index,
|
|
1065
|
-
)
|
|
1066
|
-
|
|
1067
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1068
|
-
"200": "WorkflowRun",
|
|
1069
|
-
"400": "APIErrors",
|
|
1070
|
-
"403": "APIErrors",
|
|
1071
|
-
"404": "APIErrors",
|
|
1072
|
-
"429": "APIErrors",
|
|
1073
|
-
}
|
|
1074
|
-
response_data = await self.api_client.call_api(
|
|
1075
|
-
*_param, _request_timeout=_request_timeout
|
|
1076
|
-
)
|
|
1077
|
-
await response_data.read()
|
|
1078
|
-
return self.api_client.response_deserialize(
|
|
1079
|
-
response_data=response_data,
|
|
1080
|
-
response_types_map=_response_types_map,
|
|
1081
|
-
).data
|
|
1082
|
-
|
|
1083
|
-
@validate_call
|
|
1084
|
-
async def workflow_run_create_with_http_info(
|
|
1085
|
-
self,
|
|
1086
|
-
workflow: Annotated[
|
|
1087
|
-
str,
|
|
1088
|
-
Field(
|
|
1089
|
-
min_length=36, strict=True, max_length=36, description="The workflow id"
|
|
1090
|
-
),
|
|
1091
|
-
],
|
|
1092
|
-
trigger_workflow_run_request: Annotated[
|
|
1093
|
-
TriggerWorkflowRunRequest,
|
|
1094
|
-
Field(description="The input to the workflow run"),
|
|
1095
|
-
],
|
|
1096
|
-
version: Annotated[
|
|
1097
|
-
Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]],
|
|
1098
|
-
Field(
|
|
1099
|
-
description="The workflow version. If not supplied, the latest version is fetched."
|
|
1100
|
-
),
|
|
1101
|
-
] = None,
|
|
1102
|
-
_request_timeout: Union[
|
|
1103
|
-
None,
|
|
1104
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1105
|
-
Tuple[
|
|
1106
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1107
|
-
],
|
|
1108
|
-
] = None,
|
|
1109
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1110
|
-
_content_type: Optional[StrictStr] = None,
|
|
1111
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1112
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1113
|
-
) -> ApiResponse[WorkflowRun]:
|
|
1114
|
-
"""Trigger workflow run
|
|
1115
|
-
|
|
1116
|
-
Trigger a new workflow run for a tenant
|
|
1117
|
-
|
|
1118
|
-
:param workflow: The workflow id (required)
|
|
1119
|
-
:type workflow: str
|
|
1120
|
-
:param trigger_workflow_run_request: The input to the workflow run (required)
|
|
1121
|
-
:type trigger_workflow_run_request: TriggerWorkflowRunRequest
|
|
1122
|
-
:param version: The workflow version. If not supplied, the latest version is fetched.
|
|
1123
|
-
:type version: str
|
|
1124
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1125
|
-
number provided, it will be total request
|
|
1126
|
-
timeout. It can also be a pair (tuple) of
|
|
1127
|
-
(connection, read) timeouts.
|
|
1128
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1129
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1130
|
-
request; this effectively ignores the
|
|
1131
|
-
authentication in the spec for a single request.
|
|
1132
|
-
:type _request_auth: dict, optional
|
|
1133
|
-
:param _content_type: force content-type for the request.
|
|
1134
|
-
:type _content_type: str, Optional
|
|
1135
|
-
:param _headers: set to override the headers for a single
|
|
1136
|
-
request; this effectively ignores the headers
|
|
1137
|
-
in the spec for a single request.
|
|
1138
|
-
:type _headers: dict, optional
|
|
1139
|
-
:param _host_index: set to override the host_index for a single
|
|
1140
|
-
request; this effectively ignores the host_index
|
|
1141
|
-
in the spec for a single request.
|
|
1142
|
-
:type _host_index: int, optional
|
|
1143
|
-
:return: Returns the result object.
|
|
1144
|
-
""" # noqa: E501
|
|
1145
|
-
|
|
1146
|
-
_param = self._workflow_run_create_serialize(
|
|
1147
|
-
workflow=workflow,
|
|
1148
|
-
trigger_workflow_run_request=trigger_workflow_run_request,
|
|
1149
|
-
version=version,
|
|
1150
|
-
_request_auth=_request_auth,
|
|
1151
|
-
_content_type=_content_type,
|
|
1152
|
-
_headers=_headers,
|
|
1153
|
-
_host_index=_host_index,
|
|
1154
|
-
)
|
|
1155
|
-
|
|
1156
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1157
|
-
"200": "WorkflowRun",
|
|
1158
|
-
"400": "APIErrors",
|
|
1159
|
-
"403": "APIErrors",
|
|
1160
|
-
"404": "APIErrors",
|
|
1161
|
-
"429": "APIErrors",
|
|
1162
|
-
}
|
|
1163
|
-
response_data = await self.api_client.call_api(
|
|
1164
|
-
*_param, _request_timeout=_request_timeout
|
|
1165
|
-
)
|
|
1166
|
-
await response_data.read()
|
|
1167
|
-
return self.api_client.response_deserialize(
|
|
1168
|
-
response_data=response_data,
|
|
1169
|
-
response_types_map=_response_types_map,
|
|
1170
|
-
)
|
|
1171
|
-
|
|
1172
|
-
@validate_call
|
|
1173
|
-
async def workflow_run_create_without_preload_content(
|
|
1174
|
-
self,
|
|
1175
|
-
workflow: Annotated[
|
|
1176
|
-
str,
|
|
1177
|
-
Field(
|
|
1178
|
-
min_length=36, strict=True, max_length=36, description="The workflow id"
|
|
1179
|
-
),
|
|
1180
|
-
],
|
|
1181
|
-
trigger_workflow_run_request: Annotated[
|
|
1182
|
-
TriggerWorkflowRunRequest,
|
|
1183
|
-
Field(description="The input to the workflow run"),
|
|
1184
|
-
],
|
|
1185
|
-
version: Annotated[
|
|
1186
|
-
Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]],
|
|
1187
|
-
Field(
|
|
1188
|
-
description="The workflow version. If not supplied, the latest version is fetched."
|
|
1189
|
-
),
|
|
1190
|
-
] = None,
|
|
1191
|
-
_request_timeout: Union[
|
|
1192
|
-
None,
|
|
1193
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1194
|
-
Tuple[
|
|
1195
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1196
|
-
],
|
|
1197
|
-
] = None,
|
|
1198
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1199
|
-
_content_type: Optional[StrictStr] = None,
|
|
1200
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1201
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1202
|
-
) -> RESTResponseType:
|
|
1203
|
-
"""Trigger workflow run
|
|
1204
|
-
|
|
1205
|
-
Trigger a new workflow run for a tenant
|
|
1206
|
-
|
|
1207
|
-
:param workflow: The workflow id (required)
|
|
1208
|
-
:type workflow: str
|
|
1209
|
-
:param trigger_workflow_run_request: The input to the workflow run (required)
|
|
1210
|
-
:type trigger_workflow_run_request: TriggerWorkflowRunRequest
|
|
1211
|
-
:param version: The workflow version. If not supplied, the latest version is fetched.
|
|
1212
|
-
:type version: str
|
|
1213
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1214
|
-
number provided, it will be total request
|
|
1215
|
-
timeout. It can also be a pair (tuple) of
|
|
1216
|
-
(connection, read) timeouts.
|
|
1217
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1218
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1219
|
-
request; this effectively ignores the
|
|
1220
|
-
authentication in the spec for a single request.
|
|
1221
|
-
:type _request_auth: dict, optional
|
|
1222
|
-
:param _content_type: force content-type for the request.
|
|
1223
|
-
:type _content_type: str, Optional
|
|
1224
|
-
:param _headers: set to override the headers for a single
|
|
1225
|
-
request; this effectively ignores the headers
|
|
1226
|
-
in the spec for a single request.
|
|
1227
|
-
:type _headers: dict, optional
|
|
1228
|
-
:param _host_index: set to override the host_index for a single
|
|
1229
|
-
request; this effectively ignores the host_index
|
|
1230
|
-
in the spec for a single request.
|
|
1231
|
-
:type _host_index: int, optional
|
|
1232
|
-
:return: Returns the result object.
|
|
1233
|
-
""" # noqa: E501
|
|
1234
|
-
|
|
1235
|
-
_param = self._workflow_run_create_serialize(
|
|
1236
|
-
workflow=workflow,
|
|
1237
|
-
trigger_workflow_run_request=trigger_workflow_run_request,
|
|
1238
|
-
version=version,
|
|
1239
|
-
_request_auth=_request_auth,
|
|
1240
|
-
_content_type=_content_type,
|
|
1241
|
-
_headers=_headers,
|
|
1242
|
-
_host_index=_host_index,
|
|
1243
|
-
)
|
|
1244
|
-
|
|
1245
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1246
|
-
"200": "WorkflowRun",
|
|
1247
|
-
"400": "APIErrors",
|
|
1248
|
-
"403": "APIErrors",
|
|
1249
|
-
"404": "APIErrors",
|
|
1250
|
-
"429": "APIErrors",
|
|
1251
|
-
}
|
|
1252
|
-
response_data = await self.api_client.call_api(
|
|
1253
|
-
*_param, _request_timeout=_request_timeout
|
|
1254
|
-
)
|
|
1255
|
-
return response_data.response
|
|
1256
|
-
|
|
1257
|
-
def _workflow_run_create_serialize(
|
|
1258
|
-
self,
|
|
1259
|
-
workflow,
|
|
1260
|
-
trigger_workflow_run_request,
|
|
1261
|
-
version,
|
|
1262
|
-
_request_auth,
|
|
1263
|
-
_content_type,
|
|
1264
|
-
_headers,
|
|
1265
|
-
_host_index,
|
|
1266
|
-
) -> RequestSerialized:
|
|
1267
|
-
|
|
1268
|
-
_host = None
|
|
1269
|
-
|
|
1270
|
-
_collection_formats: Dict[str, str] = {}
|
|
1271
|
-
|
|
1272
|
-
_path_params: Dict[str, str] = {}
|
|
1273
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1274
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1275
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1276
|
-
_files: Dict[
|
|
1277
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1278
|
-
] = {}
|
|
1279
|
-
_body_params: Optional[bytes] = None
|
|
1280
|
-
|
|
1281
|
-
# process the path parameters
|
|
1282
|
-
if workflow is not None:
|
|
1283
|
-
_path_params["workflow"] = workflow
|
|
1284
|
-
# process the query parameters
|
|
1285
|
-
if version is not None:
|
|
1286
|
-
|
|
1287
|
-
_query_params.append(("version", version))
|
|
1288
|
-
|
|
1289
|
-
# process the header parameters
|
|
1290
|
-
# process the form parameters
|
|
1291
|
-
# process the body parameter
|
|
1292
|
-
if trigger_workflow_run_request is not None:
|
|
1293
|
-
_body_params = trigger_workflow_run_request
|
|
1294
|
-
|
|
1295
|
-
# set the HTTP header `Accept`
|
|
1296
|
-
if "Accept" not in _header_params:
|
|
1297
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1298
|
-
["application/json"]
|
|
1299
|
-
)
|
|
1300
|
-
|
|
1301
|
-
# set the HTTP header `Content-Type`
|
|
1302
|
-
if _content_type:
|
|
1303
|
-
_header_params["Content-Type"] = _content_type
|
|
1304
|
-
else:
|
|
1305
|
-
_default_content_type = self.api_client.select_header_content_type(
|
|
1306
|
-
["application/json"]
|
|
1307
|
-
)
|
|
1308
|
-
if _default_content_type is not None:
|
|
1309
|
-
_header_params["Content-Type"] = _default_content_type
|
|
1310
|
-
|
|
1311
|
-
# authentication setting
|
|
1312
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
1313
|
-
|
|
1314
|
-
return self.api_client.param_serialize(
|
|
1315
|
-
method="POST",
|
|
1316
|
-
resource_path="/api/v1/workflows/{workflow}/trigger",
|
|
1317
|
-
path_params=_path_params,
|
|
1318
|
-
query_params=_query_params,
|
|
1319
|
-
header_params=_header_params,
|
|
1320
|
-
body=_body_params,
|
|
1321
|
-
post_params=_form_params,
|
|
1322
|
-
files=_files,
|
|
1323
|
-
auth_settings=_auth_settings,
|
|
1324
|
-
collection_formats=_collection_formats,
|
|
1325
|
-
_host=_host,
|
|
1326
|
-
_request_auth=_request_auth,
|
|
1327
|
-
)
|
|
1328
|
-
|
|
1329
|
-
@validate_call
|
|
1330
|
-
async def workflow_run_get_input(
|
|
1331
|
-
self,
|
|
1332
|
-
tenant: Annotated[
|
|
1333
|
-
str,
|
|
1334
|
-
Field(
|
|
1335
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1336
|
-
),
|
|
1337
|
-
],
|
|
1338
|
-
workflow_run: Annotated[
|
|
1339
|
-
str,
|
|
1340
|
-
Field(
|
|
1341
|
-
min_length=36,
|
|
1342
|
-
strict=True,
|
|
1343
|
-
max_length=36,
|
|
1344
|
-
description="The workflow run id",
|
|
1345
|
-
),
|
|
1346
|
-
],
|
|
1347
|
-
_request_timeout: Union[
|
|
1348
|
-
None,
|
|
1349
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1350
|
-
Tuple[
|
|
1351
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1352
|
-
],
|
|
1353
|
-
] = None,
|
|
1354
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1355
|
-
_content_type: Optional[StrictStr] = None,
|
|
1356
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1357
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1358
|
-
) -> Dict[str, object]:
|
|
1359
|
-
"""Get workflow run input
|
|
1360
|
-
|
|
1361
|
-
Get the input for a workflow run.
|
|
1362
|
-
|
|
1363
|
-
:param tenant: The tenant id (required)
|
|
1364
|
-
:type tenant: str
|
|
1365
|
-
:param workflow_run: The workflow run id (required)
|
|
1366
|
-
:type workflow_run: str
|
|
1367
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1368
|
-
number provided, it will be total request
|
|
1369
|
-
timeout. It can also be a pair (tuple) of
|
|
1370
|
-
(connection, read) timeouts.
|
|
1371
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1372
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1373
|
-
request; this effectively ignores the
|
|
1374
|
-
authentication in the spec for a single request.
|
|
1375
|
-
:type _request_auth: dict, optional
|
|
1376
|
-
:param _content_type: force content-type for the request.
|
|
1377
|
-
:type _content_type: str, Optional
|
|
1378
|
-
:param _headers: set to override the headers for a single
|
|
1379
|
-
request; this effectively ignores the headers
|
|
1380
|
-
in the spec for a single request.
|
|
1381
|
-
:type _headers: dict, optional
|
|
1382
|
-
:param _host_index: set to override the host_index for a single
|
|
1383
|
-
request; this effectively ignores the host_index
|
|
1384
|
-
in the spec for a single request.
|
|
1385
|
-
:type _host_index: int, optional
|
|
1386
|
-
:return: Returns the result object.
|
|
1387
|
-
""" # noqa: E501
|
|
1388
|
-
|
|
1389
|
-
_param = self._workflow_run_get_input_serialize(
|
|
1390
|
-
tenant=tenant,
|
|
1391
|
-
workflow_run=workflow_run,
|
|
1392
|
-
_request_auth=_request_auth,
|
|
1393
|
-
_content_type=_content_type,
|
|
1394
|
-
_headers=_headers,
|
|
1395
|
-
_host_index=_host_index,
|
|
1396
|
-
)
|
|
1397
|
-
|
|
1398
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1399
|
-
"200": "Dict[str, object]",
|
|
1400
|
-
"400": "APIErrors",
|
|
1401
|
-
"403": "APIErrors",
|
|
1402
|
-
"404": "APIErrors",
|
|
1403
|
-
}
|
|
1404
|
-
response_data = await self.api_client.call_api(
|
|
1405
|
-
*_param, _request_timeout=_request_timeout
|
|
1406
|
-
)
|
|
1407
|
-
await response_data.read()
|
|
1408
|
-
return self.api_client.response_deserialize(
|
|
1409
|
-
response_data=response_data,
|
|
1410
|
-
response_types_map=_response_types_map,
|
|
1411
|
-
).data
|
|
1412
|
-
|
|
1413
|
-
@validate_call
|
|
1414
|
-
async def workflow_run_get_input_with_http_info(
|
|
1415
|
-
self,
|
|
1416
|
-
tenant: Annotated[
|
|
1417
|
-
str,
|
|
1418
|
-
Field(
|
|
1419
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1420
|
-
),
|
|
1421
|
-
],
|
|
1422
|
-
workflow_run: Annotated[
|
|
1423
|
-
str,
|
|
1424
|
-
Field(
|
|
1425
|
-
min_length=36,
|
|
1426
|
-
strict=True,
|
|
1427
|
-
max_length=36,
|
|
1428
|
-
description="The workflow run id",
|
|
1429
|
-
),
|
|
1430
|
-
],
|
|
1431
|
-
_request_timeout: Union[
|
|
1432
|
-
None,
|
|
1433
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1434
|
-
Tuple[
|
|
1435
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1436
|
-
],
|
|
1437
|
-
] = None,
|
|
1438
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1439
|
-
_content_type: Optional[StrictStr] = None,
|
|
1440
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1441
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1442
|
-
) -> ApiResponse[Dict[str, object]]:
|
|
1443
|
-
"""Get workflow run input
|
|
1444
|
-
|
|
1445
|
-
Get the input for a workflow run.
|
|
1446
|
-
|
|
1447
|
-
:param tenant: The tenant id (required)
|
|
1448
|
-
:type tenant: str
|
|
1449
|
-
:param workflow_run: The workflow run id (required)
|
|
1450
|
-
:type workflow_run: str
|
|
1451
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1452
|
-
number provided, it will be total request
|
|
1453
|
-
timeout. It can also be a pair (tuple) of
|
|
1454
|
-
(connection, read) timeouts.
|
|
1455
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1456
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1457
|
-
request; this effectively ignores the
|
|
1458
|
-
authentication in the spec for a single request.
|
|
1459
|
-
:type _request_auth: dict, optional
|
|
1460
|
-
:param _content_type: force content-type for the request.
|
|
1461
|
-
:type _content_type: str, Optional
|
|
1462
|
-
:param _headers: set to override the headers for a single
|
|
1463
|
-
request; this effectively ignores the headers
|
|
1464
|
-
in the spec for a single request.
|
|
1465
|
-
:type _headers: dict, optional
|
|
1466
|
-
:param _host_index: set to override the host_index for a single
|
|
1467
|
-
request; this effectively ignores the host_index
|
|
1468
|
-
in the spec for a single request.
|
|
1469
|
-
:type _host_index: int, optional
|
|
1470
|
-
:return: Returns the result object.
|
|
1471
|
-
""" # noqa: E501
|
|
1472
|
-
|
|
1473
|
-
_param = self._workflow_run_get_input_serialize(
|
|
1474
|
-
tenant=tenant,
|
|
1475
|
-
workflow_run=workflow_run,
|
|
1476
|
-
_request_auth=_request_auth,
|
|
1477
|
-
_content_type=_content_type,
|
|
1478
|
-
_headers=_headers,
|
|
1479
|
-
_host_index=_host_index,
|
|
1480
|
-
)
|
|
1481
|
-
|
|
1482
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1483
|
-
"200": "Dict[str, object]",
|
|
1484
|
-
"400": "APIErrors",
|
|
1485
|
-
"403": "APIErrors",
|
|
1486
|
-
"404": "APIErrors",
|
|
1487
|
-
}
|
|
1488
|
-
response_data = await self.api_client.call_api(
|
|
1489
|
-
*_param, _request_timeout=_request_timeout
|
|
1490
|
-
)
|
|
1491
|
-
await response_data.read()
|
|
1492
|
-
return self.api_client.response_deserialize(
|
|
1493
|
-
response_data=response_data,
|
|
1494
|
-
response_types_map=_response_types_map,
|
|
1495
|
-
)
|
|
1496
|
-
|
|
1497
|
-
@validate_call
|
|
1498
|
-
async def workflow_run_get_input_without_preload_content(
|
|
1499
|
-
self,
|
|
1500
|
-
tenant: Annotated[
|
|
1501
|
-
str,
|
|
1502
|
-
Field(
|
|
1503
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1504
|
-
),
|
|
1505
|
-
],
|
|
1506
|
-
workflow_run: Annotated[
|
|
1507
|
-
str,
|
|
1508
|
-
Field(
|
|
1509
|
-
min_length=36,
|
|
1510
|
-
strict=True,
|
|
1511
|
-
max_length=36,
|
|
1512
|
-
description="The workflow run id",
|
|
1513
|
-
),
|
|
1514
|
-
],
|
|
1515
|
-
_request_timeout: Union[
|
|
1516
|
-
None,
|
|
1517
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1518
|
-
Tuple[
|
|
1519
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1520
|
-
],
|
|
1521
|
-
] = None,
|
|
1522
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1523
|
-
_content_type: Optional[StrictStr] = None,
|
|
1524
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1525
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1526
|
-
) -> RESTResponseType:
|
|
1527
|
-
"""Get workflow run input
|
|
1528
|
-
|
|
1529
|
-
Get the input for a workflow run.
|
|
1530
|
-
|
|
1531
|
-
:param tenant: The tenant id (required)
|
|
1532
|
-
:type tenant: str
|
|
1533
|
-
:param workflow_run: The workflow run id (required)
|
|
1534
|
-
:type workflow_run: str
|
|
1535
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1536
|
-
number provided, it will be total request
|
|
1537
|
-
timeout. It can also be a pair (tuple) of
|
|
1538
|
-
(connection, read) timeouts.
|
|
1539
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1540
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1541
|
-
request; this effectively ignores the
|
|
1542
|
-
authentication in the spec for a single request.
|
|
1543
|
-
:type _request_auth: dict, optional
|
|
1544
|
-
:param _content_type: force content-type for the request.
|
|
1545
|
-
:type _content_type: str, Optional
|
|
1546
|
-
:param _headers: set to override the headers for a single
|
|
1547
|
-
request; this effectively ignores the headers
|
|
1548
|
-
in the spec for a single request.
|
|
1549
|
-
:type _headers: dict, optional
|
|
1550
|
-
:param _host_index: set to override the host_index for a single
|
|
1551
|
-
request; this effectively ignores the host_index
|
|
1552
|
-
in the spec for a single request.
|
|
1553
|
-
:type _host_index: int, optional
|
|
1554
|
-
:return: Returns the result object.
|
|
1555
|
-
""" # noqa: E501
|
|
1556
|
-
|
|
1557
|
-
_param = self._workflow_run_get_input_serialize(
|
|
1558
|
-
tenant=tenant,
|
|
1559
|
-
workflow_run=workflow_run,
|
|
1560
|
-
_request_auth=_request_auth,
|
|
1561
|
-
_content_type=_content_type,
|
|
1562
|
-
_headers=_headers,
|
|
1563
|
-
_host_index=_host_index,
|
|
1564
|
-
)
|
|
1565
|
-
|
|
1566
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1567
|
-
"200": "Dict[str, object]",
|
|
1568
|
-
"400": "APIErrors",
|
|
1569
|
-
"403": "APIErrors",
|
|
1570
|
-
"404": "APIErrors",
|
|
1571
|
-
}
|
|
1572
|
-
response_data = await self.api_client.call_api(
|
|
1573
|
-
*_param, _request_timeout=_request_timeout
|
|
1574
|
-
)
|
|
1575
|
-
return response_data.response
|
|
1576
|
-
|
|
1577
|
-
def _workflow_run_get_input_serialize(
|
|
1578
|
-
self,
|
|
1579
|
-
tenant,
|
|
1580
|
-
workflow_run,
|
|
1581
|
-
_request_auth,
|
|
1582
|
-
_content_type,
|
|
1583
|
-
_headers,
|
|
1584
|
-
_host_index,
|
|
1585
|
-
) -> RequestSerialized:
|
|
1586
|
-
|
|
1587
|
-
_host = None
|
|
1588
|
-
|
|
1589
|
-
_collection_formats: Dict[str, str] = {}
|
|
1590
|
-
|
|
1591
|
-
_path_params: Dict[str, str] = {}
|
|
1592
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1593
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1594
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1595
|
-
_files: Dict[
|
|
1596
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1597
|
-
] = {}
|
|
1598
|
-
_body_params: Optional[bytes] = None
|
|
1599
|
-
|
|
1600
|
-
# process the path parameters
|
|
1601
|
-
if tenant is not None:
|
|
1602
|
-
_path_params["tenant"] = tenant
|
|
1603
|
-
if workflow_run is not None:
|
|
1604
|
-
_path_params["workflow-run"] = workflow_run
|
|
1605
|
-
# process the query parameters
|
|
1606
|
-
# process the header parameters
|
|
1607
|
-
# process the form parameters
|
|
1608
|
-
# process the body parameter
|
|
1609
|
-
|
|
1610
|
-
# set the HTTP header `Accept`
|
|
1611
|
-
if "Accept" not in _header_params:
|
|
1612
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1613
|
-
["application/json"]
|
|
1614
|
-
)
|
|
1615
|
-
|
|
1616
|
-
# authentication setting
|
|
1617
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
1618
|
-
|
|
1619
|
-
return self.api_client.param_serialize(
|
|
1620
|
-
method="GET",
|
|
1621
|
-
resource_path="/api/v1/tenants/{tenant}/workflow-runs/{workflow-run}/input",
|
|
1622
|
-
path_params=_path_params,
|
|
1623
|
-
query_params=_query_params,
|
|
1624
|
-
header_params=_header_params,
|
|
1625
|
-
body=_body_params,
|
|
1626
|
-
post_params=_form_params,
|
|
1627
|
-
files=_files,
|
|
1628
|
-
auth_settings=_auth_settings,
|
|
1629
|
-
collection_formats=_collection_formats,
|
|
1630
|
-
_host=_host,
|
|
1631
|
-
_request_auth=_request_auth,
|
|
1632
|
-
)
|
|
1633
|
-
|
|
1634
|
-
@validate_call
|
|
1635
|
-
async def workflow_run_update_replay(
|
|
1636
|
-
self,
|
|
1637
|
-
tenant: Annotated[
|
|
1638
|
-
str,
|
|
1639
|
-
Field(
|
|
1640
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1641
|
-
),
|
|
1642
|
-
],
|
|
1643
|
-
replay_workflow_runs_request: Annotated[
|
|
1644
|
-
ReplayWorkflowRunsRequest,
|
|
1645
|
-
Field(description="The workflow run ids to replay"),
|
|
1646
|
-
],
|
|
1647
|
-
_request_timeout: Union[
|
|
1648
|
-
None,
|
|
1649
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1650
|
-
Tuple[
|
|
1651
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1652
|
-
],
|
|
1653
|
-
] = None,
|
|
1654
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1655
|
-
_content_type: Optional[StrictStr] = None,
|
|
1656
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1657
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1658
|
-
) -> ReplayWorkflowRunsResponse:
|
|
1659
|
-
"""Replay workflow runs
|
|
1660
|
-
|
|
1661
|
-
Replays a list of workflow runs.
|
|
1662
|
-
|
|
1663
|
-
:param tenant: The tenant id (required)
|
|
1664
|
-
:type tenant: str
|
|
1665
|
-
:param replay_workflow_runs_request: The workflow run ids to replay (required)
|
|
1666
|
-
:type replay_workflow_runs_request: ReplayWorkflowRunsRequest
|
|
1667
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1668
|
-
number provided, it will be total request
|
|
1669
|
-
timeout. It can also be a pair (tuple) of
|
|
1670
|
-
(connection, read) timeouts.
|
|
1671
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1672
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1673
|
-
request; this effectively ignores the
|
|
1674
|
-
authentication in the spec for a single request.
|
|
1675
|
-
:type _request_auth: dict, optional
|
|
1676
|
-
:param _content_type: force content-type for the request.
|
|
1677
|
-
:type _content_type: str, Optional
|
|
1678
|
-
:param _headers: set to override the headers for a single
|
|
1679
|
-
request; this effectively ignores the headers
|
|
1680
|
-
in the spec for a single request.
|
|
1681
|
-
:type _headers: dict, optional
|
|
1682
|
-
:param _host_index: set to override the host_index for a single
|
|
1683
|
-
request; this effectively ignores the host_index
|
|
1684
|
-
in the spec for a single request.
|
|
1685
|
-
:type _host_index: int, optional
|
|
1686
|
-
:return: Returns the result object.
|
|
1687
|
-
""" # noqa: E501
|
|
1688
|
-
|
|
1689
|
-
_param = self._workflow_run_update_replay_serialize(
|
|
1690
|
-
tenant=tenant,
|
|
1691
|
-
replay_workflow_runs_request=replay_workflow_runs_request,
|
|
1692
|
-
_request_auth=_request_auth,
|
|
1693
|
-
_content_type=_content_type,
|
|
1694
|
-
_headers=_headers,
|
|
1695
|
-
_host_index=_host_index,
|
|
1696
|
-
)
|
|
1697
|
-
|
|
1698
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1699
|
-
"200": "ReplayWorkflowRunsResponse",
|
|
1700
|
-
"400": "APIErrors",
|
|
1701
|
-
"403": "APIErrors",
|
|
1702
|
-
"429": "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
|
-
).data
|
|
1712
|
-
|
|
1713
|
-
@validate_call
|
|
1714
|
-
async def workflow_run_update_replay_with_http_info(
|
|
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
|
-
replay_workflow_runs_request: Annotated[
|
|
1723
|
-
ReplayWorkflowRunsRequest,
|
|
1724
|
-
Field(description="The workflow run ids to replay"),
|
|
1725
|
-
],
|
|
1726
|
-
_request_timeout: Union[
|
|
1727
|
-
None,
|
|
1728
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1729
|
-
Tuple[
|
|
1730
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1731
|
-
],
|
|
1732
|
-
] = None,
|
|
1733
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1734
|
-
_content_type: Optional[StrictStr] = None,
|
|
1735
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1736
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1737
|
-
) -> ApiResponse[ReplayWorkflowRunsResponse]:
|
|
1738
|
-
"""Replay workflow runs
|
|
1739
|
-
|
|
1740
|
-
Replays a list of workflow runs.
|
|
1741
|
-
|
|
1742
|
-
:param tenant: The tenant id (required)
|
|
1743
|
-
:type tenant: str
|
|
1744
|
-
:param replay_workflow_runs_request: The workflow run ids to replay (required)
|
|
1745
|
-
:type replay_workflow_runs_request: ReplayWorkflowRunsRequest
|
|
1746
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1747
|
-
number provided, it will be total request
|
|
1748
|
-
timeout. It can also be a pair (tuple) of
|
|
1749
|
-
(connection, read) timeouts.
|
|
1750
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1751
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1752
|
-
request; this effectively ignores the
|
|
1753
|
-
authentication in the spec for a single request.
|
|
1754
|
-
:type _request_auth: dict, optional
|
|
1755
|
-
:param _content_type: force content-type for the request.
|
|
1756
|
-
:type _content_type: str, Optional
|
|
1757
|
-
:param _headers: set to override the headers for a single
|
|
1758
|
-
request; this effectively ignores the headers
|
|
1759
|
-
in the spec for a single request.
|
|
1760
|
-
:type _headers: dict, optional
|
|
1761
|
-
:param _host_index: set to override the host_index for a single
|
|
1762
|
-
request; this effectively ignores the host_index
|
|
1763
|
-
in the spec for a single request.
|
|
1764
|
-
:type _host_index: int, optional
|
|
1765
|
-
:return: Returns the result object.
|
|
1766
|
-
""" # noqa: E501
|
|
1767
|
-
|
|
1768
|
-
_param = self._workflow_run_update_replay_serialize(
|
|
1769
|
-
tenant=tenant,
|
|
1770
|
-
replay_workflow_runs_request=replay_workflow_runs_request,
|
|
1771
|
-
_request_auth=_request_auth,
|
|
1772
|
-
_content_type=_content_type,
|
|
1773
|
-
_headers=_headers,
|
|
1774
|
-
_host_index=_host_index,
|
|
1775
|
-
)
|
|
1776
|
-
|
|
1777
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1778
|
-
"200": "ReplayWorkflowRunsResponse",
|
|
1779
|
-
"400": "APIErrors",
|
|
1780
|
-
"403": "APIErrors",
|
|
1781
|
-
"429": "APIErrors",
|
|
1782
|
-
}
|
|
1783
|
-
response_data = await self.api_client.call_api(
|
|
1784
|
-
*_param, _request_timeout=_request_timeout
|
|
1785
|
-
)
|
|
1786
|
-
await response_data.read()
|
|
1787
|
-
return self.api_client.response_deserialize(
|
|
1788
|
-
response_data=response_data,
|
|
1789
|
-
response_types_map=_response_types_map,
|
|
1790
|
-
)
|
|
1791
|
-
|
|
1792
|
-
@validate_call
|
|
1793
|
-
async def workflow_run_update_replay_without_preload_content(
|
|
1794
|
-
self,
|
|
1795
|
-
tenant: Annotated[
|
|
1796
|
-
str,
|
|
1797
|
-
Field(
|
|
1798
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
1799
|
-
),
|
|
1800
|
-
],
|
|
1801
|
-
replay_workflow_runs_request: Annotated[
|
|
1802
|
-
ReplayWorkflowRunsRequest,
|
|
1803
|
-
Field(description="The workflow run ids to replay"),
|
|
1804
|
-
],
|
|
1805
|
-
_request_timeout: Union[
|
|
1806
|
-
None,
|
|
1807
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1808
|
-
Tuple[
|
|
1809
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
1810
|
-
],
|
|
1811
|
-
] = None,
|
|
1812
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1813
|
-
_content_type: Optional[StrictStr] = None,
|
|
1814
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1815
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1816
|
-
) -> RESTResponseType:
|
|
1817
|
-
"""Replay workflow runs
|
|
1818
|
-
|
|
1819
|
-
Replays a list of workflow runs.
|
|
1820
|
-
|
|
1821
|
-
:param tenant: The tenant id (required)
|
|
1822
|
-
:type tenant: str
|
|
1823
|
-
:param replay_workflow_runs_request: The workflow run ids to replay (required)
|
|
1824
|
-
:type replay_workflow_runs_request: ReplayWorkflowRunsRequest
|
|
1825
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1826
|
-
number provided, it will be total request
|
|
1827
|
-
timeout. It can also be a pair (tuple) of
|
|
1828
|
-
(connection, read) timeouts.
|
|
1829
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1830
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1831
|
-
request; this effectively ignores the
|
|
1832
|
-
authentication in the spec for a single request.
|
|
1833
|
-
:type _request_auth: dict, optional
|
|
1834
|
-
:param _content_type: force content-type for the request.
|
|
1835
|
-
:type _content_type: str, Optional
|
|
1836
|
-
:param _headers: set to override the headers for a single
|
|
1837
|
-
request; this effectively ignores the headers
|
|
1838
|
-
in the spec for a single request.
|
|
1839
|
-
:type _headers: dict, optional
|
|
1840
|
-
:param _host_index: set to override the host_index for a single
|
|
1841
|
-
request; this effectively ignores the host_index
|
|
1842
|
-
in the spec for a single request.
|
|
1843
|
-
:type _host_index: int, optional
|
|
1844
|
-
:return: Returns the result object.
|
|
1845
|
-
""" # noqa: E501
|
|
1846
|
-
|
|
1847
|
-
_param = self._workflow_run_update_replay_serialize(
|
|
1848
|
-
tenant=tenant,
|
|
1849
|
-
replay_workflow_runs_request=replay_workflow_runs_request,
|
|
1850
|
-
_request_auth=_request_auth,
|
|
1851
|
-
_content_type=_content_type,
|
|
1852
|
-
_headers=_headers,
|
|
1853
|
-
_host_index=_host_index,
|
|
1854
|
-
)
|
|
1855
|
-
|
|
1856
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1857
|
-
"200": "ReplayWorkflowRunsResponse",
|
|
1858
|
-
"400": "APIErrors",
|
|
1859
|
-
"403": "APIErrors",
|
|
1860
|
-
"429": "APIErrors",
|
|
1861
|
-
}
|
|
1862
|
-
response_data = await self.api_client.call_api(
|
|
1863
|
-
*_param, _request_timeout=_request_timeout
|
|
1864
|
-
)
|
|
1865
|
-
return response_data.response
|
|
1866
|
-
|
|
1867
|
-
def _workflow_run_update_replay_serialize(
|
|
1868
|
-
self,
|
|
1869
|
-
tenant,
|
|
1870
|
-
replay_workflow_runs_request,
|
|
1871
|
-
_request_auth,
|
|
1872
|
-
_content_type,
|
|
1873
|
-
_headers,
|
|
1874
|
-
_host_index,
|
|
1875
|
-
) -> RequestSerialized:
|
|
1876
|
-
|
|
1877
|
-
_host = None
|
|
1878
|
-
|
|
1879
|
-
_collection_formats: Dict[str, str] = {}
|
|
1880
|
-
|
|
1881
|
-
_path_params: Dict[str, str] = {}
|
|
1882
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1883
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1884
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1885
|
-
_files: Dict[
|
|
1886
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1887
|
-
] = {}
|
|
1888
|
-
_body_params: Optional[bytes] = None
|
|
1889
|
-
|
|
1890
|
-
# process the path parameters
|
|
1891
|
-
if tenant is not None:
|
|
1892
|
-
_path_params["tenant"] = tenant
|
|
1893
|
-
# process the query parameters
|
|
1894
|
-
# process the header parameters
|
|
1895
|
-
# process the form parameters
|
|
1896
|
-
# process the body parameter
|
|
1897
|
-
if replay_workflow_runs_request is not None:
|
|
1898
|
-
_body_params = replay_workflow_runs_request
|
|
1899
|
-
|
|
1900
|
-
# set the HTTP header `Accept`
|
|
1901
|
-
if "Accept" not in _header_params:
|
|
1902
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
1903
|
-
["application/json"]
|
|
1904
|
-
)
|
|
1905
|
-
|
|
1906
|
-
# set the HTTP header `Content-Type`
|
|
1907
|
-
if _content_type:
|
|
1908
|
-
_header_params["Content-Type"] = _content_type
|
|
1909
|
-
else:
|
|
1910
|
-
_default_content_type = self.api_client.select_header_content_type(
|
|
1911
|
-
["application/json"]
|
|
1912
|
-
)
|
|
1913
|
-
if _default_content_type is not None:
|
|
1914
|
-
_header_params["Content-Type"] = _default_content_type
|
|
1915
|
-
|
|
1916
|
-
# authentication setting
|
|
1917
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
1918
|
-
|
|
1919
|
-
return self.api_client.param_serialize(
|
|
1920
|
-
method="POST",
|
|
1921
|
-
resource_path="/api/v1/tenants/{tenant}/workflow-runs/replay",
|
|
1922
|
-
path_params=_path_params,
|
|
1923
|
-
query_params=_query_params,
|
|
1924
|
-
header_params=_header_params,
|
|
1925
|
-
body=_body_params,
|
|
1926
|
-
post_params=_form_params,
|
|
1927
|
-
files=_files,
|
|
1928
|
-
auth_settings=_auth_settings,
|
|
1929
|
-
collection_formats=_collection_formats,
|
|
1930
|
-
_host=_host,
|
|
1931
|
-
_request_auth=_request_auth,
|
|
1932
|
-
)
|