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