Skip to content

Commit 1a0632b

Browse files
committed
extract SetWorkspaceAutoStartOptions
1 parent 4846ad6 commit 1a0632b

File tree

7 files changed

+909
-610
lines changed

7 files changed

+909
-610
lines changed

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,30 @@ service UserService {
1414

1515
// UpdateUser updates the properties of a user.
1616
rpc UpdateUser(UpdateUserRequest) returns (UpdateUserResponse) {}
17+
18+
// SetWorkspaceAutoStartOptions updates the auto start options for the Gitpod Dashboard.
19+
// +internal - only used by the Gitpod Dashboard.
20+
rpc SetWorkspaceAutoStartOptions(SetWorkspaceAutoStartOptionsRequest) returns (SetWorkspaceAutoStartOptionsResponse) {}
1721
}
1822

1923
message GetAuthenticatedUserRequest {}
2024
message GetAuthenticatedUserResponse {
2125
User user = 1;
2226
}
2327

28+
message SetWorkspaceAutoStartOptionsRequest {
29+
string user_id = 1;
30+
repeated WorkspaceAutostartOption workspace_autostart_options = 2;
31+
message WorkspaceAutostartOption {
32+
string clone_url = 1;
33+
string organization_id = 2;
34+
optional string workspace_class = 3;
35+
optional EditorReference editor_settings = 4;
36+
optional string region = 5;
37+
}
38+
}
39+
message SetWorkspaceAutoStartOptionsResponse {}
40+
2441
message UpdateUserRequest {
2542
string user_id = 1;
2643
optional string name = 2;
@@ -47,15 +64,7 @@ message UpdateUserRequest {
4764
optional bool allows_devx_mail = 2;
4865
optional bool allows_onboarding_mail = 3;
4966
}
50-
repeated WorkspaceAutostartOption workspace_autostart_options = 8;
51-
message WorkspaceAutostartOption {
52-
string clone_url = 1;
53-
string organization_id = 2;
54-
string workspace_class = 3;
55-
EditorReference editor_settings = 4;
56-
string region = 5;
57-
}
58-
optional WorkspaceTimeoutSettings workspace_timeout_settings = 9;
67+
optional WorkspaceTimeoutSettings workspace_timeout_settings = 8;
5968
message WorkspaceTimeoutSettings {
6069
optional google.protobuf.Duration inactivity = 1;
6170
optional bool disabled_disconnected = 2;

0 commit comments

Comments
 (0)