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,577 +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.list_slack_webhooks import ListSlackWebhooks
|
|
23
|
-
from hatchet_sdk.v0.clients.rest.rest import RESTResponseType
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class SlackApi:
|
|
27
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
28
|
-
Ref: https://openapi-generator.tech
|
|
29
|
-
|
|
30
|
-
Do not edit the class manually.
|
|
31
|
-
"""
|
|
32
|
-
|
|
33
|
-
def __init__(self, api_client=None) -> None:
|
|
34
|
-
if api_client is None:
|
|
35
|
-
api_client = ApiClient.get_default()
|
|
36
|
-
self.api_client = api_client
|
|
37
|
-
|
|
38
|
-
@validate_call
|
|
39
|
-
async def slack_webhook_delete(
|
|
40
|
-
self,
|
|
41
|
-
slack: Annotated[
|
|
42
|
-
str,
|
|
43
|
-
Field(
|
|
44
|
-
min_length=36,
|
|
45
|
-
strict=True,
|
|
46
|
-
max_length=36,
|
|
47
|
-
description="The Slack webhook id",
|
|
48
|
-
),
|
|
49
|
-
],
|
|
50
|
-
_request_timeout: Union[
|
|
51
|
-
None,
|
|
52
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
-
Tuple[
|
|
54
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
-
],
|
|
56
|
-
] = None,
|
|
57
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
-
_content_type: Optional[StrictStr] = None,
|
|
59
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
-
) -> None:
|
|
62
|
-
"""Delete Slack webhook
|
|
63
|
-
|
|
64
|
-
Delete Slack webhook
|
|
65
|
-
|
|
66
|
-
:param slack: The Slack webhook id (required)
|
|
67
|
-
:type slack: str
|
|
68
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
69
|
-
number provided, it will be total request
|
|
70
|
-
timeout. It can also be a pair (tuple) of
|
|
71
|
-
(connection, read) timeouts.
|
|
72
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
73
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
74
|
-
request; this effectively ignores the
|
|
75
|
-
authentication in the spec for a single request.
|
|
76
|
-
:type _request_auth: dict, optional
|
|
77
|
-
:param _content_type: force content-type for the request.
|
|
78
|
-
:type _content_type: str, Optional
|
|
79
|
-
:param _headers: set to override the headers for a single
|
|
80
|
-
request; this effectively ignores the headers
|
|
81
|
-
in the spec for a single request.
|
|
82
|
-
:type _headers: dict, optional
|
|
83
|
-
:param _host_index: set to override the host_index for a single
|
|
84
|
-
request; this effectively ignores the host_index
|
|
85
|
-
in the spec for a single request.
|
|
86
|
-
:type _host_index: int, optional
|
|
87
|
-
:return: Returns the result object.
|
|
88
|
-
""" # noqa: E501
|
|
89
|
-
|
|
90
|
-
_param = self._slack_webhook_delete_serialize(
|
|
91
|
-
slack=slack,
|
|
92
|
-
_request_auth=_request_auth,
|
|
93
|
-
_content_type=_content_type,
|
|
94
|
-
_headers=_headers,
|
|
95
|
-
_host_index=_host_index,
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
99
|
-
"204": None,
|
|
100
|
-
"400": "APIErrors",
|
|
101
|
-
"401": "APIErrors",
|
|
102
|
-
"405": "APIErrors",
|
|
103
|
-
}
|
|
104
|
-
response_data = await self.api_client.call_api(
|
|
105
|
-
*_param, _request_timeout=_request_timeout
|
|
106
|
-
)
|
|
107
|
-
await response_data.read()
|
|
108
|
-
return self.api_client.response_deserialize(
|
|
109
|
-
response_data=response_data,
|
|
110
|
-
response_types_map=_response_types_map,
|
|
111
|
-
).data
|
|
112
|
-
|
|
113
|
-
@validate_call
|
|
114
|
-
async def slack_webhook_delete_with_http_info(
|
|
115
|
-
self,
|
|
116
|
-
slack: Annotated[
|
|
117
|
-
str,
|
|
118
|
-
Field(
|
|
119
|
-
min_length=36,
|
|
120
|
-
strict=True,
|
|
121
|
-
max_length=36,
|
|
122
|
-
description="The Slack webhook id",
|
|
123
|
-
),
|
|
124
|
-
],
|
|
125
|
-
_request_timeout: Union[
|
|
126
|
-
None,
|
|
127
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
128
|
-
Tuple[
|
|
129
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
130
|
-
],
|
|
131
|
-
] = None,
|
|
132
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
133
|
-
_content_type: Optional[StrictStr] = None,
|
|
134
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
135
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
136
|
-
) -> ApiResponse[None]:
|
|
137
|
-
"""Delete Slack webhook
|
|
138
|
-
|
|
139
|
-
Delete Slack webhook
|
|
140
|
-
|
|
141
|
-
:param slack: The Slack webhook id (required)
|
|
142
|
-
:type slack: str
|
|
143
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
144
|
-
number provided, it will be total request
|
|
145
|
-
timeout. It can also be a pair (tuple) of
|
|
146
|
-
(connection, read) timeouts.
|
|
147
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
148
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
149
|
-
request; this effectively ignores the
|
|
150
|
-
authentication in the spec for a single request.
|
|
151
|
-
:type _request_auth: dict, optional
|
|
152
|
-
:param _content_type: force content-type for the request.
|
|
153
|
-
:type _content_type: str, Optional
|
|
154
|
-
:param _headers: set to override the headers for a single
|
|
155
|
-
request; this effectively ignores the headers
|
|
156
|
-
in the spec for a single request.
|
|
157
|
-
:type _headers: dict, optional
|
|
158
|
-
:param _host_index: set to override the host_index for a single
|
|
159
|
-
request; this effectively ignores the host_index
|
|
160
|
-
in the spec for a single request.
|
|
161
|
-
:type _host_index: int, optional
|
|
162
|
-
:return: Returns the result object.
|
|
163
|
-
""" # noqa: E501
|
|
164
|
-
|
|
165
|
-
_param = self._slack_webhook_delete_serialize(
|
|
166
|
-
slack=slack,
|
|
167
|
-
_request_auth=_request_auth,
|
|
168
|
-
_content_type=_content_type,
|
|
169
|
-
_headers=_headers,
|
|
170
|
-
_host_index=_host_index,
|
|
171
|
-
)
|
|
172
|
-
|
|
173
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
174
|
-
"204": None,
|
|
175
|
-
"400": "APIErrors",
|
|
176
|
-
"401": "APIErrors",
|
|
177
|
-
"405": "APIErrors",
|
|
178
|
-
}
|
|
179
|
-
response_data = await self.api_client.call_api(
|
|
180
|
-
*_param, _request_timeout=_request_timeout
|
|
181
|
-
)
|
|
182
|
-
await response_data.read()
|
|
183
|
-
return self.api_client.response_deserialize(
|
|
184
|
-
response_data=response_data,
|
|
185
|
-
response_types_map=_response_types_map,
|
|
186
|
-
)
|
|
187
|
-
|
|
188
|
-
@validate_call
|
|
189
|
-
async def slack_webhook_delete_without_preload_content(
|
|
190
|
-
self,
|
|
191
|
-
slack: Annotated[
|
|
192
|
-
str,
|
|
193
|
-
Field(
|
|
194
|
-
min_length=36,
|
|
195
|
-
strict=True,
|
|
196
|
-
max_length=36,
|
|
197
|
-
description="The Slack webhook id",
|
|
198
|
-
),
|
|
199
|
-
],
|
|
200
|
-
_request_timeout: Union[
|
|
201
|
-
None,
|
|
202
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
203
|
-
Tuple[
|
|
204
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
205
|
-
],
|
|
206
|
-
] = None,
|
|
207
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
208
|
-
_content_type: Optional[StrictStr] = None,
|
|
209
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
210
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
211
|
-
) -> RESTResponseType:
|
|
212
|
-
"""Delete Slack webhook
|
|
213
|
-
|
|
214
|
-
Delete Slack webhook
|
|
215
|
-
|
|
216
|
-
:param slack: The Slack webhook id (required)
|
|
217
|
-
:type slack: str
|
|
218
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
219
|
-
number provided, it will be total request
|
|
220
|
-
timeout. It can also be a pair (tuple) of
|
|
221
|
-
(connection, read) timeouts.
|
|
222
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
223
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
224
|
-
request; this effectively ignores the
|
|
225
|
-
authentication in the spec for a single request.
|
|
226
|
-
:type _request_auth: dict, optional
|
|
227
|
-
:param _content_type: force content-type for the request.
|
|
228
|
-
:type _content_type: str, Optional
|
|
229
|
-
:param _headers: set to override the headers for a single
|
|
230
|
-
request; this effectively ignores the headers
|
|
231
|
-
in the spec for a single request.
|
|
232
|
-
:type _headers: dict, optional
|
|
233
|
-
:param _host_index: set to override the host_index for a single
|
|
234
|
-
request; this effectively ignores the host_index
|
|
235
|
-
in the spec for a single request.
|
|
236
|
-
:type _host_index: int, optional
|
|
237
|
-
:return: Returns the result object.
|
|
238
|
-
""" # noqa: E501
|
|
239
|
-
|
|
240
|
-
_param = self._slack_webhook_delete_serialize(
|
|
241
|
-
slack=slack,
|
|
242
|
-
_request_auth=_request_auth,
|
|
243
|
-
_content_type=_content_type,
|
|
244
|
-
_headers=_headers,
|
|
245
|
-
_host_index=_host_index,
|
|
246
|
-
)
|
|
247
|
-
|
|
248
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
249
|
-
"204": None,
|
|
250
|
-
"400": "APIErrors",
|
|
251
|
-
"401": "APIErrors",
|
|
252
|
-
"405": "APIErrors",
|
|
253
|
-
}
|
|
254
|
-
response_data = await self.api_client.call_api(
|
|
255
|
-
*_param, _request_timeout=_request_timeout
|
|
256
|
-
)
|
|
257
|
-
return response_data.response
|
|
258
|
-
|
|
259
|
-
def _slack_webhook_delete_serialize(
|
|
260
|
-
self,
|
|
261
|
-
slack,
|
|
262
|
-
_request_auth,
|
|
263
|
-
_content_type,
|
|
264
|
-
_headers,
|
|
265
|
-
_host_index,
|
|
266
|
-
) -> RequestSerialized:
|
|
267
|
-
|
|
268
|
-
_host = None
|
|
269
|
-
|
|
270
|
-
_collection_formats: Dict[str, str] = {}
|
|
271
|
-
|
|
272
|
-
_path_params: Dict[str, str] = {}
|
|
273
|
-
_query_params: List[Tuple[str, str]] = []
|
|
274
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
275
|
-
_form_params: List[Tuple[str, str]] = []
|
|
276
|
-
_files: Dict[
|
|
277
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
278
|
-
] = {}
|
|
279
|
-
_body_params: Optional[bytes] = None
|
|
280
|
-
|
|
281
|
-
# process the path parameters
|
|
282
|
-
if slack is not None:
|
|
283
|
-
_path_params["slack"] = slack
|
|
284
|
-
# process the query parameters
|
|
285
|
-
# process the header parameters
|
|
286
|
-
# process the form parameters
|
|
287
|
-
# process the body parameter
|
|
288
|
-
|
|
289
|
-
# set the HTTP header `Accept`
|
|
290
|
-
if "Accept" not in _header_params:
|
|
291
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
292
|
-
["application/json"]
|
|
293
|
-
)
|
|
294
|
-
|
|
295
|
-
# authentication setting
|
|
296
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
297
|
-
|
|
298
|
-
return self.api_client.param_serialize(
|
|
299
|
-
method="DELETE",
|
|
300
|
-
resource_path="/api/v1/slack/{slack}",
|
|
301
|
-
path_params=_path_params,
|
|
302
|
-
query_params=_query_params,
|
|
303
|
-
header_params=_header_params,
|
|
304
|
-
body=_body_params,
|
|
305
|
-
post_params=_form_params,
|
|
306
|
-
files=_files,
|
|
307
|
-
auth_settings=_auth_settings,
|
|
308
|
-
collection_formats=_collection_formats,
|
|
309
|
-
_host=_host,
|
|
310
|
-
_request_auth=_request_auth,
|
|
311
|
-
)
|
|
312
|
-
|
|
313
|
-
@validate_call
|
|
314
|
-
async def slack_webhook_list(
|
|
315
|
-
self,
|
|
316
|
-
tenant: Annotated[
|
|
317
|
-
str,
|
|
318
|
-
Field(
|
|
319
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
320
|
-
),
|
|
321
|
-
],
|
|
322
|
-
_request_timeout: Union[
|
|
323
|
-
None,
|
|
324
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
325
|
-
Tuple[
|
|
326
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
327
|
-
],
|
|
328
|
-
] = None,
|
|
329
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
330
|
-
_content_type: Optional[StrictStr] = None,
|
|
331
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
332
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
333
|
-
) -> ListSlackWebhooks:
|
|
334
|
-
"""List Slack integrations
|
|
335
|
-
|
|
336
|
-
List Slack webhooks
|
|
337
|
-
|
|
338
|
-
:param tenant: The tenant id (required)
|
|
339
|
-
:type tenant: str
|
|
340
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
341
|
-
number provided, it will be total request
|
|
342
|
-
timeout. It can also be a pair (tuple) of
|
|
343
|
-
(connection, read) timeouts.
|
|
344
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
345
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
346
|
-
request; this effectively ignores the
|
|
347
|
-
authentication in the spec for a single request.
|
|
348
|
-
:type _request_auth: dict, optional
|
|
349
|
-
:param _content_type: force content-type for the request.
|
|
350
|
-
:type _content_type: str, Optional
|
|
351
|
-
:param _headers: set to override the headers for a single
|
|
352
|
-
request; this effectively ignores the headers
|
|
353
|
-
in the spec for a single request.
|
|
354
|
-
:type _headers: dict, optional
|
|
355
|
-
:param _host_index: set to override the host_index for a single
|
|
356
|
-
request; this effectively ignores the host_index
|
|
357
|
-
in the spec for a single request.
|
|
358
|
-
:type _host_index: int, optional
|
|
359
|
-
:return: Returns the result object.
|
|
360
|
-
""" # noqa: E501
|
|
361
|
-
|
|
362
|
-
_param = self._slack_webhook_list_serialize(
|
|
363
|
-
tenant=tenant,
|
|
364
|
-
_request_auth=_request_auth,
|
|
365
|
-
_content_type=_content_type,
|
|
366
|
-
_headers=_headers,
|
|
367
|
-
_host_index=_host_index,
|
|
368
|
-
)
|
|
369
|
-
|
|
370
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
371
|
-
"200": "ListSlackWebhooks",
|
|
372
|
-
"400": "APIErrors",
|
|
373
|
-
"401": "APIErrors",
|
|
374
|
-
"405": "APIErrors",
|
|
375
|
-
}
|
|
376
|
-
response_data = await self.api_client.call_api(
|
|
377
|
-
*_param, _request_timeout=_request_timeout
|
|
378
|
-
)
|
|
379
|
-
await response_data.read()
|
|
380
|
-
return self.api_client.response_deserialize(
|
|
381
|
-
response_data=response_data,
|
|
382
|
-
response_types_map=_response_types_map,
|
|
383
|
-
).data
|
|
384
|
-
|
|
385
|
-
@validate_call
|
|
386
|
-
async def slack_webhook_list_with_http_info(
|
|
387
|
-
self,
|
|
388
|
-
tenant: Annotated[
|
|
389
|
-
str,
|
|
390
|
-
Field(
|
|
391
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
392
|
-
),
|
|
393
|
-
],
|
|
394
|
-
_request_timeout: Union[
|
|
395
|
-
None,
|
|
396
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
397
|
-
Tuple[
|
|
398
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
399
|
-
],
|
|
400
|
-
] = None,
|
|
401
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
402
|
-
_content_type: Optional[StrictStr] = None,
|
|
403
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
404
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
405
|
-
) -> ApiResponse[ListSlackWebhooks]:
|
|
406
|
-
"""List Slack integrations
|
|
407
|
-
|
|
408
|
-
List Slack webhooks
|
|
409
|
-
|
|
410
|
-
:param tenant: The tenant id (required)
|
|
411
|
-
:type tenant: str
|
|
412
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
413
|
-
number provided, it will be total request
|
|
414
|
-
timeout. It can also be a pair (tuple) of
|
|
415
|
-
(connection, read) timeouts.
|
|
416
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
417
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
418
|
-
request; this effectively ignores the
|
|
419
|
-
authentication in the spec for a single request.
|
|
420
|
-
:type _request_auth: dict, optional
|
|
421
|
-
:param _content_type: force content-type for the request.
|
|
422
|
-
:type _content_type: str, Optional
|
|
423
|
-
:param _headers: set to override the headers for a single
|
|
424
|
-
request; this effectively ignores the headers
|
|
425
|
-
in the spec for a single request.
|
|
426
|
-
:type _headers: dict, optional
|
|
427
|
-
:param _host_index: set to override the host_index for a single
|
|
428
|
-
request; this effectively ignores the host_index
|
|
429
|
-
in the spec for a single request.
|
|
430
|
-
:type _host_index: int, optional
|
|
431
|
-
:return: Returns the result object.
|
|
432
|
-
""" # noqa: E501
|
|
433
|
-
|
|
434
|
-
_param = self._slack_webhook_list_serialize(
|
|
435
|
-
tenant=tenant,
|
|
436
|
-
_request_auth=_request_auth,
|
|
437
|
-
_content_type=_content_type,
|
|
438
|
-
_headers=_headers,
|
|
439
|
-
_host_index=_host_index,
|
|
440
|
-
)
|
|
441
|
-
|
|
442
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
443
|
-
"200": "ListSlackWebhooks",
|
|
444
|
-
"400": "APIErrors",
|
|
445
|
-
"401": "APIErrors",
|
|
446
|
-
"405": "APIErrors",
|
|
447
|
-
}
|
|
448
|
-
response_data = await self.api_client.call_api(
|
|
449
|
-
*_param, _request_timeout=_request_timeout
|
|
450
|
-
)
|
|
451
|
-
await response_data.read()
|
|
452
|
-
return self.api_client.response_deserialize(
|
|
453
|
-
response_data=response_data,
|
|
454
|
-
response_types_map=_response_types_map,
|
|
455
|
-
)
|
|
456
|
-
|
|
457
|
-
@validate_call
|
|
458
|
-
async def slack_webhook_list_without_preload_content(
|
|
459
|
-
self,
|
|
460
|
-
tenant: Annotated[
|
|
461
|
-
str,
|
|
462
|
-
Field(
|
|
463
|
-
min_length=36, strict=True, max_length=36, description="The tenant id"
|
|
464
|
-
),
|
|
465
|
-
],
|
|
466
|
-
_request_timeout: Union[
|
|
467
|
-
None,
|
|
468
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
469
|
-
Tuple[
|
|
470
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
|
471
|
-
],
|
|
472
|
-
] = None,
|
|
473
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
474
|
-
_content_type: Optional[StrictStr] = None,
|
|
475
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
476
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
477
|
-
) -> RESTResponseType:
|
|
478
|
-
"""List Slack integrations
|
|
479
|
-
|
|
480
|
-
List Slack webhooks
|
|
481
|
-
|
|
482
|
-
:param tenant: The tenant id (required)
|
|
483
|
-
:type tenant: str
|
|
484
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
485
|
-
number provided, it will be total request
|
|
486
|
-
timeout. It can also be a pair (tuple) of
|
|
487
|
-
(connection, read) timeouts.
|
|
488
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
489
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
490
|
-
request; this effectively ignores the
|
|
491
|
-
authentication in the spec for a single request.
|
|
492
|
-
:type _request_auth: dict, optional
|
|
493
|
-
:param _content_type: force content-type for the request.
|
|
494
|
-
:type _content_type: str, Optional
|
|
495
|
-
:param _headers: set to override the headers for a single
|
|
496
|
-
request; this effectively ignores the headers
|
|
497
|
-
in the spec for a single request.
|
|
498
|
-
:type _headers: dict, optional
|
|
499
|
-
:param _host_index: set to override the host_index for a single
|
|
500
|
-
request; this effectively ignores the host_index
|
|
501
|
-
in the spec for a single request.
|
|
502
|
-
:type _host_index: int, optional
|
|
503
|
-
:return: Returns the result object.
|
|
504
|
-
""" # noqa: E501
|
|
505
|
-
|
|
506
|
-
_param = self._slack_webhook_list_serialize(
|
|
507
|
-
tenant=tenant,
|
|
508
|
-
_request_auth=_request_auth,
|
|
509
|
-
_content_type=_content_type,
|
|
510
|
-
_headers=_headers,
|
|
511
|
-
_host_index=_host_index,
|
|
512
|
-
)
|
|
513
|
-
|
|
514
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
515
|
-
"200": "ListSlackWebhooks",
|
|
516
|
-
"400": "APIErrors",
|
|
517
|
-
"401": "APIErrors",
|
|
518
|
-
"405": "APIErrors",
|
|
519
|
-
}
|
|
520
|
-
response_data = await self.api_client.call_api(
|
|
521
|
-
*_param, _request_timeout=_request_timeout
|
|
522
|
-
)
|
|
523
|
-
return response_data.response
|
|
524
|
-
|
|
525
|
-
def _slack_webhook_list_serialize(
|
|
526
|
-
self,
|
|
527
|
-
tenant,
|
|
528
|
-
_request_auth,
|
|
529
|
-
_content_type,
|
|
530
|
-
_headers,
|
|
531
|
-
_host_index,
|
|
532
|
-
) -> RequestSerialized:
|
|
533
|
-
|
|
534
|
-
_host = None
|
|
535
|
-
|
|
536
|
-
_collection_formats: Dict[str, str] = {}
|
|
537
|
-
|
|
538
|
-
_path_params: Dict[str, str] = {}
|
|
539
|
-
_query_params: List[Tuple[str, str]] = []
|
|
540
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
541
|
-
_form_params: List[Tuple[str, str]] = []
|
|
542
|
-
_files: Dict[
|
|
543
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
544
|
-
] = {}
|
|
545
|
-
_body_params: Optional[bytes] = None
|
|
546
|
-
|
|
547
|
-
# process the path parameters
|
|
548
|
-
if tenant is not None:
|
|
549
|
-
_path_params["tenant"] = tenant
|
|
550
|
-
# process the query parameters
|
|
551
|
-
# process the header parameters
|
|
552
|
-
# process the form parameters
|
|
553
|
-
# process the body parameter
|
|
554
|
-
|
|
555
|
-
# set the HTTP header `Accept`
|
|
556
|
-
if "Accept" not in _header_params:
|
|
557
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
558
|
-
["application/json"]
|
|
559
|
-
)
|
|
560
|
-
|
|
561
|
-
# authentication setting
|
|
562
|
-
_auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
|
|
563
|
-
|
|
564
|
-
return self.api_client.param_serialize(
|
|
565
|
-
method="GET",
|
|
566
|
-
resource_path="/api/v1/tenants/{tenant}/slack",
|
|
567
|
-
path_params=_path_params,
|
|
568
|
-
query_params=_query_params,
|
|
569
|
-
header_params=_header_params,
|
|
570
|
-
body=_body_params,
|
|
571
|
-
post_params=_form_params,
|
|
572
|
-
files=_files,
|
|
573
|
-
auth_settings=_auth_settings,
|
|
574
|
-
collection_formats=_collection_formats,
|
|
575
|
-
_host=_host,
|
|
576
|
-
_request_auth=_request_auth,
|
|
577
|
-
)
|