From f54cc903ba77ab793e09b781191097943712cf2f Mon Sep 17 00:00:00 2001 From: Kirk Brauer Date: Wed, 24 Sep 2025 11:04:17 -0400 Subject: [PATCH 1/2] Add exporter status enum --- proto/jumpstarter/client/v1/client.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/proto/jumpstarter/client/v1/client.proto b/proto/jumpstarter/client/v1/client.proto index 4f5d732..e2e85ec 100644 --- a/proto/jumpstarter/client/v1/client.proto +++ b/proto/jumpstarter/client/v1/client.proto @@ -68,6 +68,16 @@ message Exporter { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; map labels = 2; bool online = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + ExporterStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +enum ExporterStatus { + EXPORTER_STATUS_UNSPECIFIED = 0; + EXPORTER_STATUS_OFFLINE = 1; + EXPORTER_STATUS_AVAILABLE = 2; + EXPORTER_STATUS_BEFORE_LEASE_HOOK = 3; + EXPORTER_STATUS_LEASE_READY = 4; + EXPORTER_STATUS_AFTER_LEASE_HOOK = 5; } message Lease { From 3c30d6de98c66c1454b5abeb2070093d1b81b62f Mon Sep 17 00:00:00 2001 From: Kirk Brauer Date: Wed, 24 Sep 2025 11:11:51 -0400 Subject: [PATCH 2/2] Make online field deprecated and add comments for exporter status enum --- proto/jumpstarter/client/v1/client.proto | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/proto/jumpstarter/client/v1/client.proto b/proto/jumpstarter/client/v1/client.proto index e2e85ec..38416a2 100644 --- a/proto/jumpstarter/client/v1/client.proto +++ b/proto/jumpstarter/client/v1/client.proto @@ -67,17 +67,17 @@ message Exporter { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; map labels = 2; - bool online = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + bool online = 3 [(google.api.field_behavior) = OUTPUT_ONLY, deprecated = true]; ExporterStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } enum ExporterStatus { - EXPORTER_STATUS_UNSPECIFIED = 0; - EXPORTER_STATUS_OFFLINE = 1; - EXPORTER_STATUS_AVAILABLE = 2; - EXPORTER_STATUS_BEFORE_LEASE_HOOK = 3; - EXPORTER_STATUS_LEASE_READY = 4; - EXPORTER_STATUS_AFTER_LEASE_HOOK = 5; + EXPORTER_STATUS_UNSPECIFIED = 0; // Unspecified exporter status + EXPORTER_STATUS_OFFLINE = 1; // Exporter is offline + EXPORTER_STATUS_AVAILABLE = 2; // Exporter is available to be leased + EXPORTER_STATUS_BEFORE_LEASE_HOOK = 3; // Exporter is executing before lease hook(s) + EXPORTER_STATUS_LEASE_READY = 4; // Exporter is leased and ready to accept commands + EXPORTER_STATUS_AFTER_LEASE_HOOK = 5; // Exporter is executing after lease hook(s) } message Lease {