-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metadata-service[orchestrator]: generate connector registry with rele…
…ase candidates� (#44588)
- Loading branch information
1 parent
75cee33
commit ee698d6
Showing
25 changed files
with
1,013 additions
and
228 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
...ectors/metadata_service/lib/metadata_service/models/generated/ConnectorBreakingChanges.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# generated by datamodel-codegen: | ||
# filename: ConnectorBreakingChanges.yaml | ||
|
||
from __future__ import annotations | ||
|
||
from datetime import date | ||
from typing import Any, Dict, List, Optional | ||
|
||
from pydantic import AnyUrl, BaseModel, Extra, Field, constr | ||
|
||
|
||
class StreamBreakingChangeScope(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
scopeType: Any = Field("stream", const=True) | ||
impactedScopes: List[str] = Field(..., description="List of streams that are impacted by the breaking change.", min_items=1) | ||
|
||
|
||
class BreakingChangeScope(BaseModel): | ||
__root__: StreamBreakingChangeScope = Field(..., description="A scope that can be used to limit the impact of a breaking change.") | ||
|
||
|
||
class VersionBreakingChange(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
upgradeDeadline: date = Field(..., description="The deadline by which to upgrade before the breaking change takes effect.") | ||
message: str = Field(..., description="Descriptive message detailing the breaking change.") | ||
migrationDocumentationUrl: Optional[AnyUrl] = Field( | ||
None, | ||
description="URL to documentation on how to migrate to the current version. Defaults to ${documentationUrl}-migrations#${version}", | ||
) | ||
scopedImpact: Optional[List[BreakingChangeScope]] = Field( | ||
None, | ||
description="List of scopes that are impacted by the breaking change. If not specified, the breaking change cannot be scoped to reduce impact via the supported scope types.", | ||
min_items=1, | ||
) | ||
|
||
|
||
class ConnectorBreakingChanges(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
__root__: Dict[constr(regex=r"^\d+\.\d+\.\d+$"), VersionBreakingChange] = Field( | ||
..., | ||
description="Each entry denotes a breaking change in a specific version of a connector that requires user action to upgrade.", | ||
title="ConnectorBreakingChanges", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.