Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@
- **Chore:** Support Python version 3.15
- **Chore:** Update dependencies
- `registry`:
- [v0.3.0](services/registry/CHANGELOG.md#v030)
- **Feature:** Add `error_description` field to `Artifactory` model which describes the reason for the error state
- [v0.2.0](services/registry/CHANGELOG.md#v020)
- **Chore:** Bump minimum Python version to 3.11
- **Chore:** Support Python version 3.15
Expand Down
3 changes: 3 additions & 0 deletions services/registry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.3.0
- **Feature:** Add `error_description` field to `Artifactory` model which describes the reason for the error state

## v0.2.0
- **Chore:** Bump minimum Python version to 3.11
- **Chore:** Support Python version 3.15
Expand Down
2 changes: 1 addition & 1 deletion services/registry/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3d55d58fe8607afa4f894077e1e5c0a19ef57b3f
d3f51a99ec81d4226be8c6d4826ed2547014edb0
2 changes: 1 addition & 1 deletion services/registry/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "stackit-registry"
version = "v0.2.0"
version = "v0.3.0"
description = "STACKIT Container Registry API"
authors = [{name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud"}]
requires-python = ">=3.11,<4.0"
Expand Down
15 changes: 14 additions & 1 deletion services/registry/src/stackit/registry/models/artifactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,26 @@ class Artifactory(BaseModel):
create_time: datetime = Field(
description="The date and time the creation of the STACKIT Artifactory was triggered."
)
error_description: Optional[StrictStr] = Field(
default=None, description="Describes the reason for the error state."
)
id: UUID = Field(description="A auto generated unique id which identifies the STACKIT Artifactory.")
name: Annotated[str, Field(strict=True, max_length=255)] = Field(
description="A user chosen name to distinguish multiple STACKIT Artifactories."
)
proxy: Optional[Proxy] = None
state: StrictStr = Field(description="The current state of the STACKIT Artifactory.")
url: StrictStr = Field(description="The base URL of the STACKIT Artifactory.")
__properties: ClassVar[List[str]] = ["consumed_quota_bytes", "create_time", "id", "name", "proxy", "state", "url"]
__properties: ClassVar[List[str]] = [
"consumed_quota_bytes",
"create_time",
"error_description",
"id",
"name",
"proxy",
"state",
"url",
]

@field_validator("create_time", mode="before")
def create_time_change_year_zero_to_one(cls, value):
Expand Down Expand Up @@ -121,6 +133,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
{
"consumed_quota_bytes": obj.get("consumed_quota_bytes"),
"create_time": obj.get("create_time"),
"error_description": obj.get("error_description"),
"id": obj.get("id"),
"name": obj.get("name"),
"proxy": Proxy.from_dict(obj["proxy"]) if obj.get("proxy") is not None else None,
Expand Down
2 changes: 1 addition & 1 deletion services/registry/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading