Move Version to refs

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2020-08-18 16:14:25 +03:00 committed by Stanislav Bogatyrev
parent b07c1c3173
commit 54778a86ed
4 changed files with 15 additions and 16 deletions

View file

@ -7,7 +7,6 @@ option csharp_namespace = "NeoFS.API.v2.Container";
import "netmap/types.proto";
import "refs/types.proto";
import "service/types.proto";
// Container is a structure that defines object placement behaviour. Objects
// can be stored only within containers. They define placement rule, attributes
@ -16,7 +15,7 @@ import "service/types.proto";
message Container {
// Container format version.
// Effectively the version of API library used to create container
neo.fs.v2.service.Version version = 1;
neo.fs.v2.refs.Version version = 1;
// OwnerID carries identifier of the container owner.
neo.fs.v2.refs.OwnerID owner_id = 2;

View file

@ -31,7 +31,7 @@ enum MatchType {
// Short header fields
message ShortHeader {
// Object format version.
neo.fs.v2.service.Version version = 1;
neo.fs.v2.refs.Version version = 1;
// Epoch when the object was created
uint64 creation_epoch = 2;
@ -51,7 +51,7 @@ message ShortHeader {
message Header {
// Object format version.
// Effectively the version of API library used to create particular object
neo.fs.v2.service.Version version = 1;
neo.fs.v2.refs.Version version = 1;
// Object's container
neo.fs.v2.refs.ContainerID container_id = 2;

View file

@ -29,4 +29,13 @@ message ContainerID {
message OwnerID {
// value carries the identifier of the container owner in a binary format.
bytes value = 1;
}
}
// Represents API version used by node.
message Version {
// Major API version.
uint32 major = 1;
// Minor API version.
uint32 minor = 2;
}

View file

@ -17,15 +17,6 @@ message XHeader {
string value = 2;
}
// Represents API version used by node.
message Version {
// Major API version.
uint32 major = 1;
// Minor API version.
uint32 minor = 2;
}
// Lifetime parameters of the token. Filed names taken from rfc7519.
message TokenLifetime {
// Expiration Epoch
@ -125,7 +116,7 @@ message BearerToken {
// Information about the request
message RequestMetaHeader {
// Client API version.
Version version = 1;
neo.fs.v2.refs.Version version = 1;
// Client local epoch number. Set to 0 if unknown.
uint64 epoch = 2;
@ -149,7 +140,7 @@ message RequestMetaHeader {
// Information about the response
message ResponseMetaHeader {
// Server API version.
Version version = 1;
neo.fs.v2.refs.Version version = 1;
// Server local epoch number.
uint64 epoch = 2;