mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-15 04:26:59 +00:00
31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
# generated by datamodel-codegen:
|
|
# filename: schema/api/services/createMessagingService.json
|
|
# timestamp: 2021-11-18T23:20:04+00:00
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Optional
|
|
|
|
from pydantic import AnyUrl, BaseModel, Field, constr
|
|
|
|
from ...entity.services import messagingService
|
|
from ...type import schedule
|
|
|
|
|
|
class CreateMessagingServiceEntityRequest(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 messaging service entity.'
|
|
)
|
|
serviceType: messagingService.MessagingServiceType
|
|
brokers: messagingService.Brokers = Field(
|
|
...,
|
|
description='Multiple bootstrap addresses for Kafka. Single proxy address for Pulsar.',
|
|
)
|
|
schemaRegistry: Optional[AnyUrl] = Field(None, description='Schema registry URL')
|
|
ingestionSchedule: Optional[schedule.Schedule] = Field(
|
|
None, description='Schedule for running metadata ingestion jobs'
|
|
)
|