[#40] service: Change names of Token.Info.Verb enum

Add the prefix Object to the session verb values to abstract the token from
the object.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-11 11:22:46 +03:00 committed by Stanislav Bogatyrev
parent e6b2810648
commit fa7c269500
2 changed files with 21 additions and 21 deletions

View file

@ -174,13 +174,13 @@ Verb is an enumeration of session request types
| Name | Number | Description |
| ---- | ------ | ----------- |
| PUT | 0 | Put refers to object.Put RPC call |
| GET | 1 | Get refers to object.Get RPC call |
| HEAD | 2 | Head refers to object.Head RPC call |
| SEARCH | 3 | Search refers to object.Search RPC call |
| DELETE | 4 | Delete refers to object.Delete RPC call |
| RANGE | 5 | Range refers to object.GetRange RPC call |
| RANGEHASH | 6 | RangeHash refers to object.GetRangeHash RPC call |
| OBJECT_PUT | 0 | Refers to object.Put RPC call |
| OBJECT_GET | 1 | Refers to object.Get RPC call |
| OBJECT_HEAD | 2 | Refers to object.Head RPC call |
| OBJECT_SEARCH | 3 | Refers to object.Search RPC call |
| OBJECT_DELETE | 4 | Refers to object.Delete RPC call |
| OBJECT_RANGE | 5 | Refers to object.GetRange RPC call |
| OBJECT_RANGEHASH | 6 | Refers to object.GetRangeHash RPC call |
<!-- end enums -->

View file

@ -39,20 +39,20 @@ message Token {
// Verb is an enumeration of session request types
enum Verb {
// Put refers to object.Put RPC call
PUT = 0;
// Get refers to object.Get RPC call
GET = 1;
// Head refers to object.Head RPC call
HEAD = 2;
// Search refers to object.Search RPC call
SEARCH = 3;
// Delete refers to object.Delete RPC call
DELETE = 4;
// Range refers to object.GetRange RPC call
RANGE = 5;
// RangeHash refers to object.GetRangeHash RPC call
RANGEHASH = 6;
// Refers to object.Put RPC call
OBJECT_PUT = 0;
// Refers to object.Get RPC call
OBJECT_GET = 1;
// Refers to object.Head RPC call
OBJECT_HEAD = 2;
// Refers to object.Search RPC call
OBJECT_SEARCH = 3;
// Refers to object.Delete RPC call
OBJECT_DELETE = 4;
// Refers to object.GetRange RPC call
OBJECT_RANGE = 5;
// Refers to object.GetRangeHash RPC call
OBJECT_RANGEHASH = 6;
}
// Verb is a type of request for which the token is issued