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
windmill_api/models/run_flow_preview_and_wait_result_json_body_value_preprocessor_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_preprocessor_module_suspend_resume_form import (
|
|
10
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeForm,
|
|
11
|
+
)
|
|
12
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_0 import (
|
|
13
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0,
|
|
14
|
+
)
|
|
15
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_1 import (
|
|
16
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspend")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@_attrs_define
|
|
24
|
+
class RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspend:
|
|
25
|
+
"""
|
|
26
|
+
Attributes:
|
|
27
|
+
required_events (Union[Unset, int]):
|
|
28
|
+
timeout (Union[Unset, int]):
|
|
29
|
+
resume_form (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeForm]):
|
|
30
|
+
user_auth_required (Union[Unset, bool]):
|
|
31
|
+
user_groups_required
|
|
32
|
+
(Union['RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0',
|
|
33
|
+
'RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1', 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, "RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeForm"] = UNSET
|
|
42
|
+
user_auth_required: Union[Unset, bool] = UNSET
|
|
43
|
+
user_groups_required: Union[
|
|
44
|
+
"RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0",
|
|
45
|
+
"RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1",
|
|
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_preprocessor_module_suspend_user_groups_required_type_0 import (
|
|
55
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0,
|
|
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
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0,
|
|
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_preprocessor_module_suspend_resume_form import (
|
|
111
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeForm,
|
|
112
|
+
)
|
|
113
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_0 import (
|
|
114
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0,
|
|
115
|
+
)
|
|
116
|
+
from ..models.run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_1 import (
|
|
117
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1,
|
|
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, RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeForm]
|
|
127
|
+
if isinstance(_resume_form, Unset):
|
|
128
|
+
resume_form = UNSET
|
|
129
|
+
else:
|
|
130
|
+
resume_form = RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeForm.from_dict(
|
|
131
|
+
_resume_form
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
user_auth_required = d.pop("user_auth_required", UNSET)
|
|
135
|
+
|
|
136
|
+
def _parse_user_groups_required(
|
|
137
|
+
data: object,
|
|
138
|
+
) -> Union[
|
|
139
|
+
"RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0",
|
|
140
|
+
"RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1",
|
|
141
|
+
Unset,
|
|
142
|
+
]:
|
|
143
|
+
if isinstance(data, Unset):
|
|
144
|
+
return data
|
|
145
|
+
try:
|
|
146
|
+
if not isinstance(data, dict):
|
|
147
|
+
raise TypeError()
|
|
148
|
+
_user_groups_required_type_0 = data
|
|
149
|
+
user_groups_required_type_0: Union[
|
|
150
|
+
Unset, RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0
|
|
151
|
+
]
|
|
152
|
+
if isinstance(_user_groups_required_type_0, Unset):
|
|
153
|
+
user_groups_required_type_0 = UNSET
|
|
154
|
+
else:
|
|
155
|
+
user_groups_required_type_0 = RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0.from_dict(
|
|
156
|
+
_user_groups_required_type_0
|
|
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, RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1
|
|
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
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1.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_preprocessor_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_preprocessor_module_suspend.additional_properties = d
|
|
199
|
+
return run_flow_preview_and_wait_result_json_body_value_preprocessor_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,79 @@
|
|
|
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_preprocessor_module_suspend_resume_form_schema import (
|
|
10
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeFormSchema,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeForm")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeForm:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
schema (Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeFormSchema]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
schema: Union[Unset, "RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeFormSchema"] = 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_preprocessor_module_suspend_resume_form_schema import (
|
|
43
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeFormSchema,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
_schema = d.pop("schema", UNSET)
|
|
48
|
+
schema: Union[Unset, RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeFormSchema]
|
|
49
|
+
if isinstance(_schema, Unset):
|
|
50
|
+
schema = UNSET
|
|
51
|
+
else:
|
|
52
|
+
schema = RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeFormSchema.from_dict(
|
|
53
|
+
_schema
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_resume_form = cls(
|
|
57
|
+
schema=schema,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_resume_form.additional_properties = (
|
|
61
|
+
d
|
|
62
|
+
)
|
|
63
|
+
return run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_resume_form
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def additional_keys(self) -> List[str]:
|
|
67
|
+
return list(self.additional_properties.keys())
|
|
68
|
+
|
|
69
|
+
def __getitem__(self, key: str) -> Any:
|
|
70
|
+
return self.additional_properties[key]
|
|
71
|
+
|
|
72
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
73
|
+
self.additional_properties[key] = value
|
|
74
|
+
|
|
75
|
+
def __delitem__(self, key: str) -> None:
|
|
76
|
+
del self.additional_properties[key]
|
|
77
|
+
|
|
78
|
+
def __contains__(self, key: str) -> bool:
|
|
79
|
+
return key in self.additional_properties
|
|
@@ -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="RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeFormSchema")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendResumeFormSchema:
|
|
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_preprocessor_module_suspend_resume_form_schema = cls()
|
|
26
|
+
|
|
27
|
+
run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_resume_form_schema.additional_properties = (
|
|
28
|
+
d
|
|
29
|
+
)
|
|
30
|
+
return run_flow_preview_and_wait_result_json_body_value_preprocessor_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,73 @@
|
|
|
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_preprocessor_module_suspend_user_groups_required_type_0_type import (
|
|
7
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0Type,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
value (Any):
|
|
18
|
+
type (RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0Type):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
value: Any
|
|
22
|
+
type: RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0Type
|
|
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 = RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType0Type(
|
|
46
|
+
d.pop("type")
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_0 = cls(
|
|
50
|
+
value=value,
|
|
51
|
+
type=type,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_0.additional_properties = (
|
|
55
|
+
d
|
|
56
|
+
)
|
|
57
|
+
return run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_0
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def additional_keys(self) -> List[str]:
|
|
61
|
+
return list(self.additional_properties.keys())
|
|
62
|
+
|
|
63
|
+
def __getitem__(self, key: str) -> Any:
|
|
64
|
+
return self.additional_properties[key]
|
|
65
|
+
|
|
66
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
67
|
+
self.additional_properties[key] = value
|
|
68
|
+
|
|
69
|
+
def __delitem__(self, key: str) -> None:
|
|
70
|
+
del self.additional_properties[key]
|
|
71
|
+
|
|
72
|
+
def __contains__(self, key: str) -> bool:
|
|
73
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,73 @@
|
|
|
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_preprocessor_module_suspend_user_groups_required_type_1_type import (
|
|
7
|
+
RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1Type,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
expr (str):
|
|
18
|
+
type (RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1Type):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
expr: str
|
|
22
|
+
type: RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1Type
|
|
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 = RunFlowPreviewAndWaitResultJsonBodyValuePreprocessorModuleSuspendUserGroupsRequiredType1Type(
|
|
46
|
+
d.pop("type")
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_1 = cls(
|
|
50
|
+
expr=expr,
|
|
51
|
+
type=type,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_1.additional_properties = (
|
|
55
|
+
d
|
|
56
|
+
)
|
|
57
|
+
return run_flow_preview_and_wait_result_json_body_value_preprocessor_module_suspend_user_groups_required_type_1
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def additional_keys(self) -> List[str]:
|
|
61
|
+
return list(self.additional_properties.keys())
|
|
62
|
+
|
|
63
|
+
def __getitem__(self, key: str) -> Any:
|
|
64
|
+
return self.additional_properties[key]
|
|
65
|
+
|
|
66
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
67
|
+
self.additional_properties[key] = value
|
|
68
|
+
|
|
69
|
+
def __delitem__(self, key: str) -> None:
|
|
70
|
+
del self.additional_properties[key]
|
|
71
|
+
|
|
72
|
+
def __contains__(self, key: str) -> bool:
|
|
73
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,149 @@
|
|
|
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 ..models.run_script_preview_and_wait_result_json_body_kind import RunScriptPreviewAndWaitResultJsonBodyKind
|
|
7
|
+
from ..models.run_script_preview_and_wait_result_json_body_language import RunScriptPreviewAndWaitResultJsonBodyLanguage
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..models.run_script_preview_and_wait_result_json_body_args import RunScriptPreviewAndWaitResultJsonBodyArgs
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="RunScriptPreviewAndWaitResultJsonBody")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class RunScriptPreviewAndWaitResultJsonBody:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
args (RunScriptPreviewAndWaitResultJsonBodyArgs): The arguments to pass to the script or flow
|
|
22
|
+
content (Union[Unset, str]): The code to run
|
|
23
|
+
path (Union[Unset, str]): The path to the script
|
|
24
|
+
script_hash (Union[Unset, str]): The hash of the script
|
|
25
|
+
language (Union[Unset, RunScriptPreviewAndWaitResultJsonBodyLanguage]):
|
|
26
|
+
tag (Union[Unset, str]):
|
|
27
|
+
kind (Union[Unset, RunScriptPreviewAndWaitResultJsonBodyKind]):
|
|
28
|
+
dedicated_worker (Union[Unset, bool]):
|
|
29
|
+
lock (Union[Unset, str]):
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
args: "RunScriptPreviewAndWaitResultJsonBodyArgs"
|
|
33
|
+
content: Union[Unset, str] = UNSET
|
|
34
|
+
path: Union[Unset, str] = UNSET
|
|
35
|
+
script_hash: Union[Unset, str] = UNSET
|
|
36
|
+
language: Union[Unset, RunScriptPreviewAndWaitResultJsonBodyLanguage] = UNSET
|
|
37
|
+
tag: Union[Unset, str] = UNSET
|
|
38
|
+
kind: Union[Unset, RunScriptPreviewAndWaitResultJsonBodyKind] = UNSET
|
|
39
|
+
dedicated_worker: Union[Unset, bool] = UNSET
|
|
40
|
+
lock: Union[Unset, str] = UNSET
|
|
41
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
42
|
+
|
|
43
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
44
|
+
args = self.args.to_dict()
|
|
45
|
+
|
|
46
|
+
content = self.content
|
|
47
|
+
path = self.path
|
|
48
|
+
script_hash = self.script_hash
|
|
49
|
+
language: Union[Unset, str] = UNSET
|
|
50
|
+
if not isinstance(self.language, Unset):
|
|
51
|
+
language = self.language.value
|
|
52
|
+
|
|
53
|
+
tag = self.tag
|
|
54
|
+
kind: Union[Unset, str] = UNSET
|
|
55
|
+
if not isinstance(self.kind, Unset):
|
|
56
|
+
kind = self.kind.value
|
|
57
|
+
|
|
58
|
+
dedicated_worker = self.dedicated_worker
|
|
59
|
+
lock = self.lock
|
|
60
|
+
|
|
61
|
+
field_dict: Dict[str, Any] = {}
|
|
62
|
+
field_dict.update(self.additional_properties)
|
|
63
|
+
field_dict.update(
|
|
64
|
+
{
|
|
65
|
+
"args": args,
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
if content is not UNSET:
|
|
69
|
+
field_dict["content"] = content
|
|
70
|
+
if path is not UNSET:
|
|
71
|
+
field_dict["path"] = path
|
|
72
|
+
if script_hash is not UNSET:
|
|
73
|
+
field_dict["script_hash"] = script_hash
|
|
74
|
+
if language is not UNSET:
|
|
75
|
+
field_dict["language"] = language
|
|
76
|
+
if tag is not UNSET:
|
|
77
|
+
field_dict["tag"] = tag
|
|
78
|
+
if kind is not UNSET:
|
|
79
|
+
field_dict["kind"] = kind
|
|
80
|
+
if dedicated_worker is not UNSET:
|
|
81
|
+
field_dict["dedicated_worker"] = dedicated_worker
|
|
82
|
+
if lock is not UNSET:
|
|
83
|
+
field_dict["lock"] = lock
|
|
84
|
+
|
|
85
|
+
return field_dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
89
|
+
from ..models.run_script_preview_and_wait_result_json_body_args import RunScriptPreviewAndWaitResultJsonBodyArgs
|
|
90
|
+
|
|
91
|
+
d = src_dict.copy()
|
|
92
|
+
args = RunScriptPreviewAndWaitResultJsonBodyArgs.from_dict(d.pop("args"))
|
|
93
|
+
|
|
94
|
+
content = d.pop("content", UNSET)
|
|
95
|
+
|
|
96
|
+
path = d.pop("path", UNSET)
|
|
97
|
+
|
|
98
|
+
script_hash = d.pop("script_hash", UNSET)
|
|
99
|
+
|
|
100
|
+
_language = d.pop("language", UNSET)
|
|
101
|
+
language: Union[Unset, RunScriptPreviewAndWaitResultJsonBodyLanguage]
|
|
102
|
+
if isinstance(_language, Unset):
|
|
103
|
+
language = UNSET
|
|
104
|
+
else:
|
|
105
|
+
language = RunScriptPreviewAndWaitResultJsonBodyLanguage(_language)
|
|
106
|
+
|
|
107
|
+
tag = d.pop("tag", UNSET)
|
|
108
|
+
|
|
109
|
+
_kind = d.pop("kind", UNSET)
|
|
110
|
+
kind: Union[Unset, RunScriptPreviewAndWaitResultJsonBodyKind]
|
|
111
|
+
if isinstance(_kind, Unset):
|
|
112
|
+
kind = UNSET
|
|
113
|
+
else:
|
|
114
|
+
kind = RunScriptPreviewAndWaitResultJsonBodyKind(_kind)
|
|
115
|
+
|
|
116
|
+
dedicated_worker = d.pop("dedicated_worker", UNSET)
|
|
117
|
+
|
|
118
|
+
lock = d.pop("lock", UNSET)
|
|
119
|
+
|
|
120
|
+
run_script_preview_and_wait_result_json_body = cls(
|
|
121
|
+
args=args,
|
|
122
|
+
content=content,
|
|
123
|
+
path=path,
|
|
124
|
+
script_hash=script_hash,
|
|
125
|
+
language=language,
|
|
126
|
+
tag=tag,
|
|
127
|
+
kind=kind,
|
|
128
|
+
dedicated_worker=dedicated_worker,
|
|
129
|
+
lock=lock,
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
run_script_preview_and_wait_result_json_body.additional_properties = d
|
|
133
|
+
return run_script_preview_and_wait_result_json_body
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def additional_keys(self) -> List[str]:
|
|
137
|
+
return list(self.additional_properties.keys())
|
|
138
|
+
|
|
139
|
+
def __getitem__(self, key: str) -> Any:
|
|
140
|
+
return self.additional_properties[key]
|
|
141
|
+
|
|
142
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
143
|
+
self.additional_properties[key] = value
|
|
144
|
+
|
|
145
|
+
def __delitem__(self, key: str) -> None:
|
|
146
|
+
del self.additional_properties[key]
|
|
147
|
+
|
|
148
|
+
def __contains__(self, key: str) -> bool:
|
|
149
|
+
return key in self.additional_properties
|