From 0aa36e5747c07cb06eef76f7b53136f1945ef971 Mon Sep 17 00:00:00 2001 From: Kush Sharma Date: Tue, 21 May 2024 20:44:16 +0530 Subject: [PATCH] feat(frontier): remove platform users access Signed-off-by: Kush Sharma --- raystack/frontier/v1beta1/admin.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/raystack/frontier/v1beta1/admin.proto b/raystack/frontier/v1beta1/admin.proto index 0501b91f..06a41bdd 100644 --- a/raystack/frontier/v1beta1/admin.proto +++ b/raystack/frontier/v1beta1/admin.proto @@ -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) = { @@ -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