Skip to content

Commit 027ad25

Browse files
authored
feat(rdb): add possibility to update BackupSchedule next update (#1762)
1 parent dea468e commit 027ad25

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

api/rdb/v1/rdb_sdk.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,12 +773,16 @@ type AddInstanceSettingsResponse struct {
773773
Settings []*InstanceSetting `json:"settings"`
774774
}
775775

776+
// BackupSchedule: backup schedule.
776777
type BackupSchedule struct {
778+
// Frequency: frequency of the backup schedule (in hours).
777779
Frequency uint32 `json:"frequency"`
778-
780+
// Retention: default retention period of backups (in days).
779781
Retention uint32 `json:"retention"`
780-
782+
// Disabled: defines whether the backup schedule feature is disabled.
781783
Disabled bool `json:"disabled"`
784+
// NextRunAt: next run of the backup schedule (accurate to 10 minutes).
785+
NextRunAt *time.Time `json:"next_run_at"`
782786
}
783787

784788
// Database: database.
@@ -2057,6 +2061,8 @@ type UpdateInstanceRequest struct {
20572061
LogsPolicy *LogsPolicy `json:"logs_policy"`
20582062
// BackupSameRegion: store logical backups in the same region as the Database Instance.
20592063
BackupSameRegion *bool `json:"backup_same_region"`
2064+
// BackupScheduleStartHour: defines the start time of the autobackup.
2065+
BackupScheduleStartHour *uint32 `json:"backup_schedule_start_hour"`
20602066
}
20612067

20622068
// UpdateInstance: update a Database Instance.

0 commit comments

Comments
 (0)