windmill-api 1.440.1__py3-none-any.whl → 1.450.1__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 windmill-api might be problematic. Click here for more details.
- windmill_api/api/capture/{get_capture.py → delete_capture.py} +12 -14
- windmill_api/api/capture/get_capture_configs.py +186 -0
- windmill_api/api/capture/list_captures.py +241 -0
- windmill_api/api/capture/ping_capture_config.py +121 -0
- windmill_api/api/capture/set_capture_config.py +107 -0
- windmill_api/api/input_/get_input_history.py +15 -0
- windmill_api/api/job/get_slack_approval_payload.py +171 -0
- windmill_api/api/nats_trigger/__init__.py +0 -0
- windmill_api/api/nats_trigger/create_nats_trigger.py +105 -0
- windmill_api/api/{capture/create_capture.py → nats_trigger/delete_nats_trigger.py} +4 -6
- windmill_api/api/nats_trigger/exists_nats_trigger.py +160 -0
- windmill_api/api/nats_trigger/get_nats_trigger.py +166 -0
- windmill_api/api/nats_trigger/list_nats_triggers.py +237 -0
- windmill_api/api/nats_trigger/set_nats_trigger_enabled.py +113 -0
- windmill_api/api/nats_trigger/update_nats_trigger.py +113 -0
- windmill_api/api/postgres_trigger/__init__.py +0 -0
- windmill_api/api/postgres_trigger/create_postgres_publication.py +121 -0
- windmill_api/api/postgres_trigger/create_postgres_replication_slot.py +113 -0
- windmill_api/api/postgres_trigger/create_postgres_trigger.py +105 -0
- windmill_api/api/postgres_trigger/create_template_script.py +105 -0
- windmill_api/api/postgres_trigger/delete_postgres_publication.py +109 -0
- windmill_api/api/postgres_trigger/delete_postgres_replication_slot.py +113 -0
- windmill_api/api/{capture/update_capture.py → postgres_trigger/delete_postgres_trigger.py} +4 -6
- windmill_api/api/postgres_trigger/exists_postgres_trigger.py +160 -0
- windmill_api/api/postgres_trigger/get_postgres_publication.py +180 -0
- windmill_api/api/postgres_trigger/get_postgres_trigger.py +166 -0
- windmill_api/api/postgres_trigger/get_template_script.py +101 -0
- windmill_api/api/postgres_trigger/is_valid_postgres_configuration.py +160 -0
- windmill_api/api/postgres_trigger/list_postgres_publication.py +161 -0
- windmill_api/api/postgres_trigger/list_postgres_replication_slot.py +171 -0
- windmill_api/api/postgres_trigger/list_postgres_triggers.py +237 -0
- windmill_api/api/postgres_trigger/set_postgres_trigger_enabled.py +113 -0
- windmill_api/api/postgres_trigger/update_postgres_publication.py +121 -0
- windmill_api/api/postgres_trigger/update_postgres_trigger.py +113 -0
- windmill_api/api/teams/__init__.py +0 -0
- windmill_api/api/teams/sync_teams.py +131 -0
- windmill_api/api/worker/get_custom_tags.py +50 -4
- windmill_api/api/workspace/change_workspace_color.py +105 -0
- windmill_api/api/workspace/get_threshold_alert.py +152 -0
- windmill_api/api/workspace/set_threshold_alert.py +105 -0
- windmill_api/api/workspace/update_operator_settings.py +109 -0
- windmill_api/models/add_granular_acls_kind.py +2 -0
- windmill_api/models/archive_script_by_hash_response_200.py +8 -0
- windmill_api/models/archive_script_by_hash_response_200_kind.py +1 -0
- windmill_api/models/archive_script_by_hash_response_200_language.py +1 -0
- windmill_api/models/capture.py +94 -0
- windmill_api/models/capture_config.py +95 -0
- windmill_api/models/capture_config_trigger_kind.py +13 -0
- windmill_api/models/capture_trigger_kind.py +13 -0
- windmill_api/models/change_workspace_color_json_body.py +58 -0
- windmill_api/models/channel_info.py +80 -0
- windmill_api/models/completed_job_language.py +1 -0
- windmill_api/models/create_nats_trigger_json_body.py +120 -0
- windmill_api/models/create_postgres_publication_json_body.py +90 -0
- windmill_api/models/create_postgres_publication_json_body_table_to_track_item.py +86 -0
- windmill_api/models/create_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/create_postgres_replication_slot_json_body.py +58 -0
- windmill_api/models/create_postgres_trigger_json_body.py +125 -0
- windmill_api/models/create_postgres_trigger_json_body_publication.py +92 -0
- windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
- windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/create_script_json_body.py +8 -0
- windmill_api/models/create_script_json_body_kind.py +1 -0
- windmill_api/models/create_script_json_body_language.py +1 -0
- windmill_api/models/create_template_script_json_body.py +90 -0
- windmill_api/models/create_template_script_json_body_language.py +8 -0
- windmill_api/models/create_template_script_json_body_relations_item.py +86 -0
- windmill_api/models/create_template_script_json_body_relations_item_table_to_track_item.py +79 -0
- windmill_api/models/create_websocket_trigger_json_body.py +42 -29
- windmill_api/models/create_workspace.py +8 -0
- windmill_api/models/create_workspace_json_body.py +8 -0
- windmill_api/models/delete_completed_job_response_200_language.py +1 -0
- windmill_api/models/delete_postgres_replication_slot_json_body.py +58 -0
- windmill_api/models/delete_script_by_hash_response_200.py +8 -0
- windmill_api/models/delete_script_by_hash_response_200_kind.py +1 -0
- windmill_api/models/delete_script_by_hash_response_200_language.py +1 -0
- windmill_api/models/edit_nats_trigger.py +112 -0
- windmill_api/models/edit_postgres_trigger.py +123 -0
- windmill_api/models/edit_postgres_trigger_publication.py +90 -0
- windmill_api/models/edit_postgres_trigger_publication_table_to_track_item.py +86 -0
- windmill_api/models/edit_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/edit_websocket_trigger.py +35 -21
- windmill_api/models/extended_jobs_jobs_item_type_0_language.py +1 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_language.py +1 -0
- windmill_api/models/flow_metadata.py +8 -0
- windmill_api/models/flow_module_value_2_type_0_language.py +1 -0
- windmill_api/models/get_capture_configs_response_200_item.py +95 -0
- windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +13 -0
- windmill_api/models/get_capture_configs_runnable_kind.py +9 -0
- windmill_api/models/get_completed_job_response_200_language.py +1 -0
- windmill_api/models/get_flow_by_path_response_200.py +8 -0
- windmill_api/models/get_flow_by_path_with_draft_response_200_draft.py +8 -0
- windmill_api/models/get_flow_version_response_200.py +8 -0
- windmill_api/models/get_granular_acls_kind.py +2 -0
- windmill_api/models/get_http_trigger_response_200.py +36 -36
- windmill_api/models/get_job_response_200_type_0_language.py +1 -0
- windmill_api/models/get_job_response_200_type_1_language.py +1 -0
- windmill_api/models/get_nats_trigger_response_200.py +196 -0
- windmill_api/models/get_nats_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_postgres_publication_response_200.py +90 -0
- windmill_api/models/get_postgres_publication_response_200_table_to_track_item.py +86 -0
- windmill_api/models/get_postgres_publication_response_200_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/get_postgres_trigger_response_200.py +178 -0
- windmill_api/models/get_postgres_trigger_response_200_extra_perms.py +44 -0
- windmill_api/models/get_premium_info_response_200.py +7 -0
- windmill_api/models/get_script_by_hash_response_200.py +8 -0
- windmill_api/models/get_script_by_hash_response_200_kind.py +1 -0
- windmill_api/models/get_script_by_hash_response_200_language.py +1 -0
- windmill_api/models/get_script_by_path_response_200.py +8 -0
- windmill_api/models/get_script_by_path_response_200_kind.py +1 -0
- windmill_api/models/get_script_by_path_response_200_language.py +1 -0
- windmill_api/models/get_script_by_path_with_draft_response_200.py +8 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_draft.py +8 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_draft_kind.py +1 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_draft_language.py +1 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_kind.py +1 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_language.py +1 -0
- windmill_api/models/get_settings_response_200.py +27 -0
- windmill_api/models/get_settings_response_200_operator_settings.py +114 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_language.py +1 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_language.py +1 -0
- windmill_api/models/get_threshold_alert_response_200.py +75 -0
- windmill_api/models/get_triggers_count_of_flow_response_200.py +16 -0
- windmill_api/models/get_triggers_count_of_script_response_200.py +16 -0
- windmill_api/models/get_used_triggers_response_200.py +14 -0
- windmill_api/models/get_websocket_trigger_response_200.py +89 -76
- windmill_api/models/http_trigger.py +36 -36
- windmill_api/models/job_type_0_language.py +1 -0
- windmill_api/models/job_type_1_language.py +1 -0
- windmill_api/models/language.py +8 -0
- windmill_api/models/list_captures_response_200_item.py +94 -0
- windmill_api/models/list_captures_response_200_item_trigger_kind.py +13 -0
- windmill_api/models/list_captures_runnable_kind.py +9 -0
- windmill_api/models/list_captures_trigger_kind.py +13 -0
- windmill_api/models/list_completed_jobs_response_200_item_language.py +1 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_language.py +1 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_language.py +1 -0
- windmill_api/models/list_http_triggers_response_200_item.py +36 -36
- windmill_api/models/list_jobs_response_200_item_type_0_language.py +1 -0
- windmill_api/models/list_jobs_response_200_item_type_1_language.py +1 -0
- windmill_api/models/list_nats_triggers_response_200_item.py +196 -0
- windmill_api/models/list_nats_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_postgres_replication_slot_response_200_item.py +66 -0
- windmill_api/models/list_postgres_triggers_response_200_item.py +182 -0
- windmill_api/models/list_postgres_triggers_response_200_item_extra_perms.py +44 -0
- windmill_api/models/list_queue_response_200_item_language.py +1 -0
- windmill_api/models/list_scripts_response_200_item.py +8 -0
- windmill_api/models/list_scripts_response_200_item_kind.py +1 -0
- windmill_api/models/list_scripts_response_200_item_language.py +1 -0
- windmill_api/models/list_user_workspaces_response_200_workspaces_item.py +39 -1
- windmill_api/models/list_user_workspaces_response_200_workspaces_item_operator_settings.py +114 -0
- windmill_api/models/list_websocket_triggers_response_200_item.py +89 -76
- windmill_api/models/list_workspaces_as_super_admin_response_200_item.py +8 -0
- windmill_api/models/list_workspaces_response_200_item.py +8 -0
- windmill_api/models/nats_trigger.py +196 -0
- windmill_api/models/nats_trigger_extra_perms.py +44 -0
- windmill_api/models/new_nats_trigger.py +120 -0
- windmill_api/models/new_postgres_trigger.py +125 -0
- windmill_api/models/new_postgres_trigger_publication.py +90 -0
- windmill_api/models/new_postgres_trigger_publication_table_to_track_item.py +86 -0
- windmill_api/models/new_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/new_script.py +8 -0
- windmill_api/models/new_script_kind.py +1 -0
- windmill_api/models/new_script_language.py +1 -0
- windmill_api/models/new_script_with_draft.py +8 -0
- windmill_api/models/new_script_with_draft_draft.py +8 -0
- windmill_api/models/new_script_with_draft_draft_kind.py +1 -0
- windmill_api/models/new_script_with_draft_draft_language.py +1 -0
- windmill_api/models/new_script_with_draft_kind.py +1 -0
- windmill_api/models/new_script_with_draft_language.py +1 -0
- windmill_api/models/new_websocket_trigger.py +36 -26
- windmill_api/models/open_flow_w_path.py +8 -0
- windmill_api/models/operator_settings.py +114 -0
- windmill_api/models/ping_capture_config_runnable_kind.py +9 -0
- windmill_api/models/ping_capture_config_trigger_kind.py +13 -0
- windmill_api/models/postgres_trigger.py +178 -0
- windmill_api/models/postgres_trigger_extra_perms.py +44 -0
- windmill_api/models/preview_language.py +1 -0
- windmill_api/models/publication_data.py +86 -0
- windmill_api/models/publication_data_table_to_track_item.py +84 -0
- windmill_api/models/publication_data_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/queued_job_language.py +1 -0
- windmill_api/models/raw_script_for_dependencies_language.py +1 -0
- windmill_api/models/raw_script_language.py +1 -0
- windmill_api/models/relations.py +80 -0
- windmill_api/models/relations_table_to_track_item.py +79 -0
- windmill_api/models/remove_granular_acls_kind.py +2 -0
- windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item_language.py +1 -0
- windmill_api/models/run_script_preview_json_body_language.py +1 -0
- windmill_api/models/script.py +8 -0
- windmill_api/models/script_kind.py +1 -0
- windmill_api/models/script_lang.py +25 -0
- windmill_api/models/script_language.py +1 -0
- windmill_api/models/set_capture_config_json_body.py +97 -0
- windmill_api/models/set_capture_config_json_body_trigger_config.py +44 -0
- windmill_api/models/set_capture_config_json_body_trigger_kind.py +13 -0
- windmill_api/models/set_nats_trigger_enabled_json_body.py +58 -0
- windmill_api/models/set_postgres_trigger_enabled_json_body.py +58 -0
- windmill_api/models/set_threshold_alert_json_body.py +58 -0
- windmill_api/models/slot.py +58 -0
- windmill_api/models/slot_list.py +66 -0
- windmill_api/models/sync_teams_response_200_item.py +87 -0
- windmill_api/models/sync_teams_response_200_item_channels_item.py +80 -0
- windmill_api/models/table_to_track_item.py +79 -0
- windmill_api/models/team_info.py +87 -0
- windmill_api/models/team_info_channels_item.py +80 -0
- windmill_api/models/template_script.py +90 -0
- windmill_api/models/template_script_language.py +8 -0
- windmill_api/models/template_script_relations_item.py +82 -0
- windmill_api/models/template_script_relations_item_table_to_track_item.py +79 -0
- windmill_api/models/trigger_extra_property.py +95 -0
- windmill_api/models/trigger_extra_property_extra_perms.py +44 -0
- windmill_api/models/triggers_count.py +16 -0
- windmill_api/models/update_nats_trigger_json_body.py +112 -0
- windmill_api/models/update_operator_settings_json_body.py +114 -0
- windmill_api/models/update_postgres_publication_json_body.py +90 -0
- windmill_api/models/update_postgres_publication_json_body_table_to_track_item.py +86 -0
- windmill_api/models/update_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/update_postgres_trigger_json_body.py +123 -0
- windmill_api/models/update_postgres_trigger_json_body_publication.py +92 -0
- windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
- windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
- windmill_api/models/update_websocket_trigger_json_body.py +40 -24
- windmill_api/models/user_workspace_list_workspaces_item.py +37 -1
- windmill_api/models/user_workspace_list_workspaces_item_operator_settings.py +114 -0
- windmill_api/models/websocket_trigger.py +83 -73
- windmill_api/models/workspace.py +8 -0
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/METADATA +1 -1
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/RECORD +231 -100
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.440.1.dist-info → windmill_api-1.450.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.set_capture_config_json_body import SetCaptureConfigJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
*,
|
|
15
|
+
json_body: SetCaptureConfigJsonBody,
|
|
16
|
+
) -> Dict[str, Any]:
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
json_json_body = json_body.to_dict()
|
|
20
|
+
|
|
21
|
+
return {
|
|
22
|
+
"method": "post",
|
|
23
|
+
"url": "/w/{workspace}/capture/set_config".format(
|
|
24
|
+
workspace=workspace,
|
|
25
|
+
),
|
|
26
|
+
"json": json_json_body,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
31
|
+
if response.status_code == HTTPStatus.OK:
|
|
32
|
+
return None
|
|
33
|
+
if client.raise_on_unexpected_status:
|
|
34
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
|
+
else:
|
|
36
|
+
return None
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
40
|
+
return Response(
|
|
41
|
+
status_code=HTTPStatus(response.status_code),
|
|
42
|
+
content=response.content,
|
|
43
|
+
headers=response.headers,
|
|
44
|
+
parsed=_parse_response(client=client, response=response),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def sync_detailed(
|
|
49
|
+
workspace: str,
|
|
50
|
+
*,
|
|
51
|
+
client: Union[AuthenticatedClient, Client],
|
|
52
|
+
json_body: SetCaptureConfigJsonBody,
|
|
53
|
+
) -> Response[Any]:
|
|
54
|
+
"""set capture config
|
|
55
|
+
|
|
56
|
+
Args:
|
|
57
|
+
workspace (str):
|
|
58
|
+
json_body (SetCaptureConfigJsonBody):
|
|
59
|
+
|
|
60
|
+
Raises:
|
|
61
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
62
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
63
|
+
|
|
64
|
+
Returns:
|
|
65
|
+
Response[Any]
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
kwargs = _get_kwargs(
|
|
69
|
+
workspace=workspace,
|
|
70
|
+
json_body=json_body,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
response = client.get_httpx_client().request(
|
|
74
|
+
**kwargs,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
return _build_response(client=client, response=response)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
async def asyncio_detailed(
|
|
81
|
+
workspace: str,
|
|
82
|
+
*,
|
|
83
|
+
client: Union[AuthenticatedClient, Client],
|
|
84
|
+
json_body: SetCaptureConfigJsonBody,
|
|
85
|
+
) -> Response[Any]:
|
|
86
|
+
"""set capture config
|
|
87
|
+
|
|
88
|
+
Args:
|
|
89
|
+
workspace (str):
|
|
90
|
+
json_body (SetCaptureConfigJsonBody):
|
|
91
|
+
|
|
92
|
+
Raises:
|
|
93
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
94
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
95
|
+
|
|
96
|
+
Returns:
|
|
97
|
+
Response[Any]
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
kwargs = _get_kwargs(
|
|
101
|
+
workspace=workspace,
|
|
102
|
+
json_body=json_body,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
106
|
+
|
|
107
|
+
return _build_response(client=client, response=response)
|
|
@@ -17,6 +17,7 @@ def _get_kwargs(
|
|
|
17
17
|
runnable_type: Union[Unset, None, GetInputHistoryRunnableType] = UNSET,
|
|
18
18
|
page: Union[Unset, None, int] = UNSET,
|
|
19
19
|
per_page: Union[Unset, None, int] = UNSET,
|
|
20
|
+
include_preview: Union[Unset, None, bool] = UNSET,
|
|
20
21
|
) -> Dict[str, Any]:
|
|
21
22
|
pass
|
|
22
23
|
|
|
@@ -33,6 +34,8 @@ def _get_kwargs(
|
|
|
33
34
|
|
|
34
35
|
params["per_page"] = per_page
|
|
35
36
|
|
|
37
|
+
params["include_preview"] = include_preview
|
|
38
|
+
|
|
36
39
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
37
40
|
|
|
38
41
|
return {
|
|
@@ -81,6 +84,7 @@ def sync_detailed(
|
|
|
81
84
|
runnable_type: Union[Unset, None, GetInputHistoryRunnableType] = UNSET,
|
|
82
85
|
page: Union[Unset, None, int] = UNSET,
|
|
83
86
|
per_page: Union[Unset, None, int] = UNSET,
|
|
87
|
+
include_preview: Union[Unset, None, bool] = UNSET,
|
|
84
88
|
) -> Response[List["GetInputHistoryResponse200Item"]]:
|
|
85
89
|
"""List Inputs used in previously completed jobs
|
|
86
90
|
|
|
@@ -90,6 +94,7 @@ def sync_detailed(
|
|
|
90
94
|
runnable_type (Union[Unset, None, GetInputHistoryRunnableType]):
|
|
91
95
|
page (Union[Unset, None, int]):
|
|
92
96
|
per_page (Union[Unset, None, int]):
|
|
97
|
+
include_preview (Union[Unset, None, bool]):
|
|
93
98
|
|
|
94
99
|
Raises:
|
|
95
100
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -105,6 +110,7 @@ def sync_detailed(
|
|
|
105
110
|
runnable_type=runnable_type,
|
|
106
111
|
page=page,
|
|
107
112
|
per_page=per_page,
|
|
113
|
+
include_preview=include_preview,
|
|
108
114
|
)
|
|
109
115
|
|
|
110
116
|
response = client.get_httpx_client().request(
|
|
@@ -122,6 +128,7 @@ def sync(
|
|
|
122
128
|
runnable_type: Union[Unset, None, GetInputHistoryRunnableType] = UNSET,
|
|
123
129
|
page: Union[Unset, None, int] = UNSET,
|
|
124
130
|
per_page: Union[Unset, None, int] = UNSET,
|
|
131
|
+
include_preview: Union[Unset, None, bool] = UNSET,
|
|
125
132
|
) -> Optional[List["GetInputHistoryResponse200Item"]]:
|
|
126
133
|
"""List Inputs used in previously completed jobs
|
|
127
134
|
|
|
@@ -131,6 +138,7 @@ def sync(
|
|
|
131
138
|
runnable_type (Union[Unset, None, GetInputHistoryRunnableType]):
|
|
132
139
|
page (Union[Unset, None, int]):
|
|
133
140
|
per_page (Union[Unset, None, int]):
|
|
141
|
+
include_preview (Union[Unset, None, bool]):
|
|
134
142
|
|
|
135
143
|
Raises:
|
|
136
144
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -147,6 +155,7 @@ def sync(
|
|
|
147
155
|
runnable_type=runnable_type,
|
|
148
156
|
page=page,
|
|
149
157
|
per_page=per_page,
|
|
158
|
+
include_preview=include_preview,
|
|
150
159
|
).parsed
|
|
151
160
|
|
|
152
161
|
|
|
@@ -158,6 +167,7 @@ async def asyncio_detailed(
|
|
|
158
167
|
runnable_type: Union[Unset, None, GetInputHistoryRunnableType] = UNSET,
|
|
159
168
|
page: Union[Unset, None, int] = UNSET,
|
|
160
169
|
per_page: Union[Unset, None, int] = UNSET,
|
|
170
|
+
include_preview: Union[Unset, None, bool] = UNSET,
|
|
161
171
|
) -> Response[List["GetInputHistoryResponse200Item"]]:
|
|
162
172
|
"""List Inputs used in previously completed jobs
|
|
163
173
|
|
|
@@ -167,6 +177,7 @@ async def asyncio_detailed(
|
|
|
167
177
|
runnable_type (Union[Unset, None, GetInputHistoryRunnableType]):
|
|
168
178
|
page (Union[Unset, None, int]):
|
|
169
179
|
per_page (Union[Unset, None, int]):
|
|
180
|
+
include_preview (Union[Unset, None, bool]):
|
|
170
181
|
|
|
171
182
|
Raises:
|
|
172
183
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -182,6 +193,7 @@ async def asyncio_detailed(
|
|
|
182
193
|
runnable_type=runnable_type,
|
|
183
194
|
page=page,
|
|
184
195
|
per_page=per_page,
|
|
196
|
+
include_preview=include_preview,
|
|
185
197
|
)
|
|
186
198
|
|
|
187
199
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -197,6 +209,7 @@ async def asyncio(
|
|
|
197
209
|
runnable_type: Union[Unset, None, GetInputHistoryRunnableType] = UNSET,
|
|
198
210
|
page: Union[Unset, None, int] = UNSET,
|
|
199
211
|
per_page: Union[Unset, None, int] = UNSET,
|
|
212
|
+
include_preview: Union[Unset, None, bool] = UNSET,
|
|
200
213
|
) -> Optional[List["GetInputHistoryResponse200Item"]]:
|
|
201
214
|
"""List Inputs used in previously completed jobs
|
|
202
215
|
|
|
@@ -206,6 +219,7 @@ async def asyncio(
|
|
|
206
219
|
runnable_type (Union[Unset, None, GetInputHistoryRunnableType]):
|
|
207
220
|
page (Union[Unset, None, int]):
|
|
208
221
|
per_page (Union[Unset, None, int]):
|
|
222
|
+
include_preview (Union[Unset, None, bool]):
|
|
209
223
|
|
|
210
224
|
Raises:
|
|
211
225
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -223,5 +237,6 @@ async def asyncio(
|
|
|
223
237
|
runnable_type=runnable_type,
|
|
224
238
|
page=page,
|
|
225
239
|
per_page=per_page,
|
|
240
|
+
include_preview=include_preview,
|
|
226
241
|
)
|
|
227
242
|
).parsed
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...types import UNSET, Response, Unset
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _get_kwargs(
|
|
12
|
+
workspace: str,
|
|
13
|
+
id: str,
|
|
14
|
+
*,
|
|
15
|
+
approver: Union[Unset, None, str] = UNSET,
|
|
16
|
+
message: Union[Unset, None, str] = UNSET,
|
|
17
|
+
slack_resource_path: str,
|
|
18
|
+
channel_id: str,
|
|
19
|
+
flow_step_id: str,
|
|
20
|
+
default_args_json: Union[Unset, None, str] = UNSET,
|
|
21
|
+
dynamic_enums_json: Union[Unset, None, str] = UNSET,
|
|
22
|
+
) -> Dict[str, Any]:
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
params: Dict[str, Any] = {}
|
|
26
|
+
params["approver"] = approver
|
|
27
|
+
|
|
28
|
+
params["message"] = message
|
|
29
|
+
|
|
30
|
+
params["slack_resource_path"] = slack_resource_path
|
|
31
|
+
|
|
32
|
+
params["channel_id"] = channel_id
|
|
33
|
+
|
|
34
|
+
params["flow_step_id"] = flow_step_id
|
|
35
|
+
|
|
36
|
+
params["default_args_json"] = default_args_json
|
|
37
|
+
|
|
38
|
+
params["dynamic_enums_json"] = dynamic_enums_json
|
|
39
|
+
|
|
40
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
41
|
+
|
|
42
|
+
return {
|
|
43
|
+
"method": "get",
|
|
44
|
+
"url": "/w/{workspace}/jobs/slack_approval/{id}".format(
|
|
45
|
+
workspace=workspace,
|
|
46
|
+
id=id,
|
|
47
|
+
),
|
|
48
|
+
"params": params,
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
53
|
+
if response.status_code == HTTPStatus.OK:
|
|
54
|
+
return None
|
|
55
|
+
if client.raise_on_unexpected_status:
|
|
56
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
57
|
+
else:
|
|
58
|
+
return None
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
62
|
+
return Response(
|
|
63
|
+
status_code=HTTPStatus(response.status_code),
|
|
64
|
+
content=response.content,
|
|
65
|
+
headers=response.headers,
|
|
66
|
+
parsed=_parse_response(client=client, response=response),
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def sync_detailed(
|
|
71
|
+
workspace: str,
|
|
72
|
+
id: str,
|
|
73
|
+
*,
|
|
74
|
+
client: Union[AuthenticatedClient, Client],
|
|
75
|
+
approver: Union[Unset, None, str] = UNSET,
|
|
76
|
+
message: Union[Unset, None, str] = UNSET,
|
|
77
|
+
slack_resource_path: str,
|
|
78
|
+
channel_id: str,
|
|
79
|
+
flow_step_id: str,
|
|
80
|
+
default_args_json: Union[Unset, None, str] = UNSET,
|
|
81
|
+
dynamic_enums_json: Union[Unset, None, str] = UNSET,
|
|
82
|
+
) -> Response[Any]:
|
|
83
|
+
"""generate interactive slack approval for suspended job
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
workspace (str):
|
|
87
|
+
id (str):
|
|
88
|
+
approver (Union[Unset, None, str]):
|
|
89
|
+
message (Union[Unset, None, str]):
|
|
90
|
+
slack_resource_path (str):
|
|
91
|
+
channel_id (str):
|
|
92
|
+
flow_step_id (str):
|
|
93
|
+
default_args_json (Union[Unset, None, str]):
|
|
94
|
+
dynamic_enums_json (Union[Unset, None, str]):
|
|
95
|
+
|
|
96
|
+
Raises:
|
|
97
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
98
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
99
|
+
|
|
100
|
+
Returns:
|
|
101
|
+
Response[Any]
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
kwargs = _get_kwargs(
|
|
105
|
+
workspace=workspace,
|
|
106
|
+
id=id,
|
|
107
|
+
approver=approver,
|
|
108
|
+
message=message,
|
|
109
|
+
slack_resource_path=slack_resource_path,
|
|
110
|
+
channel_id=channel_id,
|
|
111
|
+
flow_step_id=flow_step_id,
|
|
112
|
+
default_args_json=default_args_json,
|
|
113
|
+
dynamic_enums_json=dynamic_enums_json,
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
response = client.get_httpx_client().request(
|
|
117
|
+
**kwargs,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
return _build_response(client=client, response=response)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
async def asyncio_detailed(
|
|
124
|
+
workspace: str,
|
|
125
|
+
id: str,
|
|
126
|
+
*,
|
|
127
|
+
client: Union[AuthenticatedClient, Client],
|
|
128
|
+
approver: Union[Unset, None, str] = UNSET,
|
|
129
|
+
message: Union[Unset, None, str] = UNSET,
|
|
130
|
+
slack_resource_path: str,
|
|
131
|
+
channel_id: str,
|
|
132
|
+
flow_step_id: str,
|
|
133
|
+
default_args_json: Union[Unset, None, str] = UNSET,
|
|
134
|
+
dynamic_enums_json: Union[Unset, None, str] = UNSET,
|
|
135
|
+
) -> Response[Any]:
|
|
136
|
+
"""generate interactive slack approval for suspended job
|
|
137
|
+
|
|
138
|
+
Args:
|
|
139
|
+
workspace (str):
|
|
140
|
+
id (str):
|
|
141
|
+
approver (Union[Unset, None, str]):
|
|
142
|
+
message (Union[Unset, None, str]):
|
|
143
|
+
slack_resource_path (str):
|
|
144
|
+
channel_id (str):
|
|
145
|
+
flow_step_id (str):
|
|
146
|
+
default_args_json (Union[Unset, None, str]):
|
|
147
|
+
dynamic_enums_json (Union[Unset, None, str]):
|
|
148
|
+
|
|
149
|
+
Raises:
|
|
150
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
151
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
152
|
+
|
|
153
|
+
Returns:
|
|
154
|
+
Response[Any]
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
kwargs = _get_kwargs(
|
|
158
|
+
workspace=workspace,
|
|
159
|
+
id=id,
|
|
160
|
+
approver=approver,
|
|
161
|
+
message=message,
|
|
162
|
+
slack_resource_path=slack_resource_path,
|
|
163
|
+
channel_id=channel_id,
|
|
164
|
+
flow_step_id=flow_step_id,
|
|
165
|
+
default_args_json=default_args_json,
|
|
166
|
+
dynamic_enums_json=dynamic_enums_json,
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
170
|
+
|
|
171
|
+
return _build_response(client=client, response=response)
|
|
File without changes
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.create_nats_trigger_json_body import CreateNatsTriggerJsonBody
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
*,
|
|
15
|
+
json_body: CreateNatsTriggerJsonBody,
|
|
16
|
+
) -> Dict[str, Any]:
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
json_json_body = json_body.to_dict()
|
|
20
|
+
|
|
21
|
+
return {
|
|
22
|
+
"method": "post",
|
|
23
|
+
"url": "/w/{workspace}/nats_triggers/create".format(
|
|
24
|
+
workspace=workspace,
|
|
25
|
+
),
|
|
26
|
+
"json": json_json_body,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
31
|
+
if client.raise_on_unexpected_status:
|
|
32
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
33
|
+
else:
|
|
34
|
+
return None
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
38
|
+
return Response(
|
|
39
|
+
status_code=HTTPStatus(response.status_code),
|
|
40
|
+
content=response.content,
|
|
41
|
+
headers=response.headers,
|
|
42
|
+
parsed=_parse_response(client=client, response=response),
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def sync_detailed(
|
|
47
|
+
workspace: str,
|
|
48
|
+
*,
|
|
49
|
+
client: Union[AuthenticatedClient, Client],
|
|
50
|
+
json_body: CreateNatsTriggerJsonBody,
|
|
51
|
+
) -> Response[Any]:
|
|
52
|
+
"""create nats trigger
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
workspace (str):
|
|
56
|
+
json_body (CreateNatsTriggerJsonBody):
|
|
57
|
+
|
|
58
|
+
Raises:
|
|
59
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
60
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
61
|
+
|
|
62
|
+
Returns:
|
|
63
|
+
Response[Any]
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
kwargs = _get_kwargs(
|
|
67
|
+
workspace=workspace,
|
|
68
|
+
json_body=json_body,
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
response = client.get_httpx_client().request(
|
|
72
|
+
**kwargs,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
return _build_response(client=client, response=response)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
async def asyncio_detailed(
|
|
79
|
+
workspace: str,
|
|
80
|
+
*,
|
|
81
|
+
client: Union[AuthenticatedClient, Client],
|
|
82
|
+
json_body: CreateNatsTriggerJsonBody,
|
|
83
|
+
) -> Response[Any]:
|
|
84
|
+
"""create nats trigger
|
|
85
|
+
|
|
86
|
+
Args:
|
|
87
|
+
workspace (str):
|
|
88
|
+
json_body (CreateNatsTriggerJsonBody):
|
|
89
|
+
|
|
90
|
+
Raises:
|
|
91
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
92
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
Response[Any]
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
kwargs = _get_kwargs(
|
|
99
|
+
workspace=workspace,
|
|
100
|
+
json_body=json_body,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
104
|
+
|
|
105
|
+
return _build_response(client=client, response=response)
|
|
@@ -15,8 +15,8 @@ def _get_kwargs(
|
|
|
15
15
|
pass
|
|
16
16
|
|
|
17
17
|
return {
|
|
18
|
-
"method": "
|
|
19
|
-
"url": "/w/{workspace}/
|
|
18
|
+
"method": "delete",
|
|
19
|
+
"url": "/w/{workspace}/nats_triggers/delete/{path}".format(
|
|
20
20
|
workspace=workspace,
|
|
21
21
|
path=path,
|
|
22
22
|
),
|
|
@@ -24,8 +24,6 @@ def _get_kwargs(
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
27
|
-
if response.status_code == HTTPStatus.CREATED:
|
|
28
|
-
return None
|
|
29
27
|
if client.raise_on_unexpected_status:
|
|
30
28
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
31
29
|
else:
|
|
@@ -47,7 +45,7 @@ def sync_detailed(
|
|
|
47
45
|
*,
|
|
48
46
|
client: Union[AuthenticatedClient, Client],
|
|
49
47
|
) -> Response[Any]:
|
|
50
|
-
"""
|
|
48
|
+
"""delete nats trigger
|
|
51
49
|
|
|
52
50
|
Args:
|
|
53
51
|
workspace (str):
|
|
@@ -79,7 +77,7 @@ async def asyncio_detailed(
|
|
|
79
77
|
*,
|
|
80
78
|
client: Union[AuthenticatedClient, Client],
|
|
81
79
|
) -> Response[Any]:
|
|
82
|
-
"""
|
|
80
|
+
"""delete nats trigger
|
|
83
81
|
|
|
84
82
|
Args:
|
|
85
83
|
workspace (str):
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union, cast
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...types import Response
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _get_kwargs(
|
|
12
|
+
workspace: str,
|
|
13
|
+
path: str,
|
|
14
|
+
) -> Dict[str, Any]:
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
"method": "get",
|
|
19
|
+
"url": "/w/{workspace}/nats_triggers/exists/{path}".format(
|
|
20
|
+
workspace=workspace,
|
|
21
|
+
path=path,
|
|
22
|
+
),
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]:
|
|
27
|
+
if response.status_code == HTTPStatus.OK:
|
|
28
|
+
response_200 = cast(bool, response.json())
|
|
29
|
+
return response_200
|
|
30
|
+
if client.raise_on_unexpected_status:
|
|
31
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
32
|
+
else:
|
|
33
|
+
return None
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]:
|
|
37
|
+
return Response(
|
|
38
|
+
status_code=HTTPStatus(response.status_code),
|
|
39
|
+
content=response.content,
|
|
40
|
+
headers=response.headers,
|
|
41
|
+
parsed=_parse_response(client=client, response=response),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def sync_detailed(
|
|
46
|
+
workspace: str,
|
|
47
|
+
path: str,
|
|
48
|
+
*,
|
|
49
|
+
client: Union[AuthenticatedClient, Client],
|
|
50
|
+
) -> Response[bool]:
|
|
51
|
+
"""does nats trigger exists
|
|
52
|
+
|
|
53
|
+
Args:
|
|
54
|
+
workspace (str):
|
|
55
|
+
path (str):
|
|
56
|
+
|
|
57
|
+
Raises:
|
|
58
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
59
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
60
|
+
|
|
61
|
+
Returns:
|
|
62
|
+
Response[bool]
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
kwargs = _get_kwargs(
|
|
66
|
+
workspace=workspace,
|
|
67
|
+
path=path,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
response = client.get_httpx_client().request(
|
|
71
|
+
**kwargs,
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
return _build_response(client=client, response=response)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def sync(
|
|
78
|
+
workspace: str,
|
|
79
|
+
path: str,
|
|
80
|
+
*,
|
|
81
|
+
client: Union[AuthenticatedClient, Client],
|
|
82
|
+
) -> Optional[bool]:
|
|
83
|
+
"""does nats trigger exists
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
workspace (str):
|
|
87
|
+
path (str):
|
|
88
|
+
|
|
89
|
+
Raises:
|
|
90
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
91
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
92
|
+
|
|
93
|
+
Returns:
|
|
94
|
+
bool
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
return sync_detailed(
|
|
98
|
+
workspace=workspace,
|
|
99
|
+
path=path,
|
|
100
|
+
client=client,
|
|
101
|
+
).parsed
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
async def asyncio_detailed(
|
|
105
|
+
workspace: str,
|
|
106
|
+
path: str,
|
|
107
|
+
*,
|
|
108
|
+
client: Union[AuthenticatedClient, Client],
|
|
109
|
+
) -> Response[bool]:
|
|
110
|
+
"""does nats trigger exists
|
|
111
|
+
|
|
112
|
+
Args:
|
|
113
|
+
workspace (str):
|
|
114
|
+
path (str):
|
|
115
|
+
|
|
116
|
+
Raises:
|
|
117
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
118
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
119
|
+
|
|
120
|
+
Returns:
|
|
121
|
+
Response[bool]
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
kwargs = _get_kwargs(
|
|
125
|
+
workspace=workspace,
|
|
126
|
+
path=path,
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
130
|
+
|
|
131
|
+
return _build_response(client=client, response=response)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
async def asyncio(
|
|
135
|
+
workspace: str,
|
|
136
|
+
path: str,
|
|
137
|
+
*,
|
|
138
|
+
client: Union[AuthenticatedClient, Client],
|
|
139
|
+
) -> Optional[bool]:
|
|
140
|
+
"""does nats trigger exists
|
|
141
|
+
|
|
142
|
+
Args:
|
|
143
|
+
workspace (str):
|
|
144
|
+
path (str):
|
|
145
|
+
|
|
146
|
+
Raises:
|
|
147
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
148
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
149
|
+
|
|
150
|
+
Returns:
|
|
151
|
+
bool
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
return (
|
|
155
|
+
await asyncio_detailed(
|
|
156
|
+
workspace=workspace,
|
|
157
|
+
path=path,
|
|
158
|
+
client=client,
|
|
159
|
+
)
|
|
160
|
+
).parsed
|