Skip to content
Snippets Groups Projects
Commit 1b148038 authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'feature/PRXS-699-UpdateProto' into 'master'

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

See merge request !3
parents 7e63bb9e 5dd60fce
Branches feature/PRXS-699-UpdateProto
No related tags found
1 merge request!3Обновлены proto файлы после релиза v0.10
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 {
......
...@@ -70,6 +70,7 @@ message ExtensionRequestResult { ...@@ -70,6 +70,7 @@ message ExtensionRequestResult {
ERROR = 1; // Возникла ошибка ERROR = 1; // Возникла ошибка
PENDING = 2; // Запрос ожидает выполнения PENDING = 2; // Запрос ожидает выполнения
IN_PROGRESS = 3; // Запрос выполняется IN_PROGRESS = 3; // Запрос выполняется
PARAMETERS_REQUIRED= 4; // Требуются дополнительные данные для выполнения запроса
} }
State state = 10000; // Состояние расширение State state = 10000; // Состояние расширение
...@@ -146,6 +147,7 @@ message ActionResponse { ...@@ -146,6 +147,7 @@ message ActionResponse {
ERROR = 1; // Возникла ошибка ERROR = 1; // Возникла ошибка
PENDING = 2; // Запрос ожидает выполнения PENDING = 2; // Запрос ожидает выполнения
IN_PROGRESS = 3; // Запрос выполняется IN_PROGRESS = 3; // Запрос выполняется
PARAMETERS_REQUIRED = 4; // Требуются дополнительные данные для выполнения запроса
} }
State state = 10000; // Состояние расширение State state = 10000; // Состояние расширение
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment