From bd6c5ffb2b7d46aa4dc7fee0601fec62bda28b2a Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 2 May 2024 12:41:18 +0200 Subject: [PATCH] Update Ids for envs --- proto/environments/environments_v1.proto | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/proto/environments/environments_v1.proto b/proto/environments/environments_v1.proto index 24bb104..750adf7 100644 --- a/proto/environments/environments_v1.proto +++ b/proto/environments/environments_v1.proto @@ -39,20 +39,23 @@ message CreateOptions { } message UpdateOptions { - EnvironmentMetadata metadata = 1; - EnvironmentSpec spec = 2; - OwnerId owner_id = 3; - Token token = 4; + EnvironmentId id = 1; + EnvironmentMetadata metadata = 2; + EnvironmentSpec spec = 3; + OwnerId owner_id = 4; + Token token = 5; } message DeleteOptions { - EnvironmentMetadata metadata = 1; + EnvironmentId id = 1; + EnvironmentMetadata metadata = 2; OwnerId owner_id = 3; Token token = 4; } message GetOptions { - EnvironmentMetadata metadata = 1; + EnvironmentId id = 1; + EnvironmentMetadata metadata = 2; OwnerId owner_id = 3; Token token = 4; } @@ -66,10 +69,12 @@ message ListOptions { Environment related messages */ +message EnvironmentId { + string uuid = 1; +} message EnvironmentMetadata { string name = 1; // A name of the environment string description = 2; - string uuid = 3; } message EnvironmentSpec { @@ -82,6 +87,7 @@ message EnvironmentSpec { message EnvironmentFull { EnvironmentMetadata metadata = 1; EnvironmentSpec spec = 2; + EnvironmentId id = 3; } @@ -114,4 +120,4 @@ enum Location { enum Kubernetes { KUBERNETES_UNSPECIFIED = 0; KUBERNETES_K3S = 1; -} \ No newline at end of file +}