forked from TrueCloudLab/frostfs-api
Move Version to refs
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
b07c1c3173
commit
54778a86ed
4 changed files with 15 additions and 16 deletions
|
@ -7,7 +7,6 @@ option csharp_namespace = "NeoFS.API.v2.Container";
|
||||||
|
|
||||||
import "netmap/types.proto";
|
import "netmap/types.proto";
|
||||||
import "refs/types.proto";
|
import "refs/types.proto";
|
||||||
import "service/types.proto";
|
|
||||||
|
|
||||||
// Container is a structure that defines object placement behaviour. Objects
|
// Container is a structure that defines object placement behaviour. Objects
|
||||||
// can be stored only within containers. They define placement rule, attributes
|
// can be stored only within containers. They define placement rule, attributes
|
||||||
|
@ -16,7 +15,7 @@ import "service/types.proto";
|
||||||
message Container {
|
message Container {
|
||||||
// Container format version.
|
// Container format version.
|
||||||
// Effectively the version of API library used to create container
|
// 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.
|
// OwnerID carries identifier of the container owner.
|
||||||
neo.fs.v2.refs.OwnerID owner_id = 2;
|
neo.fs.v2.refs.OwnerID owner_id = 2;
|
||||||
|
|
|
@ -31,7 +31,7 @@ enum MatchType {
|
||||||
// Short header fields
|
// Short header fields
|
||||||
message ShortHeader {
|
message ShortHeader {
|
||||||
// Object format version.
|
// Object format version.
|
||||||
neo.fs.v2.service.Version version = 1;
|
neo.fs.v2.refs.Version version = 1;
|
||||||
|
|
||||||
// Epoch when the object was created
|
// Epoch when the object was created
|
||||||
uint64 creation_epoch = 2;
|
uint64 creation_epoch = 2;
|
||||||
|
@ -51,7 +51,7 @@ message ShortHeader {
|
||||||
message Header {
|
message Header {
|
||||||
// Object format version.
|
// Object format version.
|
||||||
// Effectively the version of API library used to create particular object
|
// 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
|
// Object's container
|
||||||
neo.fs.v2.refs.ContainerID container_id = 2;
|
neo.fs.v2.refs.ContainerID container_id = 2;
|
||||||
|
|
|
@ -29,4 +29,13 @@ message ContainerID {
|
||||||
message OwnerID {
|
message OwnerID {
|
||||||
// value carries the identifier of the container owner in a binary format.
|
// value carries the identifier of the container owner in a binary format.
|
||||||
bytes value = 1;
|
bytes value = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Represents API version used by node.
|
||||||
|
message Version {
|
||||||
|
// Major API version.
|
||||||
|
uint32 major = 1;
|
||||||
|
|
||||||
|
// Minor API version.
|
||||||
|
uint32 minor = 2;
|
||||||
|
}
|
||||||
|
|
|
@ -17,15 +17,6 @@ message XHeader {
|
||||||
string value = 2;
|
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.
|
// Lifetime parameters of the token. Filed names taken from rfc7519.
|
||||||
message TokenLifetime {
|
message TokenLifetime {
|
||||||
// Expiration Epoch
|
// Expiration Epoch
|
||||||
|
@ -125,7 +116,7 @@ message BearerToken {
|
||||||
// Information about the request
|
// Information about the request
|
||||||
message RequestMetaHeader {
|
message RequestMetaHeader {
|
||||||
// Client API version.
|
// Client API version.
|
||||||
Version version = 1;
|
neo.fs.v2.refs.Version version = 1;
|
||||||
|
|
||||||
// Client local epoch number. Set to 0 if unknown.
|
// Client local epoch number. Set to 0 if unknown.
|
||||||
uint64 epoch = 2;
|
uint64 epoch = 2;
|
||||||
|
@ -149,7 +140,7 @@ message RequestMetaHeader {
|
||||||
// Information about the response
|
// Information about the response
|
||||||
message ResponseMetaHeader {
|
message ResponseMetaHeader {
|
||||||
// Server API version.
|
// Server API version.
|
||||||
Version version = 1;
|
neo.fs.v2.refs.Version version = 1;
|
||||||
|
|
||||||
// Server local epoch number.
|
// Server local epoch number.
|
||||||
uint64 epoch = 2;
|
uint64 epoch = 2;
|
||||||
|
|
Loading…
Reference in a new issue