From 67f634be9b312a5c35bf48b79634f043d07152da Mon Sep 17 00:00:00 2001 From: ko_oler <kooler89@gmail.com> Date: Wed, 13 Nov 2024 12:33:27 +0300 Subject: [PATCH] =?UTF-8?q?Revert=20"=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B2=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 This reverts commit 7ea7d2f21dded9de14a0d91a881262086c4769b3. --- 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 569c42a..7bcf130 100644 --- a/proto/collections/collections.proto +++ b/proto/collections/collections.proto @@ -85,7 +85,7 @@ message Collection { } message CreateRequest { - Collection coll = 1; + Collection collection = 1; } message CreateResponse { Collection created = 1; @@ -98,12 +98,12 @@ message GetOptions { message GetRequest { string space_id = 1; string env_id = 2; - string id = 3; + string collection_id = 3; GetOptions options = 4; } message GetResponse { - Collection coll = 1; + Collection collection = 1; } message ListRequest { @@ -122,24 +122,24 @@ message ListRequest { Filter filter = 5; } message ListResponse { - repeated Collection colls = 1; + repeated Collection collections = 1; } message UpdateRequest { - Collection coll = 1; + Collection collection = 1; } message SetSchemaRequest { string space_id = 1; string env_id = 2; - string id = 3; + string collection_id = 3; string schema = 4; } message DeleteRequest { string space_id = 1; string env_id = 2; - string id = 3; + string collection_id = 3; } service Collections { diff --git a/proto/environments/environments.proto b/proto/environments/environments.proto index d2b376c..0e29496 100644 --- a/proto/environments/environments.proto +++ b/proto/environments/environments.proto @@ -55,7 +55,7 @@ message ListResponse { message GetRequest { string space_id = 1; - string id = 2; + string env_id = 2; } message GetResponse { @@ -68,24 +68,24 @@ message UpdateRequest { message SetAliasRequest { string space_id = 1; - string id = 2; + string env_id = 2; string alias = 3; } message RemoveAliasRequest { string space_id = 1; - string id = 2; + string env_id = 2; string alias = 3; } message DeleteRequest { string space_id = 1; - string id = 2; + string env_id = 2; } message MigrateRequest { string space_id = 1; - string id = 2; + string env_id = 2; MigrateOptions options = 10; } diff --git a/proto/organizations/organizations.proto b/proto/organizations/organizations.proto index 6b65535..aa12ef6 100644 --- a/proto/organizations/organizations.proto +++ b/proto/organizations/organizations.proto @@ -27,7 +27,7 @@ message CreateResponse { } message GetRequest { - string id = 1; + string org_id = 1; } message GetResponse { @@ -39,7 +39,7 @@ message UpdateRequest { } message DeleteRequest { - string id = 1; + string org_id = 1; } message Filter { diff --git a/proto/roles/roles.proto b/proto/roles/roles.proto index 9522c29..2419ace 100644 --- a/proto/roles/roles.proto +++ b/proto/roles/roles.proto @@ -44,7 +44,7 @@ message CreateResponse { message GetRequest { string space_id = 1; - string id = 2; + string role_id = 2; } message GetResponse { @@ -65,7 +65,7 @@ message ListResponse { message DeleteRequest { string space_id = 1; - string id = 2; + string role_id = 2; } service Roles { diff --git a/proto/spaces/spaces.proto b/proto/spaces/spaces.proto index 714a06a..1b1d07c 100644 --- a/proto/spaces/spaces.proto +++ b/proto/spaces/spaces.proto @@ -74,21 +74,21 @@ message UpdateRequest { } message UpdateConfigRequest { - string id = 1; + string space_id = 1; Config config = 2; } message DeleteRequest { - string id = 1; + string space_id = 1; } message TransferRequest { - string id = 1; // Рдентификатор перемещаемого пространства + string space_id = 1; // Рдентификатор перемещаемого пространства string transfer_to_org = 2; // Рдентификатор организации, РІ которую пространство должно быть перемещено } message AbortTransferRequest { - string id = 1; // Рдентификатор перемещаемого пространства + string space_id = 1; // Рдентификатор перемещаемого пространства } message ListTransfersRequest { @@ -100,7 +100,7 @@ message ListTransfersResponse { } message MoveRequest { - string id = 1; // Рдентификатор перемещаемого пространства + string space_id = 1; // Рдентификатор перемещаемого пространства string org_id = 2; // Рдентификатор организации, РІ которую пространство должно быть перемещено. Обязателен для заполнения только РІ случае запросов СЃ системным уровнем доступа, РІ остальных случаях опционален } diff --git a/proto/users/users.proto b/proto/users/users.proto index c68f9ae..0287fd9 100644 --- a/proto/users/users.proto +++ b/proto/users/users.proto @@ -48,7 +48,7 @@ message CreateResponse { // userId = `current` для получения текущего пользователя message GetRequest { - string id = 1; + string user_id = 1; } message GetResponse { -- GitLab