Skip to content
Open
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: 1 addition & 1 deletion services/registry/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3d55d58fe8607afa4f894077e1e5c0a19ef57b3f
bead0331c9760ab4d2ff87614ae3ad156bc46758
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
Loading