task
Module to interact with tasks.
This module contains class to interact with a task in EMS data integration.
Typical usage example
Task ¶
Bases: TaskInstanceTransport
Task object to interact with task specific data integration endpoints.
from_transport
classmethod
¶
Creates high-level task object from given TaskTransport.
Parameters:
-
client
(
Client
) –Client to use to make API calls for given job.
-
task_instance_transport
(
TaskInstanceTransport
) –TaskInstanceTransport object containing properties of task.
Returns:
-
Task
–A Task object with properties from transport and given client.
update ¶
Pushes local changes of task to EMS and updates properties with response from EMS.
Extraction ¶
Bases: Task
Extraction object to interact with extraction specific data integration endpoints.
create_table_extraction ¶
Creates table extraction in given data job.
Parameters:
-
table_name
(
str
) –Name of table to extract.
-
schema_name
(
typing.Optional[str]
) –Name of schema where table is located.
-
**kwargs
(
typing.Any
) –Additional parameters set for TableExtractionTransport object.
Returns:
-
TableExtraction
–A TableExtraction object for newly created table extraction.
Raises:
-
PyCelonisValueError
–Raised if something went wrong creating the table extraction.
get_table_extraction ¶
Gets table extraction with given id.
Parameters:
-
id_
(
str
) –Id of table extraction.
Returns:
-
TableExtraction
–A TableExtraction object for table extraction with given id.
get_table_extractions ¶
Gets all table extractions of given data job.
Returns:
-
CelonisCollection[TableExtraction]
–A list containing all table extractions.