windmill-api 1.382.2__py3-none-any.whl → 1.383.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/models/branch_all_branches_item_modules_item.py +24 -0
- windmill_api/models/branch_all_branches_item_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/branch_one_branches_item_modules_item.py +24 -0
- windmill_api/models/branch_one_branches_item_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/branch_one_default_item.py +18 -0
- windmill_api/models/branch_one_default_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/completed_job_raw_flow_failure_module.py +24 -0
- windmill_api/models/completed_job_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/completed_job_raw_flow_modules_item.py +24 -0
- windmill_api/models/completed_job_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module.py +26 -0
- windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item.py +24 -0
- windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/extended_jobs_jobs_item_type_0_raw_flow_failure_module.py +24 -0
- windmill_api/models/extended_jobs_jobs_item_type_0_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/extended_jobs_jobs_item_type_0_raw_flow_modules_item.py +24 -0
- windmill_api/models/extended_jobs_jobs_item_type_0_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_raw_flow_failure_module.py +24 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_raw_flow_modules_item.py +24 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/flow_module.py +18 -0
- windmill_api/models/flow_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/flow_module_value_2_type_3_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/flow_module_value_2_type_4_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/flow_module_value_2_type_5_default_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/flow_module_value_2_type_6_branches_item_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/flow_preview_value_failure_module.py +24 -0
- windmill_api/models/flow_preview_value_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/flow_preview_value_modules_item.py +22 -0
- windmill_api/models/flow_preview_value_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/forloop_flow_modules_item.py +18 -0
- windmill_api/models/forloop_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_completed_job_response_200_raw_flow_failure_module.py +24 -0
- windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_completed_job_response_200_raw_flow_modules_item.py +24 -0
- windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_flow_by_path_response_200_value_failure_module.py +24 -0
- windmill_api/models/get_flow_by_path_response_200_value_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_flow_by_path_response_200_value_modules_item.py +24 -0
- windmill_api/models/get_flow_by_path_response_200_value_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module.py +31 -0
- windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_all_iters_if.py +70 -0
- windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item.py +29 -0
- windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_stop_after_all_iters_if.py +70 -0
- windmill_api/models/get_flow_version_response_200_value_failure_module.py +24 -0
- windmill_api/models/get_flow_version_response_200_value_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_flow_version_response_200_value_modules_item.py +24 -0
- windmill_api/models/get_flow_version_response_200_value_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module.py +24 -0
- windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item.py +24 -0
- windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_job_response_200_type_0_raw_flow_failure_module.py +24 -0
- windmill_api/models/get_job_response_200_type_0_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_job_response_200_type_0_raw_flow_modules_item.py +24 -0
- windmill_api/models/get_job_response_200_type_0_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_job_response_200_type_1_raw_flow_failure_module.py +24 -0
- windmill_api/models/get_job_response_200_type_1_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_job_response_200_type_1_raw_flow_modules_item.py +24 -0
- windmill_api/models/get_job_response_200_type_1_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_raw_flow_failure_module.py +31 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_raw_flow_failure_module_stop_after_all_iters_if.py +70 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_raw_flow_modules_item.py +31 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_raw_flow_modules_item_stop_after_all_iters_if.py +70 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_raw_flow_failure_module.py +31 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_raw_flow_failure_module_stop_after_all_iters_if.py +70 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_raw_flow_modules_item.py +31 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_raw_flow_modules_item_stop_after_all_iters_if.py +70 -0
- windmill_api/models/job_type_0_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/job_type_0_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/job_type_1_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/job_type_1_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module.py +26 -0
- windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item.py +26 -0
- windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_raw_flow_failure_module.py +31 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_raw_flow_failure_module_stop_after_all_iters_if.py +70 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_raw_flow_modules_item.py +31 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_raw_flow_modules_item_stop_after_all_iters_if.py +70 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_raw_flow_failure_module.py +31 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_raw_flow_failure_module_stop_after_all_iters_if.py +70 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_raw_flow_modules_item.py +31 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_raw_flow_modules_item_stop_after_all_iters_if.py +70 -0
- windmill_api/models/list_jobs_response_200_item_type_0_raw_flow_failure_module.py +24 -0
- windmill_api/models/list_jobs_response_200_item_type_0_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/list_jobs_response_200_item_type_0_raw_flow_modules_item.py +24 -0
- windmill_api/models/list_jobs_response_200_item_type_0_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/list_jobs_response_200_item_type_1_raw_flow_failure_module.py +24 -0
- windmill_api/models/list_jobs_response_200_item_type_1_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/list_jobs_response_200_item_type_1_raw_flow_modules_item.py +24 -0
- windmill_api/models/list_jobs_response_200_item_type_1_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/list_queue_response_200_item_raw_flow_failure_module.py +24 -0
- windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/list_queue_response_200_item_raw_flow_modules_item.py +24 -0
- windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/open_flow_value_failure_module.py +22 -0
- windmill_api/models/open_flow_value_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/open_flow_value_modules_item.py +22 -0
- windmill_api/models/open_flow_value_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/open_flow_w_path_value_failure_module.py +24 -0
- windmill_api/models/open_flow_w_path_value_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/open_flow_w_path_value_modules_item.py +24 -0
- windmill_api/models/open_flow_w_path_value_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/queued_job_raw_flow_failure_module.py +24 -0
- windmill_api/models/queued_job_raw_flow_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/queued_job_raw_flow_modules_item.py +22 -0
- windmill_api/models/queued_job_raw_flow_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/run_flow_preview_json_body_value_failure_module.py +24 -0
- windmill_api/models/run_flow_preview_json_body_value_failure_module_stop_after_all_iters_if.py +68 -0
- windmill_api/models/run_flow_preview_json_body_value_modules_item.py +24 -0
- windmill_api/models/run_flow_preview_json_body_value_modules_item_stop_after_all_iters_if.py +68 -0
- windmill_api/models/whileloop_flow_modules_item.py +20 -0
- windmill_api/models/whileloop_flow_modules_item_stop_after_all_iters_if.py +68 -0
- {windmill_api-1.382.2.dist-info → windmill_api-1.383.0.dist-info}/METADATA +1 -1
- {windmill_api-1.382.2.dist-info → windmill_api-1.383.0.dist-info}/RECORD +121 -58
- {windmill_api-1.382.2.dist-info → windmill_api-1.383.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.382.2.dist-info → windmill_api-1.383.0.dist-info}/WHEEL +0 -0
|
@@ -10,6 +10,9 @@ if TYPE_CHECKING:
|
|
|
10
10
|
from ..models.branch_all_branches_item_modules_item_retry import BranchAllBranchesItemModulesItemRetry
|
|
11
11
|
from ..models.branch_all_branches_item_modules_item_sleep_type_0 import BranchAllBranchesItemModulesItemSleepType0
|
|
12
12
|
from ..models.branch_all_branches_item_modules_item_sleep_type_1 import BranchAllBranchesItemModulesItemSleepType1
|
|
13
|
+
from ..models.branch_all_branches_item_modules_item_stop_after_all_iters_if import (
|
|
14
|
+
BranchAllBranchesItemModulesItemStopAfterAllItersIf,
|
|
15
|
+
)
|
|
13
16
|
from ..models.branch_all_branches_item_modules_item_stop_after_if import BranchAllBranchesItemModulesItemStopAfterIf
|
|
14
17
|
from ..models.branch_all_branches_item_modules_item_suspend import BranchAllBranchesItemModulesItemSuspend
|
|
15
18
|
|
|
@@ -24,6 +27,7 @@ class BranchAllBranchesItemModulesItem:
|
|
|
24
27
|
id (str):
|
|
25
28
|
value (Any):
|
|
26
29
|
stop_after_if (Union[Unset, BranchAllBranchesItemModulesItemStopAfterIf]):
|
|
30
|
+
stop_after_all_iters_if (Union[Unset, BranchAllBranchesItemModulesItemStopAfterAllItersIf]):
|
|
27
31
|
sleep (Union['BranchAllBranchesItemModulesItemSleepType0', 'BranchAllBranchesItemModulesItemSleepType1',
|
|
28
32
|
Unset]):
|
|
29
33
|
cache_ttl (Union[Unset, float]):
|
|
@@ -40,6 +44,7 @@ class BranchAllBranchesItemModulesItem:
|
|
|
40
44
|
id: str
|
|
41
45
|
value: Any
|
|
42
46
|
stop_after_if: Union[Unset, "BranchAllBranchesItemModulesItemStopAfterIf"] = UNSET
|
|
47
|
+
stop_after_all_iters_if: Union[Unset, "BranchAllBranchesItemModulesItemStopAfterAllItersIf"] = UNSET
|
|
43
48
|
sleep: Union[
|
|
44
49
|
"BranchAllBranchesItemModulesItemSleepType0", "BranchAllBranchesItemModulesItemSleepType1", Unset
|
|
45
50
|
] = UNSET
|
|
@@ -65,6 +70,10 @@ class BranchAllBranchesItemModulesItem:
|
|
|
65
70
|
if not isinstance(self.stop_after_if, Unset):
|
|
66
71
|
stop_after_if = self.stop_after_if.to_dict()
|
|
67
72
|
|
|
73
|
+
stop_after_all_iters_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
74
|
+
if not isinstance(self.stop_after_all_iters_if, Unset):
|
|
75
|
+
stop_after_all_iters_if = self.stop_after_all_iters_if.to_dict()
|
|
76
|
+
|
|
68
77
|
sleep: Union[Dict[str, Any], Unset]
|
|
69
78
|
if isinstance(self.sleep, Unset):
|
|
70
79
|
sleep = UNSET
|
|
@@ -107,6 +116,8 @@ class BranchAllBranchesItemModulesItem:
|
|
|
107
116
|
)
|
|
108
117
|
if stop_after_if is not UNSET:
|
|
109
118
|
field_dict["stop_after_if"] = stop_after_if
|
|
119
|
+
if stop_after_all_iters_if is not UNSET:
|
|
120
|
+
field_dict["stop_after_all_iters_if"] = stop_after_all_iters_if
|
|
110
121
|
if sleep is not UNSET:
|
|
111
122
|
field_dict["sleep"] = sleep
|
|
112
123
|
if cache_ttl is not UNSET:
|
|
@@ -140,6 +151,9 @@ class BranchAllBranchesItemModulesItem:
|
|
|
140
151
|
from ..models.branch_all_branches_item_modules_item_sleep_type_1 import (
|
|
141
152
|
BranchAllBranchesItemModulesItemSleepType1,
|
|
142
153
|
)
|
|
154
|
+
from ..models.branch_all_branches_item_modules_item_stop_after_all_iters_if import (
|
|
155
|
+
BranchAllBranchesItemModulesItemStopAfterAllItersIf,
|
|
156
|
+
)
|
|
143
157
|
from ..models.branch_all_branches_item_modules_item_stop_after_if import (
|
|
144
158
|
BranchAllBranchesItemModulesItemStopAfterIf,
|
|
145
159
|
)
|
|
@@ -157,6 +171,15 @@ class BranchAllBranchesItemModulesItem:
|
|
|
157
171
|
else:
|
|
158
172
|
stop_after_if = BranchAllBranchesItemModulesItemStopAfterIf.from_dict(_stop_after_if)
|
|
159
173
|
|
|
174
|
+
_stop_after_all_iters_if = d.pop("stop_after_all_iters_if", UNSET)
|
|
175
|
+
stop_after_all_iters_if: Union[Unset, BranchAllBranchesItemModulesItemStopAfterAllItersIf]
|
|
176
|
+
if isinstance(_stop_after_all_iters_if, Unset):
|
|
177
|
+
stop_after_all_iters_if = UNSET
|
|
178
|
+
else:
|
|
179
|
+
stop_after_all_iters_if = BranchAllBranchesItemModulesItemStopAfterAllItersIf.from_dict(
|
|
180
|
+
_stop_after_all_iters_if
|
|
181
|
+
)
|
|
182
|
+
|
|
160
183
|
def _parse_sleep(
|
|
161
184
|
data: object,
|
|
162
185
|
) -> Union["BranchAllBranchesItemModulesItemSleepType0", "BranchAllBranchesItemModulesItemSleepType1", Unset]:
|
|
@@ -225,6 +248,7 @@ class BranchAllBranchesItemModulesItem:
|
|
|
225
248
|
id=id,
|
|
226
249
|
value=value,
|
|
227
250
|
stop_after_if=stop_after_if,
|
|
251
|
+
stop_after_all_iters_if=stop_after_all_iters_if,
|
|
228
252
|
sleep=sleep,
|
|
229
253
|
cache_ttl=cache_ttl,
|
|
230
254
|
timeout=timeout,
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="BranchAllBranchesItemModulesItemStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class BranchAllBranchesItemModulesItemStopAfterAllItersIf:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
expr (str):
|
|
16
|
+
skip_if_stopped (Union[Unset, bool]):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
expr: str
|
|
20
|
+
skip_if_stopped: Union[Unset, bool] = UNSET
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
expr = self.expr
|
|
25
|
+
skip_if_stopped = self.skip_if_stopped
|
|
26
|
+
|
|
27
|
+
field_dict: Dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update(
|
|
30
|
+
{
|
|
31
|
+
"expr": expr,
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
if skip_if_stopped is not UNSET:
|
|
35
|
+
field_dict["skip_if_stopped"] = skip_if_stopped
|
|
36
|
+
|
|
37
|
+
return field_dict
|
|
38
|
+
|
|
39
|
+
@classmethod
|
|
40
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
41
|
+
d = src_dict.copy()
|
|
42
|
+
expr = d.pop("expr")
|
|
43
|
+
|
|
44
|
+
skip_if_stopped = d.pop("skip_if_stopped", UNSET)
|
|
45
|
+
|
|
46
|
+
branch_all_branches_item_modules_item_stop_after_all_iters_if = cls(
|
|
47
|
+
expr=expr,
|
|
48
|
+
skip_if_stopped=skip_if_stopped,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
branch_all_branches_item_modules_item_stop_after_all_iters_if.additional_properties = d
|
|
52
|
+
return branch_all_branches_item_modules_item_stop_after_all_iters_if
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def additional_keys(self) -> List[str]:
|
|
56
|
+
return list(self.additional_properties.keys())
|
|
57
|
+
|
|
58
|
+
def __getitem__(self, key: str) -> Any:
|
|
59
|
+
return self.additional_properties[key]
|
|
60
|
+
|
|
61
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
62
|
+
self.additional_properties[key] = value
|
|
63
|
+
|
|
64
|
+
def __delitem__(self, key: str) -> None:
|
|
65
|
+
del self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __contains__(self, key: str) -> bool:
|
|
68
|
+
return key in self.additional_properties
|
|
@@ -10,6 +10,9 @@ if TYPE_CHECKING:
|
|
|
10
10
|
from ..models.branch_one_branches_item_modules_item_retry import BranchOneBranchesItemModulesItemRetry
|
|
11
11
|
from ..models.branch_one_branches_item_modules_item_sleep_type_0 import BranchOneBranchesItemModulesItemSleepType0
|
|
12
12
|
from ..models.branch_one_branches_item_modules_item_sleep_type_1 import BranchOneBranchesItemModulesItemSleepType1
|
|
13
|
+
from ..models.branch_one_branches_item_modules_item_stop_after_all_iters_if import (
|
|
14
|
+
BranchOneBranchesItemModulesItemStopAfterAllItersIf,
|
|
15
|
+
)
|
|
13
16
|
from ..models.branch_one_branches_item_modules_item_stop_after_if import BranchOneBranchesItemModulesItemStopAfterIf
|
|
14
17
|
from ..models.branch_one_branches_item_modules_item_suspend import BranchOneBranchesItemModulesItemSuspend
|
|
15
18
|
|
|
@@ -24,6 +27,7 @@ class BranchOneBranchesItemModulesItem:
|
|
|
24
27
|
id (str):
|
|
25
28
|
value (Any):
|
|
26
29
|
stop_after_if (Union[Unset, BranchOneBranchesItemModulesItemStopAfterIf]):
|
|
30
|
+
stop_after_all_iters_if (Union[Unset, BranchOneBranchesItemModulesItemStopAfterAllItersIf]):
|
|
27
31
|
sleep (Union['BranchOneBranchesItemModulesItemSleepType0', 'BranchOneBranchesItemModulesItemSleepType1',
|
|
28
32
|
Unset]):
|
|
29
33
|
cache_ttl (Union[Unset, float]):
|
|
@@ -40,6 +44,7 @@ class BranchOneBranchesItemModulesItem:
|
|
|
40
44
|
id: str
|
|
41
45
|
value: Any
|
|
42
46
|
stop_after_if: Union[Unset, "BranchOneBranchesItemModulesItemStopAfterIf"] = UNSET
|
|
47
|
+
stop_after_all_iters_if: Union[Unset, "BranchOneBranchesItemModulesItemStopAfterAllItersIf"] = UNSET
|
|
43
48
|
sleep: Union[
|
|
44
49
|
"BranchOneBranchesItemModulesItemSleepType0", "BranchOneBranchesItemModulesItemSleepType1", Unset
|
|
45
50
|
] = UNSET
|
|
@@ -65,6 +70,10 @@ class BranchOneBranchesItemModulesItem:
|
|
|
65
70
|
if not isinstance(self.stop_after_if, Unset):
|
|
66
71
|
stop_after_if = self.stop_after_if.to_dict()
|
|
67
72
|
|
|
73
|
+
stop_after_all_iters_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
74
|
+
if not isinstance(self.stop_after_all_iters_if, Unset):
|
|
75
|
+
stop_after_all_iters_if = self.stop_after_all_iters_if.to_dict()
|
|
76
|
+
|
|
68
77
|
sleep: Union[Dict[str, Any], Unset]
|
|
69
78
|
if isinstance(self.sleep, Unset):
|
|
70
79
|
sleep = UNSET
|
|
@@ -107,6 +116,8 @@ class BranchOneBranchesItemModulesItem:
|
|
|
107
116
|
)
|
|
108
117
|
if stop_after_if is not UNSET:
|
|
109
118
|
field_dict["stop_after_if"] = stop_after_if
|
|
119
|
+
if stop_after_all_iters_if is not UNSET:
|
|
120
|
+
field_dict["stop_after_all_iters_if"] = stop_after_all_iters_if
|
|
110
121
|
if sleep is not UNSET:
|
|
111
122
|
field_dict["sleep"] = sleep
|
|
112
123
|
if cache_ttl is not UNSET:
|
|
@@ -140,6 +151,9 @@ class BranchOneBranchesItemModulesItem:
|
|
|
140
151
|
from ..models.branch_one_branches_item_modules_item_sleep_type_1 import (
|
|
141
152
|
BranchOneBranchesItemModulesItemSleepType1,
|
|
142
153
|
)
|
|
154
|
+
from ..models.branch_one_branches_item_modules_item_stop_after_all_iters_if import (
|
|
155
|
+
BranchOneBranchesItemModulesItemStopAfterAllItersIf,
|
|
156
|
+
)
|
|
143
157
|
from ..models.branch_one_branches_item_modules_item_stop_after_if import (
|
|
144
158
|
BranchOneBranchesItemModulesItemStopAfterIf,
|
|
145
159
|
)
|
|
@@ -157,6 +171,15 @@ class BranchOneBranchesItemModulesItem:
|
|
|
157
171
|
else:
|
|
158
172
|
stop_after_if = BranchOneBranchesItemModulesItemStopAfterIf.from_dict(_stop_after_if)
|
|
159
173
|
|
|
174
|
+
_stop_after_all_iters_if = d.pop("stop_after_all_iters_if", UNSET)
|
|
175
|
+
stop_after_all_iters_if: Union[Unset, BranchOneBranchesItemModulesItemStopAfterAllItersIf]
|
|
176
|
+
if isinstance(_stop_after_all_iters_if, Unset):
|
|
177
|
+
stop_after_all_iters_if = UNSET
|
|
178
|
+
else:
|
|
179
|
+
stop_after_all_iters_if = BranchOneBranchesItemModulesItemStopAfterAllItersIf.from_dict(
|
|
180
|
+
_stop_after_all_iters_if
|
|
181
|
+
)
|
|
182
|
+
|
|
160
183
|
def _parse_sleep(
|
|
161
184
|
data: object,
|
|
162
185
|
) -> Union["BranchOneBranchesItemModulesItemSleepType0", "BranchOneBranchesItemModulesItemSleepType1", Unset]:
|
|
@@ -225,6 +248,7 @@ class BranchOneBranchesItemModulesItem:
|
|
|
225
248
|
id=id,
|
|
226
249
|
value=value,
|
|
227
250
|
stop_after_if=stop_after_if,
|
|
251
|
+
stop_after_all_iters_if=stop_after_all_iters_if,
|
|
228
252
|
sleep=sleep,
|
|
229
253
|
cache_ttl=cache_ttl,
|
|
230
254
|
timeout=timeout,
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="BranchOneBranchesItemModulesItemStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class BranchOneBranchesItemModulesItemStopAfterAllItersIf:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
expr (str):
|
|
16
|
+
skip_if_stopped (Union[Unset, bool]):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
expr: str
|
|
20
|
+
skip_if_stopped: Union[Unset, bool] = UNSET
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
expr = self.expr
|
|
25
|
+
skip_if_stopped = self.skip_if_stopped
|
|
26
|
+
|
|
27
|
+
field_dict: Dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update(
|
|
30
|
+
{
|
|
31
|
+
"expr": expr,
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
if skip_if_stopped is not UNSET:
|
|
35
|
+
field_dict["skip_if_stopped"] = skip_if_stopped
|
|
36
|
+
|
|
37
|
+
return field_dict
|
|
38
|
+
|
|
39
|
+
@classmethod
|
|
40
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
41
|
+
d = src_dict.copy()
|
|
42
|
+
expr = d.pop("expr")
|
|
43
|
+
|
|
44
|
+
skip_if_stopped = d.pop("skip_if_stopped", UNSET)
|
|
45
|
+
|
|
46
|
+
branch_one_branches_item_modules_item_stop_after_all_iters_if = cls(
|
|
47
|
+
expr=expr,
|
|
48
|
+
skip_if_stopped=skip_if_stopped,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
branch_one_branches_item_modules_item_stop_after_all_iters_if.additional_properties = d
|
|
52
|
+
return branch_one_branches_item_modules_item_stop_after_all_iters_if
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def additional_keys(self) -> List[str]:
|
|
56
|
+
return list(self.additional_properties.keys())
|
|
57
|
+
|
|
58
|
+
def __getitem__(self, key: str) -> Any:
|
|
59
|
+
return self.additional_properties[key]
|
|
60
|
+
|
|
61
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
62
|
+
self.additional_properties[key] = value
|
|
63
|
+
|
|
64
|
+
def __delitem__(self, key: str) -> None:
|
|
65
|
+
del self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __contains__(self, key: str) -> bool:
|
|
68
|
+
return key in self.additional_properties
|
|
@@ -10,6 +10,7 @@ if TYPE_CHECKING:
|
|
|
10
10
|
from ..models.branch_one_default_item_retry import BranchOneDefaultItemRetry
|
|
11
11
|
from ..models.branch_one_default_item_sleep_type_0 import BranchOneDefaultItemSleepType0
|
|
12
12
|
from ..models.branch_one_default_item_sleep_type_1 import BranchOneDefaultItemSleepType1
|
|
13
|
+
from ..models.branch_one_default_item_stop_after_all_iters_if import BranchOneDefaultItemStopAfterAllItersIf
|
|
13
14
|
from ..models.branch_one_default_item_stop_after_if import BranchOneDefaultItemStopAfterIf
|
|
14
15
|
from ..models.branch_one_default_item_suspend import BranchOneDefaultItemSuspend
|
|
15
16
|
|
|
@@ -24,6 +25,7 @@ class BranchOneDefaultItem:
|
|
|
24
25
|
id (str):
|
|
25
26
|
value (Any):
|
|
26
27
|
stop_after_if (Union[Unset, BranchOneDefaultItemStopAfterIf]):
|
|
28
|
+
stop_after_all_iters_if (Union[Unset, BranchOneDefaultItemStopAfterAllItersIf]):
|
|
27
29
|
sleep (Union['BranchOneDefaultItemSleepType0', 'BranchOneDefaultItemSleepType1', Unset]):
|
|
28
30
|
cache_ttl (Union[Unset, float]):
|
|
29
31
|
timeout (Union[Unset, float]):
|
|
@@ -39,6 +41,7 @@ class BranchOneDefaultItem:
|
|
|
39
41
|
id: str
|
|
40
42
|
value: Any
|
|
41
43
|
stop_after_if: Union[Unset, "BranchOneDefaultItemStopAfterIf"] = UNSET
|
|
44
|
+
stop_after_all_iters_if: Union[Unset, "BranchOneDefaultItemStopAfterAllItersIf"] = UNSET
|
|
42
45
|
sleep: Union["BranchOneDefaultItemSleepType0", "BranchOneDefaultItemSleepType1", Unset] = UNSET
|
|
43
46
|
cache_ttl: Union[Unset, float] = UNSET
|
|
44
47
|
timeout: Union[Unset, float] = UNSET
|
|
@@ -60,6 +63,10 @@ class BranchOneDefaultItem:
|
|
|
60
63
|
if not isinstance(self.stop_after_if, Unset):
|
|
61
64
|
stop_after_if = self.stop_after_if.to_dict()
|
|
62
65
|
|
|
66
|
+
stop_after_all_iters_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
67
|
+
if not isinstance(self.stop_after_all_iters_if, Unset):
|
|
68
|
+
stop_after_all_iters_if = self.stop_after_all_iters_if.to_dict()
|
|
69
|
+
|
|
63
70
|
sleep: Union[Dict[str, Any], Unset]
|
|
64
71
|
if isinstance(self.sleep, Unset):
|
|
65
72
|
sleep = UNSET
|
|
@@ -102,6 +109,8 @@ class BranchOneDefaultItem:
|
|
|
102
109
|
)
|
|
103
110
|
if stop_after_if is not UNSET:
|
|
104
111
|
field_dict["stop_after_if"] = stop_after_if
|
|
112
|
+
if stop_after_all_iters_if is not UNSET:
|
|
113
|
+
field_dict["stop_after_all_iters_if"] = stop_after_all_iters_if
|
|
105
114
|
if sleep is not UNSET:
|
|
106
115
|
field_dict["sleep"] = sleep
|
|
107
116
|
if cache_ttl is not UNSET:
|
|
@@ -131,6 +140,7 @@ class BranchOneDefaultItem:
|
|
|
131
140
|
from ..models.branch_one_default_item_retry import BranchOneDefaultItemRetry
|
|
132
141
|
from ..models.branch_one_default_item_sleep_type_0 import BranchOneDefaultItemSleepType0
|
|
133
142
|
from ..models.branch_one_default_item_sleep_type_1 import BranchOneDefaultItemSleepType1
|
|
143
|
+
from ..models.branch_one_default_item_stop_after_all_iters_if import BranchOneDefaultItemStopAfterAllItersIf
|
|
134
144
|
from ..models.branch_one_default_item_stop_after_if import BranchOneDefaultItemStopAfterIf
|
|
135
145
|
from ..models.branch_one_default_item_suspend import BranchOneDefaultItemSuspend
|
|
136
146
|
|
|
@@ -146,6 +156,13 @@ class BranchOneDefaultItem:
|
|
|
146
156
|
else:
|
|
147
157
|
stop_after_if = BranchOneDefaultItemStopAfterIf.from_dict(_stop_after_if)
|
|
148
158
|
|
|
159
|
+
_stop_after_all_iters_if = d.pop("stop_after_all_iters_if", UNSET)
|
|
160
|
+
stop_after_all_iters_if: Union[Unset, BranchOneDefaultItemStopAfterAllItersIf]
|
|
161
|
+
if isinstance(_stop_after_all_iters_if, Unset):
|
|
162
|
+
stop_after_all_iters_if = UNSET
|
|
163
|
+
else:
|
|
164
|
+
stop_after_all_iters_if = BranchOneDefaultItemStopAfterAllItersIf.from_dict(_stop_after_all_iters_if)
|
|
165
|
+
|
|
149
166
|
def _parse_sleep(
|
|
150
167
|
data: object,
|
|
151
168
|
) -> Union["BranchOneDefaultItemSleepType0", "BranchOneDefaultItemSleepType1", Unset]:
|
|
@@ -214,6 +231,7 @@ class BranchOneDefaultItem:
|
|
|
214
231
|
id=id,
|
|
215
232
|
value=value,
|
|
216
233
|
stop_after_if=stop_after_if,
|
|
234
|
+
stop_after_all_iters_if=stop_after_all_iters_if,
|
|
217
235
|
sleep=sleep,
|
|
218
236
|
cache_ttl=cache_ttl,
|
|
219
237
|
timeout=timeout,
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="BranchOneDefaultItemStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class BranchOneDefaultItemStopAfterAllItersIf:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
expr (str):
|
|
16
|
+
skip_if_stopped (Union[Unset, bool]):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
expr: str
|
|
20
|
+
skip_if_stopped: Union[Unset, bool] = UNSET
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
expr = self.expr
|
|
25
|
+
skip_if_stopped = self.skip_if_stopped
|
|
26
|
+
|
|
27
|
+
field_dict: Dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update(
|
|
30
|
+
{
|
|
31
|
+
"expr": expr,
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
if skip_if_stopped is not UNSET:
|
|
35
|
+
field_dict["skip_if_stopped"] = skip_if_stopped
|
|
36
|
+
|
|
37
|
+
return field_dict
|
|
38
|
+
|
|
39
|
+
@classmethod
|
|
40
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
41
|
+
d = src_dict.copy()
|
|
42
|
+
expr = d.pop("expr")
|
|
43
|
+
|
|
44
|
+
skip_if_stopped = d.pop("skip_if_stopped", UNSET)
|
|
45
|
+
|
|
46
|
+
branch_one_default_item_stop_after_all_iters_if = cls(
|
|
47
|
+
expr=expr,
|
|
48
|
+
skip_if_stopped=skip_if_stopped,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
branch_one_default_item_stop_after_all_iters_if.additional_properties = d
|
|
52
|
+
return branch_one_default_item_stop_after_all_iters_if
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def additional_keys(self) -> List[str]:
|
|
56
|
+
return list(self.additional_properties.keys())
|
|
57
|
+
|
|
58
|
+
def __getitem__(self, key: str) -> Any:
|
|
59
|
+
return self.additional_properties[key]
|
|
60
|
+
|
|
61
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
62
|
+
self.additional_properties[key] = value
|
|
63
|
+
|
|
64
|
+
def __delitem__(self, key: str) -> None:
|
|
65
|
+
del self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __contains__(self, key: str) -> bool:
|
|
68
|
+
return key in self.additional_properties
|
|
@@ -10,6 +10,9 @@ if TYPE_CHECKING:
|
|
|
10
10
|
from ..models.completed_job_raw_flow_failure_module_retry import CompletedJobRawFlowFailureModuleRetry
|
|
11
11
|
from ..models.completed_job_raw_flow_failure_module_sleep_type_0 import CompletedJobRawFlowFailureModuleSleepType0
|
|
12
12
|
from ..models.completed_job_raw_flow_failure_module_sleep_type_1 import CompletedJobRawFlowFailureModuleSleepType1
|
|
13
|
+
from ..models.completed_job_raw_flow_failure_module_stop_after_all_iters_if import (
|
|
14
|
+
CompletedJobRawFlowFailureModuleStopAfterAllItersIf,
|
|
15
|
+
)
|
|
13
16
|
from ..models.completed_job_raw_flow_failure_module_stop_after_if import CompletedJobRawFlowFailureModuleStopAfterIf
|
|
14
17
|
from ..models.completed_job_raw_flow_failure_module_suspend import CompletedJobRawFlowFailureModuleSuspend
|
|
15
18
|
|
|
@@ -24,6 +27,7 @@ class CompletedJobRawFlowFailureModule:
|
|
|
24
27
|
id (str):
|
|
25
28
|
value (Any):
|
|
26
29
|
stop_after_if (Union[Unset, CompletedJobRawFlowFailureModuleStopAfterIf]):
|
|
30
|
+
stop_after_all_iters_if (Union[Unset, CompletedJobRawFlowFailureModuleStopAfterAllItersIf]):
|
|
27
31
|
sleep (Union['CompletedJobRawFlowFailureModuleSleepType0', 'CompletedJobRawFlowFailureModuleSleepType1',
|
|
28
32
|
Unset]):
|
|
29
33
|
cache_ttl (Union[Unset, float]):
|
|
@@ -40,6 +44,7 @@ class CompletedJobRawFlowFailureModule:
|
|
|
40
44
|
id: str
|
|
41
45
|
value: Any
|
|
42
46
|
stop_after_if: Union[Unset, "CompletedJobRawFlowFailureModuleStopAfterIf"] = UNSET
|
|
47
|
+
stop_after_all_iters_if: Union[Unset, "CompletedJobRawFlowFailureModuleStopAfterAllItersIf"] = UNSET
|
|
43
48
|
sleep: Union[
|
|
44
49
|
"CompletedJobRawFlowFailureModuleSleepType0", "CompletedJobRawFlowFailureModuleSleepType1", Unset
|
|
45
50
|
] = UNSET
|
|
@@ -65,6 +70,10 @@ class CompletedJobRawFlowFailureModule:
|
|
|
65
70
|
if not isinstance(self.stop_after_if, Unset):
|
|
66
71
|
stop_after_if = self.stop_after_if.to_dict()
|
|
67
72
|
|
|
73
|
+
stop_after_all_iters_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
74
|
+
if not isinstance(self.stop_after_all_iters_if, Unset):
|
|
75
|
+
stop_after_all_iters_if = self.stop_after_all_iters_if.to_dict()
|
|
76
|
+
|
|
68
77
|
sleep: Union[Dict[str, Any], Unset]
|
|
69
78
|
if isinstance(self.sleep, Unset):
|
|
70
79
|
sleep = UNSET
|
|
@@ -107,6 +116,8 @@ class CompletedJobRawFlowFailureModule:
|
|
|
107
116
|
)
|
|
108
117
|
if stop_after_if is not UNSET:
|
|
109
118
|
field_dict["stop_after_if"] = stop_after_if
|
|
119
|
+
if stop_after_all_iters_if is not UNSET:
|
|
120
|
+
field_dict["stop_after_all_iters_if"] = stop_after_all_iters_if
|
|
110
121
|
if sleep is not UNSET:
|
|
111
122
|
field_dict["sleep"] = sleep
|
|
112
123
|
if cache_ttl is not UNSET:
|
|
@@ -140,6 +151,9 @@ class CompletedJobRawFlowFailureModule:
|
|
|
140
151
|
from ..models.completed_job_raw_flow_failure_module_sleep_type_1 import (
|
|
141
152
|
CompletedJobRawFlowFailureModuleSleepType1,
|
|
142
153
|
)
|
|
154
|
+
from ..models.completed_job_raw_flow_failure_module_stop_after_all_iters_if import (
|
|
155
|
+
CompletedJobRawFlowFailureModuleStopAfterAllItersIf,
|
|
156
|
+
)
|
|
143
157
|
from ..models.completed_job_raw_flow_failure_module_stop_after_if import (
|
|
144
158
|
CompletedJobRawFlowFailureModuleStopAfterIf,
|
|
145
159
|
)
|
|
@@ -157,6 +171,15 @@ class CompletedJobRawFlowFailureModule:
|
|
|
157
171
|
else:
|
|
158
172
|
stop_after_if = CompletedJobRawFlowFailureModuleStopAfterIf.from_dict(_stop_after_if)
|
|
159
173
|
|
|
174
|
+
_stop_after_all_iters_if = d.pop("stop_after_all_iters_if", UNSET)
|
|
175
|
+
stop_after_all_iters_if: Union[Unset, CompletedJobRawFlowFailureModuleStopAfterAllItersIf]
|
|
176
|
+
if isinstance(_stop_after_all_iters_if, Unset):
|
|
177
|
+
stop_after_all_iters_if = UNSET
|
|
178
|
+
else:
|
|
179
|
+
stop_after_all_iters_if = CompletedJobRawFlowFailureModuleStopAfterAllItersIf.from_dict(
|
|
180
|
+
_stop_after_all_iters_if
|
|
181
|
+
)
|
|
182
|
+
|
|
160
183
|
def _parse_sleep(
|
|
161
184
|
data: object,
|
|
162
185
|
) -> Union["CompletedJobRawFlowFailureModuleSleepType0", "CompletedJobRawFlowFailureModuleSleepType1", Unset]:
|
|
@@ -225,6 +248,7 @@ class CompletedJobRawFlowFailureModule:
|
|
|
225
248
|
id=id,
|
|
226
249
|
value=value,
|
|
227
250
|
stop_after_if=stop_after_if,
|
|
251
|
+
stop_after_all_iters_if=stop_after_all_iters_if,
|
|
228
252
|
sleep=sleep,
|
|
229
253
|
cache_ttl=cache_ttl,
|
|
230
254
|
timeout=timeout,
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class CompletedJobRawFlowFailureModuleStopAfterAllItersIf:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
expr (str):
|
|
16
|
+
skip_if_stopped (Union[Unset, bool]):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
expr: str
|
|
20
|
+
skip_if_stopped: Union[Unset, bool] = UNSET
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
expr = self.expr
|
|
25
|
+
skip_if_stopped = self.skip_if_stopped
|
|
26
|
+
|
|
27
|
+
field_dict: Dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update(
|
|
30
|
+
{
|
|
31
|
+
"expr": expr,
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
if skip_if_stopped is not UNSET:
|
|
35
|
+
field_dict["skip_if_stopped"] = skip_if_stopped
|
|
36
|
+
|
|
37
|
+
return field_dict
|
|
38
|
+
|
|
39
|
+
@classmethod
|
|
40
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
41
|
+
d = src_dict.copy()
|
|
42
|
+
expr = d.pop("expr")
|
|
43
|
+
|
|
44
|
+
skip_if_stopped = d.pop("skip_if_stopped", UNSET)
|
|
45
|
+
|
|
46
|
+
completed_job_raw_flow_failure_module_stop_after_all_iters_if = cls(
|
|
47
|
+
expr=expr,
|
|
48
|
+
skip_if_stopped=skip_if_stopped,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
completed_job_raw_flow_failure_module_stop_after_all_iters_if.additional_properties = d
|
|
52
|
+
return completed_job_raw_flow_failure_module_stop_after_all_iters_if
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def additional_keys(self) -> List[str]:
|
|
56
|
+
return list(self.additional_properties.keys())
|
|
57
|
+
|
|
58
|
+
def __getitem__(self, key: str) -> Any:
|
|
59
|
+
return self.additional_properties[key]
|
|
60
|
+
|
|
61
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
62
|
+
self.additional_properties[key] = value
|
|
63
|
+
|
|
64
|
+
def __delitem__(self, key: str) -> None:
|
|
65
|
+
del self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __contains__(self, key: str) -> bool:
|
|
68
|
+
return key in self.additional_properties
|
|
@@ -10,6 +10,9 @@ if TYPE_CHECKING:
|
|
|
10
10
|
from ..models.completed_job_raw_flow_modules_item_retry import CompletedJobRawFlowModulesItemRetry
|
|
11
11
|
from ..models.completed_job_raw_flow_modules_item_sleep_type_0 import CompletedJobRawFlowModulesItemSleepType0
|
|
12
12
|
from ..models.completed_job_raw_flow_modules_item_sleep_type_1 import CompletedJobRawFlowModulesItemSleepType1
|
|
13
|
+
from ..models.completed_job_raw_flow_modules_item_stop_after_all_iters_if import (
|
|
14
|
+
CompletedJobRawFlowModulesItemStopAfterAllItersIf,
|
|
15
|
+
)
|
|
13
16
|
from ..models.completed_job_raw_flow_modules_item_stop_after_if import CompletedJobRawFlowModulesItemStopAfterIf
|
|
14
17
|
from ..models.completed_job_raw_flow_modules_item_suspend import CompletedJobRawFlowModulesItemSuspend
|
|
15
18
|
|
|
@@ -24,6 +27,7 @@ class CompletedJobRawFlowModulesItem:
|
|
|
24
27
|
id (str):
|
|
25
28
|
value (Any):
|
|
26
29
|
stop_after_if (Union[Unset, CompletedJobRawFlowModulesItemStopAfterIf]):
|
|
30
|
+
stop_after_all_iters_if (Union[Unset, CompletedJobRawFlowModulesItemStopAfterAllItersIf]):
|
|
27
31
|
sleep (Union['CompletedJobRawFlowModulesItemSleepType0', 'CompletedJobRawFlowModulesItemSleepType1', Unset]):
|
|
28
32
|
cache_ttl (Union[Unset, float]):
|
|
29
33
|
timeout (Union[Unset, float]):
|
|
@@ -39,6 +43,7 @@ class CompletedJobRawFlowModulesItem:
|
|
|
39
43
|
id: str
|
|
40
44
|
value: Any
|
|
41
45
|
stop_after_if: Union[Unset, "CompletedJobRawFlowModulesItemStopAfterIf"] = UNSET
|
|
46
|
+
stop_after_all_iters_if: Union[Unset, "CompletedJobRawFlowModulesItemStopAfterAllItersIf"] = UNSET
|
|
42
47
|
sleep: Union["CompletedJobRawFlowModulesItemSleepType0", "CompletedJobRawFlowModulesItemSleepType1", Unset] = UNSET
|
|
43
48
|
cache_ttl: Union[Unset, float] = UNSET
|
|
44
49
|
timeout: Union[Unset, float] = UNSET
|
|
@@ -60,6 +65,10 @@ class CompletedJobRawFlowModulesItem:
|
|
|
60
65
|
if not isinstance(self.stop_after_if, Unset):
|
|
61
66
|
stop_after_if = self.stop_after_if.to_dict()
|
|
62
67
|
|
|
68
|
+
stop_after_all_iters_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
69
|
+
if not isinstance(self.stop_after_all_iters_if, Unset):
|
|
70
|
+
stop_after_all_iters_if = self.stop_after_all_iters_if.to_dict()
|
|
71
|
+
|
|
63
72
|
sleep: Union[Dict[str, Any], Unset]
|
|
64
73
|
if isinstance(self.sleep, Unset):
|
|
65
74
|
sleep = UNSET
|
|
@@ -102,6 +111,8 @@ class CompletedJobRawFlowModulesItem:
|
|
|
102
111
|
)
|
|
103
112
|
if stop_after_if is not UNSET:
|
|
104
113
|
field_dict["stop_after_if"] = stop_after_if
|
|
114
|
+
if stop_after_all_iters_if is not UNSET:
|
|
115
|
+
field_dict["stop_after_all_iters_if"] = stop_after_all_iters_if
|
|
105
116
|
if sleep is not UNSET:
|
|
106
117
|
field_dict["sleep"] = sleep
|
|
107
118
|
if cache_ttl is not UNSET:
|
|
@@ -131,6 +142,9 @@ class CompletedJobRawFlowModulesItem:
|
|
|
131
142
|
from ..models.completed_job_raw_flow_modules_item_retry import CompletedJobRawFlowModulesItemRetry
|
|
132
143
|
from ..models.completed_job_raw_flow_modules_item_sleep_type_0 import CompletedJobRawFlowModulesItemSleepType0
|
|
133
144
|
from ..models.completed_job_raw_flow_modules_item_sleep_type_1 import CompletedJobRawFlowModulesItemSleepType1
|
|
145
|
+
from ..models.completed_job_raw_flow_modules_item_stop_after_all_iters_if import (
|
|
146
|
+
CompletedJobRawFlowModulesItemStopAfterAllItersIf,
|
|
147
|
+
)
|
|
134
148
|
from ..models.completed_job_raw_flow_modules_item_stop_after_if import CompletedJobRawFlowModulesItemStopAfterIf
|
|
135
149
|
from ..models.completed_job_raw_flow_modules_item_suspend import CompletedJobRawFlowModulesItemSuspend
|
|
136
150
|
|
|
@@ -146,6 +160,15 @@ class CompletedJobRawFlowModulesItem:
|
|
|
146
160
|
else:
|
|
147
161
|
stop_after_if = CompletedJobRawFlowModulesItemStopAfterIf.from_dict(_stop_after_if)
|
|
148
162
|
|
|
163
|
+
_stop_after_all_iters_if = d.pop("stop_after_all_iters_if", UNSET)
|
|
164
|
+
stop_after_all_iters_if: Union[Unset, CompletedJobRawFlowModulesItemStopAfterAllItersIf]
|
|
165
|
+
if isinstance(_stop_after_all_iters_if, Unset):
|
|
166
|
+
stop_after_all_iters_if = UNSET
|
|
167
|
+
else:
|
|
168
|
+
stop_after_all_iters_if = CompletedJobRawFlowModulesItemStopAfterAllItersIf.from_dict(
|
|
169
|
+
_stop_after_all_iters_if
|
|
170
|
+
)
|
|
171
|
+
|
|
149
172
|
def _parse_sleep(
|
|
150
173
|
data: object,
|
|
151
174
|
) -> Union["CompletedJobRawFlowModulesItemSleepType0", "CompletedJobRawFlowModulesItemSleepType1", Unset]:
|
|
@@ -214,6 +237,7 @@ class CompletedJobRawFlowModulesItem:
|
|
|
214
237
|
id=id,
|
|
215
238
|
value=value,
|
|
216
239
|
stop_after_if=stop_after_if,
|
|
240
|
+
stop_after_all_iters_if=stop_after_all_iters_if,
|
|
217
241
|
sleep=sleep,
|
|
218
242
|
cache_ttl=cache_ttl,
|
|
219
243
|
timeout=timeout,
|