@@ -16,12 +16,14 @@ class WorkflowConfig:
16
16
continue_as_new_threshold (Union[Unset, int]):
17
17
continue_as_new_page_size_in_bytes (Union[Unset, int]):
18
18
optimize_activity (Union[Unset, bool]):
19
+ optimize_timer (Union[Unset, bool]):
19
20
"""
20
21
21
22
executing_state_id_mode : Union [Unset , ExecutingStateIdMode ] = UNSET
22
23
continue_as_new_threshold : Union [Unset , int ] = UNSET
23
24
continue_as_new_page_size_in_bytes : Union [Unset , int ] = UNSET
24
25
optimize_activity : Union [Unset , bool ] = UNSET
26
+ optimize_timer : Union [Unset , bool ] = UNSET
25
27
additional_properties : Dict [str , Any ] = attr .ib (init = False , factory = dict )
26
28
27
29
def to_dict (self ) -> Dict [str , Any ]:
@@ -32,6 +34,7 @@ def to_dict(self) -> Dict[str, Any]:
32
34
continue_as_new_threshold = self .continue_as_new_threshold
33
35
continue_as_new_page_size_in_bytes = self .continue_as_new_page_size_in_bytes
34
36
optimize_activity = self .optimize_activity
37
+ optimize_timer = self .optimize_timer
35
38
36
39
field_dict : Dict [str , Any ] = {}
37
40
field_dict .update (self .additional_properties )
@@ -46,6 +49,8 @@ def to_dict(self) -> Dict[str, Any]:
46
49
)
47
50
if optimize_activity is not UNSET :
48
51
field_dict ["optimizeActivity" ] = optimize_activity
52
+ if optimize_timer is not UNSET :
53
+ field_dict ["optimizeTimer" ] = optimize_timer
49
54
50
55
return field_dict
51
56
@@ -67,11 +72,14 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
67
72
68
73
optimize_activity = d .pop ("optimizeActivity" , UNSET )
69
74
75
+ optimize_timer = d .pop ("optimizeTimer" , UNSET )
76
+
70
77
workflow_config = cls (
71
78
executing_state_id_mode = executing_state_id_mode ,
72
79
continue_as_new_threshold = continue_as_new_threshold ,
73
80
continue_as_new_page_size_in_bytes = continue_as_new_page_size_in_bytes ,
74
81
optimize_activity = optimize_activity ,
82
+ optimize_timer = optimize_timer ,
75
83
)
76
84
77
85
workflow_config .additional_properties = d
0 commit comments