@@ -22,6 +22,7 @@ def list(
2222 page_size : int = ...,
2323 order_by : List [str ] = ...,
2424 workspace : Optional [Union ["Workspace" , UUID , str ]] = ...,
25+ task_type : str = ...,
2526 orchestration_system : Optional [Union ["OrchestrationSystem" , UUID , str ]] = ...,
2627 orchestration_system_type : str = ...,
2728 data_connection : Union ["Workspace" , UUID , str ] = ...,
@@ -50,6 +51,7 @@ def list(
5051 page_size = page_size ,
5152 order_by = order_by ,
5253 workspace_id = normalize_uuid (workspace ),
54+ type = task_type ,
5355 orchestration_system_id = normalize_uuid (orchestration_system ),
5456 orchestration_system_type = orchestration_system_type ,
5557 data_connection_id = normalize_uuid (data_connection ),
@@ -76,8 +78,9 @@ def create(
7678 self ,
7779 name : str ,
7880 workspace : Union ["Workspace" , UUID , str ],
79- data_connection : Union ["DataConnection" , UUID , str ],
8081 orchestration_system : Union ["OrchestrationSystem" , UUID , str ],
82+ data_connection : Optional [Union ["DataConnection" , UUID , str ]] = None ,
83+ task_type : str = "ETL" ,
8184 extractor_variables : Optional [dict ] = None ,
8285 transformer_variables : Optional [dict ] = None ,
8386 loader_variables : Optional [dict ] = None ,
@@ -95,6 +98,7 @@ def create(
9598 body = {
9699 "id" : normalize_uuid (uid ),
97100 "name" : name ,
101+ "type" : task_type ,
98102 "workspaceId" : normalize_uuid (workspace ),
99103 "dataConnectionId" : normalize_uuid (data_connection ),
100104 "orchestrationSystemId" : normalize_uuid (orchestration_system ),
@@ -121,8 +125,9 @@ def create(
121125 def update (
122126 self ,
123127 uid : Union [UUID , str ],
128+ task_type : str = ...,
124129 name : str = ...,
125- data_connection : Union ["DataConnection" , UUID , str ] = ...,
130+ data_connection : Optional [ Union ["DataConnection" , UUID , str ] ] = ...,
126131 orchestration_system : Union ["OrchestrationSystem" , UUID , str ] = ...,
127132 extractor_variables : dict = ...,
128133 transformer_variables : dict = ...,
@@ -138,6 +143,7 @@ def update(
138143 """Update an ETL task."""
139144
140145 body : Dict [str , Any ] = {
146+ "type" : task_type ,
141147 "name" : name ,
142148 "dataConnectionId" : normalize_uuid (data_connection ),
143149 "orchestrationSystemId" : normalize_uuid (orchestration_system ),
0 commit comments