Update the structure a bit

This commit is contained in:
Nikolai Rodionov 2024-04-29 14:02:16 +02:00
parent 1c1bb4672b
commit 06cfef6ba2
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -32,33 +32,33 @@ message Token {
*/ */
message CreateOptions { message CreateOptions {
EnvironmentName name = 1; EnvironmentMetadata metadata = 1;
EnvironmentData data = 2; EnvironmentSpec spec = 2;
OwnerId owner_id = 3; OwnerId owner_id = 3;
Token token = 4; Token token = 4;
} }
message UpdateOptions { message UpdateOptions {
EnvironmentName name = 1; EnvironmentMetadata metadata = 1;
EnvironmentData data = 2; EnvironmentSpec spec = 2;
OwnerId owner_id = 3; OwnerId owner_id = 3;
Token token = 4; Token token = 4;
} }
message DeleteOptions { message DeleteOptions {
EnvironmentName name = 1; EnvironmentMetadata metadata = 1;
OwnerId owner_id = 3; OwnerId owner_id = 3;
Token token = 4; Token token = 4;
} }
message GetOptions { message GetOptions {
EnvironmentName name = 1; EnvironmentMetadata metadata = 1;
OwnerId owner_id = 3; OwnerId owner_id = 3;
Token token = 4; Token token = 4;
} }
message ListOptions { message ListOptions {
EnvironmentName name = 1; EnvironmentMetadata metadata = 1;
OwnerId owner_id = 3; OwnerId owner_id = 3;
Token token = 4; Token token = 4;
} }
@ -66,19 +66,20 @@ message ListOptions {
Environment related messages Environment related messages
*/ */
message EnvironmentName { message EnvironmentMetadata {
string name = 1; // A name of the environment string name = 1; // A name of the environment
string description = 2;
} }
message EnvironmentData { message EnvironmentSpec {
Provider provider = 2; // Provide Provider provider = 2; // Provide
Kubernetes kubernetes = 3; Kubernetes kubernetes = 3;
HetznerOptions hetzner_options = 4; HetznerOptions hetzner_options = 4;
} }
message EnvironmentFull { message EnvironmentFull {
EnvironmentName name = 1; EnvironmentMetadata metadata = 1;
EnvironmentData data = 2; EnvironmentSpec spec = 2;
} }