[#157] container: Add session token to GetResponse body

Container can be created within a session. The presence of a session token
in the GET response body allows you to reflect this fact.

Add `session_token` field of `session.SessionToken` type to
`container.GetResponse.Body` message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-24 14:21:22 +03:00 committed by Stanislav Bogatyrev
parent 4b3794cbb9
commit 81d6c73147

View file

@ -167,6 +167,12 @@ message GetResponse {
message Body {
// Requested container structure
Container container = 1;
// Signature of a stable-marshalled container according to RFC-6979
neo.fs.v2.refs.Signature signature = 2;
// Session token if the container was created within a session
neo.fs.v2.session.SessionToken session_token = 3;
}
// Body of container get response message.
Body body = 1;