@@ -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].
0 commit comments