mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-18 20:03:46 +00:00
* First approach * Test model * Validate endpoints * Update schema codegen * Prepare reqs dev * Rename titles and codegen * Update README * Keep lineage title as addLineage * Update pydantic classes * Update API wrapper & tests * Handle services methods * Prepare tests
29 lines
899 B
Python
29 lines
899 B
Python
# generated by datamodel-codegen:
|
|
# filename: schema/api/data/createDatabase.json
|
|
# timestamp: 2021-10-21T16:10:22+00:00
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
from ...entity.data import database
|
|
from ...type import entityReference
|
|
|
|
|
|
class CreateDatabaseEntityRequest(BaseModel):
|
|
name: database.DatabaseName = Field(
|
|
..., description='Name that identifies this database instance uniquely.'
|
|
)
|
|
description: Optional[str] = Field(
|
|
None,
|
|
description='Description of the database instance. What it has and how to use it.',
|
|
)
|
|
owner: Optional[entityReference.EntityReference] = Field(
|
|
None, description='Owner of this database'
|
|
)
|
|
service: entityReference.EntityReference = Field(
|
|
..., description='Link to the database service where this database is hosted in'
|
|
)
|