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