Skip to content

data_model_execution

Module to interact with data model executions.

This module contains class to interact with a data model execution in EMS data integration.

Typical usage example
data_model_execution = data_job.create_data_model_execution(dm.id)
data_model_execution = data_job.create_data_model_execution(dm.id, tables=[data_model_table.id])
data_model_execution.delete()

DataModelExecution

Bases: DataModelExecutionTransport

Data model execution object to interact with data model execution specific data integration endpoints.

client class-attribute instance-attribute

client: Client = Field(..., exclude=True)

id instance-attribute

id: str

Id of data model execution.

data_pool_id instance-attribute

data_pool_id: str

Id of data pool where data model execution is located.

job_id instance-attribute

job_id: str

Id of job where data model execution is located.

tables instance-attribute

tables: typing.Optional[
    typing.List[
        typing.Optional[DataModelExecutionTableItem]
    ]
]

Tables that are reloaded as part of data model execution.

data_model_id class-attribute instance-attribute

data_model_id: Optional[str] = Field(alias='dataModelId')

disabled class-attribute instance-attribute

disabled: Optional[bool] = Field(alias='disabled')

data_model_name class-attribute instance-attribute

data_model_name: Optional[str] = Field(
    alias="dataModelName"
)

partial_load class-attribute instance-attribute

partial_load: Optional[bool] = Field(alias='partialLoad')

from_transport classmethod

from_transport(
    client, data_pool_id, data_model_execution_transport
)

Creates high-level data model execution object from given DataModelExecutionTransport.

Parameters:

  • client (Client) –

    Client to use to make API calls for given data model execution.

  • data_pool_id (str) –

    Id of data pool where data model execution is located.

  • data_model_execution_transport (DataModelExecutionTransport) –

    DataModelExecutionTransport object containing properties of data model execution.

Returns:

  • DataModelExecution

    A DataModelExecution object with properties from transport and given client.

sync

sync()

Syncs data model execution properties with EMS.

delete

delete()

Deletes data model execution.