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,46 @@
|
|
|
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="RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeFormSchema")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendResumeFormSchema:
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
+
|
|
15
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_resume_form_schema = cls()
|
|
26
|
+
|
|
27
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_resume_form_schema.additional_properties = (
|
|
28
|
+
d
|
|
29
|
+
)
|
|
30
|
+
return run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_resume_form_schema
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def additional_keys(self) -> List[str]:
|
|
34
|
+
return list(self.additional_properties.keys())
|
|
35
|
+
|
|
36
|
+
def __getitem__(self, key: str) -> Any:
|
|
37
|
+
return self.additional_properties[key]
|
|
38
|
+
|
|
39
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
40
|
+
self.additional_properties[key] = value
|
|
41
|
+
|
|
42
|
+
def __delitem__(self, key: str) -> None:
|
|
43
|
+
del self.additional_properties[key]
|
|
44
|
+
|
|
45
|
+
def __contains__(self, key: str) -> bool:
|
|
46
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,71 @@
|
|
|
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_suspend_user_groups_required_type_0_type import (
|
|
7
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0Type,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
value (Any):
|
|
18
|
+
type (RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0Type):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
value: Any
|
|
22
|
+
type: RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0Type
|
|
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 = RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type"))
|
|
46
|
+
|
|
47
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_0 = cls(
|
|
48
|
+
value=value,
|
|
49
|
+
type=type,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_0.additional_properties = (
|
|
53
|
+
d
|
|
54
|
+
)
|
|
55
|
+
return run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_0
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def additional_keys(self) -> List[str]:
|
|
59
|
+
return list(self.additional_properties.keys())
|
|
60
|
+
|
|
61
|
+
def __getitem__(self, key: str) -> Any:
|
|
62
|
+
return self.additional_properties[key]
|
|
63
|
+
|
|
64
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
65
|
+
self.additional_properties[key] = value
|
|
66
|
+
|
|
67
|
+
def __delitem__(self, key: str) -> None:
|
|
68
|
+
del self.additional_properties[key]
|
|
69
|
+
|
|
70
|
+
def __contains__(self, key: str) -> bool:
|
|
71
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,71 @@
|
|
|
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_suspend_user_groups_required_type_1_type import (
|
|
7
|
+
RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1Type,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
expr (str):
|
|
18
|
+
type (RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1Type):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
expr: str
|
|
22
|
+
type: RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1Type
|
|
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 = RunFlowPreviewAndWaitResultJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type"))
|
|
46
|
+
|
|
47
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_1 = cls(
|
|
48
|
+
expr=expr,
|
|
49
|
+
type=type,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_1.additional_properties = (
|
|
53
|
+
d
|
|
54
|
+
)
|
|
55
|
+
return run_flow_preview_and_wait_result_json_body_value_failure_module_suspend_user_groups_required_type_1
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def additional_keys(self) -> List[str]:
|
|
59
|
+
return list(self.additional_properties.keys())
|
|
60
|
+
|
|
61
|
+
def __getitem__(self, key: str) -> Any:
|
|
62
|
+
return self.additional_properties[key]
|
|
63
|
+
|
|
64
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
65
|
+
self.additional_properties[key] = value
|
|
66
|
+
|
|
67
|
+
def __delitem__(self, key: str) -> None:
|
|
68
|
+
del self.additional_properties[key]
|
|
69
|
+
|
|
70
|
+
def __contains__(self, key: str) -> bool:
|
|
71
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,331 @@
|
|
|
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_mock import (
|
|
10
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemMock,
|
|
11
|
+
)
|
|
12
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_retry import (
|
|
13
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetry,
|
|
14
|
+
)
|
|
15
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_skip_if import (
|
|
16
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSkipIf,
|
|
17
|
+
)
|
|
18
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_0 import (
|
|
19
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0,
|
|
20
|
+
)
|
|
21
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_1 import (
|
|
22
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1,
|
|
23
|
+
)
|
|
24
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_all_iters_if import (
|
|
25
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterAllItersIf,
|
|
26
|
+
)
|
|
27
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_if import (
|
|
28
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterIf,
|
|
29
|
+
)
|
|
30
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_suspend import (
|
|
31
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSuspend,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValueModulesItem")
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@_attrs_define
|
|
39
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueModulesItem:
|
|
40
|
+
"""
|
|
41
|
+
Attributes:
|
|
42
|
+
id (str):
|
|
43
|
+
value (Any):
|
|
44
|
+
stop_after_if (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterIf]):
|
|
45
|
+
stop_after_all_iters_if (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterAllItersIf]):
|
|
46
|
+
skip_if (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSkipIf]):
|
|
47
|
+
sleep (Union['RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0',
|
|
48
|
+
'RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1', Unset]):
|
|
49
|
+
cache_ttl (Union[Unset, float]):
|
|
50
|
+
timeout (Union[Unset, float]):
|
|
51
|
+
delete_after_use (Union[Unset, bool]):
|
|
52
|
+
summary (Union[Unset, str]):
|
|
53
|
+
mock (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemMock]):
|
|
54
|
+
suspend (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSuspend]):
|
|
55
|
+
priority (Union[Unset, float]):
|
|
56
|
+
continue_on_error (Union[Unset, bool]):
|
|
57
|
+
retry (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetry]):
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
id: str
|
|
61
|
+
value: Any
|
|
62
|
+
stop_after_if: Union[Unset, "RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterIf"] = UNSET
|
|
63
|
+
stop_after_all_iters_if: Union[
|
|
64
|
+
Unset, "RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterAllItersIf"
|
|
65
|
+
] = UNSET
|
|
66
|
+
skip_if: Union[Unset, "RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSkipIf"] = UNSET
|
|
67
|
+
sleep: Union[
|
|
68
|
+
"RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0",
|
|
69
|
+
"RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1",
|
|
70
|
+
Unset,
|
|
71
|
+
] = UNSET
|
|
72
|
+
cache_ttl: Union[Unset, float] = UNSET
|
|
73
|
+
timeout: Union[Unset, float] = UNSET
|
|
74
|
+
delete_after_use: Union[Unset, bool] = UNSET
|
|
75
|
+
summary: Union[Unset, str] = UNSET
|
|
76
|
+
mock: Union[Unset, "RunFlowPreviewAndWaitResultJsonBodyValueModulesItemMock"] = UNSET
|
|
77
|
+
suspend: Union[Unset, "RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSuspend"] = UNSET
|
|
78
|
+
priority: Union[Unset, float] = UNSET
|
|
79
|
+
continue_on_error: Union[Unset, bool] = UNSET
|
|
80
|
+
retry: Union[Unset, "RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetry"] = UNSET
|
|
81
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
82
|
+
|
|
83
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
84
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_0 import (
|
|
85
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
id = self.id
|
|
89
|
+
value = self.value
|
|
90
|
+
stop_after_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
91
|
+
if not isinstance(self.stop_after_if, Unset):
|
|
92
|
+
stop_after_if = self.stop_after_if.to_dict()
|
|
93
|
+
|
|
94
|
+
stop_after_all_iters_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
95
|
+
if not isinstance(self.stop_after_all_iters_if, Unset):
|
|
96
|
+
stop_after_all_iters_if = self.stop_after_all_iters_if.to_dict()
|
|
97
|
+
|
|
98
|
+
skip_if: Union[Unset, Dict[str, Any]] = UNSET
|
|
99
|
+
if not isinstance(self.skip_if, Unset):
|
|
100
|
+
skip_if = self.skip_if.to_dict()
|
|
101
|
+
|
|
102
|
+
sleep: Union[Dict[str, Any], Unset]
|
|
103
|
+
if isinstance(self.sleep, Unset):
|
|
104
|
+
sleep = UNSET
|
|
105
|
+
|
|
106
|
+
elif isinstance(self.sleep, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0):
|
|
107
|
+
sleep = UNSET
|
|
108
|
+
if not isinstance(self.sleep, Unset):
|
|
109
|
+
sleep = self.sleep.to_dict()
|
|
110
|
+
|
|
111
|
+
else:
|
|
112
|
+
sleep = UNSET
|
|
113
|
+
if not isinstance(self.sleep, Unset):
|
|
114
|
+
sleep = self.sleep.to_dict()
|
|
115
|
+
|
|
116
|
+
cache_ttl = self.cache_ttl
|
|
117
|
+
timeout = self.timeout
|
|
118
|
+
delete_after_use = self.delete_after_use
|
|
119
|
+
summary = self.summary
|
|
120
|
+
mock: Union[Unset, Dict[str, Any]] = UNSET
|
|
121
|
+
if not isinstance(self.mock, Unset):
|
|
122
|
+
mock = self.mock.to_dict()
|
|
123
|
+
|
|
124
|
+
suspend: Union[Unset, Dict[str, Any]] = UNSET
|
|
125
|
+
if not isinstance(self.suspend, Unset):
|
|
126
|
+
suspend = self.suspend.to_dict()
|
|
127
|
+
|
|
128
|
+
priority = self.priority
|
|
129
|
+
continue_on_error = self.continue_on_error
|
|
130
|
+
retry: Union[Unset, Dict[str, Any]] = UNSET
|
|
131
|
+
if not isinstance(self.retry, Unset):
|
|
132
|
+
retry = self.retry.to_dict()
|
|
133
|
+
|
|
134
|
+
field_dict: Dict[str, Any] = {}
|
|
135
|
+
field_dict.update(self.additional_properties)
|
|
136
|
+
field_dict.update(
|
|
137
|
+
{
|
|
138
|
+
"id": id,
|
|
139
|
+
"value": value,
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
if stop_after_if is not UNSET:
|
|
143
|
+
field_dict["stop_after_if"] = stop_after_if
|
|
144
|
+
if stop_after_all_iters_if is not UNSET:
|
|
145
|
+
field_dict["stop_after_all_iters_if"] = stop_after_all_iters_if
|
|
146
|
+
if skip_if is not UNSET:
|
|
147
|
+
field_dict["skip_if"] = skip_if
|
|
148
|
+
if sleep is not UNSET:
|
|
149
|
+
field_dict["sleep"] = sleep
|
|
150
|
+
if cache_ttl is not UNSET:
|
|
151
|
+
field_dict["cache_ttl"] = cache_ttl
|
|
152
|
+
if timeout is not UNSET:
|
|
153
|
+
field_dict["timeout"] = timeout
|
|
154
|
+
if delete_after_use is not UNSET:
|
|
155
|
+
field_dict["delete_after_use"] = delete_after_use
|
|
156
|
+
if summary is not UNSET:
|
|
157
|
+
field_dict["summary"] = summary
|
|
158
|
+
if mock is not UNSET:
|
|
159
|
+
field_dict["mock"] = mock
|
|
160
|
+
if suspend is not UNSET:
|
|
161
|
+
field_dict["suspend"] = suspend
|
|
162
|
+
if priority is not UNSET:
|
|
163
|
+
field_dict["priority"] = priority
|
|
164
|
+
if continue_on_error is not UNSET:
|
|
165
|
+
field_dict["continue_on_error"] = continue_on_error
|
|
166
|
+
if retry is not UNSET:
|
|
167
|
+
field_dict["retry"] = retry
|
|
168
|
+
|
|
169
|
+
return field_dict
|
|
170
|
+
|
|
171
|
+
@classmethod
|
|
172
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
173
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_mock import (
|
|
174
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemMock,
|
|
175
|
+
)
|
|
176
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_retry import (
|
|
177
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetry,
|
|
178
|
+
)
|
|
179
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_skip_if import (
|
|
180
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSkipIf,
|
|
181
|
+
)
|
|
182
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_0 import (
|
|
183
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0,
|
|
184
|
+
)
|
|
185
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_sleep_type_1 import (
|
|
186
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1,
|
|
187
|
+
)
|
|
188
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_all_iters_if import (
|
|
189
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterAllItersIf,
|
|
190
|
+
)
|
|
191
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_stop_after_if import (
|
|
192
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterIf,
|
|
193
|
+
)
|
|
194
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_modules_item_suspend import (
|
|
195
|
+
RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSuspend,
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
d = src_dict.copy()
|
|
199
|
+
id = d.pop("id")
|
|
200
|
+
|
|
201
|
+
value = d.pop("value")
|
|
202
|
+
|
|
203
|
+
_stop_after_if = d.pop("stop_after_if", UNSET)
|
|
204
|
+
stop_after_if: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterIf]
|
|
205
|
+
if isinstance(_stop_after_if, Unset):
|
|
206
|
+
stop_after_if = UNSET
|
|
207
|
+
else:
|
|
208
|
+
stop_after_if = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterIf.from_dict(_stop_after_if)
|
|
209
|
+
|
|
210
|
+
_stop_after_all_iters_if = d.pop("stop_after_all_iters_if", UNSET)
|
|
211
|
+
stop_after_all_iters_if: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterAllItersIf]
|
|
212
|
+
if isinstance(_stop_after_all_iters_if, Unset):
|
|
213
|
+
stop_after_all_iters_if = UNSET
|
|
214
|
+
else:
|
|
215
|
+
stop_after_all_iters_if = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemStopAfterAllItersIf.from_dict(
|
|
216
|
+
_stop_after_all_iters_if
|
|
217
|
+
)
|
|
218
|
+
|
|
219
|
+
_skip_if = d.pop("skip_if", UNSET)
|
|
220
|
+
skip_if: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSkipIf]
|
|
221
|
+
if isinstance(_skip_if, Unset):
|
|
222
|
+
skip_if = UNSET
|
|
223
|
+
else:
|
|
224
|
+
skip_if = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSkipIf.from_dict(_skip_if)
|
|
225
|
+
|
|
226
|
+
def _parse_sleep(
|
|
227
|
+
data: object,
|
|
228
|
+
) -> Union[
|
|
229
|
+
"RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0",
|
|
230
|
+
"RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1",
|
|
231
|
+
Unset,
|
|
232
|
+
]:
|
|
233
|
+
if isinstance(data, Unset):
|
|
234
|
+
return data
|
|
235
|
+
try:
|
|
236
|
+
if not isinstance(data, dict):
|
|
237
|
+
raise TypeError()
|
|
238
|
+
_sleep_type_0 = data
|
|
239
|
+
sleep_type_0: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0]
|
|
240
|
+
if isinstance(_sleep_type_0, Unset):
|
|
241
|
+
sleep_type_0 = UNSET
|
|
242
|
+
else:
|
|
243
|
+
sleep_type_0 = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType0.from_dict(
|
|
244
|
+
_sleep_type_0
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
return sleep_type_0
|
|
248
|
+
except: # noqa: E722
|
|
249
|
+
pass
|
|
250
|
+
if not isinstance(data, dict):
|
|
251
|
+
raise TypeError()
|
|
252
|
+
_sleep_type_1 = data
|
|
253
|
+
sleep_type_1: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1]
|
|
254
|
+
if isinstance(_sleep_type_1, Unset):
|
|
255
|
+
sleep_type_1 = UNSET
|
|
256
|
+
else:
|
|
257
|
+
sleep_type_1 = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSleepType1.from_dict(_sleep_type_1)
|
|
258
|
+
|
|
259
|
+
return sleep_type_1
|
|
260
|
+
|
|
261
|
+
sleep = _parse_sleep(d.pop("sleep", UNSET))
|
|
262
|
+
|
|
263
|
+
cache_ttl = d.pop("cache_ttl", UNSET)
|
|
264
|
+
|
|
265
|
+
timeout = d.pop("timeout", UNSET)
|
|
266
|
+
|
|
267
|
+
delete_after_use = d.pop("delete_after_use", UNSET)
|
|
268
|
+
|
|
269
|
+
summary = d.pop("summary", UNSET)
|
|
270
|
+
|
|
271
|
+
_mock = d.pop("mock", UNSET)
|
|
272
|
+
mock: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemMock]
|
|
273
|
+
if isinstance(_mock, Unset):
|
|
274
|
+
mock = UNSET
|
|
275
|
+
else:
|
|
276
|
+
mock = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemMock.from_dict(_mock)
|
|
277
|
+
|
|
278
|
+
_suspend = d.pop("suspend", UNSET)
|
|
279
|
+
suspend: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSuspend]
|
|
280
|
+
if isinstance(_suspend, Unset):
|
|
281
|
+
suspend = UNSET
|
|
282
|
+
else:
|
|
283
|
+
suspend = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemSuspend.from_dict(_suspend)
|
|
284
|
+
|
|
285
|
+
priority = d.pop("priority", UNSET)
|
|
286
|
+
|
|
287
|
+
continue_on_error = d.pop("continue_on_error", UNSET)
|
|
288
|
+
|
|
289
|
+
_retry = d.pop("retry", UNSET)
|
|
290
|
+
retry: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetry]
|
|
291
|
+
if isinstance(_retry, Unset):
|
|
292
|
+
retry = UNSET
|
|
293
|
+
else:
|
|
294
|
+
retry = RunFlowPreviewAndWaitResultJsonBodyValueModulesItemRetry.from_dict(_retry)
|
|
295
|
+
|
|
296
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item = cls(
|
|
297
|
+
id=id,
|
|
298
|
+
value=value,
|
|
299
|
+
stop_after_if=stop_after_if,
|
|
300
|
+
stop_after_all_iters_if=stop_after_all_iters_if,
|
|
301
|
+
skip_if=skip_if,
|
|
302
|
+
sleep=sleep,
|
|
303
|
+
cache_ttl=cache_ttl,
|
|
304
|
+
timeout=timeout,
|
|
305
|
+
delete_after_use=delete_after_use,
|
|
306
|
+
summary=summary,
|
|
307
|
+
mock=mock,
|
|
308
|
+
suspend=suspend,
|
|
309
|
+
priority=priority,
|
|
310
|
+
continue_on_error=continue_on_error,
|
|
311
|
+
retry=retry,
|
|
312
|
+
)
|
|
313
|
+
|
|
314
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item.additional_properties = d
|
|
315
|
+
return run_flow_preview_and_wait_result_json_body_value_modules_item
|
|
316
|
+
|
|
317
|
+
@property
|
|
318
|
+
def additional_keys(self) -> List[str]:
|
|
319
|
+
return list(self.additional_properties.keys())
|
|
320
|
+
|
|
321
|
+
def __getitem__(self, key: str) -> Any:
|
|
322
|
+
return self.additional_properties[key]
|
|
323
|
+
|
|
324
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
325
|
+
self.additional_properties[key] = value
|
|
326
|
+
|
|
327
|
+
def __delitem__(self, key: str) -> None:
|
|
328
|
+
del self.additional_properties[key]
|
|
329
|
+
|
|
330
|
+
def __contains__(self, key: str) -> bool:
|
|
331
|
+
return key in self.additional_properties
|
|
@@ -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="RunFlowPreviewAndWaitResultJsonBodyValueModulesItemMock")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class RunFlowPreviewAndWaitResultJsonBodyValueModulesItemMock:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
enabled (Union[Unset, bool]):
|
|
16
|
+
return_value (Union[Unset, Any]):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
enabled: Union[Unset, bool] = UNSET
|
|
20
|
+
return_value: Union[Unset, Any] = UNSET
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
enabled = self.enabled
|
|
25
|
+
return_value = self.return_value
|
|
26
|
+
|
|
27
|
+
field_dict: Dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update({})
|
|
30
|
+
if enabled is not UNSET:
|
|
31
|
+
field_dict["enabled"] = enabled
|
|
32
|
+
if return_value is not UNSET:
|
|
33
|
+
field_dict["return_value"] = return_value
|
|
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
|
+
enabled = d.pop("enabled", UNSET)
|
|
41
|
+
|
|
42
|
+
return_value = d.pop("return_value", UNSET)
|
|
43
|
+
|
|
44
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_mock = cls(
|
|
45
|
+
enabled=enabled,
|
|
46
|
+
return_value=return_value,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
run_flow_preview_and_wait_result_json_body_value_modules_item_mock.additional_properties = d
|
|
50
|
+
return run_flow_preview_and_wait_result_json_body_value_modules_item_mock
|
|
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
|