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