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.
- windmill_api/api/script/get_script_by_hash.py +15 -0
- windmill_api/models/completed_job.py +18 -0
- windmill_api/models/{get_job_updates_response_200_flow_status_additional_property.py → completed_job_workflow_as_code_status.py} +5 -5
- windmill_api/models/delete_completed_job_response_200.py +24 -0
- windmill_api/models/delete_completed_job_response_200_workflow_as_code_status.py +100 -0
- windmill_api/models/extended_jobs_jobs_item_type_0.py +22 -0
- windmill_api/models/extended_jobs_jobs_item_type_0_workflow_as_code_status.py +100 -0
- windmill_api/models/extended_jobs_jobs_item_type_1.py +22 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_workflow_as_code_status.py +100 -0
- windmill_api/models/get_completed_job_response_200.py +22 -0
- windmill_api/models/get_completed_job_response_200_workflow_as_code_status.py +100 -0
- windmill_api/models/get_job_response_200_type_0.py +20 -0
- windmill_api/models/get_job_response_200_type_0_workflow_as_code_status.py +100 -0
- windmill_api/models/get_job_response_200_type_1.py +20 -0
- windmill_api/models/get_job_response_200_type_1_workflow_as_code_status.py +100 -0
- windmill_api/models/get_job_updates_response_200.py +22 -0
- windmill_api/models/get_job_updates_response_200_flow_status.py +107 -25
- windmill_api/models/get_job_updates_response_200_flow_status_failure_module.py +241 -0
- windmill_api/models/get_job_updates_response_200_flow_status_failure_module_approvers_item.py +65 -0
- windmill_api/models/get_job_updates_response_200_flow_status_failure_module_branch_chosen.py +72 -0
- windmill_api/models/get_job_updates_response_200_flow_status_failure_module_branch_chosen_type.py +9 -0
- windmill_api/models/get_job_updates_response_200_flow_status_failure_module_branchall.py +65 -0
- windmill_api/models/get_job_updates_response_200_flow_status_failure_module_iterator.py +77 -0
- windmill_api/models/get_job_updates_response_200_flow_status_failure_module_type.py +13 -0
- windmill_api/models/get_job_updates_response_200_flow_status_modules_item.py +233 -0
- windmill_api/models/get_job_updates_response_200_flow_status_modules_item_approvers_item.py +65 -0
- windmill_api/models/get_job_updates_response_200_flow_status_modules_item_branch_chosen.py +72 -0
- windmill_api/models/get_job_updates_response_200_flow_status_modules_item_branch_chosen_type.py +9 -0
- windmill_api/models/get_job_updates_response_200_flow_status_modules_item_branchall.py +65 -0
- windmill_api/models/get_job_updates_response_200_flow_status_modules_item_iterator.py +77 -0
- windmill_api/models/get_job_updates_response_200_flow_status_modules_item_type.py +13 -0
- windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module.py +235 -0
- windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_approvers_item.py +65 -0
- windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_branch_chosen.py +72 -0
- windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_branch_chosen_type.py +9 -0
- windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_branchall.py +65 -0
- windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_iterator.py +77 -0
- windmill_api/models/get_job_updates_response_200_flow_status_preprocessor_module_type.py +13 -0
- windmill_api/models/get_job_updates_response_200_flow_status_retry.py +68 -0
- windmill_api/models/get_job_updates_response_200_workflow_as_code_status.py +100 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0.py +24 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_workflow_as_code_status.py +100 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1.py +24 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_workflow_as_code_status.py +100 -0
- windmill_api/models/job_type_0_workflow_as_code_status.py +100 -0
- windmill_api/models/job_type_1_workflow_as_code_status.py +100 -0
- windmill_api/models/list_completed_jobs_response_200_item.py +24 -0
- windmill_api/models/list_completed_jobs_response_200_item_workflow_as_code_status.py +100 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0.py +24 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_workflow_as_code_status.py +100 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1.py +24 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_workflow_as_code_status.py +100 -0
- windmill_api/models/list_jobs_response_200_item_type_0.py +24 -0
- windmill_api/models/list_jobs_response_200_item_type_0_workflow_as_code_status.py +100 -0
- windmill_api/models/list_jobs_response_200_item_type_1.py +24 -0
- windmill_api/models/list_jobs_response_200_item_type_1_workflow_as_code_status.py +100 -0
- windmill_api/models/list_queue_response_200_item.py +22 -0
- windmill_api/models/list_queue_response_200_item_workflow_as_code_status.py +100 -0
- windmill_api/models/queued_job.py +18 -0
- windmill_api/models/queued_job_workflow_as_code_status.py +100 -0
- {windmill_api-1.509.1.dist-info → windmill_api-1.510.0.dist-info}/METADATA +1 -1
- {windmill_api-1.509.1.dist-info → windmill_api-1.510.0.dist-info}/RECORD +64 -24
- {windmill_api-1.509.1.dist-info → windmill_api-1.510.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.509.1.dist-info → windmill_api-1.510.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
from dateutil.parser import isoparse
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="ExtendedJobsJobsItemType1WorkflowAsCodeStatus")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class ExtendedJobsJobsItemType1WorkflowAsCodeStatus:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
scheduled_for (Union[Unset, datetime.datetime]):
|
|
18
|
+
started_at (Union[Unset, datetime.datetime]):
|
|
19
|
+
duration_ms (Union[Unset, float]):
|
|
20
|
+
name (Union[Unset, str]):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
scheduled_for: Union[Unset, datetime.datetime] = UNSET
|
|
24
|
+
started_at: Union[Unset, datetime.datetime] = UNSET
|
|
25
|
+
duration_ms: Union[Unset, float] = UNSET
|
|
26
|
+
name: Union[Unset, str] = UNSET
|
|
27
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
scheduled_for: Union[Unset, str] = UNSET
|
|
31
|
+
if not isinstance(self.scheduled_for, Unset):
|
|
32
|
+
scheduled_for = self.scheduled_for.isoformat()
|
|
33
|
+
|
|
34
|
+
started_at: Union[Unset, str] = UNSET
|
|
35
|
+
if not isinstance(self.started_at, Unset):
|
|
36
|
+
started_at = self.started_at.isoformat()
|
|
37
|
+
|
|
38
|
+
duration_ms = self.duration_ms
|
|
39
|
+
name = self.name
|
|
40
|
+
|
|
41
|
+
field_dict: Dict[str, Any] = {}
|
|
42
|
+
field_dict.update(self.additional_properties)
|
|
43
|
+
field_dict.update({})
|
|
44
|
+
if scheduled_for is not UNSET:
|
|
45
|
+
field_dict["scheduled_for"] = scheduled_for
|
|
46
|
+
if started_at is not UNSET:
|
|
47
|
+
field_dict["started_at"] = started_at
|
|
48
|
+
if duration_ms is not UNSET:
|
|
49
|
+
field_dict["duration_ms"] = duration_ms
|
|
50
|
+
if name is not UNSET:
|
|
51
|
+
field_dict["name"] = name
|
|
52
|
+
|
|
53
|
+
return field_dict
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
57
|
+
d = src_dict.copy()
|
|
58
|
+
_scheduled_for = d.pop("scheduled_for", UNSET)
|
|
59
|
+
scheduled_for: Union[Unset, datetime.datetime]
|
|
60
|
+
if isinstance(_scheduled_for, Unset):
|
|
61
|
+
scheduled_for = UNSET
|
|
62
|
+
else:
|
|
63
|
+
scheduled_for = isoparse(_scheduled_for)
|
|
64
|
+
|
|
65
|
+
_started_at = d.pop("started_at", UNSET)
|
|
66
|
+
started_at: Union[Unset, datetime.datetime]
|
|
67
|
+
if isinstance(_started_at, Unset):
|
|
68
|
+
started_at = UNSET
|
|
69
|
+
else:
|
|
70
|
+
started_at = isoparse(_started_at)
|
|
71
|
+
|
|
72
|
+
duration_ms = d.pop("duration_ms", UNSET)
|
|
73
|
+
|
|
74
|
+
name = d.pop("name", UNSET)
|
|
75
|
+
|
|
76
|
+
extended_jobs_jobs_item_type_1_workflow_as_code_status = cls(
|
|
77
|
+
scheduled_for=scheduled_for,
|
|
78
|
+
started_at=started_at,
|
|
79
|
+
duration_ms=duration_ms,
|
|
80
|
+
name=name,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
extended_jobs_jobs_item_type_1_workflow_as_code_status.additional_properties = d
|
|
84
|
+
return extended_jobs_jobs_item_type_1_workflow_as_code_status
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def additional_keys(self) -> List[str]:
|
|
88
|
+
return list(self.additional_properties.keys())
|
|
89
|
+
|
|
90
|
+
def __getitem__(self, key: str) -> Any:
|
|
91
|
+
return self.additional_properties[key]
|
|
92
|
+
|
|
93
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
94
|
+
self.additional_properties[key] = value
|
|
95
|
+
|
|
96
|
+
def __delitem__(self, key: str) -> None:
|
|
97
|
+
del self.additional_properties[key]
|
|
98
|
+
|
|
99
|
+
def __contains__(self, key: str) -> bool:
|
|
100
|
+
return key in self.additional_properties
|
|
@@ -13,6 +13,9 @@ if TYPE_CHECKING:
|
|
|
13
13
|
from ..models.get_completed_job_response_200_args import GetCompletedJobResponse200Args
|
|
14
14
|
from ..models.get_completed_job_response_200_flow_status import GetCompletedJobResponse200FlowStatus
|
|
15
15
|
from ..models.get_completed_job_response_200_raw_flow import GetCompletedJobResponse200RawFlow
|
|
16
|
+
from ..models.get_completed_job_response_200_workflow_as_code_status import (
|
|
17
|
+
GetCompletedJobResponse200WorkflowAsCodeStatus,
|
|
18
|
+
)
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
T = TypeVar("T", bound="GetCompletedJobResponse200")
|
|
@@ -50,6 +53,7 @@ class GetCompletedJobResponse200:
|
|
|
50
53
|
canceled_reason (Union[Unset, str]):
|
|
51
54
|
schedule_path (Union[Unset, str]):
|
|
52
55
|
flow_status (Union[Unset, GetCompletedJobResponse200FlowStatus]):
|
|
56
|
+
workflow_as_code_status (Union[Unset, GetCompletedJobResponse200WorkflowAsCodeStatus]):
|
|
53
57
|
raw_flow (Union[Unset, GetCompletedJobResponse200RawFlow]):
|
|
54
58
|
language (Union[Unset, GetCompletedJobResponse200Language]):
|
|
55
59
|
mem_peak (Union[Unset, int]):
|
|
@@ -88,6 +92,7 @@ class GetCompletedJobResponse200:
|
|
|
88
92
|
canceled_reason: Union[Unset, str] = UNSET
|
|
89
93
|
schedule_path: Union[Unset, str] = UNSET
|
|
90
94
|
flow_status: Union[Unset, "GetCompletedJobResponse200FlowStatus"] = UNSET
|
|
95
|
+
workflow_as_code_status: Union[Unset, "GetCompletedJobResponse200WorkflowAsCodeStatus"] = UNSET
|
|
91
96
|
raw_flow: Union[Unset, "GetCompletedJobResponse200RawFlow"] = UNSET
|
|
92
97
|
language: Union[Unset, GetCompletedJobResponse200Language] = UNSET
|
|
93
98
|
mem_peak: Union[Unset, int] = UNSET
|
|
@@ -136,6 +141,10 @@ class GetCompletedJobResponse200:
|
|
|
136
141
|
if not isinstance(self.flow_status, Unset):
|
|
137
142
|
flow_status = self.flow_status.to_dict()
|
|
138
143
|
|
|
144
|
+
workflow_as_code_status: Union[Unset, Dict[str, Any]] = UNSET
|
|
145
|
+
if not isinstance(self.workflow_as_code_status, Unset):
|
|
146
|
+
workflow_as_code_status = self.workflow_as_code_status.to_dict()
|
|
147
|
+
|
|
139
148
|
raw_flow: Union[Unset, Dict[str, Any]] = UNSET
|
|
140
149
|
if not isinstance(self.raw_flow, Unset):
|
|
141
150
|
raw_flow = self.raw_flow.to_dict()
|
|
@@ -201,6 +210,8 @@ class GetCompletedJobResponse200:
|
|
|
201
210
|
field_dict["schedule_path"] = schedule_path
|
|
202
211
|
if flow_status is not UNSET:
|
|
203
212
|
field_dict["flow_status"] = flow_status
|
|
213
|
+
if workflow_as_code_status is not UNSET:
|
|
214
|
+
field_dict["workflow_as_code_status"] = workflow_as_code_status
|
|
204
215
|
if raw_flow is not UNSET:
|
|
205
216
|
field_dict["raw_flow"] = raw_flow
|
|
206
217
|
if language is not UNSET:
|
|
@@ -227,6 +238,9 @@ class GetCompletedJobResponse200:
|
|
|
227
238
|
from ..models.get_completed_job_response_200_args import GetCompletedJobResponse200Args
|
|
228
239
|
from ..models.get_completed_job_response_200_flow_status import GetCompletedJobResponse200FlowStatus
|
|
229
240
|
from ..models.get_completed_job_response_200_raw_flow import GetCompletedJobResponse200RawFlow
|
|
241
|
+
from ..models.get_completed_job_response_200_workflow_as_code_status import (
|
|
242
|
+
GetCompletedJobResponse200WorkflowAsCodeStatus,
|
|
243
|
+
)
|
|
230
244
|
|
|
231
245
|
d = src_dict.copy()
|
|
232
246
|
id = d.pop("id")
|
|
@@ -293,6 +307,13 @@ class GetCompletedJobResponse200:
|
|
|
293
307
|
else:
|
|
294
308
|
flow_status = GetCompletedJobResponse200FlowStatus.from_dict(_flow_status)
|
|
295
309
|
|
|
310
|
+
_workflow_as_code_status = d.pop("workflow_as_code_status", UNSET)
|
|
311
|
+
workflow_as_code_status: Union[Unset, GetCompletedJobResponse200WorkflowAsCodeStatus]
|
|
312
|
+
if isinstance(_workflow_as_code_status, Unset):
|
|
313
|
+
workflow_as_code_status = UNSET
|
|
314
|
+
else:
|
|
315
|
+
workflow_as_code_status = GetCompletedJobResponse200WorkflowAsCodeStatus.from_dict(_workflow_as_code_status)
|
|
316
|
+
|
|
296
317
|
_raw_flow = d.pop("raw_flow", UNSET)
|
|
297
318
|
raw_flow: Union[Unset, GetCompletedJobResponse200RawFlow]
|
|
298
319
|
if isinstance(_raw_flow, Unset):
|
|
@@ -349,6 +370,7 @@ class GetCompletedJobResponse200:
|
|
|
349
370
|
canceled_reason=canceled_reason,
|
|
350
371
|
schedule_path=schedule_path,
|
|
351
372
|
flow_status=flow_status,
|
|
373
|
+
workflow_as_code_status=workflow_as_code_status,
|
|
352
374
|
raw_flow=raw_flow,
|
|
353
375
|
language=language,
|
|
354
376
|
mem_peak=mem_peak,
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
from dateutil.parser import isoparse
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="GetCompletedJobResponse200WorkflowAsCodeStatus")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class GetCompletedJobResponse200WorkflowAsCodeStatus:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
scheduled_for (Union[Unset, datetime.datetime]):
|
|
18
|
+
started_at (Union[Unset, datetime.datetime]):
|
|
19
|
+
duration_ms (Union[Unset, float]):
|
|
20
|
+
name (Union[Unset, str]):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
scheduled_for: Union[Unset, datetime.datetime] = UNSET
|
|
24
|
+
started_at: Union[Unset, datetime.datetime] = UNSET
|
|
25
|
+
duration_ms: Union[Unset, float] = UNSET
|
|
26
|
+
name: Union[Unset, str] = UNSET
|
|
27
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
scheduled_for: Union[Unset, str] = UNSET
|
|
31
|
+
if not isinstance(self.scheduled_for, Unset):
|
|
32
|
+
scheduled_for = self.scheduled_for.isoformat()
|
|
33
|
+
|
|
34
|
+
started_at: Union[Unset, str] = UNSET
|
|
35
|
+
if not isinstance(self.started_at, Unset):
|
|
36
|
+
started_at = self.started_at.isoformat()
|
|
37
|
+
|
|
38
|
+
duration_ms = self.duration_ms
|
|
39
|
+
name = self.name
|
|
40
|
+
|
|
41
|
+
field_dict: Dict[str, Any] = {}
|
|
42
|
+
field_dict.update(self.additional_properties)
|
|
43
|
+
field_dict.update({})
|
|
44
|
+
if scheduled_for is not UNSET:
|
|
45
|
+
field_dict["scheduled_for"] = scheduled_for
|
|
46
|
+
if started_at is not UNSET:
|
|
47
|
+
field_dict["started_at"] = started_at
|
|
48
|
+
if duration_ms is not UNSET:
|
|
49
|
+
field_dict["duration_ms"] = duration_ms
|
|
50
|
+
if name is not UNSET:
|
|
51
|
+
field_dict["name"] = name
|
|
52
|
+
|
|
53
|
+
return field_dict
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
57
|
+
d = src_dict.copy()
|
|
58
|
+
_scheduled_for = d.pop("scheduled_for", UNSET)
|
|
59
|
+
scheduled_for: Union[Unset, datetime.datetime]
|
|
60
|
+
if isinstance(_scheduled_for, Unset):
|
|
61
|
+
scheduled_for = UNSET
|
|
62
|
+
else:
|
|
63
|
+
scheduled_for = isoparse(_scheduled_for)
|
|
64
|
+
|
|
65
|
+
_started_at = d.pop("started_at", UNSET)
|
|
66
|
+
started_at: Union[Unset, datetime.datetime]
|
|
67
|
+
if isinstance(_started_at, Unset):
|
|
68
|
+
started_at = UNSET
|
|
69
|
+
else:
|
|
70
|
+
started_at = isoparse(_started_at)
|
|
71
|
+
|
|
72
|
+
duration_ms = d.pop("duration_ms", UNSET)
|
|
73
|
+
|
|
74
|
+
name = d.pop("name", UNSET)
|
|
75
|
+
|
|
76
|
+
get_completed_job_response_200_workflow_as_code_status = cls(
|
|
77
|
+
scheduled_for=scheduled_for,
|
|
78
|
+
started_at=started_at,
|
|
79
|
+
duration_ms=duration_ms,
|
|
80
|
+
name=name,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
get_completed_job_response_200_workflow_as_code_status.additional_properties = d
|
|
84
|
+
return get_completed_job_response_200_workflow_as_code_status
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def additional_keys(self) -> List[str]:
|
|
88
|
+
return list(self.additional_properties.keys())
|
|
89
|
+
|
|
90
|
+
def __getitem__(self, key: str) -> Any:
|
|
91
|
+
return self.additional_properties[key]
|
|
92
|
+
|
|
93
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
94
|
+
self.additional_properties[key] = value
|
|
95
|
+
|
|
96
|
+
def __delitem__(self, key: str) -> None:
|
|
97
|
+
del self.additional_properties[key]
|
|
98
|
+
|
|
99
|
+
def __contains__(self, key: str) -> bool:
|
|
100
|
+
return key in self.additional_properties
|
|
@@ -14,6 +14,7 @@ if TYPE_CHECKING:
|
|
|
14
14
|
from ..models.get_job_response_200_type_0_args import GetJobResponse200Type0Args
|
|
15
15
|
from ..models.get_job_response_200_type_0_flow_status import GetJobResponse200Type0FlowStatus
|
|
16
16
|
from ..models.get_job_response_200_type_0_raw_flow import GetJobResponse200Type0RawFlow
|
|
17
|
+
from ..models.get_job_response_200_type_0_workflow_as_code_status import GetJobResponse200Type0WorkflowAsCodeStatus
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
T = TypeVar("T", bound="GetJobResponse200Type0")
|
|
@@ -51,6 +52,7 @@ class GetJobResponse200Type0:
|
|
|
51
52
|
canceled_reason (Union[Unset, str]):
|
|
52
53
|
schedule_path (Union[Unset, str]):
|
|
53
54
|
flow_status (Union[Unset, GetJobResponse200Type0FlowStatus]):
|
|
55
|
+
workflow_as_code_status (Union[Unset, GetJobResponse200Type0WorkflowAsCodeStatus]):
|
|
54
56
|
raw_flow (Union[Unset, GetJobResponse200Type0RawFlow]):
|
|
55
57
|
language (Union[Unset, GetJobResponse200Type0Language]):
|
|
56
58
|
mem_peak (Union[Unset, int]):
|
|
@@ -90,6 +92,7 @@ class GetJobResponse200Type0:
|
|
|
90
92
|
canceled_reason: Union[Unset, str] = UNSET
|
|
91
93
|
schedule_path: Union[Unset, str] = UNSET
|
|
92
94
|
flow_status: Union[Unset, "GetJobResponse200Type0FlowStatus"] = UNSET
|
|
95
|
+
workflow_as_code_status: Union[Unset, "GetJobResponse200Type0WorkflowAsCodeStatus"] = UNSET
|
|
93
96
|
raw_flow: Union[Unset, "GetJobResponse200Type0RawFlow"] = UNSET
|
|
94
97
|
language: Union[Unset, GetJobResponse200Type0Language] = UNSET
|
|
95
98
|
mem_peak: Union[Unset, int] = UNSET
|
|
@@ -139,6 +142,10 @@ class GetJobResponse200Type0:
|
|
|
139
142
|
if not isinstance(self.flow_status, Unset):
|
|
140
143
|
flow_status = self.flow_status.to_dict()
|
|
141
144
|
|
|
145
|
+
workflow_as_code_status: Union[Unset, Dict[str, Any]] = UNSET
|
|
146
|
+
if not isinstance(self.workflow_as_code_status, Unset):
|
|
147
|
+
workflow_as_code_status = self.workflow_as_code_status.to_dict()
|
|
148
|
+
|
|
142
149
|
raw_flow: Union[Unset, Dict[str, Any]] = UNSET
|
|
143
150
|
if not isinstance(self.raw_flow, Unset):
|
|
144
151
|
raw_flow = self.raw_flow.to_dict()
|
|
@@ -207,6 +214,8 @@ class GetJobResponse200Type0:
|
|
|
207
214
|
field_dict["schedule_path"] = schedule_path
|
|
208
215
|
if flow_status is not UNSET:
|
|
209
216
|
field_dict["flow_status"] = flow_status
|
|
217
|
+
if workflow_as_code_status is not UNSET:
|
|
218
|
+
field_dict["workflow_as_code_status"] = workflow_as_code_status
|
|
210
219
|
if raw_flow is not UNSET:
|
|
211
220
|
field_dict["raw_flow"] = raw_flow
|
|
212
221
|
if language is not UNSET:
|
|
@@ -235,6 +244,9 @@ class GetJobResponse200Type0:
|
|
|
235
244
|
from ..models.get_job_response_200_type_0_args import GetJobResponse200Type0Args
|
|
236
245
|
from ..models.get_job_response_200_type_0_flow_status import GetJobResponse200Type0FlowStatus
|
|
237
246
|
from ..models.get_job_response_200_type_0_raw_flow import GetJobResponse200Type0RawFlow
|
|
247
|
+
from ..models.get_job_response_200_type_0_workflow_as_code_status import (
|
|
248
|
+
GetJobResponse200Type0WorkflowAsCodeStatus,
|
|
249
|
+
)
|
|
238
250
|
|
|
239
251
|
d = src_dict.copy()
|
|
240
252
|
id = d.pop("id")
|
|
@@ -301,6 +313,13 @@ class GetJobResponse200Type0:
|
|
|
301
313
|
else:
|
|
302
314
|
flow_status = GetJobResponse200Type0FlowStatus.from_dict(_flow_status)
|
|
303
315
|
|
|
316
|
+
_workflow_as_code_status = d.pop("workflow_as_code_status", UNSET)
|
|
317
|
+
workflow_as_code_status: Union[Unset, GetJobResponse200Type0WorkflowAsCodeStatus]
|
|
318
|
+
if isinstance(_workflow_as_code_status, Unset):
|
|
319
|
+
workflow_as_code_status = UNSET
|
|
320
|
+
else:
|
|
321
|
+
workflow_as_code_status = GetJobResponse200Type0WorkflowAsCodeStatus.from_dict(_workflow_as_code_status)
|
|
322
|
+
|
|
304
323
|
_raw_flow = d.pop("raw_flow", UNSET)
|
|
305
324
|
raw_flow: Union[Unset, GetJobResponse200Type0RawFlow]
|
|
306
325
|
if isinstance(_raw_flow, Unset):
|
|
@@ -364,6 +383,7 @@ class GetJobResponse200Type0:
|
|
|
364
383
|
canceled_reason=canceled_reason,
|
|
365
384
|
schedule_path=schedule_path,
|
|
366
385
|
flow_status=flow_status,
|
|
386
|
+
workflow_as_code_status=workflow_as_code_status,
|
|
367
387
|
raw_flow=raw_flow,
|
|
368
388
|
language=language,
|
|
369
389
|
mem_peak=mem_peak,
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
from dateutil.parser import isoparse
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="GetJobResponse200Type0WorkflowAsCodeStatus")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class GetJobResponse200Type0WorkflowAsCodeStatus:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
scheduled_for (Union[Unset, datetime.datetime]):
|
|
18
|
+
started_at (Union[Unset, datetime.datetime]):
|
|
19
|
+
duration_ms (Union[Unset, float]):
|
|
20
|
+
name (Union[Unset, str]):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
scheduled_for: Union[Unset, datetime.datetime] = UNSET
|
|
24
|
+
started_at: Union[Unset, datetime.datetime] = UNSET
|
|
25
|
+
duration_ms: Union[Unset, float] = UNSET
|
|
26
|
+
name: Union[Unset, str] = UNSET
|
|
27
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
scheduled_for: Union[Unset, str] = UNSET
|
|
31
|
+
if not isinstance(self.scheduled_for, Unset):
|
|
32
|
+
scheduled_for = self.scheduled_for.isoformat()
|
|
33
|
+
|
|
34
|
+
started_at: Union[Unset, str] = UNSET
|
|
35
|
+
if not isinstance(self.started_at, Unset):
|
|
36
|
+
started_at = self.started_at.isoformat()
|
|
37
|
+
|
|
38
|
+
duration_ms = self.duration_ms
|
|
39
|
+
name = self.name
|
|
40
|
+
|
|
41
|
+
field_dict: Dict[str, Any] = {}
|
|
42
|
+
field_dict.update(self.additional_properties)
|
|
43
|
+
field_dict.update({})
|
|
44
|
+
if scheduled_for is not UNSET:
|
|
45
|
+
field_dict["scheduled_for"] = scheduled_for
|
|
46
|
+
if started_at is not UNSET:
|
|
47
|
+
field_dict["started_at"] = started_at
|
|
48
|
+
if duration_ms is not UNSET:
|
|
49
|
+
field_dict["duration_ms"] = duration_ms
|
|
50
|
+
if name is not UNSET:
|
|
51
|
+
field_dict["name"] = name
|
|
52
|
+
|
|
53
|
+
return field_dict
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
57
|
+
d = src_dict.copy()
|
|
58
|
+
_scheduled_for = d.pop("scheduled_for", UNSET)
|
|
59
|
+
scheduled_for: Union[Unset, datetime.datetime]
|
|
60
|
+
if isinstance(_scheduled_for, Unset):
|
|
61
|
+
scheduled_for = UNSET
|
|
62
|
+
else:
|
|
63
|
+
scheduled_for = isoparse(_scheduled_for)
|
|
64
|
+
|
|
65
|
+
_started_at = d.pop("started_at", UNSET)
|
|
66
|
+
started_at: Union[Unset, datetime.datetime]
|
|
67
|
+
if isinstance(_started_at, Unset):
|
|
68
|
+
started_at = UNSET
|
|
69
|
+
else:
|
|
70
|
+
started_at = isoparse(_started_at)
|
|
71
|
+
|
|
72
|
+
duration_ms = d.pop("duration_ms", UNSET)
|
|
73
|
+
|
|
74
|
+
name = d.pop("name", UNSET)
|
|
75
|
+
|
|
76
|
+
get_job_response_200_type_0_workflow_as_code_status = cls(
|
|
77
|
+
scheduled_for=scheduled_for,
|
|
78
|
+
started_at=started_at,
|
|
79
|
+
duration_ms=duration_ms,
|
|
80
|
+
name=name,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
get_job_response_200_type_0_workflow_as_code_status.additional_properties = d
|
|
84
|
+
return get_job_response_200_type_0_workflow_as_code_status
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def additional_keys(self) -> List[str]:
|
|
88
|
+
return list(self.additional_properties.keys())
|
|
89
|
+
|
|
90
|
+
def __getitem__(self, key: str) -> Any:
|
|
91
|
+
return self.additional_properties[key]
|
|
92
|
+
|
|
93
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
94
|
+
self.additional_properties[key] = value
|
|
95
|
+
|
|
96
|
+
def __delitem__(self, key: str) -> None:
|
|
97
|
+
del self.additional_properties[key]
|
|
98
|
+
|
|
99
|
+
def __contains__(self, key: str) -> bool:
|
|
100
|
+
return key in self.additional_properties
|
|
@@ -14,6 +14,7 @@ if TYPE_CHECKING:
|
|
|
14
14
|
from ..models.get_job_response_200_type_1_args import GetJobResponse200Type1Args
|
|
15
15
|
from ..models.get_job_response_200_type_1_flow_status import GetJobResponse200Type1FlowStatus
|
|
16
16
|
from ..models.get_job_response_200_type_1_raw_flow import GetJobResponse200Type1RawFlow
|
|
17
|
+
from ..models.get_job_response_200_type_1_workflow_as_code_status import GetJobResponse200Type1WorkflowAsCodeStatus
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
T = TypeVar("T", bound="GetJobResponse200Type1")
|
|
@@ -49,6 +50,7 @@ class GetJobResponse200Type1:
|
|
|
49
50
|
last_ping (Union[Unset, datetime.datetime]):
|
|
50
51
|
schedule_path (Union[Unset, str]):
|
|
51
52
|
flow_status (Union[Unset, GetJobResponse200Type1FlowStatus]):
|
|
53
|
+
workflow_as_code_status (Union[Unset, GetJobResponse200Type1WorkflowAsCodeStatus]):
|
|
52
54
|
raw_flow (Union[Unset, GetJobResponse200Type1RawFlow]):
|
|
53
55
|
language (Union[Unset, GetJobResponse200Type1Language]):
|
|
54
56
|
mem_peak (Union[Unset, int]):
|
|
@@ -86,6 +88,7 @@ class GetJobResponse200Type1:
|
|
|
86
88
|
last_ping: Union[Unset, datetime.datetime] = UNSET
|
|
87
89
|
schedule_path: Union[Unset, str] = UNSET
|
|
88
90
|
flow_status: Union[Unset, "GetJobResponse200Type1FlowStatus"] = UNSET
|
|
91
|
+
workflow_as_code_status: Union[Unset, "GetJobResponse200Type1WorkflowAsCodeStatus"] = UNSET
|
|
89
92
|
raw_flow: Union[Unset, "GetJobResponse200Type1RawFlow"] = UNSET
|
|
90
93
|
language: Union[Unset, GetJobResponse200Type1Language] = UNSET
|
|
91
94
|
mem_peak: Union[Unset, int] = UNSET
|
|
@@ -143,6 +146,10 @@ class GetJobResponse200Type1:
|
|
|
143
146
|
if not isinstance(self.flow_status, Unset):
|
|
144
147
|
flow_status = self.flow_status.to_dict()
|
|
145
148
|
|
|
149
|
+
workflow_as_code_status: Union[Unset, Dict[str, Any]] = UNSET
|
|
150
|
+
if not isinstance(self.workflow_as_code_status, Unset):
|
|
151
|
+
workflow_as_code_status = self.workflow_as_code_status.to_dict()
|
|
152
|
+
|
|
146
153
|
raw_flow: Union[Unset, Dict[str, Any]] = UNSET
|
|
147
154
|
if not isinstance(self.raw_flow, Unset):
|
|
148
155
|
raw_flow = self.raw_flow.to_dict()
|
|
@@ -209,6 +216,8 @@ class GetJobResponse200Type1:
|
|
|
209
216
|
field_dict["schedule_path"] = schedule_path
|
|
210
217
|
if flow_status is not UNSET:
|
|
211
218
|
field_dict["flow_status"] = flow_status
|
|
219
|
+
if workflow_as_code_status is not UNSET:
|
|
220
|
+
field_dict["workflow_as_code_status"] = workflow_as_code_status
|
|
212
221
|
if raw_flow is not UNSET:
|
|
213
222
|
field_dict["raw_flow"] = raw_flow
|
|
214
223
|
if language is not UNSET:
|
|
@@ -237,6 +246,9 @@ class GetJobResponse200Type1:
|
|
|
237
246
|
from ..models.get_job_response_200_type_1_args import GetJobResponse200Type1Args
|
|
238
247
|
from ..models.get_job_response_200_type_1_flow_status import GetJobResponse200Type1FlowStatus
|
|
239
248
|
from ..models.get_job_response_200_type_1_raw_flow import GetJobResponse200Type1RawFlow
|
|
249
|
+
from ..models.get_job_response_200_type_1_workflow_as_code_status import (
|
|
250
|
+
GetJobResponse200Type1WorkflowAsCodeStatus,
|
|
251
|
+
)
|
|
240
252
|
|
|
241
253
|
d = src_dict.copy()
|
|
242
254
|
id = d.pop("id")
|
|
@@ -319,6 +331,13 @@ class GetJobResponse200Type1:
|
|
|
319
331
|
else:
|
|
320
332
|
flow_status = GetJobResponse200Type1FlowStatus.from_dict(_flow_status)
|
|
321
333
|
|
|
334
|
+
_workflow_as_code_status = d.pop("workflow_as_code_status", UNSET)
|
|
335
|
+
workflow_as_code_status: Union[Unset, GetJobResponse200Type1WorkflowAsCodeStatus]
|
|
336
|
+
if isinstance(_workflow_as_code_status, Unset):
|
|
337
|
+
workflow_as_code_status = UNSET
|
|
338
|
+
else:
|
|
339
|
+
workflow_as_code_status = GetJobResponse200Type1WorkflowAsCodeStatus.from_dict(_workflow_as_code_status)
|
|
340
|
+
|
|
322
341
|
_raw_flow = d.pop("raw_flow", UNSET)
|
|
323
342
|
raw_flow: Union[Unset, GetJobResponse200Type1RawFlow]
|
|
324
343
|
if isinstance(_raw_flow, Unset):
|
|
@@ -380,6 +399,7 @@ class GetJobResponse200Type1:
|
|
|
380
399
|
last_ping=last_ping,
|
|
381
400
|
schedule_path=schedule_path,
|
|
382
401
|
flow_status=flow_status,
|
|
402
|
+
workflow_as_code_status=workflow_as_code_status,
|
|
383
403
|
raw_flow=raw_flow,
|
|
384
404
|
language=language,
|
|
385
405
|
mem_peak=mem_peak,
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
from dateutil.parser import isoparse
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="GetJobResponse200Type1WorkflowAsCodeStatus")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class GetJobResponse200Type1WorkflowAsCodeStatus:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
scheduled_for (Union[Unset, datetime.datetime]):
|
|
18
|
+
started_at (Union[Unset, datetime.datetime]):
|
|
19
|
+
duration_ms (Union[Unset, float]):
|
|
20
|
+
name (Union[Unset, str]):
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
scheduled_for: Union[Unset, datetime.datetime] = UNSET
|
|
24
|
+
started_at: Union[Unset, datetime.datetime] = UNSET
|
|
25
|
+
duration_ms: Union[Unset, float] = UNSET
|
|
26
|
+
name: Union[Unset, str] = UNSET
|
|
27
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
scheduled_for: Union[Unset, str] = UNSET
|
|
31
|
+
if not isinstance(self.scheduled_for, Unset):
|
|
32
|
+
scheduled_for = self.scheduled_for.isoformat()
|
|
33
|
+
|
|
34
|
+
started_at: Union[Unset, str] = UNSET
|
|
35
|
+
if not isinstance(self.started_at, Unset):
|
|
36
|
+
started_at = self.started_at.isoformat()
|
|
37
|
+
|
|
38
|
+
duration_ms = self.duration_ms
|
|
39
|
+
name = self.name
|
|
40
|
+
|
|
41
|
+
field_dict: Dict[str, Any] = {}
|
|
42
|
+
field_dict.update(self.additional_properties)
|
|
43
|
+
field_dict.update({})
|
|
44
|
+
if scheduled_for is not UNSET:
|
|
45
|
+
field_dict["scheduled_for"] = scheduled_for
|
|
46
|
+
if started_at is not UNSET:
|
|
47
|
+
field_dict["started_at"] = started_at
|
|
48
|
+
if duration_ms is not UNSET:
|
|
49
|
+
field_dict["duration_ms"] = duration_ms
|
|
50
|
+
if name is not UNSET:
|
|
51
|
+
field_dict["name"] = name
|
|
52
|
+
|
|
53
|
+
return field_dict
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
57
|
+
d = src_dict.copy()
|
|
58
|
+
_scheduled_for = d.pop("scheduled_for", UNSET)
|
|
59
|
+
scheduled_for: Union[Unset, datetime.datetime]
|
|
60
|
+
if isinstance(_scheduled_for, Unset):
|
|
61
|
+
scheduled_for = UNSET
|
|
62
|
+
else:
|
|
63
|
+
scheduled_for = isoparse(_scheduled_for)
|
|
64
|
+
|
|
65
|
+
_started_at = d.pop("started_at", UNSET)
|
|
66
|
+
started_at: Union[Unset, datetime.datetime]
|
|
67
|
+
if isinstance(_started_at, Unset):
|
|
68
|
+
started_at = UNSET
|
|
69
|
+
else:
|
|
70
|
+
started_at = isoparse(_started_at)
|
|
71
|
+
|
|
72
|
+
duration_ms = d.pop("duration_ms", UNSET)
|
|
73
|
+
|
|
74
|
+
name = d.pop("name", UNSET)
|
|
75
|
+
|
|
76
|
+
get_job_response_200_type_1_workflow_as_code_status = cls(
|
|
77
|
+
scheduled_for=scheduled_for,
|
|
78
|
+
started_at=started_at,
|
|
79
|
+
duration_ms=duration_ms,
|
|
80
|
+
name=name,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
get_job_response_200_type_1_workflow_as_code_status.additional_properties = d
|
|
84
|
+
return get_job_response_200_type_1_workflow_as_code_status
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def additional_keys(self) -> List[str]:
|
|
88
|
+
return list(self.additional_properties.keys())
|
|
89
|
+
|
|
90
|
+
def __getitem__(self, key: str) -> Any:
|
|
91
|
+
return self.additional_properties[key]
|
|
92
|
+
|
|
93
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
94
|
+
self.additional_properties[key] = value
|
|
95
|
+
|
|
96
|
+
def __delitem__(self, key: str) -> None:
|
|
97
|
+
del self.additional_properties[key]
|
|
98
|
+
|
|
99
|
+
def __contains__(self, key: str) -> bool:
|
|
100
|
+
return key in self.additional_properties
|