Skip to content
Snippets Groups Projects

Обновлены proto файлы после релиза v0.10

Merged Anton Sattarov requested to merge feature/PRXS-699-UpdateProto into master
2 files
+ 22
4
Compare changes
  • Side-by-side
  • Inline

Files

syntax = "proto3";
syntax = "proto3";
import "google/protobuf/empty.proto";
import "google/protobuf/empty.proto";
 
import "google/protobuf/timestamp.proto";
option go_package = "git.perx.ru/perxis/perxis-go/environments;environments";
option go_package = "git.perx.ru/perxis/perxis-go/environments;environments";
@@ -10,6 +11,13 @@ message Environment {
@@ -10,6 +11,13 @@ message Environment {
string id = 1;
string id = 1;
string space_id = 2;
string space_id = 2;
string description = 3;
string description = 3;
 
 
StateInfo state_info = 4;
 
repeated string aliases = 6;
 
Config config = 10;
 
}
 
 
message StateInfo {
enum State {
enum State {
UNKNOWN = 0;
UNKNOWN = 0;
NEW = 1;
NEW = 1;
@@ -17,14 +25,15 @@ message Environment {
@@ -17,14 +25,15 @@ message Environment {
READY = 3;
READY = 3;
ERROR = 4;
ERROR = 4;
}
}
State state = 4;
State state = 1;
string state_info = 5;
string info = 2;
repeated string aliases = 6;
google.protobuf.Timestamp started_at = 3;
Config config = 10;
}
}
message Config {
message Config {
string source_id = 1;
string source_id = 1;
 
 
// Deprecated
repeated string features = 2;
repeated string features = 2;
}
}
@@ -77,6 +86,13 @@ message DeleteRequest {
@@ -77,6 +86,13 @@ message DeleteRequest {
message MigrateRequest {
message MigrateRequest {
string space_id = 1;
string space_id = 1;
string env_id = 2;
string env_id = 2;
 
MigrateOptions options = 10;
 
}
 
 
message MigrateOptions {
 
// Ожидать завершения миграции в синхронном режиме. Если в запрос передан контекст с таймаутом,
 
// то после истечения таймаута миграция продолжится в асинхронном режиме
 
bool wait = 1;
}
}
service Environments {
service Environments {
Loading