@@ -23,7 +23,7 @@ class InstallAllFromInventory(WorkflowImpl):
2323 version : int = 1
2424 description : str = 'Install all devices from device inventory or by label'
2525 labels : list [str ] = ['INVENTORY' ]
26- timeout_seconds = 3600
26+ timeout_seconds : int = 3600
2727
2828 class WorkflowInput (WorkflowImpl .WorkflowInput ):
2929 labels : WorkflowInputField = WorkflowInputField (
@@ -42,15 +42,19 @@ def workflow_builder(self, workflow_inputs: WorkflowInput) -> None:
4242 name = InventoryService .InventoryGetLabelsId ,
4343 task_reference_name = 'get_labels' ,
4444 input_parameters = SimpleTaskInputParameters (
45- labels = workflow_inputs .labels .wf_input
45+ root = dict (
46+ labels = workflow_inputs .labels .wf_input
47+ )
4648 )
4749 )
4850
4951 get_pages_cursors = SimpleTask (
5052 name = InventoryService .InventoryGetPagesCursors ,
5153 task_reference_name = 'get_pages_cursors' ,
5254 input_parameters = SimpleTaskInputParameters (
53- labels = get_labels .output_ref ('labels_id' )
55+ root = dict (
56+ labels = get_labels .output_ref ('labels_id' )
57+ )
5458 )
5559 )
5660
@@ -68,8 +72,10 @@ def workflow_builder(self, workflow_inputs: WorkflowInput) -> None:
6872 name = InventoryService .InventoryGetPagesCursorsForkTasks ,
6973 task_reference_name = 'get_pages_cursors_fork_task' ,
7074 input_parameters = SimpleTaskInputParameters (
71- task = InventoryService .InventoryInstallInBatch ().WorkerDefinition ().name ,
72- cursors_groups = convert_to_string .output_ref ('result' ),
75+ root = dict (
76+ task = InventoryService .InventoryInstallInBatch ().WorkerDefinition ().name ,
77+ cursors_groups = convert_to_string .output_ref ('result' )
78+ )
7379 )
7480 )
7581
@@ -122,14 +128,14 @@ def workflow_builder(self, workflow_inputs: WorkflowInput) -> None:
122128
123129 self .output_parameters = self .WorkflowOutput (
124130 response_body = join_results .output_ref ('result.output' )
125- ).dict ()
131+ ).model_dump ()
126132
127133 class InstallInBatch (WorkflowImpl ):
128134 name : str = 'INVENTORY_install_in_batch'
129135 version : int = 1
130136 description : str = 'Install devices in batch'
131137 labels : list [str ] = ['INVENTORY' ]
132- timeout_seconds = 3600
138+ timeout_seconds : int = 3600
133139
134140 class WorkflowInput (WorkflowImpl .WorkflowInput ):
135141 devices : WorkflowInputField = WorkflowInputField (
@@ -148,7 +154,9 @@ def workflow_builder(self, workflow_inputs: WorkflowInput) -> None:
148154 name = InventoryService .InventoryInstallInBatch ,
149155 task_reference_name = 'install_in_batch' ,
150156 input_parameters = SimpleTaskInputParameters (
151- devices = workflow_inputs .devices .wf_input
157+ root = dict (
158+ devices = workflow_inputs .devices .wf_input
159+ )
152160 )
153161 )
154162 )
@@ -158,7 +166,7 @@ class UninstallAllFromInventory(WorkflowImpl):
158166 version : int = 1
159167 description : str = 'Uninstall all devices from device inventory or by label'
160168 labels : list [str ] = ['INVENTORY' ]
161- timeout_seconds = 3600
169+ timeout_seconds : int = 3600
162170
163171 class WorkflowInput (WorkflowImpl .WorkflowInput ):
164172 labels : WorkflowInputField = WorkflowInputField (
@@ -177,15 +185,19 @@ def workflow_builder(self, workflow_inputs: WorkflowInput) -> None:
177185 name = InventoryService .InventoryGetLabelsId ,
178186 task_reference_name = 'get_labels' ,
179187 input_parameters = SimpleTaskInputParameters (
180- labels = workflow_inputs .labels .wf_input
188+ root = dict (
189+ labels = workflow_inputs .labels .wf_input
190+ )
181191 )
182192 )
183193
184194 get_pages_cursors = SimpleTask (
185195 name = InventoryService .InventoryGetPagesCursors ,
186196 task_reference_name = 'get_pages_cursors' ,
187197 input_parameters = SimpleTaskInputParameters (
188- labels = get_labels .output_ref ('labels_id' )
198+ root = dict (
199+ labels = get_labels .output_ref ('labels_id' )
200+ )
189201 )
190202 )
191203
@@ -203,8 +215,10 @@ def workflow_builder(self, workflow_inputs: WorkflowInput) -> None:
203215 name = InventoryService .InventoryGetPagesCursorsForkTasks ,
204216 task_reference_name = 'get_pages_cursors_fork_task' ,
205217 input_parameters = SimpleTaskInputParameters (
206- task = 'INVENTORY_uninstall_in_batch' ,
207- cursors_groups = convert_to_string .output_ref ('result' ),
218+ root = dict (
219+ task = 'INVENTORY_uninstall_in_batch' ,
220+ cursors_groups = convert_to_string .output_ref ('result' )
221+ )
208222 )
209223 )
210224
@@ -257,14 +271,14 @@ def workflow_builder(self, workflow_inputs: WorkflowInput) -> None:
257271
258272 self .output_parameters = self .WorkflowOutput (
259273 response_body = join_results .output_ref ('result.output' )
260- ).dict ()
274+ ).model_dump ()
261275
262276 class UninstallInBatch (WorkflowImpl ):
263277 name : str = 'INVENTORY_uninstall_in_batch'
264278 version : int = 1
265279 description : str = 'Uninstall devices in batch'
266280 labels : list [str ] = ['INVENTORY' ]
267- timeout_seconds = 3600
281+ timeout_seconds : int = 3600
268282
269283 class WorkflowInput (WorkflowImpl .WorkflowInput ):
270284 devices : WorkflowInputField = WorkflowInputField (
@@ -283,7 +297,9 @@ def workflow_builder(self, workflow_inputs: WorkflowInput) -> None:
283297 name = InventoryService .InventoryUninstallInBatch ,
284298 task_reference_name = 'uninstall_in_batch' ,
285299 input_parameters = SimpleTaskInputParameters (
286- devices = workflow_inputs .devices .wf_input
300+ root = dict (
301+ devices = workflow_inputs .devices .wf_input
302+ )
287303 )
288304 )
289305 )
0 commit comments