foreign_key
Module to interact with foreign keys.
This module contains class to interact with a foreign key in EMS data integration.
Typical usage example
ForeignKey ¶
Bases: DataModelForeignKeyTransport
Foreign key object to interact with foreign key specific data integration endpoints.
source_table_id
class-attribute
¶
Id of source data model table.
target_table_id
class-attribute
¶
Id of target data model table.
columns
class-attribute
¶
Columns of foreign key.
from_transport
classmethod
¶
Creates high-level foreign key object from given DataModelForeignKeyTransport.
Parameters:
-
client
(
Client
) –Client to use to make API calls for given foreign key.
-
data_pool_id
(
str
) –Id of data pool where table is located
-
foreign_key_transport
(
DataModelForeignKeyTransport
) –DataModelForeignKeyTransport object containing properties of foreign key.
Returns:
-
ForeignKey
–A ForeignKey object with properties from transport and given client.
update ¶
Pushes local changes of foreign key to EMS and updates properties with response from EMS.