diff options
author | iddqd <iddqd@yandex-team.com> | 2024-06-11 10:12:13 +0300 |
---|---|---|
committer | iddqd <iddqd@yandex-team.com> | 2024-06-11 10:22:43 +0300 |
commit | 07f57e35443ab7f09471caf2dbf1afbcced4d9f7 (patch) | |
tree | a4a7b66ead62e83fa988a2ec2ce6576311c1f4b1 /contrib/libs/yandex-cloud-api-protos/yandex/cloud/k8s/v1/maintenance.proto | |
parent | 6db3b8ca95e44179e48306a58656fb1f9317d9c3 (diff) | |
download | ydb-07f57e35443ab7f09471caf2dbf1afbcced4d9f7.tar.gz |
add contrib/python/yandexcloud to import
03b7d3cad2237366b55b393e18d4dc5eb222798c
Diffstat (limited to 'contrib/libs/yandex-cloud-api-protos/yandex/cloud/k8s/v1/maintenance.proto')
-rw-r--r-- | contrib/libs/yandex-cloud-api-protos/yandex/cloud/k8s/v1/maintenance.proto | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/k8s/v1/maintenance.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/k8s/v1/maintenance.proto new file mode 100644 index 0000000000..3a1628de5a --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/k8s/v1/maintenance.proto @@ -0,0 +1,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"]; +} |