Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,29 @@ message GetAllConfigsRequest {

// required - namespace with which the config resource is associated
string resource_namespace = 2;

// optional - filtering criteria to narrow down the configs.
// Supports relational and logical operators on config fields.
Filter filter = 3;

// optional - list of sorting conditions to order the results.
// Multiple SortBy entries are applied in the specified order of priority.
repeated SortBy sort_by = 4;

// optional - pagination parameters to limit and offset the result set.
// Useful for retrieving configs in pages when total count is large.
Pagination pagination = 5;

// optional - include total count in the response
bool include_total = 6;
}

message GetAllConfigsResponse {
// list of config values along with the associated contexts, sorted in the descending order of their creation time
repeated ContextSpecificConfig context_specific_configs = 1;

// Total number of records matching the filter before pagination if include_total is true.
optional int32 total_count = 2;
}

message ContextSpecificConfig {
Expand Down Expand Up @@ -201,3 +219,25 @@ enum LogicalOperator {
LOGICAL_OPERATOR_AND = 1;
LOGICAL_OPERATOR_OR = 2;
}

message SortBy {
Selection selection = 1;
SortOrder sort_order = 2;
}

message Pagination {
int32 limit = 1;
int32 offset = 2;
}

message Selection {
oneof type {
string config_json_path = 1;
}
}

enum SortOrder {
SORT_ORDER_UNSPECIFIED = 0;
SORT_ORDER_ASC = 1;
SORT_ORDER_DESC = 2;
}
Loading