sdk

No menu items for this category
OpenMetadata Documentation

module patch_mixin

Mixin class containing PATCH specific methods

To be used by OpenMetadata class

Global Variables


  • OWNER_TYPES

Inplace update for the incoming column list


Inplace update for the incoming column list


OpenMetadata API methods related to Tables.

To be inherited by OpenMetadata


Given an Entity type and Source entity and Destination entity, generate a JSON Patch and apply it.

Args:

entity (T): Entity Type

source: Source payload which is current state of the source in OpenMetadata

destination: payload with changes applied to the source.

Returns:

Updated Entity


Given an AutomationWorkflow, JSON PATCH the status and response.


Given an Table , Column FQN, JSON PATCH the description of the column

Args:

src_table: origin Table object

column_fqn: FQN of the column to update

description: new description to add

force: if True, we will patch any existing description. Otherwise, we will maintain the existing data.

Returns:

Updated Entity


Will be deprecated in 1.3


Given an Entity ID, JSON PATCH the tag of the column

Args:

entity_id: ID

tag_label: TagLabel to add or remove

column_name: column to update

operation: Patch Operation to add or remove

Returns:

Updated Entity


Given an Entity type and ID, JSON PATCH the description.

Args:

entity (T): Entity Type

source: source entity object

description: new description to add

force: if True, we will patch any existing description. Otherwise, we will maintain the existing data.

Returns:

Updated Entity


Patch domain data for an Entity


Patch life cycle data for a entity

Args:

entity: Entity to update the life cycle for

life_cycle_data: Life Cycle data to add


Given an Entity type and ID, JSON PATCH the owner. If not owner Entity type and not owner ID are provided, the owner is removed.

Args:

entity (T): Entity Type of the entity to be patched

entity_id: ID of the entity to be patched

owner: Entity Reference of the owner. If None, the owner will be removed

force: if True, we will patch any existing owner. Otherwise, we will maintain the existing data.

Returns:

Updated Entity


Given an Entity ID, JSON PATCH the table constraints of table

Args:

source_table: Origin table

description: new description to add

table_constraints: table constraints to add

Returns:

Updated Entity


Will be deprecated in 1.3


Given an Entity type and ID, JSON PATCH the tag.

Args:

entity (T): Entity Type

source: Source entity object

tag_label: TagLabel to add or remove

operation: Patch Operation to add or remove the tag.

Returns:

Updated Entity


Given a test case and a test case definition JSON PATCH the test case

Args:

test_case: test case object

test_case_definition: test case definition to add