forked from TrueCloudLab/frostfs-api
[#49] Minor reformat
- Trying to move enums to the package level - Trying to keep all definitions in types.proto Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
e63a482529
commit
7555e166b2
5 changed files with 134 additions and 131 deletions
|
@ -247,24 +247,6 @@ message HeadRequest {
|
|||
message HeadResponse {
|
||||
// Response body
|
||||
message Body {
|
||||
// Short header fields
|
||||
message ShortHeader {
|
||||
// Object format version.
|
||||
neo.fs.v2.service.Version version = 1;
|
||||
|
||||
// Epoch when the object was created
|
||||
uint64 creation_epoch = 2;
|
||||
|
||||
// Object's owner
|
||||
neo.fs.v2.refs.OwnerID owner_id = 3;
|
||||
|
||||
// Type of the object payload content
|
||||
ObjectType object_type = 4;
|
||||
|
||||
// Size of payload in bytes.
|
||||
// 0xFFFFFFFFFFFFFFFF means `payload_length` is unknown
|
||||
uint64 payload_length = 5;
|
||||
}
|
||||
// Carries the requested object header or it's part
|
||||
oneof head{
|
||||
// Full object header
|
||||
|
@ -298,13 +280,6 @@ message SearchRequest {
|
|||
uint32 version = 2;
|
||||
// Filter structure
|
||||
message Filter {
|
||||
// Type of match expression
|
||||
enum MatchType {
|
||||
// Unknown. Not used
|
||||
MATCH_TYPE_UNSPECIFIED = 0;
|
||||
// Full string match
|
||||
STRING_EQUAL = 1;
|
||||
}
|
||||
// Match type to use
|
||||
MatchType match_type = 1;
|
||||
|
||||
|
|
|
@ -21,6 +21,33 @@ enum ObjectType {
|
|||
STORAGE_GROUP = 2;
|
||||
}
|
||||
|
||||
// Type of match expression
|
||||
enum MatchType {
|
||||
// Unknown. Not used
|
||||
MATCH_TYPE_UNSPECIFIED = 0;
|
||||
// Full string match
|
||||
STRING_EQUAL = 1;
|
||||
}
|
||||
|
||||
// Short header fields
|
||||
message ShortHeader {
|
||||
// Object format version.
|
||||
neo.fs.v2.service.Version version = 1;
|
||||
|
||||
// Epoch when the object was created
|
||||
uint64 creation_epoch = 2;
|
||||
|
||||
// Object's owner
|
||||
neo.fs.v2.refs.OwnerID owner_id = 3;
|
||||
|
||||
// Type of the object payload content
|
||||
ObjectType object_type = 4;
|
||||
|
||||
// Size of payload in bytes.
|
||||
// 0xFFFFFFFFFFFFFFFF means `payload_length` is unknown
|
||||
uint64 payload_length = 5;
|
||||
}
|
||||
|
||||
// Object Headers
|
||||
message Header {
|
||||
// Object's container
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue