LineageNode¶
- pydantic model openapi_client.models.lineage_node.LineageNode¶
One node in LineageGraph. Built by retrieve_lineage_for_resource then enriched by add_access_indicators_to_lineage.
- Fields:
- field resource_id: Optional[StrictStr] = None (alias 'ResourceId')¶
DatasetId, JobId, or DatasourceId.
- field resource_type: Optional[StrictStr] = None (alias 'ResourceType')¶
datasets, jobs, or datasources.
- field resource_name: Optional[StrictStr] = None (alias 'ResourceName')¶
Display name from OpenLineage event (dataset name or job/datasource name).
- field metadata: Optional[Dict[str, Any]] = None (alias 'Metadata')¶
Capitalized OpenLineage facets for the resource. Empty object when AccessRestricted is true. FileDetails is removed before return.
- field event_time: Optional[StrictStr] = None (alias 'EventTime')¶
OpenLineage eventTime with T replaced by space. Omitted when AccessRestricted is true.
- field latest_run_info: Optional[Dict[str, Any]] = None (alias 'LatestRunInfo')¶
Present for jobs and datasources when a latest run event exists. Omitted when AccessRestricted is true.
- field resource_deleted: Optional[StrictBool] = None (alias 'ResourceDeleted')¶
true on historical (timestamp) views when the connected resource has a latest resource-delete event.
- field access_type: Optional[StrictStr] = None (alias 'AccessType')¶
User permission label on the resource, or null/empty when the user has no access.
- field access_restricted: Optional[StrictBool] = None (alias 'AccessRestricted')¶
true when the user has no permission on this node. Metadata is cleared; LatestRunInfo and EventTime are removed.
- field access_note: Optional[StrictStr] = None (alias 'AccessNote')¶
Present when AccessRestricted is true. Exact text: “You don’t have access to view details for this {singular resource type}” (for example dataset, job, datasource).
- field input: Optional[List[LineageEdge]] = None (alias 'Input')¶
Incoming edges for this node.
- field output: Optional[List[LineageEdge]] = None (alias 'Output')¶
Outgoing edges for this node.
- field is_outside_catalog: Optional[StrictBool] = None (alias 'IsOutsideCatalog')¶
- to_str()¶
Returns the string representation of the model using alias
- Return type:
str
- to_json()¶
Returns the JSON representation of the model using alias
- Return type:
str
- classmethod from_json(json_str)¶
Create an instance of LineageNode from a JSON string
- Return type:
Optional[Self]
- to_dict()¶
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic’s self.model_dump(by_alias=True):
None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.
- Return type:
Dict[str,Any]
- classmethod from_dict(obj)¶
Create an instance of LineageNode from a dict
- Return type:
Optional[Self]