Skip to content

Commit e071454

Browse files
Generator: Update SDK /services/serverupdate (#475)
* Generate serverupdate * Update changelog --------- Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
1 parent 913c8c0 commit e071454

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

services/serverupdate/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v0.1.1 (2024-12-23)
2+
3+
- **Bugfix:** `Id` field of `Update` model is now of type `int64` (was `string`)
4+
15
## v0.1.0 (2024-12-04)
26

37
- Manage your STACKIT Server Updates

services/serverupdate/src/stackit/serverupdate/models/update.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ class Update(BaseModel):
2727
Update
2828
"""
2929

30-
end_date: StrictStr = Field(alias="endDate")
30+
end_date: Optional[StrictStr] = Field(default=None, alias="endDate")
3131
fail_reason: Optional[StrictStr] = Field(default=None, alias="failReason")
3232
failed_updates: Optional[StrictInt] = Field(default=None, alias="failedUpdates")
33-
id: StrictStr
33+
id: StrictInt
3434
installed_updates: Optional[StrictInt] = Field(default=None, alias="installedUpdates")
35-
os_server_id: StrictStr = Field(alias="osServerId")
3635
start_date: StrictStr = Field(alias="startDate")
3736
status: StrictStr
3837
__properties: ClassVar[List[str]] = [
@@ -41,7 +40,6 @@ class Update(BaseModel):
4140
"failedUpdates",
4241
"id",
4342
"installedUpdates",
44-
"osServerId",
4543
"startDate",
4644
"status",
4745
]
@@ -101,7 +99,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
10199
"failedUpdates": obj.get("failedUpdates"),
102100
"id": obj.get("id"),
103101
"installedUpdates": obj.get("installedUpdates"),
104-
"osServerId": obj.get("osServerId"),
105102
"startDate": obj.get("startDate"),
106103
"status": obj.get("status"),
107104
}

0 commit comments

Comments
 (0)