@@ -26,23 +26,30 @@ data class WorkspaceAgent(
26
26
@SerializedName(" latency" ) val derpLatency : Map <String , DERPRegion >? ,
27
27
@SerializedName(" connection_timeout_seconds" ) val connectionTimeoutSeconds : Int ,
28
28
@SerializedName(" troubleshooting_url" ) val troubleshootingURL : String ,
29
+ @SerializedName(" lifecycle_state" ) val lifecycleState : WorkspaceAgentLifecycleState ,
30
+ @SerializedName(" login_before_ready" ) val loginBeforeReady : Boolean? ,
29
31
)
30
32
31
33
enum class WorkspaceAgentStatus {
32
- @SerializedName(" connecting" )
33
- CONNECTING ,
34
-
35
- @SerializedName(" connected" )
36
- CONNECTED ,
37
-
38
- @SerializedName(" disconnected" )
39
- DISCONNECTED ,
34
+ @SerializedName(" connecting" ) CONNECTING ,
35
+ @SerializedName(" connected" ) CONNECTED ,
36
+ @SerializedName(" disconnected" ) DISCONNECTED ,
37
+ @SerializedName(" timeout" ) TIMEOUT
38
+ }
40
39
41
- @SerializedName(" timeout" )
42
- TIMEOUT
40
+ enum class WorkspaceAgentLifecycleState {
41
+ @SerializedName(" created" ) CREATED ,
42
+ @SerializedName(" starting" ) STARTING ,
43
+ @SerializedName(" start_timeout" ) START_TIMEOUT ,
44
+ @SerializedName(" start_error" ) START_ERROR ,
45
+ @SerializedName(" ready" ) READY ,
46
+ @SerializedName(" shutting_down" ) SHUTTING_DOWN ,
47
+ @SerializedName(" shutdown_timeout" ) SHUTDOWN_TIMEOUT ,
48
+ @SerializedName(" shutdown_error" ) SHUTDOWN_ERROR ,
49
+ @SerializedName(" off" ) OFF ,
43
50
}
44
51
45
52
data class DERPRegion (
46
53
@SerializedName(" preferred" ) val preferred : Boolean ,
47
- @SerializedName(" latency_ms" ) val latencyMillis : Double
54
+ @SerializedName(" latency_ms" ) val latencyMillis : Double ,
48
55
)
0 commit comments