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
windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_skip_if.py
ADDED
|
@@ -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="RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSkipIf")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSkipIf:
|
|
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_failure_module_skip_if = cls(
|
|
38
|
+
expr=expr,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_skip_if.additional_properties = d
|
|
42
|
+
return run_flow_preview_and_wait_result_json_body_value_failure_module_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_failure_module_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_failure_module_sleep_type_0_type import (
|
|
7
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType0Type,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType0")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType0:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
value (Any):
|
|
18
|
+
type (RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType0Type):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
value: Any
|
|
22
|
+
type: RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType0Type
|
|
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 = RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType0Type(d.pop("type"))
|
|
46
|
+
|
|
47
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_sleep_type_0 = cls(
|
|
48
|
+
value=value,
|
|
49
|
+
type=type,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_sleep_type_0.additional_properties = d
|
|
53
|
+
return run_flow_preview_and_wait_result_json_body_value_failure_module_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_failure_module_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_failure_module_sleep_type_1_type import (
|
|
7
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType1Type,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType1")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType1:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
expr (str):
|
|
18
|
+
type (RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType1Type):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
expr: str
|
|
22
|
+
type: RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType1Type
|
|
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 = RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSleepType1Type(d.pop("type"))
|
|
46
|
+
|
|
47
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_sleep_type_1 = cls(
|
|
48
|
+
expr=expr,
|
|
49
|
+
type=type,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_sleep_type_1.additional_properties = d
|
|
53
|
+
return run_flow_preview_and_wait_result_json_body_value_failure_module_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,78 @@
|
|
|
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="RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleStopAfterAllItersIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleStopAfterAllItersIf:
|
|
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_failure_module_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_failure_module_stop_after_all_iters_if.additional_properties = (
|
|
60
|
+
d
|
|
61
|
+
)
|
|
62
|
+
return run_flow_preview_and_wait_result_json_body_value_failure_module_stop_after_all_iters_if
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def additional_keys(self) -> List[str]:
|
|
66
|
+
return list(self.additional_properties.keys())
|
|
67
|
+
|
|
68
|
+
def __getitem__(self, key: str) -> Any:
|
|
69
|
+
return self.additional_properties[key]
|
|
70
|
+
|
|
71
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
72
|
+
self.additional_properties[key] = value
|
|
73
|
+
|
|
74
|
+
def __delitem__(self, key: str) -> None:
|
|
75
|
+
del self.additional_properties[key]
|
|
76
|
+
|
|
77
|
+
def __contains__(self, key: str) -> bool:
|
|
78
|
+
return key in self.additional_properties
|
windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_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="RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleStopAfterIf")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleStopAfterIf:
|
|
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_failure_module_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_failure_module_stop_after_if.additional_properties = d
|
|
60
|
+
return run_flow_preview_and_wait_result_json_body_value_failure_module_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
|
windmill_api/models/run_flow_preview_and_wait_result_json_body_value_failure_module_suspend.py
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
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_failure_module_suspend_resume_form import (
|
|
10
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeForm,
|
|
11
|
+
)
|
|
12
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_0 import (
|
|
13
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0,
|
|
14
|
+
)
|
|
15
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_1 import (
|
|
16
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspend")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@_attrs_define
|
|
24
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspend:
|
|
25
|
+
"""
|
|
26
|
+
Attributes:
|
|
27
|
+
required_events (Union[Unset, int]):
|
|
28
|
+
timeout (Union[Unset, int]):
|
|
29
|
+
resume_form (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeForm]):
|
|
30
|
+
user_auth_required (Union[Unset, bool]):
|
|
31
|
+
user_groups_required
|
|
32
|
+
(Union['RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0',
|
|
33
|
+
'RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1', Unset]):
|
|
34
|
+
self_approval_disabled (Union[Unset, bool]):
|
|
35
|
+
hide_cancel (Union[Unset, bool]):
|
|
36
|
+
continue_on_disapprove_timeout (Union[Unset, bool]):
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
required_events: Union[Unset, int] = UNSET
|
|
40
|
+
timeout: Union[Unset, int] = UNSET
|
|
41
|
+
resume_form: Union[Unset, "RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeForm"] = UNSET
|
|
42
|
+
user_auth_required: Union[Unset, bool] = UNSET
|
|
43
|
+
user_groups_required: Union[
|
|
44
|
+
"RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0",
|
|
45
|
+
"RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1",
|
|
46
|
+
Unset,
|
|
47
|
+
] = UNSET
|
|
48
|
+
self_approval_disabled: Union[Unset, bool] = UNSET
|
|
49
|
+
hide_cancel: Union[Unset, bool] = UNSET
|
|
50
|
+
continue_on_disapprove_timeout: Union[Unset, bool] = UNSET
|
|
51
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_0 import (
|
|
55
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
required_events = self.required_events
|
|
59
|
+
timeout = self.timeout
|
|
60
|
+
resume_form: Union[Unset, Dict[str, Any]] = UNSET
|
|
61
|
+
if not isinstance(self.resume_form, Unset):
|
|
62
|
+
resume_form = self.resume_form.to_dict()
|
|
63
|
+
|
|
64
|
+
user_auth_required = self.user_auth_required
|
|
65
|
+
user_groups_required: Union[Dict[str, Any], Unset]
|
|
66
|
+
if isinstance(self.user_groups_required, Unset):
|
|
67
|
+
user_groups_required = UNSET
|
|
68
|
+
|
|
69
|
+
elif isinstance(
|
|
70
|
+
self.user_groups_required,
|
|
71
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0,
|
|
72
|
+
):
|
|
73
|
+
user_groups_required = UNSET
|
|
74
|
+
if not isinstance(self.user_groups_required, Unset):
|
|
75
|
+
user_groups_required = self.user_groups_required.to_dict()
|
|
76
|
+
|
|
77
|
+
else:
|
|
78
|
+
user_groups_required = UNSET
|
|
79
|
+
if not isinstance(self.user_groups_required, Unset):
|
|
80
|
+
user_groups_required = self.user_groups_required.to_dict()
|
|
81
|
+
|
|
82
|
+
self_approval_disabled = self.self_approval_disabled
|
|
83
|
+
hide_cancel = self.hide_cancel
|
|
84
|
+
continue_on_disapprove_timeout = self.continue_on_disapprove_timeout
|
|
85
|
+
|
|
86
|
+
field_dict: Dict[str, Any] = {}
|
|
87
|
+
field_dict.update(self.additional_properties)
|
|
88
|
+
field_dict.update({})
|
|
89
|
+
if required_events is not UNSET:
|
|
90
|
+
field_dict["required_events"] = required_events
|
|
91
|
+
if timeout is not UNSET:
|
|
92
|
+
field_dict["timeout"] = timeout
|
|
93
|
+
if resume_form is not UNSET:
|
|
94
|
+
field_dict["resume_form"] = resume_form
|
|
95
|
+
if user_auth_required is not UNSET:
|
|
96
|
+
field_dict["user_auth_required"] = user_auth_required
|
|
97
|
+
if user_groups_required is not UNSET:
|
|
98
|
+
field_dict["user_groups_required"] = user_groups_required
|
|
99
|
+
if self_approval_disabled is not UNSET:
|
|
100
|
+
field_dict["self_approval_disabled"] = self_approval_disabled
|
|
101
|
+
if hide_cancel is not UNSET:
|
|
102
|
+
field_dict["hide_cancel"] = hide_cancel
|
|
103
|
+
if continue_on_disapprove_timeout is not UNSET:
|
|
104
|
+
field_dict["continue_on_disapprove_timeout"] = continue_on_disapprove_timeout
|
|
105
|
+
|
|
106
|
+
return field_dict
|
|
107
|
+
|
|
108
|
+
@classmethod
|
|
109
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
110
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_resume_form import (
|
|
111
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeForm,
|
|
112
|
+
)
|
|
113
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_0 import (
|
|
114
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0,
|
|
115
|
+
)
|
|
116
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_1 import (
|
|
117
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
d = src_dict.copy()
|
|
121
|
+
required_events = d.pop("required_events", UNSET)
|
|
122
|
+
|
|
123
|
+
timeout = d.pop("timeout", UNSET)
|
|
124
|
+
|
|
125
|
+
_resume_form = d.pop("resume_form", UNSET)
|
|
126
|
+
resume_form: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeForm]
|
|
127
|
+
if isinstance(_resume_form, Unset):
|
|
128
|
+
resume_form = UNSET
|
|
129
|
+
else:
|
|
130
|
+
resume_form = RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeForm.from_dict(_resume_form)
|
|
131
|
+
|
|
132
|
+
user_auth_required = d.pop("user_auth_required", UNSET)
|
|
133
|
+
|
|
134
|
+
def _parse_user_groups_required(
|
|
135
|
+
data: object,
|
|
136
|
+
) -> Union[
|
|
137
|
+
"RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0",
|
|
138
|
+
"RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1",
|
|
139
|
+
Unset,
|
|
140
|
+
]:
|
|
141
|
+
if isinstance(data, Unset):
|
|
142
|
+
return data
|
|
143
|
+
try:
|
|
144
|
+
if not isinstance(data, dict):
|
|
145
|
+
raise TypeError()
|
|
146
|
+
_user_groups_required_type_0 = data
|
|
147
|
+
user_groups_required_type_0: Union[
|
|
148
|
+
Unset, RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0
|
|
149
|
+
]
|
|
150
|
+
if isinstance(_user_groups_required_type_0, Unset):
|
|
151
|
+
user_groups_required_type_0 = UNSET
|
|
152
|
+
else:
|
|
153
|
+
user_groups_required_type_0 = (
|
|
154
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0.from_dict(
|
|
155
|
+
_user_groups_required_type_0
|
|
156
|
+
)
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
return user_groups_required_type_0
|
|
160
|
+
except: # noqa: E722
|
|
161
|
+
pass
|
|
162
|
+
if not isinstance(data, dict):
|
|
163
|
+
raise TypeError()
|
|
164
|
+
_user_groups_required_type_1 = data
|
|
165
|
+
user_groups_required_type_1: Union[
|
|
166
|
+
Unset, RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1
|
|
167
|
+
]
|
|
168
|
+
if isinstance(_user_groups_required_type_1, Unset):
|
|
169
|
+
user_groups_required_type_1 = UNSET
|
|
170
|
+
else:
|
|
171
|
+
user_groups_required_type_1 = (
|
|
172
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1.from_dict(
|
|
173
|
+
_user_groups_required_type_1
|
|
174
|
+
)
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
return user_groups_required_type_1
|
|
178
|
+
|
|
179
|
+
user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET))
|
|
180
|
+
|
|
181
|
+
self_approval_disabled = d.pop("self_approval_disabled", UNSET)
|
|
182
|
+
|
|
183
|
+
hide_cancel = d.pop("hide_cancel", UNSET)
|
|
184
|
+
|
|
185
|
+
continue_on_disapprove_timeout = d.pop("continue_on_disapprove_timeout", UNSET)
|
|
186
|
+
|
|
187
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_suspend = cls(
|
|
188
|
+
required_events=required_events,
|
|
189
|
+
timeout=timeout,
|
|
190
|
+
resume_form=resume_form,
|
|
191
|
+
user_auth_required=user_auth_required,
|
|
192
|
+
user_groups_required=user_groups_required,
|
|
193
|
+
self_approval_disabled=self_approval_disabled,
|
|
194
|
+
hide_cancel=hide_cancel,
|
|
195
|
+
continue_on_disapprove_timeout=continue_on_disapprove_timeout,
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_suspend.additional_properties = d
|
|
199
|
+
return run_flow_preview_and_wait_result_json_body_value_failure_module_suspend
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
def additional_keys(self) -> List[str]:
|
|
203
|
+
return list(self.additional_properties.keys())
|
|
204
|
+
|
|
205
|
+
def __getitem__(self, key: str) -> Any:
|
|
206
|
+
return self.additional_properties[key]
|
|
207
|
+
|
|
208
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
209
|
+
self.additional_properties[key] = value
|
|
210
|
+
|
|
211
|
+
def __delitem__(self, key: str) -> None:
|
|
212
|
+
del self.additional_properties[key]
|
|
213
|
+
|
|
214
|
+
def __contains__(self, key: str) -> bool:
|
|
215
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,75 @@
|
|
|
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_failure_module_suspend_resume_form_schema import (
|
|
10
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeFormSchema,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeForm")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeForm:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
schema (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeFormSchema]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
schema: Union[Unset, "RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeFormSchema"] = UNSET
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
schema: Union[Unset, Dict[str, Any]] = UNSET
|
|
29
|
+
if not isinstance(self.schema, Unset):
|
|
30
|
+
schema = self.schema.to_dict()
|
|
31
|
+
|
|
32
|
+
field_dict: Dict[str, Any] = {}
|
|
33
|
+
field_dict.update(self.additional_properties)
|
|
34
|
+
field_dict.update({})
|
|
35
|
+
if schema is not UNSET:
|
|
36
|
+
field_dict["schema"] = schema
|
|
37
|
+
|
|
38
|
+
return field_dict
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
42
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_resume_form_schema import (
|
|
43
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeFormSchema,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
_schema = d.pop("schema", UNSET)
|
|
48
|
+
schema: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeFormSchema]
|
|
49
|
+
if isinstance(_schema, Unset):
|
|
50
|
+
schema = UNSET
|
|
51
|
+
else:
|
|
52
|
+
schema = RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeFormSchema.from_dict(_schema)
|
|
53
|
+
|
|
54
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_resume_form = cls(
|
|
55
|
+
schema=schema,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_resume_form.additional_properties = d
|
|
59
|
+
return run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_resume_form
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def additional_keys(self) -> List[str]:
|
|
63
|
+
return list(self.additional_properties.keys())
|
|
64
|
+
|
|
65
|
+
def __getitem__(self, key: str) -> Any:
|
|
66
|
+
return self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
+
self.additional_properties[key] = value
|
|
70
|
+
|
|
71
|
+
def __delitem__(self, key: str) -> None:
|
|
72
|
+
del self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __contains__(self, key: str) -> bool:
|
|
75
|
+
return key in self.additional_properties
|