Skip to content

Commit

Permalink
feat(frontier): remove platform users access (#359)
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma authored May 21, 2024
1 parent 9739b35 commit 1ea75f0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,18 @@ service AdminService {
};
}

rpc RemovePlatformUser(RemovePlatformUserRequest) returns (RemovePlatformUserResponse) {
option (google.api.http) = {
post: "/v1beta1/admin/platform/users/remove",
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Platform";
summary: "Remove platform user";
description: "Removes a user from the platform.";
};
}

// Checkout
rpc DelegatedCheckout(DelegatedCheckoutRequest) returns (DelegatedCheckoutResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -601,6 +613,13 @@ message ListPlatformUsersResponse {
repeated ServiceUser serviceusers = 2;
}

message RemovePlatformUserRequest {
string user_id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The user id to remove from the the platform."}];
string serviceuser_id = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The service user id to remove from the the platform."}];
}

message RemovePlatformUserResponse {}

message DelegatedCheckoutRequest {
string org_id = 1 [(validate.rules).string.min_len = 3];
// ID of the billing account to update the subscription for
Expand Down

0 comments on commit 1ea75f0

Please sign in to comment.