From 7ea7d2f21dded9de14a0d91a881262086c4769b3 Mon Sep 17 00:00:00 2001
From: ko_oler <kooler89@gmail.com>
Date: Wed, 6 Nov 2024 12:24:11 +0300
Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=B2?=
 =?UTF-8?q?=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 proto/collections/collections.proto     | 14 +++++++-------
 proto/environments/environments.proto   | 10 +++++-----
 proto/organizations/organizations.proto |  4 ++--
 proto/roles/roles.proto                 |  4 ++--
 proto/spaces/spaces.proto               | 10 +++++-----
 proto/users/users.proto                 |  2 +-
 6 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/proto/collections/collections.proto b/proto/collections/collections.proto
index 007e49f..8365edf 100644
--- a/proto/collections/collections.proto
+++ b/proto/collections/collections.proto
@@ -85,7 +85,7 @@ message Collection {
 }
 
 message CreateRequest {
-  Collection collection = 1;
+  Collection coll = 1;
 }
 message CreateResponse {
   Collection created = 1;
@@ -98,12 +98,12 @@ message GetOptions {
 message GetRequest {
   string space_id = 1;
   string env_id = 2;
-  string collection_id = 3;
+  string id = 3;
   GetOptions options = 4;
 }
 
 message GetResponse {
-  Collection collection = 1;
+  Collection coll = 1;
 }
 
 message ListRequest {
@@ -122,24 +122,24 @@ message ListRequest {
   Filter filter = 5;
 }
 message ListResponse {
-  repeated Collection collections = 1;
+  repeated Collection colls = 1;
 }
 
 message UpdateRequest {
-  Collection collection = 1;
+  Collection coll = 1;
 }
 
 message SetSchemaRequest {
   string space_id = 1;
   string env_id = 2;
-  string collection_id = 3;
+  string id = 3;
   string schema = 4;
 }
 
 message DeleteRequest {
   string space_id = 1;
   string env_id = 2;
-  string collection_id = 3;
+  string id = 3;
 }
 
 service Collections  {
diff --git a/proto/environments/environments.proto b/proto/environments/environments.proto
index 51c410d..7f71821 100644
--- a/proto/environments/environments.proto
+++ b/proto/environments/environments.proto
@@ -55,7 +55,7 @@ message ListResponse {
 
 message GetRequest {
   string space_id = 1;
-  string env_id = 2;
+  string id = 2;
 }
 
 message GetResponse {
@@ -68,24 +68,24 @@ message UpdateRequest {
 
 message SetAliasRequest {
   string space_id = 1;
-  string env_id = 2;
+  string id = 2;
   string alias  = 3;
 }
 
 message RemoveAliasRequest {
   string space_id = 1;
-  string env_id = 2;
+  string id = 2;
   string alias  = 3;
 }
 
 message DeleteRequest {
   string space_id = 1;
-  string env_id = 2;
+  string id = 2;
 }
 
 message MigrateRequest {
   string space_id = 1;
-  string env_id = 2;
+  string id = 2;
   MigrateOptions options = 10;
 }
 
diff --git a/proto/organizations/organizations.proto b/proto/organizations/organizations.proto
index 745ef63..4fb6a66 100644
--- a/proto/organizations/organizations.proto
+++ b/proto/organizations/organizations.proto
@@ -27,7 +27,7 @@ message CreateResponse {
 }
 
 message GetRequest {
-  string org_id = 1;
+  string id = 1;
 }
 
 message GetResponse {
@@ -39,7 +39,7 @@ message UpdateRequest {
 }
 
 message DeleteRequest {
-  string org_id = 1;
+  string id = 1;
 }
 
 message Filter {
diff --git a/proto/roles/roles.proto b/proto/roles/roles.proto
index 06c72b1..101c12b 100644
--- a/proto/roles/roles.proto
+++ b/proto/roles/roles.proto
@@ -44,7 +44,7 @@ message CreateResponse {
 
 message GetRequest {
   string space_id = 1;
-  string role_id = 2;
+  string id = 2;
 }
 
 message GetResponse {
@@ -65,7 +65,7 @@ message ListResponse {
 
 message DeleteRequest {
   string space_id = 1;
-  string role_id = 2;
+  string id = 2;
 }
 
 service Roles  {
diff --git a/proto/spaces/spaces.proto b/proto/spaces/spaces.proto
index 2773a4f..10f721e 100644
--- a/proto/spaces/spaces.proto
+++ b/proto/spaces/spaces.proto
@@ -74,21 +74,21 @@ message UpdateRequest {
 }
 
 message UpdateConfigRequest {
-  string space_id = 1;
+  string id = 1;
   Config config = 2;
 }
 
 message DeleteRequest {
-  string space_id = 1;
+  string id = 1;
 }
 
 message TransferRequest {
-  string space_id = 1; // Идентификатор перемещаемого пространства
+  string id = 1; // Идентификатор перемещаемого пространства
   string transfer_to_org = 2; // Идентификатор организации, в которую пространство должно быть перемещено
 }
 
 message AbortTransferRequest {
-  string space_id = 1; // Идентификатор перемещаемого пространства
+  string id = 1; // Идентификатор перемещаемого пространства
 }
 
 message ListTransfersRequest {
@@ -100,7 +100,7 @@ message ListTransfersResponse {
 }
 
 message MoveRequest {
-  string space_id = 1; // Идентификатор перемещаемого пространства
+  string id = 1; // Идентификатор перемещаемого пространства
   string org_id = 2; // Идентификатор организации, в которую пространство должно быть перемещено. Обязателен для заполнения только в случае запросов с системным уровнем доступа, в остальных случаях опционален
 }
 
diff --git a/proto/users/users.proto b/proto/users/users.proto
index 6019637..29c9b03 100644
--- a/proto/users/users.proto
+++ b/proto/users/users.proto
@@ -48,7 +48,7 @@ message CreateResponse {
 
 // userId = `current` для получения текущего пользователя
 message GetRequest {
-  string user_id = 1;
+  string id = 1;
 }
 
 message GetResponse {
-- 
GitLab