@@ -14,13 +14,30 @@ service UserService {
14
14
15
15
// UpdateUser updates the properties of a user.
16
16
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 ) {}
17
21
}
18
22
19
23
message GetAuthenticatedUserRequest {}
20
24
message GetAuthenticatedUserResponse {
21
25
User user = 1 ;
22
26
}
23
27
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
+
24
41
message UpdateUserRequest {
25
42
string user_id = 1 ;
26
43
optional string name = 2 ;
@@ -47,15 +64,7 @@ message UpdateUserRequest {
47
64
optional bool allows_devx_mail = 2 ;
48
65
optional bool allows_onboarding_mail = 3 ;
49
66
}
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 ;
59
68
message WorkspaceTimeoutSettings {
60
69
optional google.protobuf.Duration inactivity = 1 ;
61
70
optional bool disabled_disconnected = 2 ;
0 commit comments