syntax = "proto3";

package yandex.cloud.mdb.redis.v1;

import "google/protobuf/timestamp.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1;redis";
option java_package = "yandex.cloud.api.mdb.redis.v1";

// Description of a Redis backup. For more information, see
// the Managed Service for Redis [documentation](/docs/managed-redis/concepts/backup).
message Backup {
  // ID of the backup.
  string id = 1;

  // ID of the folder that the backup belongs to.
  string folder_id = 2;

  // Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format
  // (i.e. when the backup operation was completed).
  google.protobuf.Timestamp created_at = 3;

  // ID of the Redis cluster that the backup was created for.
  string source_cluster_id = 4;

  // Start timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format
  // (i.e. when the backup operation was started).
  google.protobuf.Timestamp started_at = 5;

  // Shard names used as a source for backup.
  repeated string source_shard_names = 6;
}
