aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/postgresql/v1/backup.proto
blob: 3f1ebdc07ba762968beeb7be61bdbd1136de73db (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
syntax = "proto3";

package yandex.cloud.mdb.postgresql.v1;

import "google/protobuf/timestamp.proto";

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

// A PostgreSQL Backup resource. For more information, see
// the [Developer's Guide](/docs/managed-postgresql/concepts/backup).
message Backup {
  enum BackupMethod {
    BACKUP_METHOD_UNSPECIFIED = 0;

    // Base backup
    BASE = 1;

    // Delta (incremental) PostgreSQL backup
    INCREMENTAL = 2;
  }
  enum BackupCreationType {
    BACKUP_CREATION_TYPE_UNSPECIFIED = 0;

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

    // Backup created by user request
    MANUAL = 2;
  }
  enum BackupStatus {
    BACKUP_STATUS_UNSPECIFIED = 0;

    // Backup is done
    DONE = 1;

    // Backup is creating    
    CREATING = 2;
  }
  // Required. 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 PostgreSQL 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;

  // Size of backup, in bytes
  int64 size = 6;

  // How this backup was created (manual/automatic/etc...)
  BackupCreationType type = 7;

  // Method of backup creation
  BackupMethod method = 8;

  // Size of the journal associated with backup, in bytes
  int64 journal_size = 9;

  // Status of backup
  BackupStatus status = 10;
}