aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/backup.proto
blob: c5b045e7cc12faa69e4d8fe62963cfad3c1ce938 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
syntax = "proto3";

package yandex.cloud.mdb.mongodb.v1;

import "google/protobuf/timestamp.proto";

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

// A MongoDB Backup resource. For more information, see the 
// [Developer's Guide](/docs/managed-mongodb/concepts).
message Backup {
  enum BackupType {
      BACKUP_TYPE_UNSPECIFIED = 0;

      // Backup created by automated daily schedule
      AUTOMATED = 1;

      // Backup created by user request
      MANUAL = 2;
  }

  // ID of the backup. Required.
  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 MongoDB cluster that the backup was created for.
  string source_cluster_id = 4;

  // Time 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;

  // Size of backup in bytes
  int64 size = 7;

  // How this backup was created (manual/automatic/etc...)
  BackupType type = 8;
}