data_model_table
Module to interact with data model tables.
This module contains class to interact with a data model tables in EMS data integration.
Typical usage example:
```python
data_model_table = data_model.add_table("TEST_TABLE", alias="TEST_TABLE_ALIAS")
data_model_table.alias = "NEW_ALIAS"
data_model_table.update()
data_model_table.reload()
data_model_table.delete()
```
DataModelTable ¶
Bases: DataModelTableTransport
Data model table object to interact with data model table specific data integration endpoints.
use_direct_storage
class-attribute
instance-attribute
¶
data_model_id
instance-attribute
¶
Id of data model where data model table is located.
data_source_id
instance-attribute
¶
Id of data source where data model table is located.
from_transport
classmethod
¶
Creates high-level data model table object from given DataModelTableTransport.
Parameters:
-
client
(Client
) –Client to use to make API calls for given data model table.
-
data_pool_id
(str
) –Id of data pool where table is located
-
data_model_table_transport
(DataModelTableTransport
) –DataModelTableTransport object containing properties of data model table.
Returns:
-
DataModelTable
–A DataModelTableTransport object with properties from transport and given client.
update ¶
Pushes local changes of data model table to EMS and updates properties with response from EMS.
get_columns ¶
Gets data model table columns of given table.
Returns:
-
CelonisCollection[DataModelTableColumn]
–A list of DataModelTableColumn objects for data model table with given id.