aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/maintenance.proto
blob: 510b3cf62ba8d96db49d79cd3c04ba9fd9cf672d (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
syntax = "proto3";

package yandex.cloud.mdb.mongodb.v1;

import "google/protobuf/timestamp.proto";

import "yandex/cloud/validation.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 maintenance window settings.
message MaintenanceWindow {
  // The maintenance policy in effect.
  oneof policy {
    option (exactly_one) = true;

    // Maintenance operation can be scheduled anytime.
    AnytimeMaintenanceWindow anytime = 1;

    // Maintenance operation can be scheduled on a weekly basis.
    WeeklyMaintenanceWindow weekly_maintenance_window = 2;
  }
}

message AnytimeMaintenanceWindow {}

// Weelky maintenance window settings.
message WeeklyMaintenanceWindow {
  enum WeekDay {
    WEEK_DAY_UNSPECIFIED = 0;
    MON = 1;
    TUE = 2;
    WED = 3;
    THU = 4;
    FRI = 5;
    SAT = 6;
    SUN = 7;
  }

  // Day of the week (in `DDD` format).
  WeekDay day = 1;

  // Hour of the day in UTC (in `HH` format).
  int64 hour = 2 [(value) = "1-24"];
}

// A planned maintenance operation.
message MaintenanceOperation {
  // Information about this maintenance operation.
  string info = 1 [(length) = "<=256"];

  // Time until which this maintenance operation is delayed.
  google.protobuf.Timestamp delayed_until = 2;
}