blob: 3a1628de5a76bd40ef74fcb178f9c4b6b942b746 (
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
|
syntax = "proto3";
package yandex.cloud.k8s.v1;
import "google/type/dayofweek.proto";
import "google/type/timeofday.proto";
import "google/protobuf/duration.proto";
import "yandex/cloud/validation.proto";
option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1;k8s";
option java_package = "yandex.cloud.api.k8s.v1";
message MaintenanceWindow {
// Maintenance policy.
oneof policy {
option (exactly_one) = true;
// Updating the master at any time.
AnytimeMaintenanceWindow anytime = 1;
// Updating the master on any day during the specified time window.
DailyMaintenanceWindow daily_maintenance_window = 2;
// Updating the master on selected days during the specified time window.
WeeklyMaintenanceWindow weekly_maintenance_window = 3;
}
}
message AnytimeMaintenanceWindow {}
message DailyMaintenanceWindow {
// Window start time, in the UTC timezone.
google.type.TimeOfDay start_time = 1 [(required) = true];
// Window duration.
google.protobuf.Duration duration = 2 [(value) = "1h-24h"];
}
message DaysOfWeekMaintenanceWindow {
// Days of the week when automatic updates are allowed.
repeated google.type.DayOfWeek days = 1 [(size) = "1-7"];
// Window start time, in the UTC timezone.
google.type.TimeOfDay start_time = 2 [(required) = true];
// Window duration.
google.protobuf.Duration duration = 3 [(value) = "1h-24h"];
}
message WeeklyMaintenanceWindow {
// Days of the week and the maintenance window for these days when automatic updates are allowed.
repeated DaysOfWeekMaintenanceWindow days_of_week = 1 [(size) = "1-7"];
}
|