Skip to content
Snippets Groups Projects
Commit 53a6df87 authored by Alena Petraki's avatar Alena Petraki
Browse files

Merge branch 'master' into feature/PRXS-768-TransferSpace

parents 047ef516 e0c174cd
No related branches found
No related tags found
1 merge request!10Добавлена спецификация по переносу пространств между организациями
......@@ -3,7 +3,6 @@ syntax = "proto3";
import "google/protobuf/empty.proto";
import "common/common.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/duration.proto";
option go_package = "git.perx.ru/perxis/perxis-go/proto/collections;collections";
......@@ -26,7 +25,6 @@ message Collection {
optional bool no_data = 12;
string schema = 7;
bool hidden = 13;
google.protobuf.Duration ttl = 14;
message View {
string space_id = 1;
......
......@@ -123,7 +123,7 @@ message Filter {
}
message CreateOptions {
bool update_attrs = 1;
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message FindOptions {
......@@ -135,7 +135,7 @@ message FindOptions {
}
message UpdateOptions {
bool update_attrs = 1;
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message GetPublishedOptions {
......@@ -143,11 +143,20 @@ message GetPublishedOptions {
}
message DeleteOptions {
bool erase = 1;
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
bool erase = 2; // полное удаление без сохранения удаленной версии объекта
}
message UndeleteOptions {
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message PublishOptions {
bool update_attrs = 1;
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message UnpublishOptions {
bool update_attrs = 1; // позволяет обновить системные поля: created_by, created_at, created_rev_at, updated_by, updated_at
}
message FindPublishedOptions {
......@@ -230,18 +239,13 @@ message UpdateRequest {
}
message DeleteRequest {
string space_id = 1;
string env_id = 2;
string collection_id = 3;
string item_id = 4;
DeleteOptions options = 5;
Item item = 1; // важны только переданные внутри идентификаторы или, если указана опция update_attrs, поля которые изменяются: created_by, created_at, created_rev_at, updated_by, updated_at
DeleteOptions options = 2;
}
message UndeleteRequest {
string space_id = 1;
string env_id = 2;
string collection_id = 3;
string item_id = 4;
Item item = 1;
UndeleteOptions options = 2;
}
message PublishRequest {
......@@ -251,6 +255,7 @@ message PublishRequest {
message UnpublishRequest {
Item item = 1;
UnpublishOptions options = 2;
}
message GetPublishedRequest {
......
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