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
|
@@ -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="GetCompletedJobResponse200RawFlowFailureModuleStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GetCompletedJobResponse200RawFlowFailureModuleStopAfterAllItersIf:
|
|
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
|
+
get_completed_job_response_200_raw_flow_failure_module_stop_after_all_iters_if = cls(
|
|
47
|
+
expr=expr,
|
|
48
|
+
skip_if_stopped=skip_if_stopped,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
get_completed_job_response_200_raw_flow_failure_module_stop_after_all_iters_if.additional_properties = d
|
|
52
|
+
return get_completed_job_response_200_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
|
|
@@ -18,6 +18,9 @@ if TYPE_CHECKING:
|
|
|
18
18
|
from ..models.get_completed_job_response_200_raw_flow_modules_item_sleep_type_1 import (
|
|
19
19
|
GetCompletedJobResponse200RawFlowModulesItemSleepType1,
|
|
20
20
|
)
|
|
21
|
+
from ..models.get_completed_job_response_200_raw_flow_modules_item_stop_after_all_iters_if import (
|
|
22
|
+
GetCompletedJobResponse200RawFlowModulesItemStopAfterAllItersIf,
|
|
23
|
+
)
|
|
21
24
|
from ..models.get_completed_job_response_200_raw_flow_modules_item_stop_after_if import (
|
|
22
25
|
GetCompletedJobResponse200RawFlowModulesItemStopAfterIf,
|
|
23
26
|
)
|
|
@@ -36,6 +39,7 @@ class GetCompletedJobResponse200RawFlowModulesItem:
|
|
|
36
39
|
id (str):
|
|
37
40
|
value (Any):
|
|
38
41
|
stop_after_if (Union[Unset, GetCompletedJobResponse200RawFlowModulesItemStopAfterIf]):
|
|
42
|
+
stop_after_all_iters_if (Union[Unset, GetCompletedJobResponse200RawFlowModulesItemStopAfterAllItersIf]):
|
|
39
43
|
sleep (Union['GetCompletedJobResponse200RawFlowModulesItemSleepType0',
|
|
40
44
|
'GetCompletedJobResponse200RawFlowModulesItemSleepType1', Unset]):
|
|
41
45
|
cache_ttl (Union[Unset, float]):
|
|
@@ -52,6 +56,7 @@ class GetCompletedJobResponse200RawFlowModulesItem:
|
|
|
52
56
|
id: str
|
|
53
57
|
value: Any
|
|
54
58
|
stop_after_if: Union[Unset, "GetCompletedJobResponse200RawFlowModulesItemStopAfterIf"] = UNSET
|
|
59
|
+
stop_after_all_iters_if: Union[Unset, "GetCompletedJobResponse200RawFlowModulesItemStopAfterAllItersIf"] = UNSET
|
|
55
60
|
sleep: Union[
|
|
56
61
|
"GetCompletedJobResponse200RawFlowModulesItemSleepType0",
|
|
57
62
|
"GetCompletedJobResponse200RawFlowModulesItemSleepType1",
|
|
@@ -79,6 +84,10 @@ class GetCompletedJobResponse200RawFlowModulesItem:
|
|
|
79
84
|
if not isinstance(self.stop_after_if, Unset):
|
|
80
85
|
stop_after_if = self.stop_after_if.to_dict()
|
|
81
86
|
|
|
87
|
+
stop_after_all_iters_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
88
|
+
if not isinstance(self.stop_after_all_iters_if, Unset):
|
|
89
|
+
stop_after_all_iters_if = self.stop_after_all_iters_if.to_dict()
|
|
90
|
+
|
|
82
91
|
sleep: Union[Dict[str, Any], Unset]
|
|
83
92
|
if isinstance(self.sleep, Unset):
|
|
84
93
|
sleep = UNSET
|
|
@@ -121,6 +130,8 @@ class GetCompletedJobResponse200RawFlowModulesItem:
|
|
|
121
130
|
)
|
|
122
131
|
if stop_after_if is not UNSET:
|
|
123
132
|
field_dict["stop_after_if"] = stop_after_if
|
|
133
|
+
if stop_after_all_iters_if is not UNSET:
|
|
134
|
+
field_dict["stop_after_all_iters_if"] = stop_after_all_iters_if
|
|
124
135
|
if sleep is not UNSET:
|
|
125
136
|
field_dict["sleep"] = sleep
|
|
126
137
|
if cache_ttl is not UNSET:
|
|
@@ -158,6 +169,9 @@ class GetCompletedJobResponse200RawFlowModulesItem:
|
|
|
158
169
|
from ..models.get_completed_job_response_200_raw_flow_modules_item_sleep_type_1 import (
|
|
159
170
|
GetCompletedJobResponse200RawFlowModulesItemSleepType1,
|
|
160
171
|
)
|
|
172
|
+
from ..models.get_completed_job_response_200_raw_flow_modules_item_stop_after_all_iters_if import (
|
|
173
|
+
GetCompletedJobResponse200RawFlowModulesItemStopAfterAllItersIf,
|
|
174
|
+
)
|
|
161
175
|
from ..models.get_completed_job_response_200_raw_flow_modules_item_stop_after_if import (
|
|
162
176
|
GetCompletedJobResponse200RawFlowModulesItemStopAfterIf,
|
|
163
177
|
)
|
|
@@ -177,6 +191,15 @@ class GetCompletedJobResponse200RawFlowModulesItem:
|
|
|
177
191
|
else:
|
|
178
192
|
stop_after_if = GetCompletedJobResponse200RawFlowModulesItemStopAfterIf.from_dict(_stop_after_if)
|
|
179
193
|
|
|
194
|
+
_stop_after_all_iters_if = d.pop("stop_after_all_iters_if", UNSET)
|
|
195
|
+
stop_after_all_iters_if: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemStopAfterAllItersIf]
|
|
196
|
+
if isinstance(_stop_after_all_iters_if, Unset):
|
|
197
|
+
stop_after_all_iters_if = UNSET
|
|
198
|
+
else:
|
|
199
|
+
stop_after_all_iters_if = GetCompletedJobResponse200RawFlowModulesItemStopAfterAllItersIf.from_dict(
|
|
200
|
+
_stop_after_all_iters_if
|
|
201
|
+
)
|
|
202
|
+
|
|
180
203
|
def _parse_sleep(
|
|
181
204
|
data: object,
|
|
182
205
|
) -> Union[
|
|
@@ -249,6 +272,7 @@ class GetCompletedJobResponse200RawFlowModulesItem:
|
|
|
249
272
|
id=id,
|
|
250
273
|
value=value,
|
|
251
274
|
stop_after_if=stop_after_if,
|
|
275
|
+
stop_after_all_iters_if=stop_after_all_iters_if,
|
|
252
276
|
sleep=sleep,
|
|
253
277
|
cache_ttl=cache_ttl,
|
|
254
278
|
timeout=timeout,
|
windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_stop_after_all_iters_if.py
ADDED
|
@@ -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="GetCompletedJobResponse200RawFlowModulesItemStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GetCompletedJobResponse200RawFlowModulesItemStopAfterAllItersIf:
|
|
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
|
+
get_completed_job_response_200_raw_flow_modules_item_stop_after_all_iters_if = cls(
|
|
47
|
+
expr=expr,
|
|
48
|
+
skip_if_stopped=skip_if_stopped,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
get_completed_job_response_200_raw_flow_modules_item_stop_after_all_iters_if.additional_properties = d
|
|
52
|
+
return get_completed_job_response_200_raw_flow_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
|
|
@@ -18,6 +18,9 @@ if TYPE_CHECKING:
|
|
|
18
18
|
from ..models.get_flow_by_path_response_200_value_failure_module_sleep_type_1 import (
|
|
19
19
|
GetFlowByPathResponse200ValueFailureModuleSleepType1,
|
|
20
20
|
)
|
|
21
|
+
from ..models.get_flow_by_path_response_200_value_failure_module_stop_after_all_iters_if import (
|
|
22
|
+
GetFlowByPathResponse200ValueFailureModuleStopAfterAllItersIf,
|
|
23
|
+
)
|
|
21
24
|
from ..models.get_flow_by_path_response_200_value_failure_module_stop_after_if import (
|
|
22
25
|
GetFlowByPathResponse200ValueFailureModuleStopAfterIf,
|
|
23
26
|
)
|
|
@@ -36,6 +39,7 @@ class GetFlowByPathResponse200ValueFailureModule:
|
|
|
36
39
|
id (str):
|
|
37
40
|
value (Any):
|
|
38
41
|
stop_after_if (Union[Unset, GetFlowByPathResponse200ValueFailureModuleStopAfterIf]):
|
|
42
|
+
stop_after_all_iters_if (Union[Unset, GetFlowByPathResponse200ValueFailureModuleStopAfterAllItersIf]):
|
|
39
43
|
sleep (Union['GetFlowByPathResponse200ValueFailureModuleSleepType0',
|
|
40
44
|
'GetFlowByPathResponse200ValueFailureModuleSleepType1', Unset]):
|
|
41
45
|
cache_ttl (Union[Unset, float]):
|
|
@@ -52,6 +56,7 @@ class GetFlowByPathResponse200ValueFailureModule:
|
|
|
52
56
|
id: str
|
|
53
57
|
value: Any
|
|
54
58
|
stop_after_if: Union[Unset, "GetFlowByPathResponse200ValueFailureModuleStopAfterIf"] = UNSET
|
|
59
|
+
stop_after_all_iters_if: Union[Unset, "GetFlowByPathResponse200ValueFailureModuleStopAfterAllItersIf"] = UNSET
|
|
55
60
|
sleep: Union[
|
|
56
61
|
"GetFlowByPathResponse200ValueFailureModuleSleepType0",
|
|
57
62
|
"GetFlowByPathResponse200ValueFailureModuleSleepType1",
|
|
@@ -79,6 +84,10 @@ class GetFlowByPathResponse200ValueFailureModule:
|
|
|
79
84
|
if not isinstance(self.stop_after_if, Unset):
|
|
80
85
|
stop_after_if = self.stop_after_if.to_dict()
|
|
81
86
|
|
|
87
|
+
stop_after_all_iters_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
88
|
+
if not isinstance(self.stop_after_all_iters_if, Unset):
|
|
89
|
+
stop_after_all_iters_if = self.stop_after_all_iters_if.to_dict()
|
|
90
|
+
|
|
82
91
|
sleep: Union[Dict[str, Any], Unset]
|
|
83
92
|
if isinstance(self.sleep, Unset):
|
|
84
93
|
sleep = UNSET
|
|
@@ -121,6 +130,8 @@ class GetFlowByPathResponse200ValueFailureModule:
|
|
|
121
130
|
)
|
|
122
131
|
if stop_after_if is not UNSET:
|
|
123
132
|
field_dict["stop_after_if"] = stop_after_if
|
|
133
|
+
if stop_after_all_iters_if is not UNSET:
|
|
134
|
+
field_dict["stop_after_all_iters_if"] = stop_after_all_iters_if
|
|
124
135
|
if sleep is not UNSET:
|
|
125
136
|
field_dict["sleep"] = sleep
|
|
126
137
|
if cache_ttl is not UNSET:
|
|
@@ -158,6 +169,9 @@ class GetFlowByPathResponse200ValueFailureModule:
|
|
|
158
169
|
from ..models.get_flow_by_path_response_200_value_failure_module_sleep_type_1 import (
|
|
159
170
|
GetFlowByPathResponse200ValueFailureModuleSleepType1,
|
|
160
171
|
)
|
|
172
|
+
from ..models.get_flow_by_path_response_200_value_failure_module_stop_after_all_iters_if import (
|
|
173
|
+
GetFlowByPathResponse200ValueFailureModuleStopAfterAllItersIf,
|
|
174
|
+
)
|
|
161
175
|
from ..models.get_flow_by_path_response_200_value_failure_module_stop_after_if import (
|
|
162
176
|
GetFlowByPathResponse200ValueFailureModuleStopAfterIf,
|
|
163
177
|
)
|
|
@@ -177,6 +191,15 @@ class GetFlowByPathResponse200ValueFailureModule:
|
|
|
177
191
|
else:
|
|
178
192
|
stop_after_if = GetFlowByPathResponse200ValueFailureModuleStopAfterIf.from_dict(_stop_after_if)
|
|
179
193
|
|
|
194
|
+
_stop_after_all_iters_if = d.pop("stop_after_all_iters_if", UNSET)
|
|
195
|
+
stop_after_all_iters_if: Union[Unset, GetFlowByPathResponse200ValueFailureModuleStopAfterAllItersIf]
|
|
196
|
+
if isinstance(_stop_after_all_iters_if, Unset):
|
|
197
|
+
stop_after_all_iters_if = UNSET
|
|
198
|
+
else:
|
|
199
|
+
stop_after_all_iters_if = GetFlowByPathResponse200ValueFailureModuleStopAfterAllItersIf.from_dict(
|
|
200
|
+
_stop_after_all_iters_if
|
|
201
|
+
)
|
|
202
|
+
|
|
180
203
|
def _parse_sleep(
|
|
181
204
|
data: object,
|
|
182
205
|
) -> Union[
|
|
@@ -249,6 +272,7 @@ class GetFlowByPathResponse200ValueFailureModule:
|
|
|
249
272
|
id=id,
|
|
250
273
|
value=value,
|
|
251
274
|
stop_after_if=stop_after_if,
|
|
275
|
+
stop_after_all_iters_if=stop_after_all_iters_if,
|
|
252
276
|
sleep=sleep,
|
|
253
277
|
cache_ttl=cache_ttl,
|
|
254
278
|
timeout=timeout,
|
windmill_api/models/get_flow_by_path_response_200_value_failure_module_stop_after_all_iters_if.py
ADDED
|
@@ -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="GetFlowByPathResponse200ValueFailureModuleStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GetFlowByPathResponse200ValueFailureModuleStopAfterAllItersIf:
|
|
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
|
+
get_flow_by_path_response_200_value_failure_module_stop_after_all_iters_if = cls(
|
|
47
|
+
expr=expr,
|
|
48
|
+
skip_if_stopped=skip_if_stopped,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
get_flow_by_path_response_200_value_failure_module_stop_after_all_iters_if.additional_properties = d
|
|
52
|
+
return get_flow_by_path_response_200_value_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
|
|
@@ -18,6 +18,9 @@ if TYPE_CHECKING:
|
|
|
18
18
|
from ..models.get_flow_by_path_response_200_value_modules_item_sleep_type_1 import (
|
|
19
19
|
GetFlowByPathResponse200ValueModulesItemSleepType1,
|
|
20
20
|
)
|
|
21
|
+
from ..models.get_flow_by_path_response_200_value_modules_item_stop_after_all_iters_if import (
|
|
22
|
+
GetFlowByPathResponse200ValueModulesItemStopAfterAllItersIf,
|
|
23
|
+
)
|
|
21
24
|
from ..models.get_flow_by_path_response_200_value_modules_item_stop_after_if import (
|
|
22
25
|
GetFlowByPathResponse200ValueModulesItemStopAfterIf,
|
|
23
26
|
)
|
|
@@ -36,6 +39,7 @@ class GetFlowByPathResponse200ValueModulesItem:
|
|
|
36
39
|
id (str):
|
|
37
40
|
value (Any):
|
|
38
41
|
stop_after_if (Union[Unset, GetFlowByPathResponse200ValueModulesItemStopAfterIf]):
|
|
42
|
+
stop_after_all_iters_if (Union[Unset, GetFlowByPathResponse200ValueModulesItemStopAfterAllItersIf]):
|
|
39
43
|
sleep (Union['GetFlowByPathResponse200ValueModulesItemSleepType0',
|
|
40
44
|
'GetFlowByPathResponse200ValueModulesItemSleepType1', Unset]):
|
|
41
45
|
cache_ttl (Union[Unset, float]):
|
|
@@ -52,6 +56,7 @@ class GetFlowByPathResponse200ValueModulesItem:
|
|
|
52
56
|
id: str
|
|
53
57
|
value: Any
|
|
54
58
|
stop_after_if: Union[Unset, "GetFlowByPathResponse200ValueModulesItemStopAfterIf"] = UNSET
|
|
59
|
+
stop_after_all_iters_if: Union[Unset, "GetFlowByPathResponse200ValueModulesItemStopAfterAllItersIf"] = UNSET
|
|
55
60
|
sleep: Union[
|
|
56
61
|
"GetFlowByPathResponse200ValueModulesItemSleepType0",
|
|
57
62
|
"GetFlowByPathResponse200ValueModulesItemSleepType1",
|
|
@@ -79,6 +84,10 @@ class GetFlowByPathResponse200ValueModulesItem:
|
|
|
79
84
|
if not isinstance(self.stop_after_if, Unset):
|
|
80
85
|
stop_after_if = self.stop_after_if.to_dict()
|
|
81
86
|
|
|
87
|
+
stop_after_all_iters_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
88
|
+
if not isinstance(self.stop_after_all_iters_if, Unset):
|
|
89
|
+
stop_after_all_iters_if = self.stop_after_all_iters_if.to_dict()
|
|
90
|
+
|
|
82
91
|
sleep: Union[Dict[str, Any], Unset]
|
|
83
92
|
if isinstance(self.sleep, Unset):
|
|
84
93
|
sleep = UNSET
|
|
@@ -121,6 +130,8 @@ class GetFlowByPathResponse200ValueModulesItem:
|
|
|
121
130
|
)
|
|
122
131
|
if stop_after_if is not UNSET:
|
|
123
132
|
field_dict["stop_after_if"] = stop_after_if
|
|
133
|
+
if stop_after_all_iters_if is not UNSET:
|
|
134
|
+
field_dict["stop_after_all_iters_if"] = stop_after_all_iters_if
|
|
124
135
|
if sleep is not UNSET:
|
|
125
136
|
field_dict["sleep"] = sleep
|
|
126
137
|
if cache_ttl is not UNSET:
|
|
@@ -158,6 +169,9 @@ class GetFlowByPathResponse200ValueModulesItem:
|
|
|
158
169
|
from ..models.get_flow_by_path_response_200_value_modules_item_sleep_type_1 import (
|
|
159
170
|
GetFlowByPathResponse200ValueModulesItemSleepType1,
|
|
160
171
|
)
|
|
172
|
+
from ..models.get_flow_by_path_response_200_value_modules_item_stop_after_all_iters_if import (
|
|
173
|
+
GetFlowByPathResponse200ValueModulesItemStopAfterAllItersIf,
|
|
174
|
+
)
|
|
161
175
|
from ..models.get_flow_by_path_response_200_value_modules_item_stop_after_if import (
|
|
162
176
|
GetFlowByPathResponse200ValueModulesItemStopAfterIf,
|
|
163
177
|
)
|
|
@@ -177,6 +191,15 @@ class GetFlowByPathResponse200ValueModulesItem:
|
|
|
177
191
|
else:
|
|
178
192
|
stop_after_if = GetFlowByPathResponse200ValueModulesItemStopAfterIf.from_dict(_stop_after_if)
|
|
179
193
|
|
|
194
|
+
_stop_after_all_iters_if = d.pop("stop_after_all_iters_if", UNSET)
|
|
195
|
+
stop_after_all_iters_if: Union[Unset, GetFlowByPathResponse200ValueModulesItemStopAfterAllItersIf]
|
|
196
|
+
if isinstance(_stop_after_all_iters_if, Unset):
|
|
197
|
+
stop_after_all_iters_if = UNSET
|
|
198
|
+
else:
|
|
199
|
+
stop_after_all_iters_if = GetFlowByPathResponse200ValueModulesItemStopAfterAllItersIf.from_dict(
|
|
200
|
+
_stop_after_all_iters_if
|
|
201
|
+
)
|
|
202
|
+
|
|
180
203
|
def _parse_sleep(
|
|
181
204
|
data: object,
|
|
182
205
|
) -> Union[
|
|
@@ -249,6 +272,7 @@ class GetFlowByPathResponse200ValueModulesItem:
|
|
|
249
272
|
id=id,
|
|
250
273
|
value=value,
|
|
251
274
|
stop_after_if=stop_after_if,
|
|
275
|
+
stop_after_all_iters_if=stop_after_all_iters_if,
|
|
252
276
|
sleep=sleep,
|
|
253
277
|
cache_ttl=cache_ttl,
|
|
254
278
|
timeout=timeout,
|
windmill_api/models/get_flow_by_path_response_200_value_modules_item_stop_after_all_iters_if.py
ADDED
|
@@ -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="GetFlowByPathResponse200ValueModulesItemStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GetFlowByPathResponse200ValueModulesItemStopAfterAllItersIf:
|
|
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
|
+
get_flow_by_path_response_200_value_modules_item_stop_after_all_iters_if = cls(
|
|
47
|
+
expr=expr,
|
|
48
|
+
skip_if_stopped=skip_if_stopped,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
get_flow_by_path_response_200_value_modules_item_stop_after_all_iters_if.additional_properties = d
|
|
52
|
+
return get_flow_by_path_response_200_value_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
|
|
@@ -18,6 +18,9 @@ if TYPE_CHECKING:
|
|
|
18
18
|
from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1 import (
|
|
19
19
|
GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1,
|
|
20
20
|
)
|
|
21
|
+
from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_all_iters_if import (
|
|
22
|
+
GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterAllItersIf,
|
|
23
|
+
)
|
|
21
24
|
from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if import (
|
|
22
25
|
GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf,
|
|
23
26
|
)
|
|
@@ -36,6 +39,8 @@ class GetFlowByPathWithDraftResponse200DraftValueFailureModule:
|
|
|
36
39
|
id (str):
|
|
37
40
|
value (Any):
|
|
38
41
|
stop_after_if (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf]):
|
|
42
|
+
stop_after_all_iters_if (Union[Unset,
|
|
43
|
+
GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterAllItersIf]):
|
|
39
44
|
sleep (Union['GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0',
|
|
40
45
|
'GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1', Unset]):
|
|
41
46
|
cache_ttl (Union[Unset, float]):
|
|
@@ -52,6 +57,9 @@ class GetFlowByPathWithDraftResponse200DraftValueFailureModule:
|
|
|
52
57
|
id: str
|
|
53
58
|
value: Any
|
|
54
59
|
stop_after_if: Union[Unset, "GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf"] = UNSET
|
|
60
|
+
stop_after_all_iters_if: Union[
|
|
61
|
+
Unset, "GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterAllItersIf"
|
|
62
|
+
] = UNSET
|
|
55
63
|
sleep: Union[
|
|
56
64
|
"GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0",
|
|
57
65
|
"GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1",
|
|
@@ -79,6 +87,10 @@ class GetFlowByPathWithDraftResponse200DraftValueFailureModule:
|
|
|
79
87
|
if not isinstance(self.stop_after_if, Unset):
|
|
80
88
|
stop_after_if = self.stop_after_if.to_dict()
|
|
81
89
|
|
|
90
|
+
stop_after_all_iters_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
91
|
+
if not isinstance(self.stop_after_all_iters_if, Unset):
|
|
92
|
+
stop_after_all_iters_if = self.stop_after_all_iters_if.to_dict()
|
|
93
|
+
|
|
82
94
|
sleep: Union[Dict[str, Any], Unset]
|
|
83
95
|
if isinstance(self.sleep, Unset):
|
|
84
96
|
sleep = UNSET
|
|
@@ -121,6 +133,8 @@ class GetFlowByPathWithDraftResponse200DraftValueFailureModule:
|
|
|
121
133
|
)
|
|
122
134
|
if stop_after_if is not UNSET:
|
|
123
135
|
field_dict["stop_after_if"] = stop_after_if
|
|
136
|
+
if stop_after_all_iters_if is not UNSET:
|
|
137
|
+
field_dict["stop_after_all_iters_if"] = stop_after_all_iters_if
|
|
124
138
|
if sleep is not UNSET:
|
|
125
139
|
field_dict["sleep"] = sleep
|
|
126
140
|
if cache_ttl is not UNSET:
|
|
@@ -158,6 +172,9 @@ class GetFlowByPathWithDraftResponse200DraftValueFailureModule:
|
|
|
158
172
|
from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1 import (
|
|
159
173
|
GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1,
|
|
160
174
|
)
|
|
175
|
+
from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_all_iters_if import (
|
|
176
|
+
GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterAllItersIf,
|
|
177
|
+
)
|
|
161
178
|
from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if import (
|
|
162
179
|
GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf,
|
|
163
180
|
)
|
|
@@ -179,6 +196,19 @@ class GetFlowByPathWithDraftResponse200DraftValueFailureModule:
|
|
|
179
196
|
_stop_after_if
|
|
180
197
|
)
|
|
181
198
|
|
|
199
|
+
_stop_after_all_iters_if = d.pop("stop_after_all_iters_if", UNSET)
|
|
200
|
+
stop_after_all_iters_if: Union[
|
|
201
|
+
Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterAllItersIf
|
|
202
|
+
]
|
|
203
|
+
if isinstance(_stop_after_all_iters_if, Unset):
|
|
204
|
+
stop_after_all_iters_if = UNSET
|
|
205
|
+
else:
|
|
206
|
+
stop_after_all_iters_if = (
|
|
207
|
+
GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterAllItersIf.from_dict(
|
|
208
|
+
_stop_after_all_iters_if
|
|
209
|
+
)
|
|
210
|
+
)
|
|
211
|
+
|
|
182
212
|
def _parse_sleep(
|
|
183
213
|
data: object,
|
|
184
214
|
) -> Union[
|
|
@@ -255,6 +285,7 @@ class GetFlowByPathWithDraftResponse200DraftValueFailureModule:
|
|
|
255
285
|
id=id,
|
|
256
286
|
value=value,
|
|
257
287
|
stop_after_if=stop_after_if,
|
|
288
|
+
stop_after_all_iters_if=stop_after_all_iters_if,
|
|
258
289
|
sleep=sleep,
|
|
259
290
|
cache_ttl=cache_ttl,
|
|
260
291
|
timeout=timeout,
|
|
@@ -0,0 +1,70 @@
|
|
|
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="GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterAllItersIf:
|
|
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
|
+
get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_all_iters_if = cls(
|
|
47
|
+
expr=expr,
|
|
48
|
+
skip_if_stopped=skip_if_stopped,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_all_iters_if.additional_properties = (
|
|
52
|
+
d
|
|
53
|
+
)
|
|
54
|
+
return get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_all_iters_if
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def additional_keys(self) -> List[str]:
|
|
58
|
+
return list(self.additional_properties.keys())
|
|
59
|
+
|
|
60
|
+
def __getitem__(self, key: str) -> Any:
|
|
61
|
+
return self.additional_properties[key]
|
|
62
|
+
|
|
63
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
64
|
+
self.additional_properties[key] = value
|
|
65
|
+
|
|
66
|
+
def __delitem__(self, key: str) -> None:
|
|
67
|
+
del self.additional_properties[key]
|
|
68
|
+
|
|
69
|
+
def __contains__(self, key: str) -> bool:
|
|
70
|
+
return key in self.additional_properties
|