module patch_mixin
Mixin class containing PATCH specific methods
To be used by OpenMetadata class
Global Variables
- OWNER_TYPES
function update_column_tags
function update_column_description
class OMetaPatchMixin
OpenMetadata API methods related to Tables.
To be inherited by OpenMetadata
method patch
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
method patch_automation_workflow_response
method patch_column_description
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
method patch_column_tag
method patch_column_tags
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
method patch_description
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
method patch_domain
method patch_life_cycle
entity: Entity to update the life cycle for
life_cycle_data: Life Cycle data to add
method patch_owner
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
method patch_table_constraints
source_table: Origin table
description: new description to add
table_constraints: table constraints to add
Returns:
Updated Entity
method patch_tag
method patch_tags
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
method patch_test_case_definition
test_case: test case object
test_case_definition: test case definition to add