Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit 3fe6859

Browse files
gcf-owl-bot[bot]Benjamin E. Coe
andauthored
feat: Add automated RDB (AKA persistence) (#544)
PiperOrigin-RevId: 424884640 Source-Link: googleapis/googleapis@28c6bb9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ea1c8b2a6449cc39d2cbccfa3c725fba470bd941 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWExYzhiMmE2NDQ5Y2MzOWQyY2JjY2ZhM2M3MjVmYmE0NzBiZDk0MSJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Benjamin E. Coe <[email protected]>
1 parent c45978b commit 3fe6859

4 files changed

Lines changed: 620 additions & 0 deletions

File tree

protos/google/cloud/redis/v1beta1/cloud_redis.proto

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,63 @@ message Instance {
482482
// Optional. Read replica mode. Can only be specified when trying to create the
483483
// instance.
484484
ReadReplicasMode read_replicas_mode = 35 [(google.api.field_behavior) = OPTIONAL];
485+
486+
// Optional. Persistence configuration parameters
487+
PersistenceConfig persistence_config = 37 [(google.api.field_behavior) = OPTIONAL];
488+
}
489+
490+
// Configuration of the persistence functionality.
491+
message PersistenceConfig {
492+
// Available Persistence modes.
493+
enum PersistenceMode {
494+
// Not set.
495+
PERSISTENCE_MODE_UNSPECIFIED = 0;
496+
497+
// Persistence is disabled for the instance,
498+
// and any existing snapshots are deleted.
499+
DISABLED = 1;
500+
501+
// RDB based Persistence is enabled.
502+
RDB = 2;
503+
}
504+
505+
// Available snapshot periods for scheduling.
506+
enum SnapshotPeriod {
507+
// Not set.
508+
SNAPSHOT_PERIOD_UNSPECIFIED = 0;
509+
510+
// Snapshot every 1 hour.
511+
ONE_HOUR = 3;
512+
513+
// Snapshot every 6 hours.
514+
SIX_HOURS = 4;
515+
516+
// Snapshot every 12 hours.
517+
TWELVE_HOURS = 5;
518+
519+
// Snapshot every 24 hours.
520+
TWENTY_FOUR_HOURS = 6;
521+
}
522+
523+
// Optional. Controls whether Persistence features are enabled.
524+
// If not provided, the existing value will be used.
525+
PersistenceMode persistence_mode = 1 [(google.api.field_behavior) = OPTIONAL];
526+
527+
// Optional. Period between RDB snapshots. Snapshots will be attempted every period
528+
// starting from the provided snapshot start time. For example, a start time
529+
// of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until
530+
// 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45,
531+
// and 00:45 the next day, and so on.
532+
// If not provided, TWENTY_FOUR_HOURS will be used as default.
533+
SnapshotPeriod rdb_snapshot_period = 2 [(google.api.field_behavior) = OPTIONAL];
534+
535+
// Output only. The next time that a snapshot attempt is scheduled to occur.
536+
google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
537+
538+
// Optional. Date and time that the first snapshot was/will be attempted, and to which
539+
// future snapshots will be aligned.
540+
// If not provided, the current time will be used.
541+
google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(google.api.field_behavior) = OPTIONAL];
485542
}
486543

487544
// Request for [RescheduleMaintenance][google.cloud.redis.v1beta1.CloudRedis.RescheduleMaintenance].

protos/protos.d.ts

Lines changed: 133 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)