Skip to content

Commit eedcf89

Browse files
authored
[papi] Update UserService proto (#19231)
* [papi] Add UserService.DeleteUser * [public-api] add missing `UpdateUserRequest.dotfile_repo` attribute * fix: add unimplemented methods
1 parent c183ec8 commit eedcf89

File tree

9 files changed

+697
-385
lines changed

9 files changed

+697
-385
lines changed

components/dashboard/src/service/json-rpc-user-client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { UserService } from "@gitpod/public-api/lib/gitpod/v1/user_connect";
99
import { PromiseClient } from "@connectrpc/connect";
1010
import { PartialMessage } from "@bufbuild/protobuf";
1111
import {
12+
DeleteUserRequest,
13+
DeleteUserResponse,
1214
GetAuthenticatedUserRequest,
1315
GetAuthenticatedUserResponse,
1416
SetWorkspaceAutoStartOptionsRequest,
@@ -39,4 +41,8 @@ export class JsonRpcUserClient implements PromiseClient<typeof UserService> {
3941
): Promise<SetWorkspaceAutoStartOptionsResponse> {
4042
throw new ApplicationError(ErrorCodes.UNIMPLEMENTED, "not implemented");
4143
}
44+
45+
async deleteUser(request: PartialMessage<DeleteUserRequest>): Promise<DeleteUserResponse> {
46+
throw new ApplicationError(ErrorCodes.UNIMPLEMENTED, "not implemented");
47+
}
4248
}

components/public-api/gitpod/v1/user.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ service UserService {
1818
// SetWorkspaceAutoStartOptions updates the auto start options for the Gitpod Dashboard.
1919
// +internal - only used by the Gitpod Dashboard.
2020
rpc SetWorkspaceAutoStartOptions(SetWorkspaceAutoStartOptionsRequest) returns (SetWorkspaceAutoStartOptionsResponse) {}
21+
22+
// DeleteUser deletes the specified user.
23+
rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse) {}
2124
}
2225

2326
message GetAuthenticatedUserRequest {}
@@ -69,11 +72,17 @@ message UpdateUserRequest {
6972
optional google.protobuf.Duration inactivity = 1;
7073
optional bool disabled_disconnected = 2;
7174
}
75+
optional string dotfile_repo = 9;
7276
}
7377
message UpdateUserResponse {
7478
User user = 1;
7579
}
7680

81+
message DeleteUserRequest {
82+
string user_id = 1;
83+
}
84+
message DeleteUserResponse {}
85+
7786
message User {
7887
// id is a UUID of the user
7988
string id = 1;

0 commit comments

Comments
 (0)