diff --git a/api/mongodb/v1alpha1/mongodb_sdk.go b/api/mongodb/v1alpha1/mongodb_sdk.go index 545611591..0fd3813cc 100644 --- a/api/mongodb/v1alpha1/mongodb_sdk.go +++ b/api/mongodb/v1alpha1/mongodb_sdk.go @@ -478,6 +478,19 @@ type InstanceSetting struct { Value string `json:"value"` } +// InstanceSnapshotSchedule: instance snapshot schedule. +type InstanceSnapshotSchedule struct { + FrequencyHours int32 `json:"frequency_hours"` + + RetentionDays int32 `json:"retention_days"` + + Enabled bool `json:"enabled"` + + NextUpdate *time.Time `json:"next_update"` + + LastRun *time.Time `json:"last_run"` +} + // Volume: volume. type Volume struct { // Type: type of volume where data is stored. @@ -623,6 +636,9 @@ type Instance struct { // CreatedAt: creation date (must follow the ISO 8601 format). CreatedAt *time.Time `json:"created_at"` + // SnapshotSchedule: snapshot schedule configuration of the Database Instance. + SnapshotSchedule *InstanceSnapshotSchedule `json:"snapshot_schedule"` + // Region: region the Database Instance is in. Region scw.Region `json:"region"` }