windmill-api 1.472.1__py3-none-any.whl → 1.473.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/app/delete_s3_file_from_app.py +107 -0
- windmill_api/api/app/upload_s3_file_from_app.py +276 -0
- windmill_api/api/flow/list_flow_paths_from_workspace_runnable.py +178 -0
- windmill_api/models/list_flow_paths_from_workspace_runnable_runnable_kind.py +9 -0
- windmill_api/models/upload_s3_file_from_app_response_200.py +65 -0
- {windmill_api-1.472.1.dist-info → windmill_api-1.473.1.dist-info}/METADATA +1 -1
- {windmill_api-1.472.1.dist-info → windmill_api-1.473.1.dist-info}/RECORD +9 -4
- {windmill_api-1.472.1.dist-info → windmill_api-1.473.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.472.1.dist-info → windmill_api-1.473.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 ...types import UNSET, Response
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _get_kwargs(
|
|
12
|
+
workspace: str,
|
|
13
|
+
*,
|
|
14
|
+
delete_token: str,
|
|
15
|
+
) -> Dict[str, Any]:
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
params: Dict[str, Any] = {}
|
|
19
|
+
params["delete_token"] = delete_token
|
|
20
|
+
|
|
21
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
"method": "delete",
|
|
25
|
+
"url": "/w/{workspace}/apps_u/delete_s3_file".format(
|
|
26
|
+
workspace=workspace,
|
|
27
|
+
),
|
|
28
|
+
"params": params,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
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
|
+
delete_token: str,
|
|
53
|
+
) -> Response[Any]:
|
|
54
|
+
"""delete s3 file from app
|
|
55
|
+
|
|
56
|
+
Args:
|
|
57
|
+
workspace (str):
|
|
58
|
+
delete_token (str):
|
|
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
|
+
delete_token=delete_token,
|
|
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
|
+
delete_token: str,
|
|
85
|
+
) -> Response[Any]:
|
|
86
|
+
"""delete s3 file from app
|
|
87
|
+
|
|
88
|
+
Args:
|
|
89
|
+
workspace (str):
|
|
90
|
+
delete_token (str):
|
|
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
|
+
delete_token=delete_token,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
106
|
+
|
|
107
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,276 @@
|
|
|
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.upload_s3_file_from_app_response_200 import UploadS3FileFromAppResponse200
|
|
9
|
+
from ...types import UNSET, Response, Unset
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
path: str,
|
|
15
|
+
*,
|
|
16
|
+
file_key: Union[Unset, None, str] = UNSET,
|
|
17
|
+
file_extension: Union[Unset, None, str] = UNSET,
|
|
18
|
+
s3_resource_path: Union[Unset, None, str] = UNSET,
|
|
19
|
+
resource_type: Union[Unset, None, str] = UNSET,
|
|
20
|
+
storage: Union[Unset, None, str] = UNSET,
|
|
21
|
+
content_type: Union[Unset, None, str] = UNSET,
|
|
22
|
+
content_disposition: Union[Unset, None, str] = UNSET,
|
|
23
|
+
) -> Dict[str, Any]:
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
params: Dict[str, Any] = {}
|
|
27
|
+
params["file_key"] = file_key
|
|
28
|
+
|
|
29
|
+
params["file_extension"] = file_extension
|
|
30
|
+
|
|
31
|
+
params["s3_resource_path"] = s3_resource_path
|
|
32
|
+
|
|
33
|
+
params["resource_type"] = resource_type
|
|
34
|
+
|
|
35
|
+
params["storage"] = storage
|
|
36
|
+
|
|
37
|
+
params["content_type"] = content_type
|
|
38
|
+
|
|
39
|
+
params["content_disposition"] = content_disposition
|
|
40
|
+
|
|
41
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
"method": "post",
|
|
45
|
+
"url": "/w/{workspace}/apps_u/upload_s3_file/{path}".format(
|
|
46
|
+
workspace=workspace,
|
|
47
|
+
path=path,
|
|
48
|
+
),
|
|
49
|
+
"params": params,
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def _parse_response(
|
|
54
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
55
|
+
) -> Optional[UploadS3FileFromAppResponse200]:
|
|
56
|
+
if response.status_code == HTTPStatus.OK:
|
|
57
|
+
response_200 = UploadS3FileFromAppResponse200.from_dict(response.json())
|
|
58
|
+
|
|
59
|
+
return response_200
|
|
60
|
+
if client.raise_on_unexpected_status:
|
|
61
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
62
|
+
else:
|
|
63
|
+
return None
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def _build_response(
|
|
67
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
68
|
+
) -> Response[UploadS3FileFromAppResponse200]:
|
|
69
|
+
return Response(
|
|
70
|
+
status_code=HTTPStatus(response.status_code),
|
|
71
|
+
content=response.content,
|
|
72
|
+
headers=response.headers,
|
|
73
|
+
parsed=_parse_response(client=client, response=response),
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def sync_detailed(
|
|
78
|
+
workspace: str,
|
|
79
|
+
path: str,
|
|
80
|
+
*,
|
|
81
|
+
client: Union[AuthenticatedClient, Client],
|
|
82
|
+
file_key: Union[Unset, None, str] = UNSET,
|
|
83
|
+
file_extension: Union[Unset, None, str] = UNSET,
|
|
84
|
+
s3_resource_path: Union[Unset, None, str] = UNSET,
|
|
85
|
+
resource_type: Union[Unset, None, str] = UNSET,
|
|
86
|
+
storage: Union[Unset, None, str] = UNSET,
|
|
87
|
+
content_type: Union[Unset, None, str] = UNSET,
|
|
88
|
+
content_disposition: Union[Unset, None, str] = UNSET,
|
|
89
|
+
) -> Response[UploadS3FileFromAppResponse200]:
|
|
90
|
+
"""upload s3 file from app
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
workspace (str):
|
|
94
|
+
path (str):
|
|
95
|
+
file_key (Union[Unset, None, str]):
|
|
96
|
+
file_extension (Union[Unset, None, str]):
|
|
97
|
+
s3_resource_path (Union[Unset, None, str]):
|
|
98
|
+
resource_type (Union[Unset, None, str]):
|
|
99
|
+
storage (Union[Unset, None, str]):
|
|
100
|
+
content_type (Union[Unset, None, str]):
|
|
101
|
+
content_disposition (Union[Unset, None, str]):
|
|
102
|
+
|
|
103
|
+
Raises:
|
|
104
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
105
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
106
|
+
|
|
107
|
+
Returns:
|
|
108
|
+
Response[UploadS3FileFromAppResponse200]
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
kwargs = _get_kwargs(
|
|
112
|
+
workspace=workspace,
|
|
113
|
+
path=path,
|
|
114
|
+
file_key=file_key,
|
|
115
|
+
file_extension=file_extension,
|
|
116
|
+
s3_resource_path=s3_resource_path,
|
|
117
|
+
resource_type=resource_type,
|
|
118
|
+
storage=storage,
|
|
119
|
+
content_type=content_type,
|
|
120
|
+
content_disposition=content_disposition,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
response = client.get_httpx_client().request(
|
|
124
|
+
**kwargs,
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
return _build_response(client=client, response=response)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def sync(
|
|
131
|
+
workspace: str,
|
|
132
|
+
path: str,
|
|
133
|
+
*,
|
|
134
|
+
client: Union[AuthenticatedClient, Client],
|
|
135
|
+
file_key: Union[Unset, None, str] = UNSET,
|
|
136
|
+
file_extension: Union[Unset, None, str] = UNSET,
|
|
137
|
+
s3_resource_path: Union[Unset, None, str] = UNSET,
|
|
138
|
+
resource_type: Union[Unset, None, str] = UNSET,
|
|
139
|
+
storage: Union[Unset, None, str] = UNSET,
|
|
140
|
+
content_type: Union[Unset, None, str] = UNSET,
|
|
141
|
+
content_disposition: Union[Unset, None, str] = UNSET,
|
|
142
|
+
) -> Optional[UploadS3FileFromAppResponse200]:
|
|
143
|
+
"""upload s3 file from app
|
|
144
|
+
|
|
145
|
+
Args:
|
|
146
|
+
workspace (str):
|
|
147
|
+
path (str):
|
|
148
|
+
file_key (Union[Unset, None, str]):
|
|
149
|
+
file_extension (Union[Unset, None, str]):
|
|
150
|
+
s3_resource_path (Union[Unset, None, str]):
|
|
151
|
+
resource_type (Union[Unset, None, str]):
|
|
152
|
+
storage (Union[Unset, None, str]):
|
|
153
|
+
content_type (Union[Unset, None, str]):
|
|
154
|
+
content_disposition (Union[Unset, None, str]):
|
|
155
|
+
|
|
156
|
+
Raises:
|
|
157
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
158
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
159
|
+
|
|
160
|
+
Returns:
|
|
161
|
+
UploadS3FileFromAppResponse200
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
return sync_detailed(
|
|
165
|
+
workspace=workspace,
|
|
166
|
+
path=path,
|
|
167
|
+
client=client,
|
|
168
|
+
file_key=file_key,
|
|
169
|
+
file_extension=file_extension,
|
|
170
|
+
s3_resource_path=s3_resource_path,
|
|
171
|
+
resource_type=resource_type,
|
|
172
|
+
storage=storage,
|
|
173
|
+
content_type=content_type,
|
|
174
|
+
content_disposition=content_disposition,
|
|
175
|
+
).parsed
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
async def asyncio_detailed(
|
|
179
|
+
workspace: str,
|
|
180
|
+
path: str,
|
|
181
|
+
*,
|
|
182
|
+
client: Union[AuthenticatedClient, Client],
|
|
183
|
+
file_key: Union[Unset, None, str] = UNSET,
|
|
184
|
+
file_extension: Union[Unset, None, str] = UNSET,
|
|
185
|
+
s3_resource_path: Union[Unset, None, str] = UNSET,
|
|
186
|
+
resource_type: Union[Unset, None, str] = UNSET,
|
|
187
|
+
storage: Union[Unset, None, str] = UNSET,
|
|
188
|
+
content_type: Union[Unset, None, str] = UNSET,
|
|
189
|
+
content_disposition: Union[Unset, None, str] = UNSET,
|
|
190
|
+
) -> Response[UploadS3FileFromAppResponse200]:
|
|
191
|
+
"""upload s3 file from app
|
|
192
|
+
|
|
193
|
+
Args:
|
|
194
|
+
workspace (str):
|
|
195
|
+
path (str):
|
|
196
|
+
file_key (Union[Unset, None, str]):
|
|
197
|
+
file_extension (Union[Unset, None, str]):
|
|
198
|
+
s3_resource_path (Union[Unset, None, str]):
|
|
199
|
+
resource_type (Union[Unset, None, str]):
|
|
200
|
+
storage (Union[Unset, None, str]):
|
|
201
|
+
content_type (Union[Unset, None, str]):
|
|
202
|
+
content_disposition (Union[Unset, None, str]):
|
|
203
|
+
|
|
204
|
+
Raises:
|
|
205
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
206
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
207
|
+
|
|
208
|
+
Returns:
|
|
209
|
+
Response[UploadS3FileFromAppResponse200]
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
kwargs = _get_kwargs(
|
|
213
|
+
workspace=workspace,
|
|
214
|
+
path=path,
|
|
215
|
+
file_key=file_key,
|
|
216
|
+
file_extension=file_extension,
|
|
217
|
+
s3_resource_path=s3_resource_path,
|
|
218
|
+
resource_type=resource_type,
|
|
219
|
+
storage=storage,
|
|
220
|
+
content_type=content_type,
|
|
221
|
+
content_disposition=content_disposition,
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
225
|
+
|
|
226
|
+
return _build_response(client=client, response=response)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
async def asyncio(
|
|
230
|
+
workspace: str,
|
|
231
|
+
path: str,
|
|
232
|
+
*,
|
|
233
|
+
client: Union[AuthenticatedClient, Client],
|
|
234
|
+
file_key: Union[Unset, None, str] = UNSET,
|
|
235
|
+
file_extension: Union[Unset, None, str] = UNSET,
|
|
236
|
+
s3_resource_path: Union[Unset, None, str] = UNSET,
|
|
237
|
+
resource_type: Union[Unset, None, str] = UNSET,
|
|
238
|
+
storage: Union[Unset, None, str] = UNSET,
|
|
239
|
+
content_type: Union[Unset, None, str] = UNSET,
|
|
240
|
+
content_disposition: Union[Unset, None, str] = UNSET,
|
|
241
|
+
) -> Optional[UploadS3FileFromAppResponse200]:
|
|
242
|
+
"""upload s3 file from app
|
|
243
|
+
|
|
244
|
+
Args:
|
|
245
|
+
workspace (str):
|
|
246
|
+
path (str):
|
|
247
|
+
file_key (Union[Unset, None, str]):
|
|
248
|
+
file_extension (Union[Unset, None, str]):
|
|
249
|
+
s3_resource_path (Union[Unset, None, str]):
|
|
250
|
+
resource_type (Union[Unset, None, str]):
|
|
251
|
+
storage (Union[Unset, None, str]):
|
|
252
|
+
content_type (Union[Unset, None, str]):
|
|
253
|
+
content_disposition (Union[Unset, None, str]):
|
|
254
|
+
|
|
255
|
+
Raises:
|
|
256
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
257
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
258
|
+
|
|
259
|
+
Returns:
|
|
260
|
+
UploadS3FileFromAppResponse200
|
|
261
|
+
"""
|
|
262
|
+
|
|
263
|
+
return (
|
|
264
|
+
await asyncio_detailed(
|
|
265
|
+
workspace=workspace,
|
|
266
|
+
path=path,
|
|
267
|
+
client=client,
|
|
268
|
+
file_key=file_key,
|
|
269
|
+
file_extension=file_extension,
|
|
270
|
+
s3_resource_path=s3_resource_path,
|
|
271
|
+
resource_type=resource_type,
|
|
272
|
+
storage=storage,
|
|
273
|
+
content_type=content_type,
|
|
274
|
+
content_disposition=content_disposition,
|
|
275
|
+
)
|
|
276
|
+
).parsed
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.list_flow_paths_from_workspace_runnable_runnable_kind import (
|
|
9
|
+
ListFlowPathsFromWorkspaceRunnableRunnableKind,
|
|
10
|
+
)
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
workspace: str,
|
|
16
|
+
runnable_kind: ListFlowPathsFromWorkspaceRunnableRunnableKind,
|
|
17
|
+
path: str,
|
|
18
|
+
) -> Dict[str, Any]:
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
return {
|
|
22
|
+
"method": "get",
|
|
23
|
+
"url": "/w/{workspace}/flows/list_paths_from_workspace_runnable/{runnable_kind}/{path}".format(
|
|
24
|
+
workspace=workspace,
|
|
25
|
+
runnable_kind=runnable_kind,
|
|
26
|
+
path=path,
|
|
27
|
+
),
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List[str]]:
|
|
32
|
+
if response.status_code == HTTPStatus.OK:
|
|
33
|
+
response_200 = cast(List[str], response.json())
|
|
34
|
+
|
|
35
|
+
return response_200
|
|
36
|
+
if client.raise_on_unexpected_status:
|
|
37
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
38
|
+
else:
|
|
39
|
+
return None
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List[str]]:
|
|
43
|
+
return Response(
|
|
44
|
+
status_code=HTTPStatus(response.status_code),
|
|
45
|
+
content=response.content,
|
|
46
|
+
headers=response.headers,
|
|
47
|
+
parsed=_parse_response(client=client, response=response),
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def sync_detailed(
|
|
52
|
+
workspace: str,
|
|
53
|
+
runnable_kind: ListFlowPathsFromWorkspaceRunnableRunnableKind,
|
|
54
|
+
path: str,
|
|
55
|
+
*,
|
|
56
|
+
client: Union[AuthenticatedClient, Client],
|
|
57
|
+
) -> Response[List[str]]:
|
|
58
|
+
"""list flow paths from workspace runnable
|
|
59
|
+
|
|
60
|
+
Args:
|
|
61
|
+
workspace (str):
|
|
62
|
+
runnable_kind (ListFlowPathsFromWorkspaceRunnableRunnableKind):
|
|
63
|
+
path (str):
|
|
64
|
+
|
|
65
|
+
Raises:
|
|
66
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
67
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
68
|
+
|
|
69
|
+
Returns:
|
|
70
|
+
Response[List[str]]
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = _get_kwargs(
|
|
74
|
+
workspace=workspace,
|
|
75
|
+
runnable_kind=runnable_kind,
|
|
76
|
+
path=path,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
response = client.get_httpx_client().request(
|
|
80
|
+
**kwargs,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
return _build_response(client=client, response=response)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def sync(
|
|
87
|
+
workspace: str,
|
|
88
|
+
runnable_kind: ListFlowPathsFromWorkspaceRunnableRunnableKind,
|
|
89
|
+
path: str,
|
|
90
|
+
*,
|
|
91
|
+
client: Union[AuthenticatedClient, Client],
|
|
92
|
+
) -> Optional[List[str]]:
|
|
93
|
+
"""list flow paths from workspace runnable
|
|
94
|
+
|
|
95
|
+
Args:
|
|
96
|
+
workspace (str):
|
|
97
|
+
runnable_kind (ListFlowPathsFromWorkspaceRunnableRunnableKind):
|
|
98
|
+
path (str):
|
|
99
|
+
|
|
100
|
+
Raises:
|
|
101
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
102
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
103
|
+
|
|
104
|
+
Returns:
|
|
105
|
+
List[str]
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
return sync_detailed(
|
|
109
|
+
workspace=workspace,
|
|
110
|
+
runnable_kind=runnable_kind,
|
|
111
|
+
path=path,
|
|
112
|
+
client=client,
|
|
113
|
+
).parsed
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
async def asyncio_detailed(
|
|
117
|
+
workspace: str,
|
|
118
|
+
runnable_kind: ListFlowPathsFromWorkspaceRunnableRunnableKind,
|
|
119
|
+
path: str,
|
|
120
|
+
*,
|
|
121
|
+
client: Union[AuthenticatedClient, Client],
|
|
122
|
+
) -> Response[List[str]]:
|
|
123
|
+
"""list flow paths from workspace runnable
|
|
124
|
+
|
|
125
|
+
Args:
|
|
126
|
+
workspace (str):
|
|
127
|
+
runnable_kind (ListFlowPathsFromWorkspaceRunnableRunnableKind):
|
|
128
|
+
path (str):
|
|
129
|
+
|
|
130
|
+
Raises:
|
|
131
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
132
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
133
|
+
|
|
134
|
+
Returns:
|
|
135
|
+
Response[List[str]]
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
kwargs = _get_kwargs(
|
|
139
|
+
workspace=workspace,
|
|
140
|
+
runnable_kind=runnable_kind,
|
|
141
|
+
path=path,
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
145
|
+
|
|
146
|
+
return _build_response(client=client, response=response)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
async def asyncio(
|
|
150
|
+
workspace: str,
|
|
151
|
+
runnable_kind: ListFlowPathsFromWorkspaceRunnableRunnableKind,
|
|
152
|
+
path: str,
|
|
153
|
+
*,
|
|
154
|
+
client: Union[AuthenticatedClient, Client],
|
|
155
|
+
) -> Optional[List[str]]:
|
|
156
|
+
"""list flow paths from workspace runnable
|
|
157
|
+
|
|
158
|
+
Args:
|
|
159
|
+
workspace (str):
|
|
160
|
+
runnable_kind (ListFlowPathsFromWorkspaceRunnableRunnableKind):
|
|
161
|
+
path (str):
|
|
162
|
+
|
|
163
|
+
Raises:
|
|
164
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
165
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
166
|
+
|
|
167
|
+
Returns:
|
|
168
|
+
List[str]
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
return (
|
|
172
|
+
await asyncio_detailed(
|
|
173
|
+
workspace=workspace,
|
|
174
|
+
runnable_kind=runnable_kind,
|
|
175
|
+
path=path,
|
|
176
|
+
client=client,
|
|
177
|
+
)
|
|
178
|
+
).parsed
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="UploadS3FileFromAppResponse200")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class UploadS3FileFromAppResponse200:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
file_key (str):
|
|
14
|
+
delete_token (str):
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
file_key: str
|
|
18
|
+
delete_token: str
|
|
19
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
|
+
|
|
21
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
22
|
+
file_key = self.file_key
|
|
23
|
+
delete_token = self.delete_token
|
|
24
|
+
|
|
25
|
+
field_dict: Dict[str, Any] = {}
|
|
26
|
+
field_dict.update(self.additional_properties)
|
|
27
|
+
field_dict.update(
|
|
28
|
+
{
|
|
29
|
+
"file_key": file_key,
|
|
30
|
+
"delete_token": delete_token,
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
return field_dict
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
38
|
+
d = src_dict.copy()
|
|
39
|
+
file_key = d.pop("file_key")
|
|
40
|
+
|
|
41
|
+
delete_token = d.pop("delete_token")
|
|
42
|
+
|
|
43
|
+
upload_s3_file_from_app_response_200 = cls(
|
|
44
|
+
file_key=file_key,
|
|
45
|
+
delete_token=delete_token,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
upload_s3_file_from_app_response_200.additional_properties = d
|
|
49
|
+
return upload_s3_file_from_app_response_200
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def additional_keys(self) -> List[str]:
|
|
53
|
+
return list(self.additional_properties.keys())
|
|
54
|
+
|
|
55
|
+
def __getitem__(self, key: str) -> Any:
|
|
56
|
+
return self.additional_properties[key]
|
|
57
|
+
|
|
58
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
59
|
+
self.additional_properties[key] = value
|
|
60
|
+
|
|
61
|
+
def __delitem__(self, key: str) -> None:
|
|
62
|
+
del self.additional_properties[key]
|
|
63
|
+
|
|
64
|
+
def __contains__(self, key: str) -> bool:
|
|
65
|
+
return key in self.additional_properties
|
|
@@ -4,6 +4,7 @@ windmill_api/api/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
|
4
4
|
windmill_api/api/app/create_app.py,sha256=oy93qpykDNZq5UkaaQDv1GRBxgqglXx103oYEMJwhnk,2654
|
|
5
5
|
windmill_api/api/app/custom_path_exists.py,sha256=erBOecrGav0z1S3KWcuD1x71lRhjFiPjjgNKB-0HpwU,3967
|
|
6
6
|
windmill_api/api/app/delete_app.py,sha256=O3s49o79D7gAxftHnVXY1FTF2BYm_TelXfD5g4Tsp_I,2429
|
|
7
|
+
windmill_api/api/app/delete_s3_file_from_app.py,sha256=s3fqCxlDx0gfDnCjR20isRvz77c_lik_llvkCU3L6eA,2706
|
|
7
8
|
windmill_api/api/app/execute_component.py,sha256=tolIAPC8iFjn4PkpPiQfzIFubjJ9TcmxE9emx32eu9E,2881
|
|
8
9
|
windmill_api/api/app/exists_app.py,sha256=I6rqA8nCEwkHcqmKEI3x-jRUjoOC3Q3yL_KAz-wHWSo,3811
|
|
9
10
|
windmill_api/api/app/get_app_by_path.py,sha256=IkPJnQJzsXRP6y8fZfJ4jHenlqee94p_IlcbFjt7AkI,4962
|
|
@@ -22,6 +23,7 @@ windmill_api/api/app/list_hub_apps.py,sha256=pu-4r5r4LMjHgMSuy6fKSwZdklKYKD0SPGF
|
|
|
22
23
|
windmill_api/api/app/list_search_app.py,sha256=MC3nLhDHsbtU6sB4m7osCQX91b098HmpUvs8vXsdnO4,4160
|
|
23
24
|
windmill_api/api/app/update_app.py,sha256=3V5xj6CiAPHorcn4OWX7EJ3pnV0KavzOQptpf9QAJp4,2807
|
|
24
25
|
windmill_api/api/app/update_app_history.py,sha256=m7cNhphZx7jtm38zq7hFnGS5YmpXD3Gq5T16iZm0uy0,3050
|
|
26
|
+
windmill_api/api/app/upload_s3_file_from_app.py,sha256=4hCwIcSDCflV02nboY73JPlnQ7aF4ZndleiAysXGA3E,8893
|
|
25
27
|
windmill_api/api/audit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
28
|
windmill_api/api/audit/get_audit_log.py,sha256=y-HItlwPj0pX89bFFCtJaEd47IB4JeSbotp2iWgDgNM,4106
|
|
27
29
|
windmill_api/api/audit/list_audit_logs.py,sha256=xXSANzjyVm5JOSgHXiXOAQ8UUw161kQREAowu-jHEF0,11797
|
|
@@ -64,6 +66,7 @@ windmill_api/api/flow/get_flow_version.py,sha256=Wd3gQWT-R77GiB__eEBJ1ou_31n87DP
|
|
|
64
66
|
windmill_api/api/flow/get_hub_flow_by_id.py,sha256=VJxEVdnGNsWt0EEnfD8iDgFV9ztrP5mNL9dSCY8UYD0,3696
|
|
65
67
|
windmill_api/api/flow/get_triggers_count_of_flow.py,sha256=mXNh0thG3YcGvg4cE0CrkGtMCM86VAfwnkVhYSIaMu8,4250
|
|
66
68
|
windmill_api/api/flow/list_flow_paths.py,sha256=8-T37YwR-Cr_umc1XV5flxzspwPfn4kw9ogfGcBxrhc,2296
|
|
69
|
+
windmill_api/api/flow/list_flow_paths_from_workspace_runnable.py,sha256=qfP5tUp30-NqSPnvHsr-mJLsXVmpGFrto2G4VsqulI0,4918
|
|
67
70
|
windmill_api/api/flow/list_flows.py,sha256=PkKM37wt-H_5cuG-Pmw4Zw7V6zm_21bJCGidynrap5w,10511
|
|
68
71
|
windmill_api/api/flow/list_hub_flows.py,sha256=AYwa6mrD7J-sY_Vv3J_4TtwwDLpv877b-9yDe_gNUbE,3371
|
|
69
72
|
windmill_api/api/flow/list_search_flow.py,sha256=00dYOBqzMjG2XaJ5bEEJ5imLqoHGjHTJdbkzaeQHs_s,4178
|
|
@@ -2714,6 +2717,7 @@ windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_raw_flow_pr
|
|
|
2714
2717
|
windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_raw_flow_preprocessor_module_suspend_user_groups_required_type_1_type.py,sha256=NGbTNFfP1DLIH1B3At81deuEIUAVUO_gRC6Tfe7UFhQ,234
|
|
2715
2718
|
windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_type.py,sha256=k6OUjDQSTdvtyYBIuwStd5SNNd7R2N8vqxfyV3BG4nw,177
|
|
2716
2719
|
windmill_api/models/list_extended_jobs_response_200_obscured_jobs_item.py,sha256=XQ6HOMCuvXJCz6LW3oXnNHE6aqIzjRMEPwZjafy8sIk,2647
|
|
2720
|
+
windmill_api/models/list_flow_paths_from_workspace_runnable_runnable_kind.py,sha256=jghQb5QjgDvT1mWsKHb-WmuA8oiB19y1d4QLFIWY10s,191
|
|
2717
2721
|
windmill_api/models/list_flows_response_200_item.py,sha256=13wepezJN8CBafuNAsAQIwplAU_7DfDnfM067lmWmzM,1926
|
|
2718
2722
|
windmill_api/models/list_folders_response_200_item.py,sha256=x3OEAboN1TcI8golFOnok6gFhauWWT1aA3moD1rW7Ik,3527
|
|
2719
2723
|
windmill_api/models/list_folders_response_200_item_extra_perms.py,sha256=nLOqfdLdVtwLBw9X1GMNEUerBkjf83E84NyaIZVxGlk,1353
|
|
@@ -3657,6 +3661,7 @@ windmill_api/models/update_websocket_trigger_json_body_initial_messages_item_typ
|
|
|
3657
3661
|
windmill_api/models/update_websocket_trigger_json_body_initial_messages_item_type_1_runnable_result_args.py,sha256=EJLVIg8amn79vaPc37z7rug8FH1MkpZom_twdQL8Ues,1548
|
|
3658
3662
|
windmill_api/models/update_websocket_trigger_json_body_url_runnable_args.py,sha256=8ZKejEynzpnEaOWjfXzpTBzCneSQtgoKL5a2gl2N4CA,1398
|
|
3659
3663
|
windmill_api/models/upload_file_part.py,sha256=WcPclcP3eFnArJDLZo5hXuOQ8f2nEWJHpeOtaWNH2P0,1637
|
|
3664
|
+
windmill_api/models/upload_s3_file_from_app_response_200.py,sha256=Zple_7BiP2f1RmE9-nxNeD2JHGVhfjiWre4GJaHZkoI,1789
|
|
3660
3665
|
windmill_api/models/user.py,sha256=C7u6NFUw6Y6Ojss_BeCHCf7TNUwtscliAhgZvJBqiNQ,3790
|
|
3661
3666
|
windmill_api/models/user_usage.py,sha256=3ePY0rntlxIaDIe7iKA7U-taV3OIsR90QWH71zOW6FY,1798
|
|
3662
3667
|
windmill_api/models/user_workspace_list.py,sha256=5xDEkP2JoQEzVmY444NGT-wIeColo4aespbGBFZYGnQ,2325
|
|
@@ -3719,7 +3724,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
|
|
|
3719
3724
|
windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
|
|
3720
3725
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
3721
3726
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
3722
|
-
windmill_api-1.
|
|
3723
|
-
windmill_api-1.
|
|
3724
|
-
windmill_api-1.
|
|
3725
|
-
windmill_api-1.
|
|
3727
|
+
windmill_api-1.473.1.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
3728
|
+
windmill_api-1.473.1.dist-info/METADATA,sha256=UL2HvRWIWa_2fHzIBYLJPR0_TK7rv_rJIlkkqcuGIck,5023
|
|
3729
|
+
windmill_api-1.473.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
3730
|
+
windmill_api-1.473.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|