Update Ids for envs

This commit is contained in:
Nikolai Rodionov 2024-05-02 12:41:18 +02:00
parent b4c97beb38
commit bd6c5ffb2b
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -39,20 +39,23 @@ message CreateOptions {
} }
message UpdateOptions { message UpdateOptions {
EnvironmentMetadata metadata = 1; EnvironmentId id = 1;
EnvironmentSpec spec = 2; EnvironmentMetadata metadata = 2;
OwnerId owner_id = 3; EnvironmentSpec spec = 3;
Token token = 4; OwnerId owner_id = 4;
Token token = 5;
} }
message DeleteOptions { message DeleteOptions {
EnvironmentMetadata metadata = 1; EnvironmentId id = 1;
EnvironmentMetadata metadata = 2;
OwnerId owner_id = 3; OwnerId owner_id = 3;
Token token = 4; Token token = 4;
} }
message GetOptions { message GetOptions {
EnvironmentMetadata metadata = 1; EnvironmentId id = 1;
EnvironmentMetadata metadata = 2;
OwnerId owner_id = 3; OwnerId owner_id = 3;
Token token = 4; Token token = 4;
} }
@ -66,10 +69,12 @@ message ListOptions {
Environment related messages Environment related messages
*/ */
message EnvironmentId {
string uuid = 1;
}
message EnvironmentMetadata { message EnvironmentMetadata {
string name = 1; // A name of the environment string name = 1; // A name of the environment
string description = 2; string description = 2;
string uuid = 3;
} }
message EnvironmentSpec { message EnvironmentSpec {
@ -82,6 +87,7 @@ message EnvironmentSpec {
message EnvironmentFull { message EnvironmentFull {
EnvironmentMetadata metadata = 1; EnvironmentMetadata metadata = 1;
EnvironmentSpec spec = 2; EnvironmentSpec spec = 2;
EnvironmentId id = 3;
} }