27 lines
872 B
Python
Raw Normal View History

2021-08-01 14:27:44 -07:00
# generated by datamodel-codegen:
# filename: schema/api/services/createDatabaseService.json
2021-11-16 01:02:45 -08:00
# timestamp: 2021-11-16T07:44:38+00:00
2021-08-01 14:27:44 -07:00
from __future__ import annotations
2021-08-01 14:27:44 -07:00
from typing import Optional
2021-08-01 14:27:44 -07:00
from pydantic import BaseModel, Field, constr
from ...entity.services import databaseService
from ...type import jdbcConnection, schedule
2021-08-01 14:27:44 -07:00
class CreateDatabaseServiceEntityRequest(BaseModel):
name: constr(min_length=1, max_length=64) = Field(
..., description='Name that identifies the this entity instance uniquely'
)
description: Optional[str] = Field(
None, description='Description of Database entity.'
)
serviceType: databaseService.DatabaseServiceType
jdbc: jdbcConnection.JdbcInfo
2021-08-21 17:52:24 -07:00
ingestionSchedule: Optional[schedule.Schedule] = Field(
None, description='Schedule for running metadata ingestion jobs'
)