From 928ea5242f6d67d95ff0de58257312fce6ad69c6 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 25 Apr 2024 19:06:11 +0800 Subject: [PATCH] enhance: Add AlterDatabase proto Signed-off-by: Wei Liu --- proto/common.proto | 1 + proto/milvus.proto | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/proto/common.proto b/proto/common.proto index b6ea672..6d0e2b5 100644 --- a/proto/common.proto +++ b/proto/common.proto @@ -399,6 +399,7 @@ enum ObjectPrivilege { PrivilegeListAliases = 47; PrivilegeUpdateResourceGroups = 48; + PrivilegeAlterDatabase = 49; } message PrivilegeExt { diff --git a/proto/milvus.proto b/proto/milvus.proto index 5033513..951380f 100644 --- a/proto/milvus.proto +++ b/proto/milvus.proto @@ -132,6 +132,7 @@ service MilvusService { rpc CreateDatabase(CreateDatabaseRequest) returns (common.Status) {} rpc DropDatabase(DropDatabaseRequest) returns (common.Status) {} rpc ListDatabases(ListDatabasesRequest) returns (ListDatabasesResponse) {} + rpc AlterDatabase(AlterDatabaseRequest) returns (common.Status) {} rpc ReplicateMessage(ReplicateMessageRequest) returns (ReplicateMessageResponse) {} } @@ -1823,6 +1824,18 @@ message ListDatabasesResponse { repeated uint64 created_timestamp = 3; } +message AlterDatabaseRequest { + option (common.privilege_ext_obj) = { + object_type: Global + object_privilege: PrivilegeAlterDatabase + object_name_index: -1 + }; + common.MsgBase base = 1; + string db_name = 2; + string db_id = 3; + repeated common.KeyValuePair properties = 4; +} + message ReplicateMessageRequest { common.MsgBase base = 1; string channel_name = 2;