Sriharsha Chintalapani bfec0bfbed
Ingestion: Airflow integration to ingest metadata about pipelines and tasks (#609)
* [WIP] Airlfow integration

* [WIP] Airlfow integration

* [WIP] airflow integration

* [WIP] Airflow

* [WIP] Airflow

* Fix #608: Ingestion: Airflow integration to ingest metadata about pipelines and tasks

* Fix #608: Ingestion: Airflow integration to ingest metadata about pipelines and tasks

* Update DashboardServiceResource.java

Co-authored-by: Ayush Shah <ayush@getcollate.io>
2021-09-29 11:32:09 -07:00

47 lines
1.5 KiB
Python

# generated by datamodel-codegen:
# filename: schema/entity/feed/thread.json
# timestamp: 2021-09-28T21:56:25+00:00
from __future__ import annotations
from datetime import datetime
from typing import List, Optional
from pydantic import BaseModel, Field
from ...type import basic
class Post(BaseModel):
message: str = Field(
...,
description='Message in markdown format. See markdown support for more details.',
)
postTs: Optional[datetime] = Field(None, description='Timestamp of the post.')
from_: basic.Uuid = Field(
...,
alias='from',
description='ID of User (regular user or a bot) posting the message.',
)
class Thread(BaseModel):
id: basic.Uuid = Field(
..., description='Unique identifier that identifies an entity instance.'
)
href: Optional[basic.Href] = Field(
None, description='Link to the resource corresponding to this entity.'
)
threadTs: Optional[basic.DateTime] = Field(
None, description='Timestamp of the when the first post created the thread.'
)
about: basic.EntityLink = Field(
...,
description='Data asset about which this thread is created for with format <#E/{enties}/{entityName}/{field}/{fieldValue}.',
)
addressedTo: Optional[basic.EntityLink] = Field(
None,
description='User or team this thread is addressed to in format <#E/{enties}/{entityName}/{field}/{fieldValue}.',
)
posts: List[Post]