aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mysql/v1/backup.proto
blob: 0e56cd69614a383f879450633504def29854e83e (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
syntax = "proto3";

package yandex.cloud.mdb.mysql.v1;

import "yandex/cloud/validation.proto";
import "google/protobuf/timestamp.proto";

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

// An object that represents MySQL backup.
//
// See [the documentation](/docs/managed-mysql/concepts/backup) for details.
message Backup {
  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;
  }
  // ID of the backup.
  string id = 1 [(required) = true];

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

  // Creation timestamp (the time when the backup operation was completed).
  google.protobuf.Timestamp created_at = 3;

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

  // Start timestamp (the 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;

  // Status of backup
  BackupStatus status = 8;
}