windmill-api 1.390.1__py3-none-any.whl → 1.392.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/list_jobs.py +38 -0
- windmill_api/api/oauth/connect_slack_callback_instance.py +96 -0
- windmill_api/models/connect_slack_callback_instance_json_body.py +65 -0
- windmill_api/models/create_schedule_json_body.py +26 -0
- windmill_api/models/create_schedule_json_body_on_success_extra_args.py +44 -0
- windmill_api/models/edit_schedule.py +26 -0
- windmill_api/models/edit_schedule_on_success_extra_args.py +44 -0
- windmill_api/models/get_schedule_response_200.py +26 -0
- windmill_api/models/get_schedule_response_200_on_success_extra_args.py +44 -0
- windmill_api/models/list_schedules_response_200_item.py +30 -0
- windmill_api/models/list_schedules_response_200_item_on_success_extra_args.py +44 -0
- windmill_api/models/list_schedules_with_jobs_response_200_item.py +32 -0
- windmill_api/models/list_schedules_with_jobs_response_200_item_on_success_extra_args.py +44 -0
- windmill_api/models/new_schedule.py +26 -0
- windmill_api/models/new_schedule_on_success_extra_args.py +44 -0
- windmill_api/models/schedule.py +26 -0
- windmill_api/models/schedule_on_success_extra_args.py +44 -0
- windmill_api/models/schedule_w_jobs.py +26 -0
- windmill_api/models/schedule_w_jobs_on_success_extra_args.py +44 -0
- windmill_api/models/set_default_error_or_recovery_handler_json_body_handler_type.py +1 -0
- windmill_api/models/update_schedule_json_body.py +26 -0
- windmill_api/models/update_schedule_json_body_on_success_extra_args.py +44 -0
- {windmill_api-1.390.1.dist-info → windmill_api-1.392.0.dist-info}/METADATA +1 -1
- {windmill_api-1.390.1.dist-info → windmill_api-1.392.0.dist-info}/RECORD +26 -15
- {windmill_api-1.390.1.dist-info → windmill_api-1.392.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.390.1.dist-info → windmill_api-1.392.0.dist-info}/WHEEL +0 -0
|
@@ -16,6 +16,9 @@ if TYPE_CHECKING:
|
|
|
16
16
|
from ..models.list_schedules_response_200_item_on_recovery_extra_args import (
|
|
17
17
|
ListSchedulesResponse200ItemOnRecoveryExtraArgs,
|
|
18
18
|
)
|
|
19
|
+
from ..models.list_schedules_response_200_item_on_success_extra_args import (
|
|
20
|
+
ListSchedulesResponse200ItemOnSuccessExtraArgs,
|
|
21
|
+
)
|
|
19
22
|
from ..models.list_schedules_response_200_item_retry import ListSchedulesResponse200ItemRetry
|
|
20
23
|
|
|
21
24
|
|
|
@@ -45,6 +48,8 @@ class ListSchedulesResponse200Item:
|
|
|
45
48
|
on_recovery (Union[Unset, str]):
|
|
46
49
|
on_recovery_times (Union[Unset, float]):
|
|
47
50
|
on_recovery_extra_args (Union[Unset, ListSchedulesResponse200ItemOnRecoveryExtraArgs]):
|
|
51
|
+
on_success (Union[Unset, str]):
|
|
52
|
+
on_success_extra_args (Union[Unset, ListSchedulesResponse200ItemOnSuccessExtraArgs]):
|
|
48
53
|
ws_error_handler_muted (Union[Unset, bool]):
|
|
49
54
|
retry (Union[Unset, ListSchedulesResponse200ItemRetry]):
|
|
50
55
|
summary (Union[Unset, str]):
|
|
@@ -72,6 +77,8 @@ class ListSchedulesResponse200Item:
|
|
|
72
77
|
on_recovery: Union[Unset, str] = UNSET
|
|
73
78
|
on_recovery_times: Union[Unset, float] = UNSET
|
|
74
79
|
on_recovery_extra_args: Union[Unset, "ListSchedulesResponse200ItemOnRecoveryExtraArgs"] = UNSET
|
|
80
|
+
on_success: Union[Unset, str] = UNSET
|
|
81
|
+
on_success_extra_args: Union[Unset, "ListSchedulesResponse200ItemOnSuccessExtraArgs"] = UNSET
|
|
75
82
|
ws_error_handler_muted: Union[Unset, bool] = UNSET
|
|
76
83
|
retry: Union[Unset, "ListSchedulesResponse200ItemRetry"] = UNSET
|
|
77
84
|
summary: Union[Unset, str] = UNSET
|
|
@@ -111,6 +118,11 @@ class ListSchedulesResponse200Item:
|
|
|
111
118
|
if not isinstance(self.on_recovery_extra_args, Unset):
|
|
112
119
|
on_recovery_extra_args = self.on_recovery_extra_args.to_dict()
|
|
113
120
|
|
|
121
|
+
on_success = self.on_success
|
|
122
|
+
on_success_extra_args: Union[Unset, Dict[str, Any]] = UNSET
|
|
123
|
+
if not isinstance(self.on_success_extra_args, Unset):
|
|
124
|
+
on_success_extra_args = self.on_success_extra_args.to_dict()
|
|
125
|
+
|
|
114
126
|
ws_error_handler_muted = self.ws_error_handler_muted
|
|
115
127
|
retry: Union[Unset, Dict[str, Any]] = UNSET
|
|
116
128
|
if not isinstance(self.retry, Unset):
|
|
@@ -157,6 +169,10 @@ class ListSchedulesResponse200Item:
|
|
|
157
169
|
field_dict["on_recovery_times"] = on_recovery_times
|
|
158
170
|
if on_recovery_extra_args is not UNSET:
|
|
159
171
|
field_dict["on_recovery_extra_args"] = on_recovery_extra_args
|
|
172
|
+
if on_success is not UNSET:
|
|
173
|
+
field_dict["on_success"] = on_success
|
|
174
|
+
if on_success_extra_args is not UNSET:
|
|
175
|
+
field_dict["on_success_extra_args"] = on_success_extra_args
|
|
160
176
|
if ws_error_handler_muted is not UNSET:
|
|
161
177
|
field_dict["ws_error_handler_muted"] = ws_error_handler_muted
|
|
162
178
|
if retry is not UNSET:
|
|
@@ -182,6 +198,9 @@ class ListSchedulesResponse200Item:
|
|
|
182
198
|
from ..models.list_schedules_response_200_item_on_recovery_extra_args import (
|
|
183
199
|
ListSchedulesResponse200ItemOnRecoveryExtraArgs,
|
|
184
200
|
)
|
|
201
|
+
from ..models.list_schedules_response_200_item_on_success_extra_args import (
|
|
202
|
+
ListSchedulesResponse200ItemOnSuccessExtraArgs,
|
|
203
|
+
)
|
|
185
204
|
from ..models.list_schedules_response_200_item_retry import ListSchedulesResponse200ItemRetry
|
|
186
205
|
|
|
187
206
|
d = src_dict.copy()
|
|
@@ -238,6 +257,15 @@ class ListSchedulesResponse200Item:
|
|
|
238
257
|
else:
|
|
239
258
|
on_recovery_extra_args = ListSchedulesResponse200ItemOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args)
|
|
240
259
|
|
|
260
|
+
on_success = d.pop("on_success", UNSET)
|
|
261
|
+
|
|
262
|
+
_on_success_extra_args = d.pop("on_success_extra_args", UNSET)
|
|
263
|
+
on_success_extra_args: Union[Unset, ListSchedulesResponse200ItemOnSuccessExtraArgs]
|
|
264
|
+
if isinstance(_on_success_extra_args, Unset):
|
|
265
|
+
on_success_extra_args = UNSET
|
|
266
|
+
else:
|
|
267
|
+
on_success_extra_args = ListSchedulesResponse200ItemOnSuccessExtraArgs.from_dict(_on_success_extra_args)
|
|
268
|
+
|
|
241
269
|
ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET)
|
|
242
270
|
|
|
243
271
|
_retry = d.pop("retry", UNSET)
|
|
@@ -280,6 +308,8 @@ class ListSchedulesResponse200Item:
|
|
|
280
308
|
on_recovery=on_recovery,
|
|
281
309
|
on_recovery_times=on_recovery_times,
|
|
282
310
|
on_recovery_extra_args=on_recovery_extra_args,
|
|
311
|
+
on_success=on_success,
|
|
312
|
+
on_success_extra_args=on_success_extra_args,
|
|
283
313
|
ws_error_handler_muted=ws_error_handler_muted,
|
|
284
314
|
retry=retry,
|
|
285
315
|
summary=summary,
|
|
@@ -0,0 +1,44 @@
|
|
|
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="ListSchedulesResponse200ItemOnSuccessExtraArgs")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class ListSchedulesResponse200ItemOnSuccessExtraArgs:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
list_schedules_response_200_item_on_success_extra_args = cls()
|
|
26
|
+
|
|
27
|
+
list_schedules_response_200_item_on_success_extra_args.additional_properties = d
|
|
28
|
+
return list_schedules_response_200_item_on_success_extra_args
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -21,6 +21,9 @@ if TYPE_CHECKING:
|
|
|
21
21
|
from ..models.list_schedules_with_jobs_response_200_item_on_recovery_extra_args import (
|
|
22
22
|
ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs,
|
|
23
23
|
)
|
|
24
|
+
from ..models.list_schedules_with_jobs_response_200_item_on_success_extra_args import (
|
|
25
|
+
ListSchedulesWithJobsResponse200ItemOnSuccessExtraArgs,
|
|
26
|
+
)
|
|
24
27
|
from ..models.list_schedules_with_jobs_response_200_item_retry import ListSchedulesWithJobsResponse200ItemRetry
|
|
25
28
|
|
|
26
29
|
|
|
@@ -50,6 +53,8 @@ class ListSchedulesWithJobsResponse200Item:
|
|
|
50
53
|
on_recovery (Union[Unset, str]):
|
|
51
54
|
on_recovery_times (Union[Unset, float]):
|
|
52
55
|
on_recovery_extra_args (Union[Unset, ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs]):
|
|
56
|
+
on_success (Union[Unset, str]):
|
|
57
|
+
on_success_extra_args (Union[Unset, ListSchedulesWithJobsResponse200ItemOnSuccessExtraArgs]):
|
|
53
58
|
ws_error_handler_muted (Union[Unset, bool]):
|
|
54
59
|
retry (Union[Unset, ListSchedulesWithJobsResponse200ItemRetry]):
|
|
55
60
|
summary (Union[Unset, str]):
|
|
@@ -78,6 +83,8 @@ class ListSchedulesWithJobsResponse200Item:
|
|
|
78
83
|
on_recovery: Union[Unset, str] = UNSET
|
|
79
84
|
on_recovery_times: Union[Unset, float] = UNSET
|
|
80
85
|
on_recovery_extra_args: Union[Unset, "ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs"] = UNSET
|
|
86
|
+
on_success: Union[Unset, str] = UNSET
|
|
87
|
+
on_success_extra_args: Union[Unset, "ListSchedulesWithJobsResponse200ItemOnSuccessExtraArgs"] = UNSET
|
|
81
88
|
ws_error_handler_muted: Union[Unset, bool] = UNSET
|
|
82
89
|
retry: Union[Unset, "ListSchedulesWithJobsResponse200ItemRetry"] = UNSET
|
|
83
90
|
summary: Union[Unset, str] = UNSET
|
|
@@ -118,6 +125,11 @@ class ListSchedulesWithJobsResponse200Item:
|
|
|
118
125
|
if not isinstance(self.on_recovery_extra_args, Unset):
|
|
119
126
|
on_recovery_extra_args = self.on_recovery_extra_args.to_dict()
|
|
120
127
|
|
|
128
|
+
on_success = self.on_success
|
|
129
|
+
on_success_extra_args: Union[Unset, Dict[str, Any]] = UNSET
|
|
130
|
+
if not isinstance(self.on_success_extra_args, Unset):
|
|
131
|
+
on_success_extra_args = self.on_success_extra_args.to_dict()
|
|
132
|
+
|
|
121
133
|
ws_error_handler_muted = self.ws_error_handler_muted
|
|
122
134
|
retry: Union[Unset, Dict[str, Any]] = UNSET
|
|
123
135
|
if not isinstance(self.retry, Unset):
|
|
@@ -172,6 +184,10 @@ class ListSchedulesWithJobsResponse200Item:
|
|
|
172
184
|
field_dict["on_recovery_times"] = on_recovery_times
|
|
173
185
|
if on_recovery_extra_args is not UNSET:
|
|
174
186
|
field_dict["on_recovery_extra_args"] = on_recovery_extra_args
|
|
187
|
+
if on_success is not UNSET:
|
|
188
|
+
field_dict["on_success"] = on_success
|
|
189
|
+
if on_success_extra_args is not UNSET:
|
|
190
|
+
field_dict["on_success_extra_args"] = on_success_extra_args
|
|
175
191
|
if ws_error_handler_muted is not UNSET:
|
|
176
192
|
field_dict["ws_error_handler_muted"] = ws_error_handler_muted
|
|
177
193
|
if retry is not UNSET:
|
|
@@ -204,6 +220,9 @@ class ListSchedulesWithJobsResponse200Item:
|
|
|
204
220
|
from ..models.list_schedules_with_jobs_response_200_item_on_recovery_extra_args import (
|
|
205
221
|
ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs,
|
|
206
222
|
)
|
|
223
|
+
from ..models.list_schedules_with_jobs_response_200_item_on_success_extra_args import (
|
|
224
|
+
ListSchedulesWithJobsResponse200ItemOnSuccessExtraArgs,
|
|
225
|
+
)
|
|
207
226
|
from ..models.list_schedules_with_jobs_response_200_item_retry import ListSchedulesWithJobsResponse200ItemRetry
|
|
208
227
|
|
|
209
228
|
d = src_dict.copy()
|
|
@@ -264,6 +283,17 @@ class ListSchedulesWithJobsResponse200Item:
|
|
|
264
283
|
_on_recovery_extra_args
|
|
265
284
|
)
|
|
266
285
|
|
|
286
|
+
on_success = d.pop("on_success", UNSET)
|
|
287
|
+
|
|
288
|
+
_on_success_extra_args = d.pop("on_success_extra_args", UNSET)
|
|
289
|
+
on_success_extra_args: Union[Unset, ListSchedulesWithJobsResponse200ItemOnSuccessExtraArgs]
|
|
290
|
+
if isinstance(_on_success_extra_args, Unset):
|
|
291
|
+
on_success_extra_args = UNSET
|
|
292
|
+
else:
|
|
293
|
+
on_success_extra_args = ListSchedulesWithJobsResponse200ItemOnSuccessExtraArgs.from_dict(
|
|
294
|
+
_on_success_extra_args
|
|
295
|
+
)
|
|
296
|
+
|
|
267
297
|
ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET)
|
|
268
298
|
|
|
269
299
|
_retry = d.pop("retry", UNSET)
|
|
@@ -313,6 +343,8 @@ class ListSchedulesWithJobsResponse200Item:
|
|
|
313
343
|
on_recovery=on_recovery,
|
|
314
344
|
on_recovery_times=on_recovery_times,
|
|
315
345
|
on_recovery_extra_args=on_recovery_extra_args,
|
|
346
|
+
on_success=on_success,
|
|
347
|
+
on_success_extra_args=on_success_extra_args,
|
|
316
348
|
ws_error_handler_muted=ws_error_handler_muted,
|
|
317
349
|
retry=retry,
|
|
318
350
|
summary=summary,
|
|
@@ -0,0 +1,44 @@
|
|
|
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="ListSchedulesWithJobsResponse200ItemOnSuccessExtraArgs")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class ListSchedulesWithJobsResponse200ItemOnSuccessExtraArgs:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
list_schedules_with_jobs_response_200_item_on_success_extra_args = cls()
|
|
26
|
+
|
|
27
|
+
list_schedules_with_jobs_response_200_item_on_success_extra_args.additional_properties = d
|
|
28
|
+
return list_schedules_with_jobs_response_200_item_on_success_extra_args
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -11,6 +11,7 @@ if TYPE_CHECKING:
|
|
|
11
11
|
from ..models.new_schedule_args import NewScheduleArgs
|
|
12
12
|
from ..models.new_schedule_on_failure_extra_args import NewScheduleOnFailureExtraArgs
|
|
13
13
|
from ..models.new_schedule_on_recovery_extra_args import NewScheduleOnRecoveryExtraArgs
|
|
14
|
+
from ..models.new_schedule_on_success_extra_args import NewScheduleOnSuccessExtraArgs
|
|
14
15
|
from ..models.new_schedule_retry import NewScheduleRetry
|
|
15
16
|
|
|
16
17
|
|
|
@@ -35,6 +36,8 @@ class NewSchedule:
|
|
|
35
36
|
on_recovery (Union[Unset, str]):
|
|
36
37
|
on_recovery_times (Union[Unset, float]):
|
|
37
38
|
on_recovery_extra_args (Union[Unset, NewScheduleOnRecoveryExtraArgs]):
|
|
39
|
+
on_success (Union[Unset, str]):
|
|
40
|
+
on_success_extra_args (Union[Unset, NewScheduleOnSuccessExtraArgs]):
|
|
38
41
|
ws_error_handler_muted (Union[Unset, bool]):
|
|
39
42
|
retry (Union[Unset, NewScheduleRetry]):
|
|
40
43
|
no_flow_overlap (Union[Unset, bool]):
|
|
@@ -57,6 +60,8 @@ class NewSchedule:
|
|
|
57
60
|
on_recovery: Union[Unset, str] = UNSET
|
|
58
61
|
on_recovery_times: Union[Unset, float] = UNSET
|
|
59
62
|
on_recovery_extra_args: Union[Unset, "NewScheduleOnRecoveryExtraArgs"] = UNSET
|
|
63
|
+
on_success: Union[Unset, str] = UNSET
|
|
64
|
+
on_success_extra_args: Union[Unset, "NewScheduleOnSuccessExtraArgs"] = UNSET
|
|
60
65
|
ws_error_handler_muted: Union[Unset, bool] = UNSET
|
|
61
66
|
retry: Union[Unset, "NewScheduleRetry"] = UNSET
|
|
62
67
|
no_flow_overlap: Union[Unset, bool] = UNSET
|
|
@@ -87,6 +92,11 @@ class NewSchedule:
|
|
|
87
92
|
if not isinstance(self.on_recovery_extra_args, Unset):
|
|
88
93
|
on_recovery_extra_args = self.on_recovery_extra_args.to_dict()
|
|
89
94
|
|
|
95
|
+
on_success = self.on_success
|
|
96
|
+
on_success_extra_args: Union[Unset, Dict[str, Any]] = UNSET
|
|
97
|
+
if not isinstance(self.on_success_extra_args, Unset):
|
|
98
|
+
on_success_extra_args = self.on_success_extra_args.to_dict()
|
|
99
|
+
|
|
90
100
|
ws_error_handler_muted = self.ws_error_handler_muted
|
|
91
101
|
retry: Union[Unset, Dict[str, Any]] = UNSET
|
|
92
102
|
if not isinstance(self.retry, Unset):
|
|
@@ -127,6 +137,10 @@ class NewSchedule:
|
|
|
127
137
|
field_dict["on_recovery_times"] = on_recovery_times
|
|
128
138
|
if on_recovery_extra_args is not UNSET:
|
|
129
139
|
field_dict["on_recovery_extra_args"] = on_recovery_extra_args
|
|
140
|
+
if on_success is not UNSET:
|
|
141
|
+
field_dict["on_success"] = on_success
|
|
142
|
+
if on_success_extra_args is not UNSET:
|
|
143
|
+
field_dict["on_success_extra_args"] = on_success_extra_args
|
|
130
144
|
if ws_error_handler_muted is not UNSET:
|
|
131
145
|
field_dict["ws_error_handler_muted"] = ws_error_handler_muted
|
|
132
146
|
if retry is not UNSET:
|
|
@@ -147,6 +161,7 @@ class NewSchedule:
|
|
|
147
161
|
from ..models.new_schedule_args import NewScheduleArgs
|
|
148
162
|
from ..models.new_schedule_on_failure_extra_args import NewScheduleOnFailureExtraArgs
|
|
149
163
|
from ..models.new_schedule_on_recovery_extra_args import NewScheduleOnRecoveryExtraArgs
|
|
164
|
+
from ..models.new_schedule_on_success_extra_args import NewScheduleOnSuccessExtraArgs
|
|
150
165
|
from ..models.new_schedule_retry import NewScheduleRetry
|
|
151
166
|
|
|
152
167
|
d = src_dict.copy()
|
|
@@ -188,6 +203,15 @@ class NewSchedule:
|
|
|
188
203
|
else:
|
|
189
204
|
on_recovery_extra_args = NewScheduleOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args)
|
|
190
205
|
|
|
206
|
+
on_success = d.pop("on_success", UNSET)
|
|
207
|
+
|
|
208
|
+
_on_success_extra_args = d.pop("on_success_extra_args", UNSET)
|
|
209
|
+
on_success_extra_args: Union[Unset, NewScheduleOnSuccessExtraArgs]
|
|
210
|
+
if isinstance(_on_success_extra_args, Unset):
|
|
211
|
+
on_success_extra_args = UNSET
|
|
212
|
+
else:
|
|
213
|
+
on_success_extra_args = NewScheduleOnSuccessExtraArgs.from_dict(_on_success_extra_args)
|
|
214
|
+
|
|
191
215
|
ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET)
|
|
192
216
|
|
|
193
217
|
_retry = d.pop("retry", UNSET)
|
|
@@ -225,6 +249,8 @@ class NewSchedule:
|
|
|
225
249
|
on_recovery=on_recovery,
|
|
226
250
|
on_recovery_times=on_recovery_times,
|
|
227
251
|
on_recovery_extra_args=on_recovery_extra_args,
|
|
252
|
+
on_success=on_success,
|
|
253
|
+
on_success_extra_args=on_success_extra_args,
|
|
228
254
|
ws_error_handler_muted=ws_error_handler_muted,
|
|
229
255
|
retry=retry,
|
|
230
256
|
no_flow_overlap=no_flow_overlap,
|
|
@@ -0,0 +1,44 @@
|
|
|
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="NewScheduleOnSuccessExtraArgs")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class NewScheduleOnSuccessExtraArgs:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
new_schedule_on_success_extra_args = cls()
|
|
26
|
+
|
|
27
|
+
new_schedule_on_success_extra_args.additional_properties = d
|
|
28
|
+
return new_schedule_on_success_extra_args
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
windmill_api/models/schedule.py
CHANGED
|
@@ -12,6 +12,7 @@ if TYPE_CHECKING:
|
|
|
12
12
|
from ..models.schedule_extra_perms import ScheduleExtraPerms
|
|
13
13
|
from ..models.schedule_on_failure_extra_args import ScheduleOnFailureExtraArgs
|
|
14
14
|
from ..models.schedule_on_recovery_extra_args import ScheduleOnRecoveryExtraArgs
|
|
15
|
+
from ..models.schedule_on_success_extra_args import ScheduleOnSuccessExtraArgs
|
|
15
16
|
from ..models.schedule_retry import ScheduleRetry
|
|
16
17
|
|
|
17
18
|
|
|
@@ -41,6 +42,8 @@ class Schedule:
|
|
|
41
42
|
on_recovery (Union[Unset, str]):
|
|
42
43
|
on_recovery_times (Union[Unset, float]):
|
|
43
44
|
on_recovery_extra_args (Union[Unset, ScheduleOnRecoveryExtraArgs]):
|
|
45
|
+
on_success (Union[Unset, str]):
|
|
46
|
+
on_success_extra_args (Union[Unset, ScheduleOnSuccessExtraArgs]):
|
|
44
47
|
ws_error_handler_muted (Union[Unset, bool]):
|
|
45
48
|
retry (Union[Unset, ScheduleRetry]):
|
|
46
49
|
summary (Union[Unset, str]):
|
|
@@ -68,6 +71,8 @@ class Schedule:
|
|
|
68
71
|
on_recovery: Union[Unset, str] = UNSET
|
|
69
72
|
on_recovery_times: Union[Unset, float] = UNSET
|
|
70
73
|
on_recovery_extra_args: Union[Unset, "ScheduleOnRecoveryExtraArgs"] = UNSET
|
|
74
|
+
on_success: Union[Unset, str] = UNSET
|
|
75
|
+
on_success_extra_args: Union[Unset, "ScheduleOnSuccessExtraArgs"] = UNSET
|
|
71
76
|
ws_error_handler_muted: Union[Unset, bool] = UNSET
|
|
72
77
|
retry: Union[Unset, "ScheduleRetry"] = UNSET
|
|
73
78
|
summary: Union[Unset, str] = UNSET
|
|
@@ -107,6 +112,11 @@ class Schedule:
|
|
|
107
112
|
if not isinstance(self.on_recovery_extra_args, Unset):
|
|
108
113
|
on_recovery_extra_args = self.on_recovery_extra_args.to_dict()
|
|
109
114
|
|
|
115
|
+
on_success = self.on_success
|
|
116
|
+
on_success_extra_args: Union[Unset, Dict[str, Any]] = UNSET
|
|
117
|
+
if not isinstance(self.on_success_extra_args, Unset):
|
|
118
|
+
on_success_extra_args = self.on_success_extra_args.to_dict()
|
|
119
|
+
|
|
110
120
|
ws_error_handler_muted = self.ws_error_handler_muted
|
|
111
121
|
retry: Union[Unset, Dict[str, Any]] = UNSET
|
|
112
122
|
if not isinstance(self.retry, Unset):
|
|
@@ -153,6 +163,10 @@ class Schedule:
|
|
|
153
163
|
field_dict["on_recovery_times"] = on_recovery_times
|
|
154
164
|
if on_recovery_extra_args is not UNSET:
|
|
155
165
|
field_dict["on_recovery_extra_args"] = on_recovery_extra_args
|
|
166
|
+
if on_success is not UNSET:
|
|
167
|
+
field_dict["on_success"] = on_success
|
|
168
|
+
if on_success_extra_args is not UNSET:
|
|
169
|
+
field_dict["on_success_extra_args"] = on_success_extra_args
|
|
156
170
|
if ws_error_handler_muted is not UNSET:
|
|
157
171
|
field_dict["ws_error_handler_muted"] = ws_error_handler_muted
|
|
158
172
|
if retry is not UNSET:
|
|
@@ -174,6 +188,7 @@ class Schedule:
|
|
|
174
188
|
from ..models.schedule_extra_perms import ScheduleExtraPerms
|
|
175
189
|
from ..models.schedule_on_failure_extra_args import ScheduleOnFailureExtraArgs
|
|
176
190
|
from ..models.schedule_on_recovery_extra_args import ScheduleOnRecoveryExtraArgs
|
|
191
|
+
from ..models.schedule_on_success_extra_args import ScheduleOnSuccessExtraArgs
|
|
177
192
|
from ..models.schedule_retry import ScheduleRetry
|
|
178
193
|
|
|
179
194
|
d = src_dict.copy()
|
|
@@ -230,6 +245,15 @@ class Schedule:
|
|
|
230
245
|
else:
|
|
231
246
|
on_recovery_extra_args = ScheduleOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args)
|
|
232
247
|
|
|
248
|
+
on_success = d.pop("on_success", UNSET)
|
|
249
|
+
|
|
250
|
+
_on_success_extra_args = d.pop("on_success_extra_args", UNSET)
|
|
251
|
+
on_success_extra_args: Union[Unset, ScheduleOnSuccessExtraArgs]
|
|
252
|
+
if isinstance(_on_success_extra_args, Unset):
|
|
253
|
+
on_success_extra_args = UNSET
|
|
254
|
+
else:
|
|
255
|
+
on_success_extra_args = ScheduleOnSuccessExtraArgs.from_dict(_on_success_extra_args)
|
|
256
|
+
|
|
233
257
|
ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET)
|
|
234
258
|
|
|
235
259
|
_retry = d.pop("retry", UNSET)
|
|
@@ -272,6 +296,8 @@ class Schedule:
|
|
|
272
296
|
on_recovery=on_recovery,
|
|
273
297
|
on_recovery_times=on_recovery_times,
|
|
274
298
|
on_recovery_extra_args=on_recovery_extra_args,
|
|
299
|
+
on_success=on_success,
|
|
300
|
+
on_success_extra_args=on_success_extra_args,
|
|
275
301
|
ws_error_handler_muted=ws_error_handler_muted,
|
|
276
302
|
retry=retry,
|
|
277
303
|
summary=summary,
|
|
@@ -0,0 +1,44 @@
|
|
|
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="ScheduleOnSuccessExtraArgs")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class ScheduleOnSuccessExtraArgs:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
schedule_on_success_extra_args = cls()
|
|
26
|
+
|
|
27
|
+
schedule_on_success_extra_args.additional_properties = d
|
|
28
|
+
return schedule_on_success_extra_args
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -13,6 +13,7 @@ if TYPE_CHECKING:
|
|
|
13
13
|
from ..models.schedule_w_jobs_jobs_item import ScheduleWJobsJobsItem
|
|
14
14
|
from ..models.schedule_w_jobs_on_failure_extra_args import ScheduleWJobsOnFailureExtraArgs
|
|
15
15
|
from ..models.schedule_w_jobs_on_recovery_extra_args import ScheduleWJobsOnRecoveryExtraArgs
|
|
16
|
+
from ..models.schedule_w_jobs_on_success_extra_args import ScheduleWJobsOnSuccessExtraArgs
|
|
16
17
|
from ..models.schedule_w_jobs_retry import ScheduleWJobsRetry
|
|
17
18
|
|
|
18
19
|
|
|
@@ -42,6 +43,8 @@ class ScheduleWJobs:
|
|
|
42
43
|
on_recovery (Union[Unset, str]):
|
|
43
44
|
on_recovery_times (Union[Unset, float]):
|
|
44
45
|
on_recovery_extra_args (Union[Unset, ScheduleWJobsOnRecoveryExtraArgs]):
|
|
46
|
+
on_success (Union[Unset, str]):
|
|
47
|
+
on_success_extra_args (Union[Unset, ScheduleWJobsOnSuccessExtraArgs]):
|
|
45
48
|
ws_error_handler_muted (Union[Unset, bool]):
|
|
46
49
|
retry (Union[Unset, ScheduleWJobsRetry]):
|
|
47
50
|
summary (Union[Unset, str]):
|
|
@@ -70,6 +73,8 @@ class ScheduleWJobs:
|
|
|
70
73
|
on_recovery: Union[Unset, str] = UNSET
|
|
71
74
|
on_recovery_times: Union[Unset, float] = UNSET
|
|
72
75
|
on_recovery_extra_args: Union[Unset, "ScheduleWJobsOnRecoveryExtraArgs"] = UNSET
|
|
76
|
+
on_success: Union[Unset, str] = UNSET
|
|
77
|
+
on_success_extra_args: Union[Unset, "ScheduleWJobsOnSuccessExtraArgs"] = UNSET
|
|
73
78
|
ws_error_handler_muted: Union[Unset, bool] = UNSET
|
|
74
79
|
retry: Union[Unset, "ScheduleWJobsRetry"] = UNSET
|
|
75
80
|
summary: Union[Unset, str] = UNSET
|
|
@@ -110,6 +115,11 @@ class ScheduleWJobs:
|
|
|
110
115
|
if not isinstance(self.on_recovery_extra_args, Unset):
|
|
111
116
|
on_recovery_extra_args = self.on_recovery_extra_args.to_dict()
|
|
112
117
|
|
|
118
|
+
on_success = self.on_success
|
|
119
|
+
on_success_extra_args: Union[Unset, Dict[str, Any]] = UNSET
|
|
120
|
+
if not isinstance(self.on_success_extra_args, Unset):
|
|
121
|
+
on_success_extra_args = self.on_success_extra_args.to_dict()
|
|
122
|
+
|
|
113
123
|
ws_error_handler_muted = self.ws_error_handler_muted
|
|
114
124
|
retry: Union[Unset, Dict[str, Any]] = UNSET
|
|
115
125
|
if not isinstance(self.retry, Unset):
|
|
@@ -164,6 +174,10 @@ class ScheduleWJobs:
|
|
|
164
174
|
field_dict["on_recovery_times"] = on_recovery_times
|
|
165
175
|
if on_recovery_extra_args is not UNSET:
|
|
166
176
|
field_dict["on_recovery_extra_args"] = on_recovery_extra_args
|
|
177
|
+
if on_success is not UNSET:
|
|
178
|
+
field_dict["on_success"] = on_success
|
|
179
|
+
if on_success_extra_args is not UNSET:
|
|
180
|
+
field_dict["on_success_extra_args"] = on_success_extra_args
|
|
167
181
|
if ws_error_handler_muted is not UNSET:
|
|
168
182
|
field_dict["ws_error_handler_muted"] = ws_error_handler_muted
|
|
169
183
|
if retry is not UNSET:
|
|
@@ -188,6 +202,7 @@ class ScheduleWJobs:
|
|
|
188
202
|
from ..models.schedule_w_jobs_jobs_item import ScheduleWJobsJobsItem
|
|
189
203
|
from ..models.schedule_w_jobs_on_failure_extra_args import ScheduleWJobsOnFailureExtraArgs
|
|
190
204
|
from ..models.schedule_w_jobs_on_recovery_extra_args import ScheduleWJobsOnRecoveryExtraArgs
|
|
205
|
+
from ..models.schedule_w_jobs_on_success_extra_args import ScheduleWJobsOnSuccessExtraArgs
|
|
191
206
|
from ..models.schedule_w_jobs_retry import ScheduleWJobsRetry
|
|
192
207
|
|
|
193
208
|
d = src_dict.copy()
|
|
@@ -244,6 +259,15 @@ class ScheduleWJobs:
|
|
|
244
259
|
else:
|
|
245
260
|
on_recovery_extra_args = ScheduleWJobsOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args)
|
|
246
261
|
|
|
262
|
+
on_success = d.pop("on_success", UNSET)
|
|
263
|
+
|
|
264
|
+
_on_success_extra_args = d.pop("on_success_extra_args", UNSET)
|
|
265
|
+
on_success_extra_args: Union[Unset, ScheduleWJobsOnSuccessExtraArgs]
|
|
266
|
+
if isinstance(_on_success_extra_args, Unset):
|
|
267
|
+
on_success_extra_args = UNSET
|
|
268
|
+
else:
|
|
269
|
+
on_success_extra_args = ScheduleWJobsOnSuccessExtraArgs.from_dict(_on_success_extra_args)
|
|
270
|
+
|
|
247
271
|
ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET)
|
|
248
272
|
|
|
249
273
|
_retry = d.pop("retry", UNSET)
|
|
@@ -293,6 +317,8 @@ class ScheduleWJobs:
|
|
|
293
317
|
on_recovery=on_recovery,
|
|
294
318
|
on_recovery_times=on_recovery_times,
|
|
295
319
|
on_recovery_extra_args=on_recovery_extra_args,
|
|
320
|
+
on_success=on_success,
|
|
321
|
+
on_success_extra_args=on_success_extra_args,
|
|
296
322
|
ws_error_handler_muted=ws_error_handler_muted,
|
|
297
323
|
retry=retry,
|
|
298
324
|
summary=summary,
|
|
@@ -0,0 +1,44 @@
|
|
|
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="ScheduleWJobsOnSuccessExtraArgs")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class ScheduleWJobsOnSuccessExtraArgs:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
schedule_w_jobs_on_success_extra_args = cls()
|
|
26
|
+
|
|
27
|
+
schedule_w_jobs_on_success_extra_args.additional_properties = d
|
|
28
|
+
return schedule_w_jobs_on_success_extra_args
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|