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,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="GetJobUpdatesResponse200FlowStatusFailureModuleBranchall")
7
+
8
+
9
+ @_attrs_define
10
+ class GetJobUpdatesResponse200FlowStatusFailureModuleBranchall:
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_failure_module_branchall = cls(
44
+ branch=branch,
45
+ len_=len_,
46
+ )
47
+
48
+ get_job_updates_response_200_flow_status_failure_module_branchall.additional_properties = d
49
+ return get_job_updates_response_200_flow_status_failure_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="GetJobUpdatesResponse200FlowStatusFailureModuleIterator")
9
+
10
+
11
+ @_attrs_define
12
+ class GetJobUpdatesResponse200FlowStatusFailureModuleIterator:
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_failure_module_iterator = cls(
55
+ index=index,
56
+ itered=itered,
57
+ args=args,
58
+ )
59
+
60
+ get_job_updates_response_200_flow_status_failure_module_iterator.additional_properties = d
61
+ return get_job_updates_response_200_flow_status_failure_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 GetJobUpdatesResponse200FlowStatusFailureModuleType(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,233 @@
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_modules_item_type import (
7
+ GetJobUpdatesResponse200FlowStatusModulesItemType,
8
+ )
9
+ from ..types import UNSET, Unset
10
+
11
+ if TYPE_CHECKING:
12
+ from ..models.get_job_updates_response_200_flow_status_modules_item_approvers_item import (
13
+ GetJobUpdatesResponse200FlowStatusModulesItemApproversItem,
14
+ )
15
+ from ..models.get_job_updates_response_200_flow_status_modules_item_branch_chosen import (
16
+ GetJobUpdatesResponse200FlowStatusModulesItemBranchChosen,
17
+ )
18
+ from ..models.get_job_updates_response_200_flow_status_modules_item_branchall import (
19
+ GetJobUpdatesResponse200FlowStatusModulesItemBranchall,
20
+ )
21
+ from ..models.get_job_updates_response_200_flow_status_modules_item_iterator import (
22
+ GetJobUpdatesResponse200FlowStatusModulesItemIterator,
23
+ )
24
+
25
+
26
+ T = TypeVar("T", bound="GetJobUpdatesResponse200FlowStatusModulesItem")
27
+
28
+
29
+ @_attrs_define
30
+ class GetJobUpdatesResponse200FlowStatusModulesItem:
31
+ """
32
+ Attributes:
33
+ type (GetJobUpdatesResponse200FlowStatusModulesItemType):
34
+ id (Union[Unset, str]):
35
+ job (Union[Unset, str]):
36
+ count (Union[Unset, int]):
37
+ progress (Union[Unset, int]):
38
+ iterator (Union[Unset, GetJobUpdatesResponse200FlowStatusModulesItemIterator]):
39
+ flow_jobs (Union[Unset, List[str]]):
40
+ flow_jobs_success (Union[Unset, List[bool]]):
41
+ branch_chosen (Union[Unset, GetJobUpdatesResponse200FlowStatusModulesItemBranchChosen]):
42
+ branchall (Union[Unset, GetJobUpdatesResponse200FlowStatusModulesItemBranchall]):
43
+ approvers (Union[Unset, List['GetJobUpdatesResponse200FlowStatusModulesItemApproversItem']]):
44
+ failed_retries (Union[Unset, List[str]]):
45
+ skipped (Union[Unset, bool]):
46
+ """
47
+
48
+ type: GetJobUpdatesResponse200FlowStatusModulesItemType
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, "GetJobUpdatesResponse200FlowStatusModulesItemIterator"] = UNSET
54
+ flow_jobs: Union[Unset, List[str]] = UNSET
55
+ flow_jobs_success: Union[Unset, List[bool]] = UNSET
56
+ branch_chosen: Union[Unset, "GetJobUpdatesResponse200FlowStatusModulesItemBranchChosen"] = UNSET
57
+ branchall: Union[Unset, "GetJobUpdatesResponse200FlowStatusModulesItemBranchall"] = UNSET
58
+ approvers: Union[Unset, List["GetJobUpdatesResponse200FlowStatusModulesItemApproversItem"]] = 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_modules_item_approvers_item import (
141
+ GetJobUpdatesResponse200FlowStatusModulesItemApproversItem,
142
+ )
143
+ from ..models.get_job_updates_response_200_flow_status_modules_item_branch_chosen import (
144
+ GetJobUpdatesResponse200FlowStatusModulesItemBranchChosen,
145
+ )
146
+ from ..models.get_job_updates_response_200_flow_status_modules_item_branchall import (
147
+ GetJobUpdatesResponse200FlowStatusModulesItemBranchall,
148
+ )
149
+ from ..models.get_job_updates_response_200_flow_status_modules_item_iterator import (
150
+ GetJobUpdatesResponse200FlowStatusModulesItemIterator,
151
+ )
152
+
153
+ d = src_dict.copy()
154
+ type = GetJobUpdatesResponse200FlowStatusModulesItemType(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, GetJobUpdatesResponse200FlowStatusModulesItemIterator]
166
+ if isinstance(_iterator, Unset):
167
+ iterator = UNSET
168
+ else:
169
+ iterator = GetJobUpdatesResponse200FlowStatusModulesItemIterator.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, GetJobUpdatesResponse200FlowStatusModulesItemBranchChosen]
177
+ if isinstance(_branch_chosen, Unset):
178
+ branch_chosen = UNSET
179
+ else:
180
+ branch_chosen = GetJobUpdatesResponse200FlowStatusModulesItemBranchChosen.from_dict(_branch_chosen)
181
+
182
+ _branchall = d.pop("branchall", UNSET)
183
+ branchall: Union[Unset, GetJobUpdatesResponse200FlowStatusModulesItemBranchall]
184
+ if isinstance(_branchall, Unset):
185
+ branchall = UNSET
186
+ else:
187
+ branchall = GetJobUpdatesResponse200FlowStatusModulesItemBranchall.from_dict(_branchall)
188
+
189
+ approvers = []
190
+ _approvers = d.pop("approvers", UNSET)
191
+ for approvers_item_data in _approvers or []:
192
+ approvers_item = GetJobUpdatesResponse200FlowStatusModulesItemApproversItem.from_dict(approvers_item_data)
193
+
194
+ approvers.append(approvers_item)
195
+
196
+ failed_retries = cast(List[str], d.pop("failed_retries", UNSET))
197
+
198
+ skipped = d.pop("skipped", UNSET)
199
+
200
+ get_job_updates_response_200_flow_status_modules_item = cls(
201
+ type=type,
202
+ id=id,
203
+ job=job,
204
+ count=count,
205
+ progress=progress,
206
+ iterator=iterator,
207
+ flow_jobs=flow_jobs,
208
+ flow_jobs_success=flow_jobs_success,
209
+ branch_chosen=branch_chosen,
210
+ branchall=branchall,
211
+ approvers=approvers,
212
+ failed_retries=failed_retries,
213
+ skipped=skipped,
214
+ )
215
+
216
+ get_job_updates_response_200_flow_status_modules_item.additional_properties = d
217
+ return get_job_updates_response_200_flow_status_modules_item
218
+
219
+ @property
220
+ def additional_keys(self) -> List[str]:
221
+ return list(self.additional_properties.keys())
222
+
223
+ def __getitem__(self, key: str) -> Any:
224
+ return self.additional_properties[key]
225
+
226
+ def __setitem__(self, key: str, value: Any) -> None:
227
+ self.additional_properties[key] = value
228
+
229
+ def __delitem__(self, key: str) -> None:
230
+ del self.additional_properties[key]
231
+
232
+ def __contains__(self, key: str) -> bool:
233
+ 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="GetJobUpdatesResponse200FlowStatusModulesItemApproversItem")
7
+
8
+
9
+ @_attrs_define
10
+ class GetJobUpdatesResponse200FlowStatusModulesItemApproversItem:
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_modules_item_approvers_item = cls(
44
+ resume_id=resume_id,
45
+ approver=approver,
46
+ )
47
+
48
+ get_job_updates_response_200_flow_status_modules_item_approvers_item.additional_properties = d
49
+ return get_job_updates_response_200_flow_status_modules_item_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_modules_item_branch_chosen_type import (
7
+ GetJobUpdatesResponse200FlowStatusModulesItemBranchChosenType,
8
+ )
9
+ from ..types import UNSET, Unset
10
+
11
+ T = TypeVar("T", bound="GetJobUpdatesResponse200FlowStatusModulesItemBranchChosen")
12
+
13
+
14
+ @_attrs_define
15
+ class GetJobUpdatesResponse200FlowStatusModulesItemBranchChosen:
16
+ """
17
+ Attributes:
18
+ type (GetJobUpdatesResponse200FlowStatusModulesItemBranchChosenType):
19
+ branch (Union[Unset, int]):
20
+ """
21
+
22
+ type: GetJobUpdatesResponse200FlowStatusModulesItemBranchChosenType
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 = GetJobUpdatesResponse200FlowStatusModulesItemBranchChosenType(d.pop("type"))
47
+
48
+ branch = d.pop("branch", UNSET)
49
+
50
+ get_job_updates_response_200_flow_status_modules_item_branch_chosen = cls(
51
+ type=type,
52
+ branch=branch,
53
+ )
54
+
55
+ get_job_updates_response_200_flow_status_modules_item_branch_chosen.additional_properties = d
56
+ return get_job_updates_response_200_flow_status_modules_item_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 GetJobUpdatesResponse200FlowStatusModulesItemBranchChosenType(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="GetJobUpdatesResponse200FlowStatusModulesItemBranchall")
7
+
8
+
9
+ @_attrs_define
10
+ class GetJobUpdatesResponse200FlowStatusModulesItemBranchall:
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_modules_item_branchall = cls(
44
+ branch=branch,
45
+ len_=len_,
46
+ )
47
+
48
+ get_job_updates_response_200_flow_status_modules_item_branchall.additional_properties = d
49
+ return get_job_updates_response_200_flow_status_modules_item_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="GetJobUpdatesResponse200FlowStatusModulesItemIterator")
9
+
10
+
11
+ @_attrs_define
12
+ class GetJobUpdatesResponse200FlowStatusModulesItemIterator:
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_modules_item_iterator = cls(
55
+ index=index,
56
+ itered=itered,
57
+ args=args,
58
+ )
59
+
60
+ get_job_updates_response_200_flow_status_modules_item_iterator.additional_properties = d
61
+ return get_job_updates_response_200_flow_status_modules_item_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 GetJobUpdatesResponse200FlowStatusModulesItemType(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)