diff --git a/CODEOWNERS b/CODEOWNERS index 854e751..e72ee14 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,3 +1,3 @@ -.* @alexvanin @realloc @fyrchik @a.bogatyrev @TrueCloudLab/storage-sdk-developers +.* @alexvanin @realloc @fyrchik @a.bogatyrev .forgejo/.* @potyarkin Makefile @potyarkin diff --git a/accounting/service.proto b/accounting/service.proto index cd49b4d..eedd4ce 100644 --- a/accounting/service.proto +++ b/accounting/service.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.accounting; diff --git a/accounting/types.proto b/accounting/types.proto index 7f5e89c..5dd9b50 100644 --- a/accounting/types.proto +++ b/accounting/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.accounting; diff --git a/acl/types.proto b/acl/types.proto index 78f247a..fdaffd4 100644 --- a/acl/types.proto +++ b/acl/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.acl; diff --git a/ape/types.proto b/ape/types.proto index 2cbc5a9..3a97e60 100644 --- a/ape/types.proto +++ b/ape/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package frostfs.v2.ape; diff --git a/apemanager/service.proto b/apemanager/service.proto index 64c2565..166ba4d 100644 --- a/apemanager/service.proto +++ b/apemanager/service.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package frostfs.v2.apemanager; diff --git a/container/service.proto b/container/service.proto index 72b3789..a9a33d2 100644 --- a/container/service.proto +++ b/container/service.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.container; diff --git a/container/types.proto b/container/types.proto index d114205..d133a45 100644 --- a/container/types.proto +++ b/container/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.container; diff --git a/lock/types.proto b/lock/types.proto index dc55276..2fdafa5 100644 --- a/lock/types.proto +++ b/lock/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.lock; diff --git a/netmap/service.proto b/netmap/service.proto index c21fb53..dce43f4 100644 --- a/netmap/service.proto +++ b/netmap/service.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.netmap; diff --git a/netmap/types.proto b/netmap/types.proto index b76b3c1..969790c 100644 --- a/netmap/types.proto +++ b/netmap/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.netmap; diff --git a/object/service.proto b/object/service.proto index c5e4fc7..e6ab5e0 100644 --- a/object/service.proto +++ b/object/service.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.object; @@ -124,9 +124,6 @@ service ObjectService { // returned. If `main_only` request field is set, the short header with only // the very minimal information will be returned instead. // - // Max header size is currently not limited by this API, but may be restricted - // on the service level. By default, gRPC uses a message size of 4 MiB. - // // Extended headers can change `Head` behaviour: // * [ __SYSTEM__NETMAP_EPOCH ] \ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \ @@ -573,7 +570,6 @@ message HeadResponse { ShortHeader short_header = 2; // Meta information of split hierarchy. - // Indicates that the object is virtual, manual assembly is required. SplitInfo split_info = 3; // Meta information for EC object assembly. @@ -891,10 +887,6 @@ message PatchRequest { // key, then it just replaces it while merging the lists. bool replace_attributes = 3; - // New split header for the object. This defines how the object will relate - // to other objects in a split operation. - neo.fs.v2.object.Header.Split new_split_header = 5; - // The patch for the object's payload. message Patch { // The range of the source object for which the payload is replaced by the diff --git a/object/types.proto b/object/types.proto index 62a6792..6e9469b 100644 --- a/object/types.proto +++ b/object/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.object; @@ -141,8 +141,7 @@ message Header { // * Name \ // Human-friendly name // * FileName \ - // File name to be associated with the object on saving. FileName must not - // contain the delimiting symbol '/'. + // File name to be associated with the object on saving // * FilePath \ // Full path to be associated with the object on saving. Should start with a // '/' and use '/' as a delimiting symbol. Trailing '/' should be diff --git a/proto-docs/container.md b/proto-docs/container.md index 7ee5dab..76cc115 100644 --- a/proto-docs/container.md +++ b/proto-docs/container.md @@ -20,10 +20,6 @@ - [ListRequest.Body](#neo.fs.v2.container.ListRequest.Body) - [ListResponse](#neo.fs.v2.container.ListResponse) - [ListResponse.Body](#neo.fs.v2.container.ListResponse.Body) - - [ListStreamRequest](#neo.fs.v2.container.ListStreamRequest) - - [ListStreamRequest.Body](#neo.fs.v2.container.ListStreamRequest.Body) - - [ListStreamResponse](#neo.fs.v2.container.ListStreamResponse) - - [ListStreamResponse.Body](#neo.fs.v2.container.ListStreamResponse.Body) - [PutRequest](#neo.fs.v2.container.PutRequest) - [PutRequest.Body](#neo.fs.v2.container.PutRequest.Body) - [PutResponse](#neo.fs.v2.container.PutResponse) @@ -62,7 +58,6 @@ rpc Put(PutRequest) returns (PutResponse); rpc Delete(DeleteRequest) returns (DeleteResponse); rpc Get(GetRequest) returns (GetResponse); rpc List(ListRequest) returns (ListResponse); -rpc ListStream(ListStreamRequest) returns (stream ListStreamResponse); ``` @@ -118,7 +113,7 @@ Statuses: | Get | [GetRequest](#neo.fs.v2.container.GetRequest) | [GetResponse](#neo.fs.v2.container.GetResponse) | #### Method List -Returns all owner's containers from `Container` smart contract storage. +Returns all owner's containers from 'Container` smart contract' storage. Statuses: - **OK** (0, SECTION_SUCCESS): \ @@ -130,21 +125,6 @@ Statuses: | Name | Input | Output | | ---- | ----- | ------ | | List | [ListRequest](#neo.fs.v2.container.ListRequest) | [ListResponse](#neo.fs.v2.container.ListResponse) | -#### Method ListStream - -Returns all owner's containers from `Container` smart contract storage -via stream. - -Statuses: -- **OK** (0, SECTION_SUCCESS): \ - container list has been successfully read; -- Common failures (SECTION_FAILURE_COMMON); -- **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \ - container list access denied. - -| Name | Input | Output | -| ---- | ----- | ------ | -| ListStream | [ListStreamRequest](#neo.fs.v2.container.ListStreamRequest) | [ListStreamResponse](#neo.fs.v2.container.ListStreamResponse) | @@ -296,54 +276,6 @@ List containers response body. | container_ids | [neo.fs.v2.refs.ContainerID](#neo.fs.v2.refs.ContainerID) | repeated | List of `ContainerID`s belonging to the requested `OwnerID` | - - -### Message ListStreamRequest -List containers stream - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| body | [ListStreamRequest.Body](#neo.fs.v2.container.ListStreamRequest.Body) | | Body of list containers stream request message. | -| meta_header | [neo.fs.v2.session.RequestMetaHeader](#neo.fs.v2.session.RequestMetaHeader) | | Carries request meta information. Header data is used only to regulate message transport and does not affect request execution. | -| verify_header | [neo.fs.v2.session.RequestVerificationHeader](#neo.fs.v2.session.RequestVerificationHeader) | | Carries request verification information. This header is used to authenticate the nodes of the message route and check the correctness of transmission. | - - - - -### Message ListStreamRequest.Body -List containers stream request body. - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| owner_id | [neo.fs.v2.refs.OwnerID](#neo.fs.v2.refs.OwnerID) | | Identifier of the container owner. | - - - - -### Message ListStreamResponse -List containers stream - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| body | [ListStreamResponse.Body](#neo.fs.v2.container.ListStreamResponse.Body) | | Body of list containers stream response message. | -| meta_header | [neo.fs.v2.session.ResponseMetaHeader](#neo.fs.v2.session.ResponseMetaHeader) | | Carries response meta information. Header data is used only to regulate message transport and does not affect request execution. | -| verify_header | [neo.fs.v2.session.ResponseVerificationHeader](#neo.fs.v2.session.ResponseVerificationHeader) | | Carries response verification information. This header is used to authenticate the nodes of the message route and check the correctness of transmission. | - - - - -### Message ListStreamResponse.Body -List containers stream response body. - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| container_ids | [neo.fs.v2.refs.ContainerID](#neo.fs.v2.refs.ContainerID) | repeated | List of `ContainerID`s belonging to the requested `OwnerID` | - - ### Message PutRequest diff --git a/proto-docs/object.md b/proto-docs/object.md index 14b9ae6..dd30ede 100644 --- a/proto-docs/object.md +++ b/proto-docs/object.md @@ -223,9 +223,6 @@ Returns the object Headers without data payload. By default full header is returned. If `main_only` request field is set, the short header with only the very minimal information will be returned instead. -Max header size is currently not limited by this API, but may be restricted -on the service level. By default, gRPC uses a message size of 4 MiB. - Extended headers can change `Head` behaviour: * [ __SYSTEM__NETMAP_EPOCH ] \ (`__NEOFS__NETMAP_EPOCH` is deprecated) \ @@ -731,7 +728,7 @@ Object HEAD response body | ----- | ---- | ----- | ----------- | | header | [HeaderWithSignature](#neo.fs.v2.object.HeaderWithSignature) | | Full object's `Header` with `ObjectID` signature | | short_header | [ShortHeader](#neo.fs.v2.object.ShortHeader) | | Short object header | -| split_info | [SplitInfo](#neo.fs.v2.object.SplitInfo) | | Meta information of split hierarchy. Indicates that the object is virtual, manual assembly is required. | +| split_info | [SplitInfo](#neo.fs.v2.object.SplitInfo) | | Meta information of split hierarchy. | | ec_info | [ECInfo](#neo.fs.v2.object.ECInfo) | | Meta information for EC object assembly. | diff --git a/proto-docs/status.md b/proto-docs/status.md index b00d000..76534fb 100644 --- a/proto-docs/status.md +++ b/proto-docs/status.md @@ -102,7 +102,6 @@ Section of failed statuses independent of the operation. | SIGNATURE_VERIFICATION_FAIL | 2 | [**1026**] Signature verification failure. | | NODE_UNDER_MAINTENANCE | 3 | [**1027**] Node is under maintenance. | | INVALID_ARGUMENT | 4 | [**1028**] Invalid argument error. If the server fails on validation of a request parameter as the client sent it incorrectly, then this code should be used. | -| RESOURCE_EXHAUSTED | 5 | [**1029**] Resource exhausted failure. This code should be used if the operation cannot be performed due to a lack of resources. | diff --git a/refs/types.proto b/refs/types.proto index 2464c34..fe12ec6 100644 --- a/refs/types.proto +++ b/refs/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.refs; diff --git a/session/service.proto b/session/service.proto index c9a7948..544556b 100644 --- a/session/service.proto +++ b/session/service.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.session; diff --git a/session/types.proto b/session/types.proto index 1e5b9db..c5bb695 100644 --- a/session/types.proto +++ b/session/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.session; diff --git a/status/types.proto b/status/types.proto index 6a98f84..d3e09fd 100644 --- a/status/types.proto +++ b/status/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.status; @@ -109,10 +109,6 @@ enum CommonFail { // request parameter as the client sent it incorrectly, then this code should // be used. INVALID_ARGUMENT = 4; - - // [**1029**] Resource exhausted failure. This code should be used - // if the operation cannot be performed due to a lack of resources. - RESOURCE_EXHAUSTED = 5; } // Section of statuses for object-related operations. diff --git a/tombstone/types.proto b/tombstone/types.proto index aac19b0..ccf1257 100644 --- a/tombstone/types.proto +++ b/tombstone/types.proto @@ -1,4 +1,4 @@ -edition = "2023"; +syntax = "proto3"; package neo.fs.v2.tombstone;