windmill-api 1.490.0__py3-none-any.whl → 1.491.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 windmill-api might be problematic. Click here for more details.
- windmill_api/api/job/get_teams_approval_payload.py +171 -0
- {windmill_api-1.490.0.dist-info → windmill_api-1.491.0.dist-info}/METADATA +1 -1
- {windmill_api-1.490.0.dist-info → windmill_api-1.491.0.dist-info}/RECORD +5 -4
- {windmill_api-1.490.0.dist-info → windmill_api-1.491.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.490.0.dist-info → windmill_api-1.491.0.dist-info}/WHEEL +0 -0
|
@@ -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
|
+
team_name: str,
|
|
18
|
+
channel_name: 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["team_name"] = team_name
|
|
31
|
+
|
|
32
|
+
params["channel_name"] = channel_name
|
|
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/teams_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
|
+
team_name: str,
|
|
78
|
+
channel_name: 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 teams 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
|
+
team_name (str):
|
|
91
|
+
channel_name (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
|
+
team_name=team_name,
|
|
110
|
+
channel_name=channel_name,
|
|
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
|
+
team_name: str,
|
|
131
|
+
channel_name: 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 teams 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
|
+
team_name (str):
|
|
144
|
+
channel_name (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
|
+
team_name=team_name,
|
|
163
|
+
channel_name=channel_name,
|
|
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)
|
|
@@ -201,6 +201,7 @@ windmill_api/api/job/get_resume_urls.py,sha256=Eg8zgcjmDmJi0CWfwIiIU4j8MfHPU7KgQ
|
|
|
201
201
|
windmill_api/api/job/get_root_job_id.py,sha256=LZMq-95eOA0y3UAcEfS9gj0zTI35KwNvSwDdn8JZhRM,3727
|
|
202
202
|
windmill_api/api/job/get_slack_approval_payload.py,sha256=edDFLOOMc2ZBBNJAnH1He_KH5rF9cyInQDHhp20Wa1E,4964
|
|
203
203
|
windmill_api/api/job/get_suspended_job_flow.py,sha256=1ujITk_TDUgnZ-uWPRfBfb58qFtfGrEJF9TndIcHhok,5652
|
|
204
|
+
windmill_api/api/job/get_teams_approval_payload.py,sha256=t68Eiee-4Jrg3rgDqfLAtW3HHlRutUP4L7q1H3MmZDI,4876
|
|
204
205
|
windmill_api/api/job/list_completed_jobs.py,sha256=Ba7pXA-l4ryYpGktFgHK_nzrtzYxz1_EnsUMbr-Ttqw,18888
|
|
205
206
|
windmill_api/api/job/list_filtered_jobs_uuids.py,sha256=9oCc8koG12x65_7Pth3DvvwuP11eKblgdyHKAeK-m1I,25823
|
|
206
207
|
windmill_api/api/job/list_filtered_queue_uuids.py,sha256=gh5EUDcbIk4tnszu8Kxs6Nsd-umknDbG3iaPHTDjXhM,18820
|
|
@@ -3960,7 +3961,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
|
|
|
3960
3961
|
windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
|
|
3961
3962
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
3962
3963
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
3963
|
-
windmill_api-1.
|
|
3964
|
-
windmill_api-1.
|
|
3965
|
-
windmill_api-1.
|
|
3966
|
-
windmill_api-1.
|
|
3964
|
+
windmill_api-1.491.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
3965
|
+
windmill_api-1.491.0.dist-info/METADATA,sha256=iA5WFEHWzDS4huHrdhLX_U1reAoI9yH5rmC-P8HmM5U,5023
|
|
3966
|
+
windmill_api-1.491.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
3967
|
+
windmill_api-1.491.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|