windmill-api 1.477.1__py3-none-any.whl → 1.478.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/move_captures_and_configs.py +122 -0
- windmill_api/api/flow/delete_flow_by_path.py +15 -1
- windmill_api/api/job/list_completed_jobs.py +15 -0
- windmill_api/api/job/list_jobs.py +15 -0
- windmill_api/api/job/list_queue.py +15 -0
- windmill_api/api/script/delete_script_by_path.py +21 -1
- windmill_api/models/completed_job.py +8 -0
- windmill_api/models/create_http_trigger_json_body.py +17 -0
- windmill_api/models/delete_completed_job_response_200.py +8 -0
- windmill_api/models/edit_http_trigger.py +17 -0
- windmill_api/models/extended_jobs_jobs_item_type_0.py +8 -0
- windmill_api/models/extended_jobs_jobs_item_type_1.py +8 -0
- windmill_api/models/get_completed_job_response_200.py +8 -0
- windmill_api/models/get_http_trigger_response_200.py +21 -9
- windmill_api/models/get_job_response_200_type_0.py +8 -0
- windmill_api/models/get_job_response_200_type_1.py +8 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0.py +8 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1.py +8 -0
- windmill_api/models/http_trigger.py +21 -9
- windmill_api/models/list_completed_jobs_response_200_item.py +8 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0.py +8 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1.py +8 -0
- windmill_api/models/list_http_triggers_response_200_item.py +21 -9
- windmill_api/models/list_jobs_response_200_item_type_0.py +8 -0
- windmill_api/models/list_jobs_response_200_item_type_1.py +8 -0
- windmill_api/models/list_queue_response_200_item.py +8 -0
- windmill_api/models/move_captures_and_configs_json_body.py +58 -0
- windmill_api/models/move_captures_and_configs_runnable_kind.py +9 -0
- windmill_api/models/new_http_trigger.py +17 -0
- windmill_api/models/queued_job.py +8 -0
- windmill_api/models/update_http_trigger_json_body.py +17 -0
- {windmill_api-1.477.1.dist-info → windmill_api-1.478.1.dist-info}/METADATA +1 -1
- {windmill_api-1.477.1.dist-info → windmill_api-1.478.1.dist-info}/RECORD +35 -32
- {windmill_api-1.477.1.dist-info → windmill_api-1.478.1.dist-info}/LICENSE +0 -0
- {windmill_api-1.477.1.dist-info → windmill_api-1.478.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,122 @@
|
|
|
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.move_captures_and_configs_json_body import MoveCapturesAndConfigsJsonBody
|
|
9
|
+
from ...models.move_captures_and_configs_runnable_kind import MoveCapturesAndConfigsRunnableKind
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
workspace: str,
|
|
15
|
+
runnable_kind: MoveCapturesAndConfigsRunnableKind,
|
|
16
|
+
path: str,
|
|
17
|
+
*,
|
|
18
|
+
json_body: MoveCapturesAndConfigsJsonBody,
|
|
19
|
+
) -> Dict[str, Any]:
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
json_json_body = json_body.to_dict()
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
"method": "post",
|
|
26
|
+
"url": "/w/{workspace}/capture/move/{runnable_kind}/{path}".format(
|
|
27
|
+
workspace=workspace,
|
|
28
|
+
runnable_kind=runnable_kind,
|
|
29
|
+
path=path,
|
|
30
|
+
),
|
|
31
|
+
"json": json_json_body,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
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[Any]:
|
|
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: MoveCapturesAndConfigsRunnableKind,
|
|
54
|
+
path: str,
|
|
55
|
+
*,
|
|
56
|
+
client: Union[AuthenticatedClient, Client],
|
|
57
|
+
json_body: MoveCapturesAndConfigsJsonBody,
|
|
58
|
+
) -> Response[Any]:
|
|
59
|
+
"""move captures and configs for a script or flow
|
|
60
|
+
|
|
61
|
+
Args:
|
|
62
|
+
workspace (str):
|
|
63
|
+
runnable_kind (MoveCapturesAndConfigsRunnableKind):
|
|
64
|
+
path (str):
|
|
65
|
+
json_body (MoveCapturesAndConfigsJsonBody):
|
|
66
|
+
|
|
67
|
+
Raises:
|
|
68
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
69
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
70
|
+
|
|
71
|
+
Returns:
|
|
72
|
+
Response[Any]
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
kwargs = _get_kwargs(
|
|
76
|
+
workspace=workspace,
|
|
77
|
+
runnable_kind=runnable_kind,
|
|
78
|
+
path=path,
|
|
79
|
+
json_body=json_body,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
response = client.get_httpx_client().request(
|
|
83
|
+
**kwargs,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
return _build_response(client=client, response=response)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
async def asyncio_detailed(
|
|
90
|
+
workspace: str,
|
|
91
|
+
runnable_kind: MoveCapturesAndConfigsRunnableKind,
|
|
92
|
+
path: str,
|
|
93
|
+
*,
|
|
94
|
+
client: Union[AuthenticatedClient, Client],
|
|
95
|
+
json_body: MoveCapturesAndConfigsJsonBody,
|
|
96
|
+
) -> Response[Any]:
|
|
97
|
+
"""move captures and configs for a script or flow
|
|
98
|
+
|
|
99
|
+
Args:
|
|
100
|
+
workspace (str):
|
|
101
|
+
runnable_kind (MoveCapturesAndConfigsRunnableKind):
|
|
102
|
+
path (str):
|
|
103
|
+
json_body (MoveCapturesAndConfigsJsonBody):
|
|
104
|
+
|
|
105
|
+
Raises:
|
|
106
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
107
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
108
|
+
|
|
109
|
+
Returns:
|
|
110
|
+
Response[Any]
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
kwargs = _get_kwargs(
|
|
114
|
+
workspace=workspace,
|
|
115
|
+
runnable_kind=runnable_kind,
|
|
116
|
+
path=path,
|
|
117
|
+
json_body=json_body,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
121
|
+
|
|
122
|
+
return _build_response(client=client, response=response)
|
|
@@ -5,21 +5,29 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...types import Response
|
|
8
|
+
from ...types import UNSET, Response, Unset
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def _get_kwargs(
|
|
12
12
|
workspace: str,
|
|
13
13
|
path: str,
|
|
14
|
+
*,
|
|
15
|
+
keep_captures: Union[Unset, None, bool] = UNSET,
|
|
14
16
|
) -> Dict[str, Any]:
|
|
15
17
|
pass
|
|
16
18
|
|
|
19
|
+
params: Dict[str, Any] = {}
|
|
20
|
+
params["keep_captures"] = keep_captures
|
|
21
|
+
|
|
22
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
23
|
+
|
|
17
24
|
return {
|
|
18
25
|
"method": "delete",
|
|
19
26
|
"url": "/w/{workspace}/flows/delete/{path}".format(
|
|
20
27
|
workspace=workspace,
|
|
21
28
|
path=path,
|
|
22
29
|
),
|
|
30
|
+
"params": params,
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
|
|
@@ -44,12 +52,14 @@ def sync_detailed(
|
|
|
44
52
|
path: str,
|
|
45
53
|
*,
|
|
46
54
|
client: Union[AuthenticatedClient, Client],
|
|
55
|
+
keep_captures: Union[Unset, None, bool] = UNSET,
|
|
47
56
|
) -> Response[Any]:
|
|
48
57
|
"""delete flow by path
|
|
49
58
|
|
|
50
59
|
Args:
|
|
51
60
|
workspace (str):
|
|
52
61
|
path (str):
|
|
62
|
+
keep_captures (Union[Unset, None, bool]):
|
|
53
63
|
|
|
54
64
|
Raises:
|
|
55
65
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -62,6 +72,7 @@ def sync_detailed(
|
|
|
62
72
|
kwargs = _get_kwargs(
|
|
63
73
|
workspace=workspace,
|
|
64
74
|
path=path,
|
|
75
|
+
keep_captures=keep_captures,
|
|
65
76
|
)
|
|
66
77
|
|
|
67
78
|
response = client.get_httpx_client().request(
|
|
@@ -76,12 +87,14 @@ async def asyncio_detailed(
|
|
|
76
87
|
path: str,
|
|
77
88
|
*,
|
|
78
89
|
client: Union[AuthenticatedClient, Client],
|
|
90
|
+
keep_captures: Union[Unset, None, bool] = UNSET,
|
|
79
91
|
) -> Response[Any]:
|
|
80
92
|
"""delete flow by path
|
|
81
93
|
|
|
82
94
|
Args:
|
|
83
95
|
workspace (str):
|
|
84
96
|
path (str):
|
|
97
|
+
keep_captures (Union[Unset, None, bool]):
|
|
85
98
|
|
|
86
99
|
Raises:
|
|
87
100
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -94,6 +107,7 @@ async def asyncio_detailed(
|
|
|
94
107
|
kwargs = _get_kwargs(
|
|
95
108
|
workspace=workspace,
|
|
96
109
|
path=path,
|
|
110
|
+
keep_captures=keep_captures,
|
|
97
111
|
)
|
|
98
112
|
|
|
99
113
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -16,6 +16,7 @@ def _get_kwargs(
|
|
|
16
16
|
order_desc: Union[Unset, None, bool] = UNSET,
|
|
17
17
|
created_by: Union[Unset, None, str] = UNSET,
|
|
18
18
|
label: Union[Unset, None, str] = UNSET,
|
|
19
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
19
20
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
20
21
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
21
22
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
@@ -44,6 +45,8 @@ def _get_kwargs(
|
|
|
44
45
|
|
|
45
46
|
params["label"] = label
|
|
46
47
|
|
|
48
|
+
params["worker"] = worker
|
|
49
|
+
|
|
47
50
|
params["parent_job"] = parent_job
|
|
48
51
|
|
|
49
52
|
params["script_path_exact"] = script_path_exact
|
|
@@ -135,6 +138,7 @@ def sync_detailed(
|
|
|
135
138
|
order_desc: Union[Unset, None, bool] = UNSET,
|
|
136
139
|
created_by: Union[Unset, None, str] = UNSET,
|
|
137
140
|
label: Union[Unset, None, str] = UNSET,
|
|
141
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
138
142
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
139
143
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
140
144
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
@@ -161,6 +165,7 @@ def sync_detailed(
|
|
|
161
165
|
order_desc (Union[Unset, None, bool]):
|
|
162
166
|
created_by (Union[Unset, None, str]):
|
|
163
167
|
label (Union[Unset, None, str]):
|
|
168
|
+
worker (Union[Unset, None, str]):
|
|
164
169
|
parent_job (Union[Unset, None, str]):
|
|
165
170
|
script_path_exact (Union[Unset, None, str]):
|
|
166
171
|
script_path_start (Union[Unset, None, str]):
|
|
@@ -193,6 +198,7 @@ def sync_detailed(
|
|
|
193
198
|
order_desc=order_desc,
|
|
194
199
|
created_by=created_by,
|
|
195
200
|
label=label,
|
|
201
|
+
worker=worker,
|
|
196
202
|
parent_job=parent_job,
|
|
197
203
|
script_path_exact=script_path_exact,
|
|
198
204
|
script_path_start=script_path_start,
|
|
@@ -227,6 +233,7 @@ def sync(
|
|
|
227
233
|
order_desc: Union[Unset, None, bool] = UNSET,
|
|
228
234
|
created_by: Union[Unset, None, str] = UNSET,
|
|
229
235
|
label: Union[Unset, None, str] = UNSET,
|
|
236
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
230
237
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
231
238
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
232
239
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
@@ -253,6 +260,7 @@ def sync(
|
|
|
253
260
|
order_desc (Union[Unset, None, bool]):
|
|
254
261
|
created_by (Union[Unset, None, str]):
|
|
255
262
|
label (Union[Unset, None, str]):
|
|
263
|
+
worker (Union[Unset, None, str]):
|
|
256
264
|
parent_job (Union[Unset, None, str]):
|
|
257
265
|
script_path_exact (Union[Unset, None, str]):
|
|
258
266
|
script_path_start (Union[Unset, None, str]):
|
|
@@ -286,6 +294,7 @@ def sync(
|
|
|
286
294
|
order_desc=order_desc,
|
|
287
295
|
created_by=created_by,
|
|
288
296
|
label=label,
|
|
297
|
+
worker=worker,
|
|
289
298
|
parent_job=parent_job,
|
|
290
299
|
script_path_exact=script_path_exact,
|
|
291
300
|
script_path_start=script_path_start,
|
|
@@ -314,6 +323,7 @@ async def asyncio_detailed(
|
|
|
314
323
|
order_desc: Union[Unset, None, bool] = UNSET,
|
|
315
324
|
created_by: Union[Unset, None, str] = UNSET,
|
|
316
325
|
label: Union[Unset, None, str] = UNSET,
|
|
326
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
317
327
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
318
328
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
319
329
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
@@ -340,6 +350,7 @@ async def asyncio_detailed(
|
|
|
340
350
|
order_desc (Union[Unset, None, bool]):
|
|
341
351
|
created_by (Union[Unset, None, str]):
|
|
342
352
|
label (Union[Unset, None, str]):
|
|
353
|
+
worker (Union[Unset, None, str]):
|
|
343
354
|
parent_job (Union[Unset, None, str]):
|
|
344
355
|
script_path_exact (Union[Unset, None, str]):
|
|
345
356
|
script_path_start (Union[Unset, None, str]):
|
|
@@ -372,6 +383,7 @@ async def asyncio_detailed(
|
|
|
372
383
|
order_desc=order_desc,
|
|
373
384
|
created_by=created_by,
|
|
374
385
|
label=label,
|
|
386
|
+
worker=worker,
|
|
375
387
|
parent_job=parent_job,
|
|
376
388
|
script_path_exact=script_path_exact,
|
|
377
389
|
script_path_start=script_path_start,
|
|
@@ -404,6 +416,7 @@ async def asyncio(
|
|
|
404
416
|
order_desc: Union[Unset, None, bool] = UNSET,
|
|
405
417
|
created_by: Union[Unset, None, str] = UNSET,
|
|
406
418
|
label: Union[Unset, None, str] = UNSET,
|
|
419
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
407
420
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
408
421
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
409
422
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
@@ -430,6 +443,7 @@ async def asyncio(
|
|
|
430
443
|
order_desc (Union[Unset, None, bool]):
|
|
431
444
|
created_by (Union[Unset, None, str]):
|
|
432
445
|
label (Union[Unset, None, str]):
|
|
446
|
+
worker (Union[Unset, None, str]):
|
|
433
447
|
parent_job (Union[Unset, None, str]):
|
|
434
448
|
script_path_exact (Union[Unset, None, str]):
|
|
435
449
|
script_path_start (Union[Unset, None, str]):
|
|
@@ -464,6 +478,7 @@ async def asyncio(
|
|
|
464
478
|
order_desc=order_desc,
|
|
465
479
|
created_by=created_by,
|
|
466
480
|
label=label,
|
|
481
|
+
worker=worker,
|
|
467
482
|
parent_job=parent_job,
|
|
468
483
|
script_path_exact=script_path_exact,
|
|
469
484
|
script_path_start=script_path_start,
|
|
@@ -16,6 +16,7 @@ def _get_kwargs(
|
|
|
16
16
|
*,
|
|
17
17
|
created_by: Union[Unset, None, str] = UNSET,
|
|
18
18
|
label: Union[Unset, None, str] = UNSET,
|
|
19
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
19
20
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
20
21
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
21
22
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
@@ -51,6 +52,8 @@ def _get_kwargs(
|
|
|
51
52
|
|
|
52
53
|
params["label"] = label
|
|
53
54
|
|
|
55
|
+
params["worker"] = worker
|
|
56
|
+
|
|
54
57
|
params["parent_job"] = parent_job
|
|
55
58
|
|
|
56
59
|
params["script_path_exact"] = script_path_exact
|
|
@@ -199,6 +202,7 @@ def sync_detailed(
|
|
|
199
202
|
client: Union[AuthenticatedClient, Client],
|
|
200
203
|
created_by: Union[Unset, None, str] = UNSET,
|
|
201
204
|
label: Union[Unset, None, str] = UNSET,
|
|
205
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
202
206
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
203
207
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
204
208
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
@@ -233,6 +237,7 @@ def sync_detailed(
|
|
|
233
237
|
workspace (str):
|
|
234
238
|
created_by (Union[Unset, None, str]):
|
|
235
239
|
label (Union[Unset, None, str]):
|
|
240
|
+
worker (Union[Unset, None, str]):
|
|
236
241
|
parent_job (Union[Unset, None, str]):
|
|
237
242
|
script_path_exact (Union[Unset, None, str]):
|
|
238
243
|
script_path_start (Union[Unset, None, str]):
|
|
@@ -273,6 +278,7 @@ def sync_detailed(
|
|
|
273
278
|
workspace=workspace,
|
|
274
279
|
created_by=created_by,
|
|
275
280
|
label=label,
|
|
281
|
+
worker=worker,
|
|
276
282
|
parent_job=parent_job,
|
|
277
283
|
script_path_exact=script_path_exact,
|
|
278
284
|
script_path_start=script_path_start,
|
|
@@ -315,6 +321,7 @@ def sync(
|
|
|
315
321
|
client: Union[AuthenticatedClient, Client],
|
|
316
322
|
created_by: Union[Unset, None, str] = UNSET,
|
|
317
323
|
label: Union[Unset, None, str] = UNSET,
|
|
324
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
318
325
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
319
326
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
320
327
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
@@ -349,6 +356,7 @@ def sync(
|
|
|
349
356
|
workspace (str):
|
|
350
357
|
created_by (Union[Unset, None, str]):
|
|
351
358
|
label (Union[Unset, None, str]):
|
|
359
|
+
worker (Union[Unset, None, str]):
|
|
352
360
|
parent_job (Union[Unset, None, str]):
|
|
353
361
|
script_path_exact (Union[Unset, None, str]):
|
|
354
362
|
script_path_start (Union[Unset, None, str]):
|
|
@@ -390,6 +398,7 @@ def sync(
|
|
|
390
398
|
client=client,
|
|
391
399
|
created_by=created_by,
|
|
392
400
|
label=label,
|
|
401
|
+
worker=worker,
|
|
393
402
|
parent_job=parent_job,
|
|
394
403
|
script_path_exact=script_path_exact,
|
|
395
404
|
script_path_start=script_path_start,
|
|
@@ -426,6 +435,7 @@ async def asyncio_detailed(
|
|
|
426
435
|
client: Union[AuthenticatedClient, Client],
|
|
427
436
|
created_by: Union[Unset, None, str] = UNSET,
|
|
428
437
|
label: Union[Unset, None, str] = UNSET,
|
|
438
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
429
439
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
430
440
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
431
441
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
@@ -460,6 +470,7 @@ async def asyncio_detailed(
|
|
|
460
470
|
workspace (str):
|
|
461
471
|
created_by (Union[Unset, None, str]):
|
|
462
472
|
label (Union[Unset, None, str]):
|
|
473
|
+
worker (Union[Unset, None, str]):
|
|
463
474
|
parent_job (Union[Unset, None, str]):
|
|
464
475
|
script_path_exact (Union[Unset, None, str]):
|
|
465
476
|
script_path_start (Union[Unset, None, str]):
|
|
@@ -500,6 +511,7 @@ async def asyncio_detailed(
|
|
|
500
511
|
workspace=workspace,
|
|
501
512
|
created_by=created_by,
|
|
502
513
|
label=label,
|
|
514
|
+
worker=worker,
|
|
503
515
|
parent_job=parent_job,
|
|
504
516
|
script_path_exact=script_path_exact,
|
|
505
517
|
script_path_start=script_path_start,
|
|
@@ -540,6 +552,7 @@ async def asyncio(
|
|
|
540
552
|
client: Union[AuthenticatedClient, Client],
|
|
541
553
|
created_by: Union[Unset, None, str] = UNSET,
|
|
542
554
|
label: Union[Unset, None, str] = UNSET,
|
|
555
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
543
556
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
544
557
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
545
558
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
@@ -574,6 +587,7 @@ async def asyncio(
|
|
|
574
587
|
workspace (str):
|
|
575
588
|
created_by (Union[Unset, None, str]):
|
|
576
589
|
label (Union[Unset, None, str]):
|
|
590
|
+
worker (Union[Unset, None, str]):
|
|
577
591
|
parent_job (Union[Unset, None, str]):
|
|
578
592
|
script_path_exact (Union[Unset, None, str]):
|
|
579
593
|
script_path_start (Union[Unset, None, str]):
|
|
@@ -616,6 +630,7 @@ async def asyncio(
|
|
|
616
630
|
client=client,
|
|
617
631
|
created_by=created_by,
|
|
618
632
|
label=label,
|
|
633
|
+
worker=worker,
|
|
619
634
|
parent_job=parent_job,
|
|
620
635
|
script_path_exact=script_path_exact,
|
|
621
636
|
script_path_start=script_path_start,
|
|
@@ -16,6 +16,7 @@ def _get_kwargs(
|
|
|
16
16
|
order_desc: Union[Unset, None, bool] = UNSET,
|
|
17
17
|
created_by: Union[Unset, None, str] = UNSET,
|
|
18
18
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
19
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
19
20
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
20
21
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
21
22
|
schedule_path: Union[Unset, None, str] = UNSET,
|
|
@@ -44,6 +45,8 @@ def _get_kwargs(
|
|
|
44
45
|
|
|
45
46
|
params["parent_job"] = parent_job
|
|
46
47
|
|
|
48
|
+
params["worker"] = worker
|
|
49
|
+
|
|
47
50
|
params["script_path_exact"] = script_path_exact
|
|
48
51
|
|
|
49
52
|
params["script_path_start"] = script_path_start
|
|
@@ -135,6 +138,7 @@ def sync_detailed(
|
|
|
135
138
|
order_desc: Union[Unset, None, bool] = UNSET,
|
|
136
139
|
created_by: Union[Unset, None, str] = UNSET,
|
|
137
140
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
141
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
138
142
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
139
143
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
140
144
|
schedule_path: Union[Unset, None, str] = UNSET,
|
|
@@ -161,6 +165,7 @@ def sync_detailed(
|
|
|
161
165
|
order_desc (Union[Unset, None, bool]):
|
|
162
166
|
created_by (Union[Unset, None, str]):
|
|
163
167
|
parent_job (Union[Unset, None, str]):
|
|
168
|
+
worker (Union[Unset, None, str]):
|
|
164
169
|
script_path_exact (Union[Unset, None, str]):
|
|
165
170
|
script_path_start (Union[Unset, None, str]):
|
|
166
171
|
schedule_path (Union[Unset, None, str]):
|
|
@@ -193,6 +198,7 @@ def sync_detailed(
|
|
|
193
198
|
order_desc=order_desc,
|
|
194
199
|
created_by=created_by,
|
|
195
200
|
parent_job=parent_job,
|
|
201
|
+
worker=worker,
|
|
196
202
|
script_path_exact=script_path_exact,
|
|
197
203
|
script_path_start=script_path_start,
|
|
198
204
|
schedule_path=schedule_path,
|
|
@@ -227,6 +233,7 @@ def sync(
|
|
|
227
233
|
order_desc: Union[Unset, None, bool] = UNSET,
|
|
228
234
|
created_by: Union[Unset, None, str] = UNSET,
|
|
229
235
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
236
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
230
237
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
231
238
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
232
239
|
schedule_path: Union[Unset, None, str] = UNSET,
|
|
@@ -253,6 +260,7 @@ def sync(
|
|
|
253
260
|
order_desc (Union[Unset, None, bool]):
|
|
254
261
|
created_by (Union[Unset, None, str]):
|
|
255
262
|
parent_job (Union[Unset, None, str]):
|
|
263
|
+
worker (Union[Unset, None, str]):
|
|
256
264
|
script_path_exact (Union[Unset, None, str]):
|
|
257
265
|
script_path_start (Union[Unset, None, str]):
|
|
258
266
|
schedule_path (Union[Unset, None, str]):
|
|
@@ -286,6 +294,7 @@ def sync(
|
|
|
286
294
|
order_desc=order_desc,
|
|
287
295
|
created_by=created_by,
|
|
288
296
|
parent_job=parent_job,
|
|
297
|
+
worker=worker,
|
|
289
298
|
script_path_exact=script_path_exact,
|
|
290
299
|
script_path_start=script_path_start,
|
|
291
300
|
schedule_path=schedule_path,
|
|
@@ -314,6 +323,7 @@ async def asyncio_detailed(
|
|
|
314
323
|
order_desc: Union[Unset, None, bool] = UNSET,
|
|
315
324
|
created_by: Union[Unset, None, str] = UNSET,
|
|
316
325
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
326
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
317
327
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
318
328
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
319
329
|
schedule_path: Union[Unset, None, str] = UNSET,
|
|
@@ -340,6 +350,7 @@ async def asyncio_detailed(
|
|
|
340
350
|
order_desc (Union[Unset, None, bool]):
|
|
341
351
|
created_by (Union[Unset, None, str]):
|
|
342
352
|
parent_job (Union[Unset, None, str]):
|
|
353
|
+
worker (Union[Unset, None, str]):
|
|
343
354
|
script_path_exact (Union[Unset, None, str]):
|
|
344
355
|
script_path_start (Union[Unset, None, str]):
|
|
345
356
|
schedule_path (Union[Unset, None, str]):
|
|
@@ -372,6 +383,7 @@ async def asyncio_detailed(
|
|
|
372
383
|
order_desc=order_desc,
|
|
373
384
|
created_by=created_by,
|
|
374
385
|
parent_job=parent_job,
|
|
386
|
+
worker=worker,
|
|
375
387
|
script_path_exact=script_path_exact,
|
|
376
388
|
script_path_start=script_path_start,
|
|
377
389
|
schedule_path=schedule_path,
|
|
@@ -404,6 +416,7 @@ async def asyncio(
|
|
|
404
416
|
order_desc: Union[Unset, None, bool] = UNSET,
|
|
405
417
|
created_by: Union[Unset, None, str] = UNSET,
|
|
406
418
|
parent_job: Union[Unset, None, str] = UNSET,
|
|
419
|
+
worker: Union[Unset, None, str] = UNSET,
|
|
407
420
|
script_path_exact: Union[Unset, None, str] = UNSET,
|
|
408
421
|
script_path_start: Union[Unset, None, str] = UNSET,
|
|
409
422
|
schedule_path: Union[Unset, None, str] = UNSET,
|
|
@@ -430,6 +443,7 @@ async def asyncio(
|
|
|
430
443
|
order_desc (Union[Unset, None, bool]):
|
|
431
444
|
created_by (Union[Unset, None, str]):
|
|
432
445
|
parent_job (Union[Unset, None, str]):
|
|
446
|
+
worker (Union[Unset, None, str]):
|
|
433
447
|
script_path_exact (Union[Unset, None, str]):
|
|
434
448
|
script_path_start (Union[Unset, None, str]):
|
|
435
449
|
schedule_path (Union[Unset, None, str]):
|
|
@@ -464,6 +478,7 @@ async def asyncio(
|
|
|
464
478
|
order_desc=order_desc,
|
|
465
479
|
created_by=created_by,
|
|
466
480
|
parent_job=parent_job,
|
|
481
|
+
worker=worker,
|
|
467
482
|
script_path_exact=script_path_exact,
|
|
468
483
|
script_path_start=script_path_start,
|
|
469
484
|
schedule_path=schedule_path,
|
|
@@ -5,21 +5,29 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...types import Response
|
|
8
|
+
from ...types import UNSET, Response, Unset
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def _get_kwargs(
|
|
12
12
|
workspace: str,
|
|
13
13
|
path: str,
|
|
14
|
+
*,
|
|
15
|
+
keep_captures: Union[Unset, None, bool] = UNSET,
|
|
14
16
|
) -> Dict[str, Any]:
|
|
15
17
|
pass
|
|
16
18
|
|
|
19
|
+
params: Dict[str, Any] = {}
|
|
20
|
+
params["keep_captures"] = keep_captures
|
|
21
|
+
|
|
22
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
23
|
+
|
|
17
24
|
return {
|
|
18
25
|
"method": "post",
|
|
19
26
|
"url": "/w/{workspace}/scripts/delete/p/{path}".format(
|
|
20
27
|
workspace=workspace,
|
|
21
28
|
path=path,
|
|
22
29
|
),
|
|
30
|
+
"params": params,
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
|
|
@@ -47,12 +55,14 @@ def sync_detailed(
|
|
|
47
55
|
path: str,
|
|
48
56
|
*,
|
|
49
57
|
client: Union[AuthenticatedClient, Client],
|
|
58
|
+
keep_captures: Union[Unset, None, bool] = UNSET,
|
|
50
59
|
) -> Response[str]:
|
|
51
60
|
"""delete script at a given path (require admin)
|
|
52
61
|
|
|
53
62
|
Args:
|
|
54
63
|
workspace (str):
|
|
55
64
|
path (str):
|
|
65
|
+
keep_captures (Union[Unset, None, bool]):
|
|
56
66
|
|
|
57
67
|
Raises:
|
|
58
68
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -65,6 +75,7 @@ def sync_detailed(
|
|
|
65
75
|
kwargs = _get_kwargs(
|
|
66
76
|
workspace=workspace,
|
|
67
77
|
path=path,
|
|
78
|
+
keep_captures=keep_captures,
|
|
68
79
|
)
|
|
69
80
|
|
|
70
81
|
response = client.get_httpx_client().request(
|
|
@@ -79,12 +90,14 @@ def sync(
|
|
|
79
90
|
path: str,
|
|
80
91
|
*,
|
|
81
92
|
client: Union[AuthenticatedClient, Client],
|
|
93
|
+
keep_captures: Union[Unset, None, bool] = UNSET,
|
|
82
94
|
) -> Optional[str]:
|
|
83
95
|
"""delete script at a given path (require admin)
|
|
84
96
|
|
|
85
97
|
Args:
|
|
86
98
|
workspace (str):
|
|
87
99
|
path (str):
|
|
100
|
+
keep_captures (Union[Unset, None, bool]):
|
|
88
101
|
|
|
89
102
|
Raises:
|
|
90
103
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -98,6 +111,7 @@ def sync(
|
|
|
98
111
|
workspace=workspace,
|
|
99
112
|
path=path,
|
|
100
113
|
client=client,
|
|
114
|
+
keep_captures=keep_captures,
|
|
101
115
|
).parsed
|
|
102
116
|
|
|
103
117
|
|
|
@@ -106,12 +120,14 @@ async def asyncio_detailed(
|
|
|
106
120
|
path: str,
|
|
107
121
|
*,
|
|
108
122
|
client: Union[AuthenticatedClient, Client],
|
|
123
|
+
keep_captures: Union[Unset, None, bool] = UNSET,
|
|
109
124
|
) -> Response[str]:
|
|
110
125
|
"""delete script at a given path (require admin)
|
|
111
126
|
|
|
112
127
|
Args:
|
|
113
128
|
workspace (str):
|
|
114
129
|
path (str):
|
|
130
|
+
keep_captures (Union[Unset, None, bool]):
|
|
115
131
|
|
|
116
132
|
Raises:
|
|
117
133
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -124,6 +140,7 @@ async def asyncio_detailed(
|
|
|
124
140
|
kwargs = _get_kwargs(
|
|
125
141
|
workspace=workspace,
|
|
126
142
|
path=path,
|
|
143
|
+
keep_captures=keep_captures,
|
|
127
144
|
)
|
|
128
145
|
|
|
129
146
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -136,12 +153,14 @@ async def asyncio(
|
|
|
136
153
|
path: str,
|
|
137
154
|
*,
|
|
138
155
|
client: Union[AuthenticatedClient, Client],
|
|
156
|
+
keep_captures: Union[Unset, None, bool] = UNSET,
|
|
139
157
|
) -> Optional[str]:
|
|
140
158
|
"""delete script at a given path (require admin)
|
|
141
159
|
|
|
142
160
|
Args:
|
|
143
161
|
workspace (str):
|
|
144
162
|
path (str):
|
|
163
|
+
keep_captures (Union[Unset, None, bool]):
|
|
145
164
|
|
|
146
165
|
Raises:
|
|
147
166
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -156,5 +175,6 @@ async def asyncio(
|
|
|
156
175
|
workspace=workspace,
|
|
157
176
|
path=path,
|
|
158
177
|
client=client,
|
|
178
|
+
keep_captures=keep_captures,
|
|
159
179
|
)
|
|
160
180
|
).parsed
|
|
@@ -58,6 +58,7 @@ class CompletedJob:
|
|
|
58
58
|
self_wait_time_ms (Union[Unset, float]):
|
|
59
59
|
aggregate_wait_time_ms (Union[Unset, float]):
|
|
60
60
|
preprocessed (Union[Unset, bool]):
|
|
61
|
+
worker (Union[Unset, str]):
|
|
61
62
|
"""
|
|
62
63
|
|
|
63
64
|
id: str
|
|
@@ -95,6 +96,7 @@ class CompletedJob:
|
|
|
95
96
|
self_wait_time_ms: Union[Unset, float] = UNSET
|
|
96
97
|
aggregate_wait_time_ms: Union[Unset, float] = UNSET
|
|
97
98
|
preprocessed: Union[Unset, bool] = UNSET
|
|
99
|
+
worker: Union[Unset, str] = UNSET
|
|
98
100
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
99
101
|
|
|
100
102
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -151,6 +153,7 @@ class CompletedJob:
|
|
|
151
153
|
self_wait_time_ms = self.self_wait_time_ms
|
|
152
154
|
aggregate_wait_time_ms = self.aggregate_wait_time_ms
|
|
153
155
|
preprocessed = self.preprocessed
|
|
156
|
+
worker = self.worker
|
|
154
157
|
|
|
155
158
|
field_dict: Dict[str, Any] = {}
|
|
156
159
|
field_dict.update(self.additional_properties)
|
|
@@ -214,6 +217,8 @@ class CompletedJob:
|
|
|
214
217
|
field_dict["aggregate_wait_time_ms"] = aggregate_wait_time_ms
|
|
215
218
|
if preprocessed is not UNSET:
|
|
216
219
|
field_dict["preprocessed"] = preprocessed
|
|
220
|
+
if worker is not UNSET:
|
|
221
|
+
field_dict["worker"] = worker
|
|
217
222
|
|
|
218
223
|
return field_dict
|
|
219
224
|
|
|
@@ -314,6 +319,8 @@ class CompletedJob:
|
|
|
314
319
|
|
|
315
320
|
preprocessed = d.pop("preprocessed", UNSET)
|
|
316
321
|
|
|
322
|
+
worker = d.pop("worker", UNSET)
|
|
323
|
+
|
|
317
324
|
completed_job = cls(
|
|
318
325
|
id=id,
|
|
319
326
|
created_by=created_by,
|
|
@@ -350,6 +357,7 @@ class CompletedJob:
|
|
|
350
357
|
self_wait_time_ms=self_wait_time_ms,
|
|
351
358
|
aggregate_wait_time_ms=aggregate_wait_time_ms,
|
|
352
359
|
preprocessed=preprocessed,
|
|
360
|
+
worker=worker,
|
|
353
361
|
)
|
|
354
362
|
|
|
355
363
|
completed_job.additional_properties = d
|