sdk

No menu items for this category
OpenMetadata Documentation

module service_mixin

Helper mixin to handle services


OpenMetadata API methods related to service.

To be inherited by OpenMetadata


Create a service of type T.

We need to extract from the WorkflowSource:

  • name: serviceName
  • serviceType: Type Enum
  • connection: (DatabaseConnection, DashboardConnection...)

Args:

entity: Service Type

config: WorkflowSource

Returns:

Created Service


Prepare a CreateService request from source config

Args:

entity: Service Type

config: WorkflowSource

Returns:

CreateService request

If the OpenMetadata Connection has storeServiceConnection set to false, we won't pass the connection details when creating the service.


Fetches a service by name, or creates it using the WorkflowSource config

Args:

entity: Entity Type to get or create

config: WorkflowSource

Returns: Entity Service of T