Skip to content

Commit 069bbfd

Browse files
Generate serverupdate
1 parent fe1b6ed commit 069bbfd

File tree

7 files changed

+42
-11
lines changed

7 files changed

+42
-11
lines changed

services/serverupdate/oas_commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4015d2570616297d92f852b84f352e729a4370ba

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ class CreateUpdatePayload(BaseModel):
2828
""" # noqa: E501
2929

3030
backup_before_update: Optional[StrictBool] = Field(default=None, alias="backupBeforeUpdate")
31-
maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(alias="maintenanceWindow")
31+
maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(
32+
description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.",
33+
alias="maintenanceWindow",
34+
)
3235
__properties: ClassVar[List[str]] = ["backupBeforeUpdate", "maintenanceWindow"]
3336

3437
model_config = ConfigDict(

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ class CreateUpdateSchedulePayload(BaseModel):
3434
""" # noqa: E501
3535

3636
enabled: StrictBool
37-
maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(alias="maintenanceWindow")
37+
maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(
38+
description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.",
39+
alias="maintenanceWindow",
40+
)
3841
name: StrictStr
39-
rrule: StrictStr
42+
rrule: StrictStr = Field(
43+
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"
44+
)
4045
__properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule"]
4146

4247
model_config = ConfigDict(

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,16 @@ class UpdatePolicy(BaseModel):
3838
description: Optional[StrictStr] = None
3939
enabled: Optional[StrictBool] = None
4040
id: Optional[StrictStr] = None
41-
maintenance_window: Optional[StrictInt] = Field(default=None, alias="maintenanceWindow")
41+
maintenance_window: Optional[StrictInt] = Field(
42+
default=None,
43+
description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.",
44+
alias="maintenanceWindow",
45+
)
4246
name: Optional[StrictStr] = None
43-
rrule: Optional[StrictStr] = None
47+
rrule: Optional[StrictStr] = Field(
48+
default=None,
49+
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",
50+
)
4451
__properties: ClassVar[List[str]] = [
4552
"default",
4653
"description",

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,14 @@ class UpdateSchedule(BaseModel):
3535
""" # noqa: E501
3636

3737
enabled: StrictBool
38-
maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(alias="maintenanceWindow")
38+
maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(
39+
description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.",
40+
alias="maintenanceWindow",
41+
)
3942
name: StrictStr
40-
rrule: StrictStr
43+
rrule: StrictStr = Field(
44+
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"
45+
)
4146
id: StrictInt
4247
__properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule", "id"]
4348

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ class UpdateScheduleCreateRequest(BaseModel):
3434
""" # noqa: E501
3535

3636
enabled: StrictBool
37-
maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(alias="maintenanceWindow")
37+
maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(
38+
description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.",
39+
alias="maintenanceWindow",
40+
)
3841
name: StrictStr
39-
rrule: StrictStr
42+
rrule: StrictStr = Field(
43+
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"
44+
)
4045
__properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule"]
4146

4247
model_config = ConfigDict(

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ class UpdateUpdateSchedulePayload(BaseModel):
3434
""" # noqa: E501
3535

3636
enabled: StrictBool
37-
maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(alias="maintenanceWindow")
37+
maintenance_window: Annotated[int, Field(le=24, strict=True, ge=1)] = Field(
38+
description="Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.",
39+
alias="maintenanceWindow",
40+
)
3841
name: StrictStr
39-
rrule: StrictStr
42+
rrule: StrictStr = Field(
43+
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"
44+
)
4045
__properties: ClassVar[List[str]] = ["enabled", "maintenanceWindow", "name", "rrule"]
4146

4247
model_config = ConfigDict(

0 commit comments

Comments
 (0)