Skip to content

Commit

Permalink
feat(frontier): update role permissions in place for instance
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma committed Aug 17, 2023
1 parent aa720c9 commit 82c512d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,18 @@ service AdminService {
};
}

rpc UpdateRole(UpdateRoleRequest) returns (UpdateRoleResponse) {
option (google.api.http) = {
put: "/v1beta1/roles/{id}",
body: "body";
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Role";
summary: "Update role";
description: "Update a role title, description and permissions."
};
}

rpc DeleteRole(DeleteRoleRequest) returns (DeleteRoleResponse) {
option (google.api.http) = {delete: "/v1beta1/roles/{id}"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
Expand Down Expand Up @@ -343,6 +355,18 @@ message CreateRoleResponse {
Role role = 1;
}

message UpdateRoleRequest {
string id = 1 [
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The role id to update."}
];
RoleRequestBody body = 2;
}

message UpdateRoleResponse {
Role role = 1;
}

message DeleteRoleRequest {
string id = 1 [
(google.api.field_behavior) = REQUIRED,
Expand Down

0 comments on commit 82c512d

Please sign in to comment.