Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/clients/src/api/rdb/v1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,4 @@ export type {
Volume,
VolumeType,
} from './types.gen'
export * as ValidationRules from './validation-rules.gen'
2 changes: 2 additions & 0 deletions packages/clients/src/api/rdb/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ const unmarshalBackupSchedule = (data: unknown) => {
return {
disabled: data.disabled,
frequency: data.frequency,
nextRunAt: unmarshalDate(data.next_run_at),
retention: data.retention,
} as BackupSchedule
}
Expand Down Expand Up @@ -1145,6 +1146,7 @@ export const marshalUpdateInstanceRequest = (
backup_same_region: request.backupSameRegion,
backup_schedule_frequency: request.backupScheduleFrequency,
backup_schedule_retention: request.backupScheduleRetention,
backup_schedule_start_hour: request.backupScheduleStartHour,
is_backup_schedule_disabled: request.isBackupScheduleDisabled,
logs_policy: request.logsPolicy
? marshalLogsPolicy(request.logsPolicy, defaults)
Expand Down
8 changes: 8 additions & 0 deletions packages/clients/src/api/rdb/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,16 @@ export interface AddInstanceSettingsResponse {
settings: InstanceSetting[]
}

/** Backup schedule. */
export interface BackupSchedule {
/** Frequency of the backup schedule (in hours). */
frequency: number
/** Default retention period of backups (in days). */
retention: number
/** Defines whether the backup schedule feature is disabled. */
disabled: boolean
/** Next run of the backup schedule (accurate to 10 minutes). */
nextRunAt?: Date
}

/** Database. */
Expand Down Expand Up @@ -1037,6 +1043,8 @@ export type UpdateInstanceRequest = {
logsPolicy?: LogsPolicy
/** Store logical backups in the same region as the Database Instance. */
backupSameRegion?: boolean
/** Defines the start time of the autobackup. */
backupScheduleStartHour?: number
}

export type DeleteInstanceRequest = {
Expand Down
8 changes: 8 additions & 0 deletions packages/clients/src/api/rdb/v1/validation-rules.gen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.

export const UpdateInstanceRequest = {
backupScheduleStartHour: {
lessThanOrEqual: 23,
},
}