Skip to content

Commit

Permalink
refactor: replica listing based on query
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinandan Purkait <[email protected]>
  • Loading branch information
Abhinandan-Purkait committed Aug 24, 2023
1 parent 2963fea commit bb9d4a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions protobuf/v1/replica.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
}

0 comments on commit bb9d4a3

Please sign in to comment.