Skip to content

Commit

Permalink
fix: Fixed gRPC numbering and policy/rule confusions
Browse files Browse the repository at this point in the history
  • Loading branch information
lfbrehm committed Feb 22, 2024
1 parent b2ce195 commit 84dbc6b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions aruna/api/storage/services/v2/rules_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ service RulesService {
rpc CreateRuleBinding(CreateRuleBindingRequest)
returns (CreateRuleBindingResponse) {
option (google.api.http) = {
post : "/v2/rules/{id}/bindings"
post : "/v2/rules/{rule_id}/bindings"
body : "*"
};
}
Expand All @@ -100,7 +100,7 @@ service RulesService {
rpc DeleteRuleBinding(DeleteRuleBindingRequest)
returns (DeleteRuleBindingResponse) {
option (google.api.http) = {
delete : "/v2/rules/{id}/bindings/{object_id}"
delete : "/v2/rules/{rule_id}/bindings/{object_id}"
};
}
}
Expand All @@ -122,10 +122,10 @@ message GetRuleRequest {

message Rule {
string id = 1;
string rule = 1;
string description = 2;
bool public = 3;
string owner = 4;
string rule = 2;
string description = 3;
bool public = 4;
string owner = 5;
}

message GetRuleResponse {
Expand Down Expand Up @@ -156,19 +156,20 @@ message DeleteRuleRequest {
message DeleteRuleResponse {}

message CreateRuleBindingRequest {
string object_id = 1;
bool cascading = 2;
string rule_id = 1;
string object_id = 2;
bool cascading = 3;
}

message CreateRuleBindingResponse {
string policy_id = 1;
string rule_id = 1;
string object_id = 2;
bool cascading = 3;
}

message DeleteRuleBindingRequest {
string policy_id = 1;
string rule_id = 1;
string object_id = 2;
}

message DeleteRuleBindingResponse {}
message DeleteRuleBindingResponse {}

0 comments on commit 84dbc6b

Please sign in to comment.