# generated by datamodel-codegen:
#   filename:  schema/entity/services/connections/pipeline/airbyteConnection.json
#   timestamp: 2022-08-23T15:52:10+00:00

from __future__ import annotations

from enum import Enum
from typing import Optional

from pydantic import AnyUrl, BaseModel, Extra, Field

from .. import connectionBasicType


class AirbyteType(Enum):
    Airbyte = 'Airbyte'


class AirbyteConnection(BaseModel):
    class Config:
        extra = Extra.forbid

    type: Optional[AirbyteType] = Field(
        AirbyteType.Airbyte, description='Service Type', title='Service Type'
    )
    hostPort: AnyUrl = Field(..., description='Pipeline Service Management/UI URL.')
    supportsMetadataExtraction: Optional[
        connectionBasicType.SupportsMetadataExtraction
    ] = Field(None, title='Supports Metadata Extraction')
