Skip to content

v2.1.206

Latest

Choose a tag to compare

@mittwald-machine mittwald-machine released this 23 Jul 19:38

Features

Update Schedule for Automatic Image Updates

  • Introduced an updateSchedule feature for stacks. This allows users to schedule automatic image updates by specifying a cron expression and timezone. If a user wants to remove the schedule, they can set it to null, or omit the property to keep it unchanged.

New Template Types

  • Added a new type field to the Template schema, allowing differentiation between 'component' and 'standalone' templates.

Enhancements

Documentation Updates

  • Clarification added to remarks for the declare-stack endpoint explaining which stack properties can be modified directly through this API version and which ones require separate PATCH requests.

Changes

Schema Modifications

  • The UpdateStackRequest and UpdateStackRequestBody classes now contain the updateSchedule property, allowing for the configuration of automatic updates.
  • A new class, UpdateStackRequestBodyUpdateSchedule, has been created to facilitate the handling of update schedules, including validation for cron and timezone formats.
  • The Template schema has been expanded to include a new required property type, which allows specification of the template's nature (either 'component' or 'standalone').

Class Updates

  • Methods have been added to manage the new updateSchedule property in the UpdateStackRequestBody class, including withUpdateSchedule, withoutUpdateSchedule, and getter methods.
  • The Template class has been updated to include methods for accessing the new type property, and its constructor has been modified to accept this new parameter.

New Files

  • Introduced TemplateType.php to define the enum for template types, ensuring stronger type safety and clarity in code related to templates.