Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(frontier): remove platform users access #359

Merged
merged 1 commit into from
May 21, 2024
Merged
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
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
Loading