windmill-api 1.529.0__py3-none-any.whl → 1.530.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/run_flow_preview_and_wait_result.py +107 -0
- windmill_api/api/job/run_script_preview_and_wait_result.py +107 -0
- windmill_api/models/preview.py +3 -3
- windmill_api/models/run_flow_preview_and_wait_result_json_body.py +114 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_args.py +44 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_restarted_from.py +74 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value.py +190 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module.py +334 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_mock.py +66 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_retry.py +97 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_retry_constant.py +66 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_retry_exponential.py +82 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_skip_if.py +58 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_sleep_type_0.py +69 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_sleep_type_0_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_sleep_type_1.py +69 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_sleep_type_1_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_stop_after_all_iters_if.py +78 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_stop_after_if.py +76 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_suspend.py +215 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_resume_form.py +75 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_resume_form_schema.py +46 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_0.py +71 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_0_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_1.py +71 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_1_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item.py +331 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_mock.py +66 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_retry.py +97 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_retry_constant.py +66 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_retry_exponential.py +82 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_skip_if.py +58 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_0.py +69 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_0_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_1.py +69 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_1_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_all_iters_if.py +76 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_if.py +76 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_suspend.py +213 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_suspend_resume_form.py +75 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_suspend_resume_form_schema.py +46 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_suspend_user_groups_required_type_0.py +71 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_suspend_user_groups_required_type_0_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_suspend_user_groups_required_type_1.py +71 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_suspend_user_groups_required_type_1_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module.py +340 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_mock.py +66 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_retry.py +99 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_retry_constant.py +66 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_retry_exponential.py +82 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_skip_if.py +58 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_sleep_type_0.py +69 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_sleep_type_0_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_sleep_type_1.py +69 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_sleep_type_1_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_stop_after_all_iters_if.py +78 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_stop_after_if.py +76 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend.py +215 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_resume_form.py +79 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_resume_form_schema.py +46 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_0.py +73 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_0_type.py +8 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_1.py +73 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_1_type.py +8 -0
- windmill_api/models/run_script_preview_and_wait_result_json_body.py +149 -0
- windmill_api/models/run_script_preview_and_wait_result_json_body_args.py +44 -0
- windmill_api/models/run_script_preview_and_wait_result_json_body_kind.py +10 -0
- windmill_api/models/run_script_preview_and_wait_result_json_body_language.py +29 -0
- windmill_api/models/run_script_preview_json_body.py +3 -3
- {windmill_api-1.529.0.dist-info → windmill_api-1.530.0.dist-info}/METADATA +1 -1
- {windmill_api-1.529.0.dist-info → windmill_api-1.530.0.dist-info}/RECORD +73 -6
- {windmill_api-1.529.0.dist-info → windmill_api-1.530.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.529.0.dist-info → windmill_api-1.530.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, 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
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_retry_constant import (
|
|
10
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryConstant,
|
|
11
|
+
)
|
|
12
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_retry_exponential import (
|
|
13
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryExponential,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetry")
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@_attrs_define
|
|
21
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetry:
|
|
22
|
+
"""
|
|
23
|
+
Attributes:
|
|
24
|
+
constant (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryConstant]):
|
|
25
|
+
exponential (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryExponential]):
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
constant: Union[Unset, "RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryConstant"] = UNSET
|
|
29
|
+
exponential: Union[Unset, "RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryExponential"] = UNSET
|
|
30
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
31
|
+
|
|
32
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
33
|
+
constant: Union[Unset, Dict[str, Any]] = UNSET
|
|
34
|
+
if not isinstance(self.constant, Unset):
|
|
35
|
+
constant = self.constant.to_dict()
|
|
36
|
+
|
|
37
|
+
exponential: Union[Unset, Dict[str, Any]] = UNSET
|
|
38
|
+
if not isinstance(self.exponential, Unset):
|
|
39
|
+
exponential = self.exponential.to_dict()
|
|
40
|
+
|
|
41
|
+
field_dict: Dict[str, Any] = {}
|
|
42
|
+
field_dict.update(self.additional_properties)
|
|
43
|
+
field_dict.update({})
|
|
44
|
+
if constant is not UNSET:
|
|
45
|
+
field_dict["constant"] = constant
|
|
46
|
+
if exponential is not UNSET:
|
|
47
|
+
field_dict["exponential"] = exponential
|
|
48
|
+
|
|
49
|
+
return field_dict
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
53
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_retry_constant import (
|
|
54
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryConstant,
|
|
55
|
+
)
|
|
56
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_retry_exponential import (
|
|
57
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryExponential,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
d = src_dict.copy()
|
|
61
|
+
_constant = d.pop("constant", UNSET)
|
|
62
|
+
constant: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryConstant]
|
|
63
|
+
if isinstance(_constant, Unset):
|
|
64
|
+
constant = UNSET
|
|
65
|
+
else:
|
|
66
|
+
constant = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryConstant.from_dict(_constant)
|
|
67
|
+
|
|
68
|
+
_exponential = d.pop("exponential", UNSET)
|
|
69
|
+
exponential: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryExponential]
|
|
70
|
+
if isinstance(_exponential, Unset):
|
|
71
|
+
exponential = UNSET
|
|
72
|
+
else:
|
|
73
|
+
exponential = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryExponential.from_dict(_exponential)
|
|
74
|
+
|
|
75
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_retry = cls(
|
|
76
|
+
constant=constant,
|
|
77
|
+
exponential=exponential,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_retry.additional_properties = d
|
|
81
|
+
return run_flow_preview_and_wait_result_json_body_value_modules_item_retry
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def additional_keys(self) -> List[str]:
|
|
85
|
+
return list(self.additional_properties.keys())
|
|
86
|
+
|
|
87
|
+
def __getitem__(self, key: str) -> Any:
|
|
88
|
+
return self.additional_properties[key]
|
|
89
|
+
|
|
90
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
91
|
+
self.additional_properties[key] = value
|
|
92
|
+
|
|
93
|
+
def __delitem__(self, key: str) -> None:
|
|
94
|
+
del self.additional_properties[key]
|
|
95
|
+
|
|
96
|
+
def __contains__(self, key: str) -> bool:
|
|
97
|
+
return key in self.additional_properties
|
windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_retry_constant.py
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
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="RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryConstant")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryConstant:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
attempts (Union[Unset, int]):
|
|
16
|
+
seconds (Union[Unset, int]):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
attempts: Union[Unset, int] = UNSET
|
|
20
|
+
seconds: Union[Unset, int] = UNSET
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
attempts = self.attempts
|
|
25
|
+
seconds = self.seconds
|
|
26
|
+
|
|
27
|
+
field_dict: Dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update({})
|
|
30
|
+
if attempts is not UNSET:
|
|
31
|
+
field_dict["attempts"] = attempts
|
|
32
|
+
if seconds is not UNSET:
|
|
33
|
+
field_dict["seconds"] = seconds
|
|
34
|
+
|
|
35
|
+
return field_dict
|
|
36
|
+
|
|
37
|
+
@classmethod
|
|
38
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
39
|
+
d = src_dict.copy()
|
|
40
|
+
attempts = d.pop("attempts", UNSET)
|
|
41
|
+
|
|
42
|
+
seconds = d.pop("seconds", UNSET)
|
|
43
|
+
|
|
44
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_retry_constant = cls(
|
|
45
|
+
attempts=attempts,
|
|
46
|
+
seconds=seconds,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_retry_constant.additional_properties = d
|
|
50
|
+
return run_flow_preview_and_wait_result_json_body_value_modules_item_retry_constant
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def additional_keys(self) -> List[str]:
|
|
54
|
+
return list(self.additional_properties.keys())
|
|
55
|
+
|
|
56
|
+
def __getitem__(self, key: str) -> Any:
|
|
57
|
+
return self.additional_properties[key]
|
|
58
|
+
|
|
59
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
60
|
+
self.additional_properties[key] = value
|
|
61
|
+
|
|
62
|
+
def __delitem__(self, key: str) -> None:
|
|
63
|
+
del self.additional_properties[key]
|
|
64
|
+
|
|
65
|
+
def __contains__(self, key: str) -> bool:
|
|
66
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,82 @@
|
|
|
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="RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryExponential")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetryExponential:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
attempts (Union[Unset, int]):
|
|
16
|
+
multiplier (Union[Unset, int]):
|
|
17
|
+
seconds (Union[Unset, int]):
|
|
18
|
+
random_factor (Union[Unset, int]):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
attempts: Union[Unset, int] = UNSET
|
|
22
|
+
multiplier: Union[Unset, int] = UNSET
|
|
23
|
+
seconds: Union[Unset, int] = UNSET
|
|
24
|
+
random_factor: Union[Unset, int] = UNSET
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
attempts = self.attempts
|
|
29
|
+
multiplier = self.multiplier
|
|
30
|
+
seconds = self.seconds
|
|
31
|
+
random_factor = self.random_factor
|
|
32
|
+
|
|
33
|
+
field_dict: Dict[str, Any] = {}
|
|
34
|
+
field_dict.update(self.additional_properties)
|
|
35
|
+
field_dict.update({})
|
|
36
|
+
if attempts is not UNSET:
|
|
37
|
+
field_dict["attempts"] = attempts
|
|
38
|
+
if multiplier is not UNSET:
|
|
39
|
+
field_dict["multiplier"] = multiplier
|
|
40
|
+
if seconds is not UNSET:
|
|
41
|
+
field_dict["seconds"] = seconds
|
|
42
|
+
if random_factor is not UNSET:
|
|
43
|
+
field_dict["random_factor"] = random_factor
|
|
44
|
+
|
|
45
|
+
return field_dict
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
49
|
+
d = src_dict.copy()
|
|
50
|
+
attempts = d.pop("attempts", UNSET)
|
|
51
|
+
|
|
52
|
+
multiplier = d.pop("multiplier", UNSET)
|
|
53
|
+
|
|
54
|
+
seconds = d.pop("seconds", UNSET)
|
|
55
|
+
|
|
56
|
+
random_factor = d.pop("random_factor", UNSET)
|
|
57
|
+
|
|
58
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_retry_exponential = cls(
|
|
59
|
+
attempts=attempts,
|
|
60
|
+
multiplier=multiplier,
|
|
61
|
+
seconds=seconds,
|
|
62
|
+
random_factor=random_factor,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_retry_exponential.additional_properties = d
|
|
66
|
+
return run_flow_preview_and_wait_result_json_body_value_modules_item_retry_exponential
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def additional_keys(self) -> List[str]:
|
|
70
|
+
return list(self.additional_properties.keys())
|
|
71
|
+
|
|
72
|
+
def __getitem__(self, key: str) -> Any:
|
|
73
|
+
return self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
76
|
+
self.additional_properties[key] = value
|
|
77
|
+
|
|
78
|
+
def __delitem__(self, key: str) -> None:
|
|
79
|
+
del self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __contains__(self, key: str) -> bool:
|
|
82
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,58 @@
|
|
|
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="RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSkipIf")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSkipIf:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
expr (str):
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
expr: str
|
|
17
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
+
|
|
19
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
20
|
+
expr = self.expr
|
|
21
|
+
|
|
22
|
+
field_dict: Dict[str, Any] = {}
|
|
23
|
+
field_dict.update(self.additional_properties)
|
|
24
|
+
field_dict.update(
|
|
25
|
+
{
|
|
26
|
+
"expr": expr,
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
return field_dict
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
34
|
+
d = src_dict.copy()
|
|
35
|
+
expr = d.pop("expr")
|
|
36
|
+
|
|
37
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_skip_if = cls(
|
|
38
|
+
expr=expr,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_skip_if.additional_properties = d
|
|
42
|
+
return run_flow_preview_and_wait_result_json_body_value_modules_item_skip_if
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def additional_keys(self) -> List[str]:
|
|
46
|
+
return list(self.additional_properties.keys())
|
|
47
|
+
|
|
48
|
+
def __getitem__(self, key: str) -> Any:
|
|
49
|
+
return self.additional_properties[key]
|
|
50
|
+
|
|
51
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
52
|
+
self.additional_properties[key] = value
|
|
53
|
+
|
|
54
|
+
def __delitem__(self, key: str) -> None:
|
|
55
|
+
del self.additional_properties[key]
|
|
56
|
+
|
|
57
|
+
def __contains__(self, key: str) -> bool:
|
|
58
|
+
return key in self.additional_properties
|
windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_0.py
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_0_type import (
|
|
7
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0Type,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
value (Any):
|
|
18
|
+
type (RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0Type):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
value: Any
|
|
22
|
+
type: RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0Type
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
value = self.value
|
|
27
|
+
type = self.type.value
|
|
28
|
+
|
|
29
|
+
field_dict: Dict[str, Any] = {}
|
|
30
|
+
field_dict.update(self.additional_properties)
|
|
31
|
+
field_dict.update(
|
|
32
|
+
{
|
|
33
|
+
"value": value,
|
|
34
|
+
"type": type,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
return field_dict
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
42
|
+
d = src_dict.copy()
|
|
43
|
+
value = d.pop("value")
|
|
44
|
+
|
|
45
|
+
type = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0Type(d.pop("type"))
|
|
46
|
+
|
|
47
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_0 = cls(
|
|
48
|
+
value=value,
|
|
49
|
+
type=type,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_0.additional_properties = d
|
|
53
|
+
return run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_0
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def additional_keys(self) -> List[str]:
|
|
57
|
+
return list(self.additional_properties.keys())
|
|
58
|
+
|
|
59
|
+
def __getitem__(self, key: str) -> Any:
|
|
60
|
+
return self.additional_properties[key]
|
|
61
|
+
|
|
62
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
63
|
+
self.additional_properties[key] = value
|
|
64
|
+
|
|
65
|
+
def __delitem__(self, key: str) -> None:
|
|
66
|
+
del self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __contains__(self, key: str) -> bool:
|
|
69
|
+
return key in self.additional_properties
|
windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_1.py
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_1_type import (
|
|
7
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1Type,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
expr (str):
|
|
18
|
+
type (RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1Type):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
expr: str
|
|
22
|
+
type: RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1Type
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
expr = self.expr
|
|
27
|
+
type = self.type.value
|
|
28
|
+
|
|
29
|
+
field_dict: Dict[str, Any] = {}
|
|
30
|
+
field_dict.update(self.additional_properties)
|
|
31
|
+
field_dict.update(
|
|
32
|
+
{
|
|
33
|
+
"expr": expr,
|
|
34
|
+
"type": type,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
return field_dict
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
42
|
+
d = src_dict.copy()
|
|
43
|
+
expr = d.pop("expr")
|
|
44
|
+
|
|
45
|
+
type = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1Type(d.pop("type"))
|
|
46
|
+
|
|
47
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_1 = cls(
|
|
48
|
+
expr=expr,
|
|
49
|
+
type=type,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_1.additional_properties = d
|
|
53
|
+
return run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_1
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def additional_keys(self) -> List[str]:
|
|
57
|
+
return list(self.additional_properties.keys())
|
|
58
|
+
|
|
59
|
+
def __getitem__(self, key: str) -> Any:
|
|
60
|
+
return self.additional_properties[key]
|
|
61
|
+
|
|
62
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
63
|
+
self.additional_properties[key] = value
|
|
64
|
+
|
|
65
|
+
def __delitem__(self, key: str) -> None:
|
|
66
|
+
del self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __contains__(self, key: str) -> bool:
|
|
69
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,76 @@
|
|
|
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="RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterAllItersIf:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
expr (str):
|
|
16
|
+
skip_if_stopped (Union[Unset, bool]):
|
|
17
|
+
error_message (Union[Unset, str]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
expr: str
|
|
21
|
+
skip_if_stopped: Union[Unset, bool] = UNSET
|
|
22
|
+
error_message: Union[Unset, str] = UNSET
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
expr = self.expr
|
|
27
|
+
skip_if_stopped = self.skip_if_stopped
|
|
28
|
+
error_message = self.error_message
|
|
29
|
+
|
|
30
|
+
field_dict: Dict[str, Any] = {}
|
|
31
|
+
field_dict.update(self.additional_properties)
|
|
32
|
+
field_dict.update(
|
|
33
|
+
{
|
|
34
|
+
"expr": expr,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
if skip_if_stopped is not UNSET:
|
|
38
|
+
field_dict["skip_if_stopped"] = skip_if_stopped
|
|
39
|
+
if error_message is not UNSET:
|
|
40
|
+
field_dict["error_message"] = error_message
|
|
41
|
+
|
|
42
|
+
return field_dict
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
expr = d.pop("expr")
|
|
48
|
+
|
|
49
|
+
skip_if_stopped = d.pop("skip_if_stopped", UNSET)
|
|
50
|
+
|
|
51
|
+
error_message = d.pop("error_message", UNSET)
|
|
52
|
+
|
|
53
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_all_iters_if = cls(
|
|
54
|
+
expr=expr,
|
|
55
|
+
skip_if_stopped=skip_if_stopped,
|
|
56
|
+
error_message=error_message,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_all_iters_if.additional_properties = d
|
|
60
|
+
return run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_all_iters_if
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def additional_keys(self) -> List[str]:
|
|
64
|
+
return list(self.additional_properties.keys())
|
|
65
|
+
|
|
66
|
+
def __getitem__(self, key: str) -> Any:
|
|
67
|
+
return self.additional_properties[key]
|
|
68
|
+
|
|
69
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
70
|
+
self.additional_properties[key] = value
|
|
71
|
+
|
|
72
|
+
def __delitem__(self, key: str) -> None:
|
|
73
|
+
del self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __contains__(self, key: str) -> bool:
|
|
76
|
+
return key in self.additional_properties
|
windmill_api/models/run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_if.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
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="RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterIf:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
expr (str):
|
|
16
|
+
skip_if_stopped (Union[Unset, bool]):
|
|
17
|
+
error_message (Union[Unset, str]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
expr: str
|
|
21
|
+
skip_if_stopped: Union[Unset, bool] = UNSET
|
|
22
|
+
error_message: Union[Unset, str] = UNSET
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
expr = self.expr
|
|
27
|
+
skip_if_stopped = self.skip_if_stopped
|
|
28
|
+
error_message = self.error_message
|
|
29
|
+
|
|
30
|
+
field_dict: Dict[str, Any] = {}
|
|
31
|
+
field_dict.update(self.additional_properties)
|
|
32
|
+
field_dict.update(
|
|
33
|
+
{
|
|
34
|
+
"expr": expr,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
if skip_if_stopped is not UNSET:
|
|
38
|
+
field_dict["skip_if_stopped"] = skip_if_stopped
|
|
39
|
+
if error_message is not UNSET:
|
|
40
|
+
field_dict["error_message"] = error_message
|
|
41
|
+
|
|
42
|
+
return field_dict
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
expr = d.pop("expr")
|
|
48
|
+
|
|
49
|
+
skip_if_stopped = d.pop("skip_if_stopped", UNSET)
|
|
50
|
+
|
|
51
|
+
error_message = d.pop("error_message", UNSET)
|
|
52
|
+
|
|
53
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_if = cls(
|
|
54
|
+
expr=expr,
|
|
55
|
+
skip_if_stopped=skip_if_stopped,
|
|
56
|
+
error_message=error_message,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_if.additional_properties = d
|
|
60
|
+
return run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_if
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def additional_keys(self) -> List[str]:
|
|
64
|
+
return list(self.additional_properties.keys())
|
|
65
|
+
|
|
66
|
+
def __getitem__(self, key: str) -> Any:
|
|
67
|
+
return self.additional_properties[key]
|
|
68
|
+
|
|
69
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
70
|
+
self.additional_properties[key] = value
|
|
71
|
+
|
|
72
|
+
def __delitem__(self, key: str) -> None:
|
|
73
|
+
del self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __contains__(self, key: str) -> bool:
|
|
76
|
+
return key in self.additional_properties
|