# -*- coding: utf-8 -*-
# flake8: noqa
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: draft/protos/ydb_maintenance.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from ydb._grpc.v4.protos.annotations import validation_pb2 as protos_dot_annotations_dot_validation__pb2
from ydb._grpc.v4.protos import ydb_status_codes_pb2 as protos_dot_ydb__status__codes__pb2
from ydb._grpc.v4.protos import ydb_discovery_pb2 as protos_dot_ydb__discovery__pb2
from ydb._grpc.v4.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"draft/protos/ydb_maintenance.proto\x12\x0fYdb.Maintenance\x1a#protos/annotations/validation.proto\x1a\x1dprotos/ydb_status_codes.proto\x1a\x1aprotos/ydb_discovery.proto\x1a\x1aprotos/ydb_operation.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xaf\x02\n\x04Node\x12\x0f\n\x07node_id\x18\x01 \x01(\r\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\r\x12-\n\x08location\x18\x04 \x01(\x0b\x32\x1b.Ydb.Discovery.NodeLocation\x12)\n\x05state\x18\x05 \x01(\x0e\x32\x1a.Ydb.Maintenance.ItemState\x12\x34\n\x07storage\x18\x06 \x01(\x0b\x32!.Ydb.Maintenance.Node.StorageNodeH\x00\x12\x34\n\x07\x64ynamic\x18\x07 \x01(\x0b\x32!.Ydb.Maintenance.Node.DynamicNodeH\x00\x1a\r\n\x0bStorageNode\x1a\x1d\n\x0b\x44ynamicNode\x12\x0e\n\x06tenant\x18\x01 \x01(\tB\x06\n\x04type\"T\n\x17ListClusterNodesRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\">\n\x16ListClusterNodesResult\x12$\n\x05nodes\x18\x01 \x03(\x0b\x32\x15.Ydb.Maintenance.Node\"H\n\x18ListClusterNodesResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xa0\x01\n\x16MaintenanceTaskOptions\x12\x19\n\x08task_uid\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12\x1c\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12<\n\x11\x61vailability_mode\x18\x03 \x01(\x0e\x32!.Ydb.Maintenance.AvailabilityMode\x12\x0f\n\x07\x64ry_run\x18\x04 \x01(\x08\"B\n\x0b\x41\x63tionScope\x12\x11\n\x07node_id\x18\x01 \x01(\rH\x00\x12\x17\n\x04host\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\xff\x01H\x00\x42\x07\n\x05scope\"f\n\nLockAction\x12+\n\x05scope\x18\x01 \x01(\x0b\x32\x1c.Ydb.Maintenance.ActionScope\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"F\n\x06\x41\x63tion\x12\x32\n\x0block_action\x18\x01 \x01(\x0b\x32\x1b.Ydb.Maintenance.LockActionH\x00\x42\x08\n\x06\x61\x63tion\"?\n\x0b\x41\x63tionGroup\x12\x30\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32\x17.Ydb.Maintenance.ActionB\x06\x9a\xe6*\x02(\x01\"\xd5\x01\n\x1c\x43reateMaintenanceTaskRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12=\n\x0ctask_options\x18\x02 \x01(\x0b\x32\'.Ydb.Maintenance.MaintenanceTaskOptions\x12;\n\raction_groups\x18\x03 \x03(\x0b\x32\x1c.Ydb.Maintenance.ActionGroupB\x06\x9a\xe6*\x02(\x01\"u\n\x1dRefreshMaintenanceTaskRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x19\n\x08task_uid\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\"]\n\tActionUid\x12\x19\n\x08task_uid\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12\x19\n\x08group_id\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12\x1a\n\taction_id\x18\x03 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\"\xdc\x05\n\x0b\x41\x63tionState\x12\'\n\x06\x61\x63tion\x18\x01 \x01(\x0b\x32\x17.Ydb.Maintenance.Action\x12.\n\naction_uid\x18\x02 \x01(\x0b\x32\x1a.Ydb.Maintenance.ActionUid\x12\x39\n\x06status\x18\x03 \x01(\x0e\x32).Ydb.Maintenance.ActionState.ActionStatus\x12\x39\n\x06reason\x18\x04 \x01(\x0e\x32).Ydb.Maintenance.ActionState.ActionReason\x12,\n\x08\x64\x65\x61\x64line\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"e\n\x0c\x41\x63tionStatus\x12\x1d\n\x19\x41\x43TION_STATUS_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41\x43TION_STATUS_PENDING\x10\x01\x12\x1b\n\x17\x41\x43TION_STATUS_PERFORMED\x10\x02\"\xe8\x02\n\x0c\x41\x63tionReason\x12\x1d\n\x19\x41\x43TION_REASON_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41\x43TION_REASON_OK\x10\x01\x12-\n)ACTION_REASON_TOO_MANY_UNAVAILABLE_VDISKS\x10\x02\x12:\n6ACTION_REASON_TOO_MANY_UNAVAILABLE_STATE_STORAGE_RINGS\x10\x03\x12.\n*ACTION_REASON_DISABLED_NODES_LIMIT_REACHED\x10\x04\x12\x35\n1ACTION_REASON_TENANT_DISABLED_NODES_LIMIT_REACHED\x10\x05\x12\x1f\n\x1b\x41\x43TION_REASON_WRONG_REQUEST\x10\x06\x12\x30\n,ACTION_REASON_SYS_TABLETS_NODE_LIMIT_REACHED\x10\x07\"H\n\x11\x41\x63tionGroupStates\x12\x33\n\raction_states\x18\x01 \x03(\x0b\x32\x1c.Ydb.Maintenance.ActionState\"\xb0\x01\n\x15MaintenanceTaskResult\x12\x10\n\x08task_uid\x18\x01 \x01(\t\x12?\n\x13\x61\x63tion_group_states\x18\x02 \x03(\x0b\x32\".Ydb.Maintenance.ActionGroupStates\x12\x34\n\x0bretry_after\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x42\x0e\n\x0c_retry_after\"G\n\x17MaintenanceTaskResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"q\n\x19GetMaintenanceTaskRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x19\n\x08task_uid\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\"\x9a\x01\n\x18GetMaintenanceTaskResult\x12=\n\x0ctask_options\x18\x01 \x01(\x0b\x32\'.Ydb.Maintenance.MaintenanceTaskOptions\x12?\n\x13\x61\x63tion_group_states\x18\x02 \x03(\x0b\x32\".Ydb.Maintenance.ActionGroupStates\"J\n\x1aGetMaintenanceTaskResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"t\n\x1bListMaintenanceTasksRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x11\n\x04user\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x07\n\x05_user\"0\n\x1aListMaintenanceTasksResult\x12\x12\n\ntasks_uids\x18\x01 \x03(\t\"L\n\x1cListMaintenanceTasksResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"r\n\x1a\x44ropMaintenanceTaskRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x19\n\x08task_uid\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\"M\n\x1dManageMaintenanceTaskResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x8b\x01\n\x15\x43ompleteActionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x37\n\x0b\x61\x63tion_uids\x18\x02 \x03(\x0b\x32\x1a.Ydb.Maintenance.ActionUidB\x06\x9a\xe6*\x02(\x01\"\xbe\x01\n\x12ManageActionResult\x12\x43\n\x0f\x61\x63tion_statuses\x18\x01 \x03(\x0b\x32*.Ydb.Maintenance.ManageActionResult.Status\x1a\x63\n\x06Status\x12.\n\naction_uid\x18\x01 \x01(\x0b\x32\x1a.Ydb.Maintenance.ActionUid\x12)\n\x06status\x18\x02 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\"D\n\x14ManageActionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation*k\n\tItemState\x12\x1a\n\x16ITEM_STATE_UNSPECIFIED\x10\x00\x12\x11\n\rITEM_STATE_UP\x10\x01\x12\x1a\n\x16ITEM_STATE_MAINTENANCE\x10\x02\x12\x13\n\x0fITEM_STATE_DOWN\x10\x03*\x8c\x01\n\x10\x41vailabilityMode\x12!\n\x1d\x41VAILABILITY_MODE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41VAILABILITY_MODE_STRONG\x10\x01\x12\x1a\n\x16\x41VAILABILITY_MODE_WEAK\x10\x02\x12\x1b\n\x17\x41VAILABILITY_MODE_FORCE\x10\x03\x42n\n#tech.ydb.proto.draft.maintenance.v1ZDgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_Maintenance\xf8\x01\x01\x62\x06proto3')

_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.protos.ydb_maintenance_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'\n#tech.ydb.proto.draft.maintenance.v1ZDgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_Maintenance\370\001\001'
  _MAINTENANCETASKOPTIONS.fields_by_name['task_uid']._options = None
  _MAINTENANCETASKOPTIONS.fields_by_name['task_uid']._serialized_options = b'\242\346*\003\030\200\001'
  _MAINTENANCETASKOPTIONS.fields_by_name['description']._options = None
  _MAINTENANCETASKOPTIONS.fields_by_name['description']._serialized_options = b'\242\346*\003\030\200\001'
  _ACTIONSCOPE.fields_by_name['host']._options = None
  _ACTIONSCOPE.fields_by_name['host']._serialized_options = b'\242\346*\003\030\377\001'
  _ACTIONGROUP.fields_by_name['actions']._options = None
  _ACTIONGROUP.fields_by_name['actions']._serialized_options = b'\232\346*\002(\001'
  _CREATEMAINTENANCETASKREQUEST.fields_by_name['action_groups']._options = None
  _CREATEMAINTENANCETASKREQUEST.fields_by_name['action_groups']._serialized_options = b'\232\346*\002(\001'
  _REFRESHMAINTENANCETASKREQUEST.fields_by_name['task_uid']._options = None
  _REFRESHMAINTENANCETASKREQUEST.fields_by_name['task_uid']._serialized_options = b'\242\346*\003\030\200\001'
  _ACTIONUID.fields_by_name['task_uid']._options = None
  _ACTIONUID.fields_by_name['task_uid']._serialized_options = b'\242\346*\003\030\200\001'
  _ACTIONUID.fields_by_name['group_id']._options = None
  _ACTIONUID.fields_by_name['group_id']._serialized_options = b'\242\346*\003\030\200\001'
  _ACTIONUID.fields_by_name['action_id']._options = None
  _ACTIONUID.fields_by_name['action_id']._serialized_options = b'\242\346*\003\030\200\001'
  _GETMAINTENANCETASKREQUEST.fields_by_name['task_uid']._options = None
  _GETMAINTENANCETASKREQUEST.fields_by_name['task_uid']._serialized_options = b'\242\346*\003\030\200\001'
  _DROPMAINTENANCETASKREQUEST.fields_by_name['task_uid']._options = None
  _DROPMAINTENANCETASKREQUEST.fields_by_name['task_uid']._serialized_options = b'\242\346*\003\030\200\001'
  _COMPLETEACTIONREQUEST.fields_by_name['action_uids']._options = None
  _COMPLETEACTIONREQUEST.fields_by_name['action_uids']._serialized_options = b'\232\346*\002(\001'
  _ITEMSTATE._serialized_start=3931
  _ITEMSTATE._serialized_end=4038
  _AVAILABILITYMODE._serialized_start=4041
  _AVAILABILITYMODE._serialized_end=4181
  _NODE._serialized_start=245
  _NODE._serialized_end=548
  _NODE_STORAGENODE._serialized_start=496
  _NODE_STORAGENODE._serialized_end=509
  _NODE_DYNAMICNODE._serialized_start=511
  _NODE_DYNAMICNODE._serialized_end=540
  _LISTCLUSTERNODESREQUEST._serialized_start=550
  _LISTCLUSTERNODESREQUEST._serialized_end=634
  _LISTCLUSTERNODESRESULT._serialized_start=636
  _LISTCLUSTERNODESRESULT._serialized_end=698
  _LISTCLUSTERNODESRESPONSE._serialized_start=700
  _LISTCLUSTERNODESRESPONSE._serialized_end=772
  _MAINTENANCETASKOPTIONS._serialized_start=775
  _MAINTENANCETASKOPTIONS._serialized_end=935
  _ACTIONSCOPE._serialized_start=937
  _ACTIONSCOPE._serialized_end=1003
  _LOCKACTION._serialized_start=1005
  _LOCKACTION._serialized_end=1107
  _ACTION._serialized_start=1109
  _ACTION._serialized_end=1179
  _ACTIONGROUP._serialized_start=1181
  _ACTIONGROUP._serialized_end=1244
  _CREATEMAINTENANCETASKREQUEST._serialized_start=1247
  _CREATEMAINTENANCETASKREQUEST._serialized_end=1460
  _REFRESHMAINTENANCETASKREQUEST._serialized_start=1462
  _REFRESHMAINTENANCETASKREQUEST._serialized_end=1579
  _ACTIONUID._serialized_start=1581
  _ACTIONUID._serialized_end=1674
  _ACTIONSTATE._serialized_start=1677
  _ACTIONSTATE._serialized_end=2409
  _ACTIONSTATE_ACTIONSTATUS._serialized_start=1945
  _ACTIONSTATE_ACTIONSTATUS._serialized_end=2046
  _ACTIONSTATE_ACTIONREASON._serialized_start=2049
  _ACTIONSTATE_ACTIONREASON._serialized_end=2409
  _ACTIONGROUPSTATES._serialized_start=2411
  _ACTIONGROUPSTATES._serialized_end=2483
  _MAINTENANCETASKRESULT._serialized_start=2486
  _MAINTENANCETASKRESULT._serialized_end=2662
  _MAINTENANCETASKRESPONSE._serialized_start=2664
  _MAINTENANCETASKRESPONSE._serialized_end=2735
  _GETMAINTENANCETASKREQUEST._serialized_start=2737
  _GETMAINTENANCETASKREQUEST._serialized_end=2850
  _GETMAINTENANCETASKRESULT._serialized_start=2853
  _GETMAINTENANCETASKRESULT._serialized_end=3007
  _GETMAINTENANCETASKRESPONSE._serialized_start=3009
  _GETMAINTENANCETASKRESPONSE._serialized_end=3083
  _LISTMAINTENANCETASKSREQUEST._serialized_start=3085
  _LISTMAINTENANCETASKSREQUEST._serialized_end=3201
  _LISTMAINTENANCETASKSRESULT._serialized_start=3203
  _LISTMAINTENANCETASKSRESULT._serialized_end=3251
  _LISTMAINTENANCETASKSRESPONSE._serialized_start=3253
  _LISTMAINTENANCETASKSRESPONSE._serialized_end=3329
  _DROPMAINTENANCETASKREQUEST._serialized_start=3331
  _DROPMAINTENANCETASKREQUEST._serialized_end=3445
  _MANAGEMAINTENANCETASKRESPONSE._serialized_start=3447
  _MANAGEMAINTENANCETASKRESPONSE._serialized_end=3524
  _COMPLETEACTIONREQUEST._serialized_start=3527
  _COMPLETEACTIONREQUEST._serialized_end=3666
  _MANAGEACTIONRESULT._serialized_start=3669
  _MANAGEACTIONRESULT._serialized_end=3859
  _MANAGEACTIONRESULT_STATUS._serialized_start=3760
  _MANAGEACTIONRESULT_STATUS._serialized_end=3859
  _MANAGEACTIONRESPONSE._serialized_start=3861
  _MANAGEACTIONRESPONSE._serialized_end=3929
# @@protoc_insertion_point(module_scope)
