Skip to content

Commit d0f3bb9

Browse files
Generate registry
1 parent 11cdfdc commit d0f3bb9

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

‎services/registry/oas_commit‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3d55d58fe8607afa4f894077e1e5c0a19ef57b3f
1+
581f6d34e1de11362b13f19b80815f5401236cc3

‎services/registry/src/stackit/registry/models/artifactory.py‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,26 @@ class Artifactory(BaseModel):
3737
create_time: datetime = Field(
3838
description="The date and time the creation of the STACKIT Artifactory was triggered."
3939
)
40+
error_description: Optional[StrictStr] = Field(
41+
default=None, description="Describes the reason for the error state."
42+
)
4043
id: UUID = Field(description="A auto generated unique id which identifies the STACKIT Artifactory.")
4144
name: Annotated[str, Field(strict=True, max_length=255)] = Field(
4245
description="A user chosen name to distinguish multiple STACKIT Artifactories."
4346
)
4447
proxy: Optional[Proxy] = None
4548
state: StrictStr = Field(description="The current state of the STACKIT Artifactory.")
4649
url: StrictStr = Field(description="The base URL of the STACKIT Artifactory.")
47-
__properties: ClassVar[List[str]] = ["consumed_quota_bytes", "create_time", "id", "name", "proxy", "state", "url"]
50+
__properties: ClassVar[List[str]] = [
51+
"consumed_quota_bytes",
52+
"create_time",
53+
"error_description",
54+
"id",
55+
"name",
56+
"proxy",
57+
"state",
58+
"url",
59+
]
4860

4961
@field_validator("create_time", mode="before")
5062
def create_time_change_year_zero_to_one(cls, value):
@@ -121,6 +133,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
121133
{
122134
"consumed_quota_bytes": obj.get("consumed_quota_bytes"),
123135
"create_time": obj.get("create_time"),
136+
"error_description": obj.get("error_description"),
124137
"id": obj.get("id"),
125138
"name": obj.get("name"),
126139
"proxy": Proxy.from_dict(obj["proxy"]) if obj.get("proxy") is not None else None,

0 commit comments

Comments
 (0)