aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/opensearch/v1/maintenance.proto
blob: 4833cf451317da4102e17a0d535efa99f4d7a964 (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
71
72
73
74
75
syntax = "proto3";

package yandex.cloud.mdb.opensearch.v1;

import "google/protobuf/timestamp.proto";

import "yandex/cloud/validation.proto";

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

// An OpenSearch cluster maintenance window. Should be defined by either one of the two options.
message MaintenanceWindow {
  oneof policy {
    option (exactly_one) = true;

    // An any-time maintenance window.
    AnytimeMaintenanceWindow anytime = 1;

    // A weekly maintenance window.
    WeeklyMaintenanceWindow weekly_maintenance_window = 2;
  }
}

// An any-time maintenance window.
message AnytimeMaintenanceWindow {}

// A weekly maintenance window.
message WeeklyMaintenanceWindow {
  enum WeekDay {
    WEEK_DAY_UNSPECIFIED = 0;

    // Monday
    MON = 1;

    // Tuesday
    TUE = 2;

    // Wednesday
    WED = 3;

    // Thursday
    THU = 4;

    // Friday
    FRI = 5;

    // Saturday
    SAT = 6;

    // Sunday
    SUN = 7;
  }

  // Day of the week.
  WeekDay day = 1;

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

message MaintenanceOperation {

  // The description of the operation.
  string info = 1 [(length) = "<=256"];

  // Delay time for the maintenance operation.
  google.protobuf.Timestamp delayed_until = 2;

  // Time of the last maintenance window.
  google.protobuf.Timestamp latest_maintenance_time = 3;

  // Time of the next maintenance window.
  google.protobuf.Timestamp next_maintenance_window_time = 4;
}