Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connector Levels: Add new internal metadata fields #28904

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# generated by datamodel-codegen:
# filename: AirbyteInternal.yaml

from __future__ import annotations

from pydantic import BaseModel, Extra, Field
from typing_extensions import Literal


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

field_sl: Literal[100, 200, 300] = Field(..., alias="_sl")
field_ql: Literal[100, 200, 300, 400, 500, 600] = Field(..., alias="_ql")
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@
from typing_extensions import Literal


class ReleaseStage(BaseModel):
__root__: Literal["alpha", "beta", "generally_available", "custom"] = Field(
...,
description="enum that describes a connector's release stage",
title="ReleaseStage",
)


class SupportLevel(BaseModel):
__root__: Literal["community", "certified"] = Field(
...,
description="enum that describes a connector's release stage",
title="SupportLevel",
)


class AllowedHosts(BaseModel):
class Config:
extra = Extra.allow
Expand Down Expand Up @@ -92,6 +108,14 @@ class Config:
)


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

field_sl: Literal[100, 200, 300] = Field(..., alias="_sl")
field_ql: Literal[100, 200, 300, 400, 500, 600] = Field(..., alias="_ql")


class JobTypeResourceLimit(BaseModel):
class Config:
extra = Extra.forbid
Expand Down Expand Up @@ -188,7 +212,8 @@ class Config:
connectorSubtype: Literal[
"api", "database", "file", "custom", "message_queue", "unknown"
]
releaseStage: Literal["alpha", "beta", "generally_available", "source"]
releaseStage: ReleaseStage
supportLevel: Optional[SupportLevel] = None
tags: Optional[List[str]] = Field(
[],
description="An array of tags that describe the connector. E.g: language:python, keyword:rds, etc.",
Expand All @@ -199,6 +224,7 @@ class Config:
normalizationConfig: Optional[NormalizationDestinationDefinitionConfig] = None
suggestedStreams: Optional[SuggestedStreams] = None
resourceRequirements: Optional[ActorDefinitionResourceRequirements] = None
field_ab_internal: Optional[AirbyteInternal] = Field(None, alias="_ab_internal")


class ConnectorMetadataDefinitionV0(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ class ReleaseStage(BaseModel):
)


class SupportLevel(BaseModel):
__root__: Literal["community", "certified"] = Field(
...,
description="enum that describes a connector's release stage",
title="SupportLevel",
)


class ResourceRequirements(BaseModel):
class Config:
extra = Extra.forbid
Expand Down Expand Up @@ -90,6 +98,14 @@ class Config:
)


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

field_sl: Literal[100, 200, 300] = Field(..., alias="_sl")
field_ql: Literal[100, 200, 300, 400, 500, 600] = Field(..., alias="_ql")


class JobTypeResourceLimit(BaseModel):
class Config:
extra = Extra.forbid
Expand Down Expand Up @@ -154,6 +170,7 @@ class Config:
False, description="whether this is a custom connector definition"
)
releaseStage: Optional[ReleaseStage] = None
supportLevel: Optional[SupportLevel] = None
releaseDate: Optional[date] = Field(
None,
description="The date when this connector was first released, in yyyy-mm-dd format.",
Expand All @@ -173,3 +190,4 @@ class Config:
)
allowedHosts: Optional[AllowedHosts] = None
releases: Optional[ConnectorReleases] = None
field_ab_internal: Optional[AirbyteInternal] = Field(None, alias="_ab_internal")
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ class ReleaseStage(BaseModel):
)


class SupportLevel(BaseModel):
__root__: Literal["community", "certified"] = Field(
...,
description="enum that describes a connector's release stage",
title="SupportLevel",
)


class ResourceRequirements(BaseModel):
class Config:
extra = Extra.forbid
Expand Down Expand Up @@ -82,6 +90,14 @@ class Config:
)


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

field_sl: Literal[100, 200, 300] = Field(..., alias="_sl")
field_ql: Literal[100, 200, 300, 400, 500, 600] = Field(..., alias="_ql")


class JobTypeResourceLimit(BaseModel):
class Config:
extra = Extra.forbid
Expand Down Expand Up @@ -147,6 +163,7 @@ class Config:
False, description="whether this is a custom connector definition"
)
releaseStage: Optional[ReleaseStage] = None
supportLevel: Optional[SupportLevel] = None
releaseDate: Optional[date] = Field(
None,
description="The date when this connector was first released, in yyyy-mm-dd format.",
Expand All @@ -162,3 +179,4 @@ class Config:
description="Number of seconds allowed between 2 airbyte protocol messages. The source will timeout if this delay is reach",
)
releases: Optional[ConnectorReleases] = None
field_ab_internal: Optional[AirbyteInternal] = Field(None, alias="_ab_internal")
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ class ReleaseStage(BaseModel):
)


class SupportLevel(BaseModel):
__root__: Literal["community", "certified"] = Field(
...,
description="enum that describes a connector's release stage",
title="SupportLevel",
)


class ResourceRequirements(BaseModel):
class Config:
extra = Extra.forbid
Expand Down Expand Up @@ -90,6 +98,14 @@ class Config:
)


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

field_sl: Literal[100, 200, 300] = Field(..., alias="_sl")
field_ql: Literal[100, 200, 300, 400, 500, 600] = Field(..., alias="_ql")


class SuggestedStreams(BaseModel):
class Config:
extra = Extra.allow
Expand Down Expand Up @@ -165,6 +181,7 @@ class Config:
False, description="whether this is a custom connector definition"
)
releaseStage: Optional[ReleaseStage] = None
supportLevel: Optional[SupportLevel] = None
releaseDate: Optional[date] = Field(
None,
description="The date when this connector was first released, in yyyy-mm-dd format.",
Expand All @@ -180,6 +197,7 @@ class Config:
description="Number of seconds allowed between 2 airbyte protocol messages. The source will timeout if this delay is reach",
)
releases: Optional[ConnectorReleases] = None
field_ab_internal: Optional[AirbyteInternal] = Field(None, alias="_ab_internal")


class ConnectorRegistryDestinationDefinition(BaseModel):
Expand All @@ -206,6 +224,7 @@ class Config:
False, description="whether this is a custom connector definition"
)
releaseStage: Optional[ReleaseStage] = None
supportLevel: Optional[SupportLevel] = None
releaseDate: Optional[date] = Field(
None,
description="The date when this connector was first released, in yyyy-mm-dd format.",
Expand All @@ -225,6 +244,7 @@ class Config:
)
allowedHosts: Optional[AllowedHosts] = None
releases: Optional[ConnectorReleases] = None
field_ab_internal: Optional[AirbyteInternal] = Field(None, alias="_ab_internal")


class ConnectorRegistryV0(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# generated by datamodel-codegen:
# filename: SupportLevel.yaml

from __future__ import annotations

from pydantic import BaseModel, Field
from typing_extensions import Literal


class SupportLevel(BaseModel):
__root__: Literal["community", "certified"] = Field(
...,
description="enum that describes a connector's release stage",
title="SupportLevel",
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# generated by generate-python-classes
from .ActorDefinitionResourceRequirements import *
from .AirbyteInternal import *
from .AllowedHosts import *
from .ConnectorMetadataDefinitionV0 import *
from .ConnectorRegistryDestinationDefinition import *
Expand All @@ -12,3 +13,4 @@
from .ReleaseStage import *
from .ResourceRequirements import *
from .SuggestedStreams import *
from .SupportLevel import *
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
"$schema": http://json-schema.org/draft-07/schema#
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors_ci/metadata_service/lib/models/src/AirbyteInternal.yml
title: AirbyteInternal
description: Fields for internal use only
type: object
additionalProperties: false
required:
- _sl
- _ql
properties:
_sl:
type: integer
enum:
- 100
- 200
- 300
_ql:
type: integer
enum:
- 100
- 200
- 300
- 400
- 500
- 600
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,9 @@ properties:
- message_queue
- unknown
releaseStage:
type: string
enum:
- alpha
- beta
- generally_available
- source
"$ref": ReleaseStage.yaml
supportLevel:
"$ref": SupportLevel.yaml
tags:
type: array
description: "An array of tags that describe the connector. E.g: language:python, keyword:rds, etc."
Expand Down Expand Up @@ -108,3 +105,5 @@ properties:
"$ref": SuggestedStreams.yaml
resourceRequirements:
"$ref": ActorDefinitionResourceRequirements.yaml
_ab_internal:
"$ref": AirbyteInternal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ properties:
default: false
releaseStage:
"$ref": ReleaseStage.yaml
supportLevel:
"$ref": SupportLevel.yaml
releaseDate:
description: The date when this connector was first released, in yyyy-mm-dd format.
type: string
Expand All @@ -68,3 +70,5 @@ properties:
"$ref": AllowedHosts.yaml
releases:
"$ref": ConnectorReleases.yaml
_ab_internal:
"$ref": AirbyteInternal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ properties:
default: false
releaseStage:
"$ref": ReleaseStage.yaml
supportLevel:
"$ref": SupportLevel.yaml
releaseDate:
description: The date when this connector was first released, in yyyy-mm-dd format.
type: string
Expand All @@ -70,3 +72,5 @@ properties:
type: integer
releases:
"$ref": ConnectorReleases.yaml
_ab_internal:
"$ref": AirbyteInternal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"$schema": http://json-schema.org/draft-07/schema#
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors_ci/metadata_service/lib/models/src/SupportLevel.yaml
title: SupportLevel
description: enum that describes a connector's release stage
type: string
enum:
- community
- certified
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "metadata-service"
version = "0.1.0"
version = "0.1.1"
description = ""
authors = ["Ben Church <ben@airbyte.io>"]
readme = "README.md"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
metadataSpecVersion: 1.0
data:
name: AlloyDB for PostgreSQL
definitionId: 1fa90628-2b9e-11ed-a261-0242ac120002
connectorType: source
dockerRepository: airbyte/image-exists-1
githubIssueLabel: source-alloydb-strict-encrypt
dockerImageTag: 0.0.1
documentationUrl: https://docs.airbyte.com/integrations/sources/alloydb
connectorSubtype: database
releaseStage: generally_available
license: MIT
_ab_internal:
_sl: 299
_ql: 699
tags:
- language:java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadataSpecVersion: 1.0
data:
name: AlloyDB for PostgreSQL
definitionId: 1fa90628-2b9e-11ed-a261-0242ac120002
connectorType: source
dockerRepository: airbyte/image-exists-1
githubIssueLabel: source-alloydb-strict-encrypt
dockerImageTag: 0.0.1
documentationUrl: https://docs.airbyte.com/integrations/sources/alloydb
connectorSubtype: database
releaseStage: generally_available
license: MIT
_ab_internal:
_sl: 200
tags:
- language:java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
metadataSpecVersion: 1.0
data:
name: AlloyDB for PostgreSQL
definitionId: 1fa90628-2b9e-11ed-a261-0242ac120002
connectorType: source
dockerRepository: airbyte/image-exists-1
githubIssueLabel: source-alloydb-strict-encrypt
dockerImageTag: 0.0.1
documentationUrl: https://docs.airbyte.com/integrations/sources/alloydb
connectorSubtype: database
releaseStage: generally_available
supportLevel: dne
license: MIT
tags:
- language:java
Loading