windmill-api 1.509.1__py3-none-any.whl → 1.510.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.
Files changed (64) hide show
  1. windmill_api/api/script/get_script_by_hash.py +15 -0
  2. windmill_api/models/completed_job.py +18 -0
  3. windmill_api/models/{get_job_updates_response_200_flow_status_additional_property.py → completed_job_workflow_as_code_status.py} +5 -5
  4. windmill_api/models/delete_completed_job_response_200.py +24 -0
  5. windmill_api/models/delete_completed_job_response_200_workflow_as_code_status.py +100 -0
  6. windmill_api/models/extended_jobs_jobs_item_type_0.py +22 -0
  7. windmill_api/models/extended_jobs_jobs_item_type_0_workflow_as_code_status.py +100 -0
  8. windmill_api/models/extended_jobs_jobs_item_type_1.py +22 -0
  9. windmill_api/models/extended_jobs_jobs_item_type_1_workflow_as_code_status.py +100 -0
  10. windmill_api/models/get_completed_job_response_200.py +22 -0
  11. windmill_api/models/get_completed_job_response_200_workflow_as_code_status.py +100 -0
  12. windmill_api/models/get_job_response_200_type_0.py +20 -0
  13. windmill_api/models/get_job_response_200_type_0_workflow_as_code_status.py +100 -0
  14. windmill_api/models/get_job_response_200_type_1.py +20 -0
  15. windmill_api/models/get_job_response_200_type_1_workflow_as_code_status.py +100 -0
  16. windmill_api/models/get_job_updates_response_200.py +22 -0
  17. windmill_api/models/get_job_updates_response_200_flow_status.py +107 -25
  18. windmill_api/models/get_job_updates_response_200_flow_status_failure_module.py +241 -0
  19. windmill_api/models/get_job_updates_response_200_flow_status_failure_module_approvers_item.py +65 -0
  20. windmill_api/models/get_job_updates_response_200_flow_status_failure_module_branch_chosen.py +72 -0
  21. windmill_api/models/get_job_updates_response_200_flow_status_failure_module_branch_chosen_type.py +9 -0
  22. windmill_api/models/get_job_updates_response_200_flow_status_failure_module_branchall.py +65 -0
  23. windmill_api/models/get_job_updates_response_200_flow_status_failure_module_iterator.py +77 -0
  24. windmill_api/models/get_job_updates_response_200_flow_status_failure_module_type.py +13 -0
  25. windmill_api/models/get_job_updates_response_200_flow_status_modules_item.py +233 -0
  26. windmill_api/models/get_job_updates_response_200_flow_status_modules_item_approvers_item.py +65 -0
  27. windmill_api/models/get_job_updates_response_200_flow_status_modules_item_branch_chosen.py +72 -0
  28. windmill_api/models/get_job_updates_response_200_flow_status_modules_item_branch_chosen_type.py +9 -0
  29. windmill_api/models/get_job_updates_response_200_flow_status_modules_item_branchall.py +65 -0
  30. windmill_api/models/get_job_updates_response_200_flow_status_modules_item_iterator.py +77 -0
  31. windmill_api/models/get_job_updates_response_200_flow_status_modules_item_type.py +13 -0
  32. windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module.py +235 -0
  33. windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_approvers_item.py +65 -0
  34. windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_branch_chosen.py +72 -0
  35. windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_branch_chosen_type.py +9 -0
  36. windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_branchall.py +65 -0
  37. windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_iterator.py +77 -0
  38. windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_type.py +13 -0
  39. windmill_api/models/get_job_updates_response_200_flow_status_retry.py +68 -0
  40. windmill_api/models/get_job_updates_response_200_workflow_as_code_status.py +100 -0
  41. windmill_api/models/get_suspended_job_flow_response_200_job_type_0.py +24 -0
  42. windmill_api/models/get_suspended_job_flow_response_200_job_type_0_workflow_as_code_status.py +100 -0
  43. windmill_api/models/get_suspended_job_flow_response_200_job_type_1.py +24 -0
  44. windmill_api/models/get_suspended_job_flow_response_200_job_type_1_workflow_as_code_status.py +100 -0
  45. windmill_api/models/job_type_0_workflow_as_code_status.py +100 -0
  46. windmill_api/models/job_type_1_workflow_as_code_status.py +100 -0
  47. windmill_api/models/list_completed_jobs_response_200_item.py +24 -0
  48. windmill_api/models/list_completed_jobs_response_200_item_workflow_as_code_status.py +100 -0
  49. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0.py +24 -0
  50. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_workflow_as_code_status.py +100 -0
  51. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1.py +24 -0
  52. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_workflow_as_code_status.py +100 -0
  53. windmill_api/models/list_jobs_response_200_item_type_0.py +24 -0
  54. windmill_api/models/list_jobs_response_200_item_type_0_workflow_as_code_status.py +100 -0
  55. windmill_api/models/list_jobs_response_200_item_type_1.py +24 -0
  56. windmill_api/models/list_jobs_response_200_item_type_1_workflow_as_code_status.py +100 -0
  57. windmill_api/models/list_queue_response_200_item.py +22 -0
  58. windmill_api/models/list_queue_response_200_item_workflow_as_code_status.py +100 -0
  59. windmill_api/models/queued_job.py +18 -0
  60. windmill_api/models/queued_job_workflow_as_code_status.py +100 -0
  61. {windmill_api-1.509.1.dist-info → windmill_api-1.510.0.dist-info}/METADATA +1 -1
  62. {windmill_api-1.509.1.dist-info → windmill_api-1.510.0.dist-info}/RECORD +64 -24
  63. {windmill_api-1.509.1.dist-info → windmill_api-1.510.0.dist-info}/LICENSE +0 -0
  64. {windmill_api-1.509.1.dist-info → windmill_api-1.510.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,235 @@
1
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..models.get_job_updates_response_200_flow_status_preprocessor_module_type import (
7
+ GetJobUpdatesResponse200FlowStatusPreprocessorModuleType,
8
+ )
9
+ from ..types import UNSET, Unset
10
+
11
+ if TYPE_CHECKING:
12
+ from ..models.get_job_updates_response_200_flow_status_preprocessor_module_approvers_item import (
13
+ GetJobUpdatesResponse200FlowStatusPreprocessorModuleApproversItem,
14
+ )
15
+ from ..models.get_job_updates_response_200_flow_status_preprocessor_module_branch_chosen import (
16
+ GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosen,
17
+ )
18
+ from ..models.get_job_updates_response_200_flow_status_preprocessor_module_branchall import (
19
+ GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchall,
20
+ )
21
+ from ..models.get_job_updates_response_200_flow_status_preprocessor_module_iterator import (
22
+ GetJobUpdatesResponse200FlowStatusPreprocessorModuleIterator,
23
+ )
24
+
25
+
26
+ T = TypeVar("T", bound="GetJobUpdatesResponse200FlowStatusPreprocessorModule")
27
+
28
+
29
+ @_attrs_define
30
+ class GetJobUpdatesResponse200FlowStatusPreprocessorModule:
31
+ """
32
+ Attributes:
33
+ type (GetJobUpdatesResponse200FlowStatusPreprocessorModuleType):
34
+ id (Union[Unset, str]):
35
+ job (Union[Unset, str]):
36
+ count (Union[Unset, int]):
37
+ progress (Union[Unset, int]):
38
+ iterator (Union[Unset, GetJobUpdatesResponse200FlowStatusPreprocessorModuleIterator]):
39
+ flow_jobs (Union[Unset, List[str]]):
40
+ flow_jobs_success (Union[Unset, List[bool]]):
41
+ branch_chosen (Union[Unset, GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosen]):
42
+ branchall (Union[Unset, GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchall]):
43
+ approvers (Union[Unset, List['GetJobUpdatesResponse200FlowStatusPreprocessorModuleApproversItem']]):
44
+ failed_retries (Union[Unset, List[str]]):
45
+ skipped (Union[Unset, bool]):
46
+ """
47
+
48
+ type: GetJobUpdatesResponse200FlowStatusPreprocessorModuleType
49
+ id: Union[Unset, str] = UNSET
50
+ job: Union[Unset, str] = UNSET
51
+ count: Union[Unset, int] = UNSET
52
+ progress: Union[Unset, int] = UNSET
53
+ iterator: Union[Unset, "GetJobUpdatesResponse200FlowStatusPreprocessorModuleIterator"] = UNSET
54
+ flow_jobs: Union[Unset, List[str]] = UNSET
55
+ flow_jobs_success: Union[Unset, List[bool]] = UNSET
56
+ branch_chosen: Union[Unset, "GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosen"] = UNSET
57
+ branchall: Union[Unset, "GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchall"] = UNSET
58
+ approvers: Union[Unset, List["GetJobUpdatesResponse200FlowStatusPreprocessorModuleApproversItem"]] = UNSET
59
+ failed_retries: Union[Unset, List[str]] = UNSET
60
+ skipped: Union[Unset, bool] = UNSET
61
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
62
+
63
+ def to_dict(self) -> Dict[str, Any]:
64
+ type = self.type.value
65
+
66
+ id = self.id
67
+ job = self.job
68
+ count = self.count
69
+ progress = self.progress
70
+ iterator: Union[Unset, Dict[str, Any]] = UNSET
71
+ if not isinstance(self.iterator, Unset):
72
+ iterator = self.iterator.to_dict()
73
+
74
+ flow_jobs: Union[Unset, List[str]] = UNSET
75
+ if not isinstance(self.flow_jobs, Unset):
76
+ flow_jobs = self.flow_jobs
77
+
78
+ flow_jobs_success: Union[Unset, List[bool]] = UNSET
79
+ if not isinstance(self.flow_jobs_success, Unset):
80
+ flow_jobs_success = self.flow_jobs_success
81
+
82
+ branch_chosen: Union[Unset, Dict[str, Any]] = UNSET
83
+ if not isinstance(self.branch_chosen, Unset):
84
+ branch_chosen = self.branch_chosen.to_dict()
85
+
86
+ branchall: Union[Unset, Dict[str, Any]] = UNSET
87
+ if not isinstance(self.branchall, Unset):
88
+ branchall = self.branchall.to_dict()
89
+
90
+ approvers: Union[Unset, List[Dict[str, Any]]] = UNSET
91
+ if not isinstance(self.approvers, Unset):
92
+ approvers = []
93
+ for approvers_item_data in self.approvers:
94
+ approvers_item = approvers_item_data.to_dict()
95
+
96
+ approvers.append(approvers_item)
97
+
98
+ failed_retries: Union[Unset, List[str]] = UNSET
99
+ if not isinstance(self.failed_retries, Unset):
100
+ failed_retries = self.failed_retries
101
+
102
+ skipped = self.skipped
103
+
104
+ field_dict: Dict[str, Any] = {}
105
+ field_dict.update(self.additional_properties)
106
+ field_dict.update(
107
+ {
108
+ "type": type,
109
+ }
110
+ )
111
+ if id is not UNSET:
112
+ field_dict["id"] = id
113
+ if job is not UNSET:
114
+ field_dict["job"] = job
115
+ if count is not UNSET:
116
+ field_dict["count"] = count
117
+ if progress is not UNSET:
118
+ field_dict["progress"] = progress
119
+ if iterator is not UNSET:
120
+ field_dict["iterator"] = iterator
121
+ if flow_jobs is not UNSET:
122
+ field_dict["flow_jobs"] = flow_jobs
123
+ if flow_jobs_success is not UNSET:
124
+ field_dict["flow_jobs_success"] = flow_jobs_success
125
+ if branch_chosen is not UNSET:
126
+ field_dict["branch_chosen"] = branch_chosen
127
+ if branchall is not UNSET:
128
+ field_dict["branchall"] = branchall
129
+ if approvers is not UNSET:
130
+ field_dict["approvers"] = approvers
131
+ if failed_retries is not UNSET:
132
+ field_dict["failed_retries"] = failed_retries
133
+ if skipped is not UNSET:
134
+ field_dict["skipped"] = skipped
135
+
136
+ return field_dict
137
+
138
+ @classmethod
139
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
140
+ from ..models.get_job_updates_response_200_flow_status_preprocessor_module_approvers_item import (
141
+ GetJobUpdatesResponse200FlowStatusPreprocessorModuleApproversItem,
142
+ )
143
+ from ..models.get_job_updates_response_200_flow_status_preprocessor_module_branch_chosen import (
144
+ GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosen,
145
+ )
146
+ from ..models.get_job_updates_response_200_flow_status_preprocessor_module_branchall import (
147
+ GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchall,
148
+ )
149
+ from ..models.get_job_updates_response_200_flow_status_preprocessor_module_iterator import (
150
+ GetJobUpdatesResponse200FlowStatusPreprocessorModuleIterator,
151
+ )
152
+
153
+ d = src_dict.copy()
154
+ type = GetJobUpdatesResponse200FlowStatusPreprocessorModuleType(d.pop("type"))
155
+
156
+ id = d.pop("id", UNSET)
157
+
158
+ job = d.pop("job", UNSET)
159
+
160
+ count = d.pop("count", UNSET)
161
+
162
+ progress = d.pop("progress", UNSET)
163
+
164
+ _iterator = d.pop("iterator", UNSET)
165
+ iterator: Union[Unset, GetJobUpdatesResponse200FlowStatusPreprocessorModuleIterator]
166
+ if isinstance(_iterator, Unset):
167
+ iterator = UNSET
168
+ else:
169
+ iterator = GetJobUpdatesResponse200FlowStatusPreprocessorModuleIterator.from_dict(_iterator)
170
+
171
+ flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET))
172
+
173
+ flow_jobs_success = cast(List[bool], d.pop("flow_jobs_success", UNSET))
174
+
175
+ _branch_chosen = d.pop("branch_chosen", UNSET)
176
+ branch_chosen: Union[Unset, GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosen]
177
+ if isinstance(_branch_chosen, Unset):
178
+ branch_chosen = UNSET
179
+ else:
180
+ branch_chosen = GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosen.from_dict(_branch_chosen)
181
+
182
+ _branchall = d.pop("branchall", UNSET)
183
+ branchall: Union[Unset, GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchall]
184
+ if isinstance(_branchall, Unset):
185
+ branchall = UNSET
186
+ else:
187
+ branchall = GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchall.from_dict(_branchall)
188
+
189
+ approvers = []
190
+ _approvers = d.pop("approvers", UNSET)
191
+ for approvers_item_data in _approvers or []:
192
+ approvers_item = GetJobUpdatesResponse200FlowStatusPreprocessorModuleApproversItem.from_dict(
193
+ approvers_item_data
194
+ )
195
+
196
+ approvers.append(approvers_item)
197
+
198
+ failed_retries = cast(List[str], d.pop("failed_retries", UNSET))
199
+
200
+ skipped = d.pop("skipped", UNSET)
201
+
202
+ get_job_updates_response_200_flow_status_preprocessor_module = cls(
203
+ type=type,
204
+ id=id,
205
+ job=job,
206
+ count=count,
207
+ progress=progress,
208
+ iterator=iterator,
209
+ flow_jobs=flow_jobs,
210
+ flow_jobs_success=flow_jobs_success,
211
+ branch_chosen=branch_chosen,
212
+ branchall=branchall,
213
+ approvers=approvers,
214
+ failed_retries=failed_retries,
215
+ skipped=skipped,
216
+ )
217
+
218
+ get_job_updates_response_200_flow_status_preprocessor_module.additional_properties = d
219
+ return get_job_updates_response_200_flow_status_preprocessor_module
220
+
221
+ @property
222
+ def additional_keys(self) -> List[str]:
223
+ return list(self.additional_properties.keys())
224
+
225
+ def __getitem__(self, key: str) -> Any:
226
+ return self.additional_properties[key]
227
+
228
+ def __setitem__(self, key: str, value: Any) -> None:
229
+ self.additional_properties[key] = value
230
+
231
+ def __delitem__(self, key: str) -> None:
232
+ del self.additional_properties[key]
233
+
234
+ def __contains__(self, key: str) -> bool:
235
+ return key in self.additional_properties
@@ -0,0 +1,65 @@
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="GetJobUpdatesResponse200FlowStatusPreprocessorModuleApproversItem")
7
+
8
+
9
+ @_attrs_define
10
+ class GetJobUpdatesResponse200FlowStatusPreprocessorModuleApproversItem:
11
+ """
12
+ Attributes:
13
+ resume_id (int):
14
+ approver (str):
15
+ """
16
+
17
+ resume_id: int
18
+ approver: str
19
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
+
21
+ def to_dict(self) -> Dict[str, Any]:
22
+ resume_id = self.resume_id
23
+ approver = self.approver
24
+
25
+ field_dict: Dict[str, Any] = {}
26
+ field_dict.update(self.additional_properties)
27
+ field_dict.update(
28
+ {
29
+ "resume_id": resume_id,
30
+ "approver": approver,
31
+ }
32
+ )
33
+
34
+ return field_dict
35
+
36
+ @classmethod
37
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
38
+ d = src_dict.copy()
39
+ resume_id = d.pop("resume_id")
40
+
41
+ approver = d.pop("approver")
42
+
43
+ get_job_updates_response_200_flow_status_preprocessor_module_approvers_item = cls(
44
+ resume_id=resume_id,
45
+ approver=approver,
46
+ )
47
+
48
+ get_job_updates_response_200_flow_status_preprocessor_module_approvers_item.additional_properties = d
49
+ return get_job_updates_response_200_flow_status_preprocessor_module_approvers_item
50
+
51
+ @property
52
+ def additional_keys(self) -> List[str]:
53
+ return list(self.additional_properties.keys())
54
+
55
+ def __getitem__(self, key: str) -> Any:
56
+ return self.additional_properties[key]
57
+
58
+ def __setitem__(self, key: str, value: Any) -> None:
59
+ self.additional_properties[key] = value
60
+
61
+ def __delitem__(self, key: str) -> None:
62
+ del self.additional_properties[key]
63
+
64
+ def __contains__(self, key: str) -> bool:
65
+ return key in self.additional_properties
@@ -0,0 +1,72 @@
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 ..models.get_job_updates_response_200_flow_status_preprocessor_module_branch_chosen_type import (
7
+ GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosenType,
8
+ )
9
+ from ..types import UNSET, Unset
10
+
11
+ T = TypeVar("T", bound="GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosen")
12
+
13
+
14
+ @_attrs_define
15
+ class GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosen:
16
+ """
17
+ Attributes:
18
+ type (GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosenType):
19
+ branch (Union[Unset, int]):
20
+ """
21
+
22
+ type: GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosenType
23
+ branch: Union[Unset, int] = UNSET
24
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
25
+
26
+ def to_dict(self) -> Dict[str, Any]:
27
+ type = self.type.value
28
+
29
+ branch = self.branch
30
+
31
+ field_dict: Dict[str, Any] = {}
32
+ field_dict.update(self.additional_properties)
33
+ field_dict.update(
34
+ {
35
+ "type": type,
36
+ }
37
+ )
38
+ if branch is not UNSET:
39
+ field_dict["branch"] = branch
40
+
41
+ return field_dict
42
+
43
+ @classmethod
44
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
45
+ d = src_dict.copy()
46
+ type = GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosenType(d.pop("type"))
47
+
48
+ branch = d.pop("branch", UNSET)
49
+
50
+ get_job_updates_response_200_flow_status_preprocessor_module_branch_chosen = cls(
51
+ type=type,
52
+ branch=branch,
53
+ )
54
+
55
+ get_job_updates_response_200_flow_status_preprocessor_module_branch_chosen.additional_properties = d
56
+ return get_job_updates_response_200_flow_status_preprocessor_module_branch_chosen
57
+
58
+ @property
59
+ def additional_keys(self) -> List[str]:
60
+ return list(self.additional_properties.keys())
61
+
62
+ def __getitem__(self, key: str) -> Any:
63
+ return self.additional_properties[key]
64
+
65
+ def __setitem__(self, key: str, value: Any) -> None:
66
+ self.additional_properties[key] = value
67
+
68
+ def __delitem__(self, key: str) -> None:
69
+ del self.additional_properties[key]
70
+
71
+ def __contains__(self, key: str) -> bool:
72
+ return key in self.additional_properties
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchChosenType(str, Enum):
5
+ BRANCH = "branch"
6
+ DEFAULT = "default"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -0,0 +1,65 @@
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="GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchall")
7
+
8
+
9
+ @_attrs_define
10
+ class GetJobUpdatesResponse200FlowStatusPreprocessorModuleBranchall:
11
+ """
12
+ Attributes:
13
+ branch (int):
14
+ len_ (int):
15
+ """
16
+
17
+ branch: int
18
+ len_: int
19
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
+
21
+ def to_dict(self) -> Dict[str, Any]:
22
+ branch = self.branch
23
+ len_ = self.len_
24
+
25
+ field_dict: Dict[str, Any] = {}
26
+ field_dict.update(self.additional_properties)
27
+ field_dict.update(
28
+ {
29
+ "branch": branch,
30
+ "len": len_,
31
+ }
32
+ )
33
+
34
+ return field_dict
35
+
36
+ @classmethod
37
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
38
+ d = src_dict.copy()
39
+ branch = d.pop("branch")
40
+
41
+ len_ = d.pop("len")
42
+
43
+ get_job_updates_response_200_flow_status_preprocessor_module_branchall = cls(
44
+ branch=branch,
45
+ len_=len_,
46
+ )
47
+
48
+ get_job_updates_response_200_flow_status_preprocessor_module_branchall.additional_properties = d
49
+ return get_job_updates_response_200_flow_status_preprocessor_module_branchall
50
+
51
+ @property
52
+ def additional_keys(self) -> List[str]:
53
+ return list(self.additional_properties.keys())
54
+
55
+ def __getitem__(self, key: str) -> Any:
56
+ return self.additional_properties[key]
57
+
58
+ def __setitem__(self, key: str, value: Any) -> None:
59
+ self.additional_properties[key] = value
60
+
61
+ def __delitem__(self, key: str) -> None:
62
+ del self.additional_properties[key]
63
+
64
+ def __contains__(self, key: str) -> bool:
65
+ return key in self.additional_properties
@@ -0,0 +1,77 @@
1
+ from typing import Any, Dict, List, Type, TypeVar, Union, cast
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="GetJobUpdatesResponse200FlowStatusPreprocessorModuleIterator")
9
+
10
+
11
+ @_attrs_define
12
+ class GetJobUpdatesResponse200FlowStatusPreprocessorModuleIterator:
13
+ """
14
+ Attributes:
15
+ index (Union[Unset, int]):
16
+ itered (Union[Unset, List[Any]]):
17
+ args (Union[Unset, Any]):
18
+ """
19
+
20
+ index: Union[Unset, int] = UNSET
21
+ itered: Union[Unset, List[Any]] = UNSET
22
+ args: Union[Unset, Any] = UNSET
23
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
24
+
25
+ def to_dict(self) -> Dict[str, Any]:
26
+ index = self.index
27
+ itered: Union[Unset, List[Any]] = UNSET
28
+ if not isinstance(self.itered, Unset):
29
+ itered = self.itered
30
+
31
+ args = self.args
32
+
33
+ field_dict: Dict[str, Any] = {}
34
+ field_dict.update(self.additional_properties)
35
+ field_dict.update({})
36
+ if index is not UNSET:
37
+ field_dict["index"] = index
38
+ if itered is not UNSET:
39
+ field_dict["itered"] = itered
40
+ if args is not UNSET:
41
+ field_dict["args"] = args
42
+
43
+ return field_dict
44
+
45
+ @classmethod
46
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
47
+ d = src_dict.copy()
48
+ index = d.pop("index", UNSET)
49
+
50
+ itered = cast(List[Any], d.pop("itered", UNSET))
51
+
52
+ args = d.pop("args", UNSET)
53
+
54
+ get_job_updates_response_200_flow_status_preprocessor_module_iterator = cls(
55
+ index=index,
56
+ itered=itered,
57
+ args=args,
58
+ )
59
+
60
+ get_job_updates_response_200_flow_status_preprocessor_module_iterator.additional_properties = d
61
+ return get_job_updates_response_200_flow_status_preprocessor_module_iterator
62
+
63
+ @property
64
+ def additional_keys(self) -> List[str]:
65
+ return list(self.additional_properties.keys())
66
+
67
+ def __getitem__(self, key: str) -> Any:
68
+ return self.additional_properties[key]
69
+
70
+ def __setitem__(self, key: str, value: Any) -> None:
71
+ self.additional_properties[key] = value
72
+
73
+ def __delitem__(self, key: str) -> None:
74
+ del self.additional_properties[key]
75
+
76
+ def __contains__(self, key: str) -> bool:
77
+ return key in self.additional_properties
@@ -0,0 +1,13 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GetJobUpdatesResponse200FlowStatusPreprocessorModuleType(str, Enum):
5
+ FAILURE = "Failure"
6
+ INPROGRESS = "InProgress"
7
+ SUCCESS = "Success"
8
+ WAITINGFOREVENTS = "WaitingForEvents"
9
+ WAITINGFOREXECUTOR = "WaitingForExecutor"
10
+ WAITINGFORPRIORSTEPS = "WaitingForPriorSteps"
11
+
12
+ def __str__(self) -> str:
13
+ return str(self.value)
@@ -0,0 +1,68 @@
1
+ from typing import Any, Dict, List, Type, TypeVar, Union, cast
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="GetJobUpdatesResponse200FlowStatusRetry")
9
+
10
+
11
+ @_attrs_define
12
+ class GetJobUpdatesResponse200FlowStatusRetry:
13
+ """
14
+ Attributes:
15
+ fail_count (Union[Unset, int]):
16
+ failed_jobs (Union[Unset, List[str]]):
17
+ """
18
+
19
+ fail_count: Union[Unset, int] = UNSET
20
+ failed_jobs: Union[Unset, List[str]] = UNSET
21
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
+
23
+ def to_dict(self) -> Dict[str, Any]:
24
+ fail_count = self.fail_count
25
+ failed_jobs: Union[Unset, List[str]] = UNSET
26
+ if not isinstance(self.failed_jobs, Unset):
27
+ failed_jobs = self.failed_jobs
28
+
29
+ field_dict: Dict[str, Any] = {}
30
+ field_dict.update(self.additional_properties)
31
+ field_dict.update({})
32
+ if fail_count is not UNSET:
33
+ field_dict["fail_count"] = fail_count
34
+ if failed_jobs is not UNSET:
35
+ field_dict["failed_jobs"] = failed_jobs
36
+
37
+ return field_dict
38
+
39
+ @classmethod
40
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
41
+ d = src_dict.copy()
42
+ fail_count = d.pop("fail_count", UNSET)
43
+
44
+ failed_jobs = cast(List[str], d.pop("failed_jobs", UNSET))
45
+
46
+ get_job_updates_response_200_flow_status_retry = cls(
47
+ fail_count=fail_count,
48
+ failed_jobs=failed_jobs,
49
+ )
50
+
51
+ get_job_updates_response_200_flow_status_retry.additional_properties = d
52
+ return get_job_updates_response_200_flow_status_retry
53
+
54
+ @property
55
+ def additional_keys(self) -> List[str]:
56
+ return list(self.additional_properties.keys())
57
+
58
+ def __getitem__(self, key: str) -> Any:
59
+ return self.additional_properties[key]
60
+
61
+ def __setitem__(self, key: str, value: Any) -> None:
62
+ self.additional_properties[key] = value
63
+
64
+ def __delitem__(self, key: str) -> None:
65
+ del self.additional_properties[key]
66
+
67
+ def __contains__(self, key: str) -> bool:
68
+ return key in self.additional_properties