From 2ad5027e637292e8d6a2f6354c64269341041357 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 9 Feb 2026 10:59:44 +0000 Subject: [PATCH] Generate serverupdate --- services/serverupdate/oas_commit | 1 + .../serverupdate/models/create_update_payload.py | 5 ++++- .../models/create_update_schedule_payload.py | 9 +++++++-- .../src/stackit/serverupdate/models/update_policy.py | 11 +++++++++-- .../stackit/serverupdate/models/update_schedule.py | 9 +++++++-- .../models/update_schedule_create_request.py | 9 +++++++-- .../models/update_update_schedule_payload.py | 9 +++++++-- 7 files changed, 42 insertions(+), 11 deletions(-) create mode 100644 services/serverupdate/oas_commit diff --git a/services/serverupdate/oas_commit b/services/serverupdate/oas_commit new file mode 100644 index 000000000..d00550170 --- /dev/null +++ b/services/serverupdate/oas_commit @@ -0,0 +1 @@ +8ade5177db91309b23b76ef10b8e3ad33a7bf967 diff --git a/services/serverupdate/src/stackit/serverupdate/models/create_update_payload.py b/services/serverupdate/src/stackit/serverupdate/models/create_update_payload.py index 7a5ef8b25..011869f9c 100644 --- a/services/serverupdate/src/stackit/serverupdate/models/create_update_payload.py +++ b/services/serverupdate/src/stackit/serverupdate/models/create_update_payload.py @@ -28,7 +28,10 @@ class CreateUpdatePayload(BaseModel): """ # noqa: E501 backup_before_update: Optional[StrictBool] = Field(default=None, alias="backupBeforeUpdate") - maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(alias="maintenanceWindow") + maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field( + description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.", + alias="maintenanceWindow", + ) __properties: ClassVar[List[str]] = ["backupBeforeUpdate", "maintenanceWindow"] model_config = ConfigDict( diff --git a/services/serverupdate/src/stackit/serverupdate/models/create_update_schedule_payload.py b/services/serverupdate/src/stackit/serverupdate/models/create_update_schedule_payload.py index d906342e5..64f4651c2 100644 --- a/services/serverupdate/src/stackit/serverupdate/models/create_update_schedule_payload.py +++ b/services/serverupdate/src/stackit/serverupdate/models/create_update_schedule_payload.py @@ -34,9 +34,14 @@ class CreateUpdateSchedulePayload(BaseModel): """ # noqa: E501 enabled: StrictBool - maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(alias="maintenanceWindow") + maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field( + description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.", + alias="maintenanceWindow", + ) name: StrictStr - rrule: StrictStr + rrule: StrictStr = Field( + description="An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates" + ) __properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule"] model_config = ConfigDict( diff --git a/services/serverupdate/src/stackit/serverupdate/models/update_policy.py b/services/serverupdate/src/stackit/serverupdate/models/update_policy.py index d8ba38206..75d93d2a5 100644 --- a/services/serverupdate/src/stackit/serverupdate/models/update_policy.py +++ b/services/serverupdate/src/stackit/serverupdate/models/update_policy.py @@ -38,9 +38,16 @@ class UpdatePolicy(BaseModel): description: Optional[StrictStr] = None enabled: Optional[StrictBool] = None id: Optional[StrictStr] = None - maintenance_window: Optional[StrictInt] = Field(default=None, alias="maintenanceWindow") + maintenance_window: Optional[StrictInt] = Field( + default=None, + description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.", + alias="maintenanceWindow", + ) name: Optional[StrictStr] = None - rrule: Optional[StrictStr] = None + rrule: Optional[StrictStr] = Field( + default=None, + description="An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates", + ) __properties: ClassVar[List[str]] = [ "default", "description", diff --git a/services/serverupdate/src/stackit/serverupdate/models/update_schedule.py b/services/serverupdate/src/stackit/serverupdate/models/update_schedule.py index a70b6cb47..19632b3d3 100644 --- a/services/serverupdate/src/stackit/serverupdate/models/update_schedule.py +++ b/services/serverupdate/src/stackit/serverupdate/models/update_schedule.py @@ -35,9 +35,14 @@ class UpdateSchedule(BaseModel): """ # noqa: E501 enabled: StrictBool - maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(alias="maintenanceWindow") + maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field( + description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.", + alias="maintenanceWindow", + ) name: StrictStr - rrule: StrictStr + rrule: StrictStr = Field( + description="An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates" + ) id: StrictInt __properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule", "id"] diff --git a/services/serverupdate/src/stackit/serverupdate/models/update_schedule_create_request.py b/services/serverupdate/src/stackit/serverupdate/models/update_schedule_create_request.py index 5235af50d..bafba1111 100644 --- a/services/serverupdate/src/stackit/serverupdate/models/update_schedule_create_request.py +++ b/services/serverupdate/src/stackit/serverupdate/models/update_schedule_create_request.py @@ -34,9 +34,14 @@ class UpdateScheduleCreateRequest(BaseModel): """ # noqa: E501 enabled: StrictBool - maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(alias="maintenanceWindow") + maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field( + description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.", + alias="maintenanceWindow", + ) name: StrictStr - rrule: StrictStr + rrule: StrictStr = Field( + description="An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates" + ) __properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule"] model_config = ConfigDict( diff --git a/services/serverupdate/src/stackit/serverupdate/models/update_update_schedule_payload.py b/services/serverupdate/src/stackit/serverupdate/models/update_update_schedule_payload.py index c05dedd3e..1c6f00a76 100644 --- a/services/serverupdate/src/stackit/serverupdate/models/update_update_schedule_payload.py +++ b/services/serverupdate/src/stackit/serverupdate/models/update_update_schedule_payload.py @@ -34,9 +34,14 @@ class UpdateUpdateSchedulePayload(BaseModel): """ # noqa: E501 enabled: StrictBool - maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(alias="maintenanceWindow") + maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field( + description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.", + alias="maintenanceWindow", + ) name: StrictStr - rrule: StrictStr + rrule: StrictStr = Field( + description="An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates" + ) __properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule"] model_config = ConfigDict(