Sriharsha Chintalapani eea60a8696
Fix #1264: Pipelines: remove 64 character constraint in names (#1265)
* Fix #1264: Pipelines: remove 64 character constraint in names
2021-11-18 16:27:43 -08:00

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'
)