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

package yandex.cloud.mdb.kafka.v1;

import "google/protobuf/timestamp.proto";

import "yandex/cloud/validation.proto";

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

message MaintenanceWindow {
  oneof policy {
    option (exactly_one) = true;
    AnytimeMaintenanceWindow anytime = 1;
    WeeklyMaintenanceWindow weekly_maintenance_window = 2;
  }
}

message AnytimeMaintenanceWindow {}

message WeeklyMaintenanceWindow {
  enum WeekDay {
    WEEK_DAY_UNSPECIFIED = 0;
    MON = 1;
    TUE = 2;
    WED = 3;
    THU = 4;
    FRI = 5;
    SAT = 6;
    SUN = 7;
  }
  WeekDay day = 1;

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

message MaintenanceOperation {
  string info = 1 [(length) = "<=256"];
  google.protobuf.Timestamp delayed_until = 2;
}