From bb9d4a3569f5b1dee7e422100a52b79ccd61078f Mon Sep 17 00:00:00 2001 From: Abhinandan Purkait Date: Thu, 24 Aug 2023 12:10:58 +0000 Subject: [PATCH] refactor: replica listing based on query Signed-off-by: Abhinandan Purkait --- protobuf/v1/replica.proto | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/protobuf/v1/replica.proto b/protobuf/v1/replica.proto index 59235d7a..65598d38 100644 --- a/protobuf/v1/replica.proto +++ b/protobuf/v1/replica.proto @@ -90,9 +90,10 @@ message ListReplicaOptions { google.protobuf.StringValue pooluuid = 4; // list the replicas on the provided pool, by uuid Query query = 5; // list replica based on Query value - /// Query used for getting specific types of replicas. + /// Query used for getting specific types of replicas. These are mutually exclusive, ex. a snapshot cannot be clone. message Query { - optional bool snapshot = 1; // query for selecting or snapshot types. - optional bool clone = 2; // query for selecting or clone types. + bool replica = 1; // query for selecting or normal replica types. + bool snapshot = 2; // query for selecting or snapshot types. + bool clone = 3; // query for selecting or clone types. } }