Skip to content

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
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.

client class-attribute

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

id class-attribute

id: str

data_model_id class-attribute

data_model_id: str

data_pool_id class-attribute

data_pool_id: str

from_transport classmethod

from_transport(
    client, data_pool_id, data_model_table_transport
)

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

update()

Pushes local changes of data model table to EMS and updates properties with response from EMS.

sync

sync()

Syncs data model table properties with EMS.

delete

delete()

Deletes data model table.

get_columns

get_columns()

Gets data model table columns of given table.

Returns:

  • typing.List[PoolColumn]

    A list of PoolColumn objects for data model table with given id.