@@ -172,38 +172,38 @@ message WorkspaceInstanceStatus {
172
172
enum WorkspaceInstancePhase {
173
173
// Unknown indicates an issue within the workspace manager in that it cannot determine the actual phase of
174
174
// a workspace. This phase is usually accompanied by an error.
175
- UNKNOWN = 0 ;
175
+ WORKSPACE_INSTANCE_PHASE_UNSPECIFIED = 0 ;
176
176
177
177
// This will become IMAGE_BUILD
178
178
reserved 1 ;
179
179
180
180
// Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
181
181
// some space within the cluster. If for example the cluster needs to scale up to accomodate the
182
182
// workspace, the workspace will be in Pending state until that happened.
183
- PENDING = 2 ;
183
+ WORKSPACE_INSTANCE_PHASE_PENDING = 2 ;
184
184
185
185
// Creating means the workspace is currently being created. That includes downloading the images required
186
186
// to run the workspace over the network. The time spent in this phase varies widely and depends on the current
187
187
// network speed, image size and cache states.
188
- CREATING = 3 ;
188
+ WORKSPACE_INSTANCE_PHASE_CREATING = 3 ;
189
189
190
190
// Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
191
191
// clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
192
- INITIALIZING = 4 ;
192
+ WORKSPACE_INSTANCE_PHASE_INITIALIZING = 4 ;
193
193
194
194
// Running means the workspace is able to actively perform work, either by serving a user through Theia,
195
195
// or as a headless workspace.
196
- RUNNING = 5 ;
196
+ WORKSPACE_INSTANCE_PHASE_RUNNING = 5 ;
197
197
198
198
// Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
199
199
// When in this state, we expect it to become running or stopping anytime soon.
200
- INTERRUPTED = 6 ;
200
+ WORKSPACE_INSTANCE_PHASE_INTERRUPTED = 6 ;
201
201
202
202
// Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
203
- STOPPING = 7 ;
203
+ WORKSPACE_INSTANCE_PHASE_STOPPING = 7 ;
204
204
205
205
// Stopped means the workspace ended regularly because it was shut down.
206
- STOPPED = 8 ;
206
+ WORKSPACE_INSTANCE_PHASE_STOPPED = 8 ;
207
207
}
208
208
209
209
@@ -236,9 +236,11 @@ message WorkspaceInstanceAuthentication {
236
236
}
237
237
238
238
enum AdmissionLevel {
239
- // ADMIT_OWNER_ONLY means the workspace can only be accessed using the owner token
240
- ADMIT_OWNER_ONLY = 0 ;
239
+ ADMISSION_LEVEL_UNSPECIFIED = 0 ;
241
240
242
- // ADMIT_EVERYONE means the workspace (including ports) can be accessed by everyone.
243
- ADMIT_EVERYONE = 1 ;
241
+ // ADMISSION_LEVEL_OWNER_ONLY means the workspace can only be accessed using the owner token
242
+ ADMISSION_LEVEL_OWNER_ONLY = 1 ;
243
+
244
+ // ADMISSION_LEVEL_EVERYONE means the workspace (including ports) can be accessed by everyone.
245
+ ADMISSION_LEVEL_EVERYONE = 2 ;
244
246
}
0 commit comments