From 1647242397f0d9f019ab49043e4f50d4b6de90ee Mon Sep 17 00:00:00 2001 From: Stanislav Bogatyrev Date: Tue, 18 Aug 2020 14:00:34 +0300 Subject: [PATCH] [#46] Rename session context fields It should simplify reading. Signed-off-by: Stanislav Bogatyrev --- proto-docs/service.md | 14 +++++++------- service/meta.proto | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/proto-docs/service.md b/proto-docs/service.md index c2cdd29..389c54d 100644 --- a/proto-docs/service.md +++ b/proto-docs/service.md @@ -8,7 +8,7 @@ - Messages - [BearerToken](#neo.fs.v2.service.BearerToken) - [BearerToken.Body](#neo.fs.v2.service.BearerToken.Body) - - [ObjectServiceContext](#neo.fs.v2.service.ObjectServiceContext) + - [ObjectSessionContext](#neo.fs.v2.service.ObjectSessionContext) - [RequestMetaHeader](#neo.fs.v2.service.RequestMetaHeader) - [ResponseMetaHeader](#neo.fs.v2.service.ResponseMetaHeader) - [SessionToken](#neo.fs.v2.service.SessionToken) @@ -64,15 +64,15 @@ Bearer Token body | lifetime | [TokenLifetime](#neo.fs.v2.service.TokenLifetime) | | Token expiration and valid time period parameters | - + -### Message ObjectServiceContext +### Message ObjectSessionContext Context information for Session Tokens related to ObjectService requests | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| verb | [ObjectServiceContext.Verb](#neo.fs.v2.service.ObjectServiceContext.Verb) | | Verb is a type of request for which the token is issued | +| verb | [ObjectSessionContext.Verb](#neo.fs.v2.service.ObjectSessionContext.Verb) | | Verb is a type of request for which the token is issued | | address | [neo.fs.v2.refs.Address](#neo.fs.v2.refs.Address) | | Related Object address | @@ -132,7 +132,7 @@ Session token body | owner_id | [neo.fs.v2.refs.OwnerID](#neo.fs.v2.refs.OwnerID) | | OwnerID carries identifier of the session initiator. | | lifetime | [TokenLifetime](#neo.fs.v2.service.TokenLifetime) | | Lifetime is a lifetime of the session | | session_key | [bytes](#bytes) | | SessionKey is a public key of session key | -| object_service | [ObjectServiceContext](#neo.fs.v2.service.ObjectServiceContext) | | ObjectService session context. | +| object | [ObjectSessionContext](#neo.fs.v2.service.ObjectSessionContext) | | ObjectService session context. | @@ -174,9 +174,9 @@ Extended headers for Request/Response - + -### ObjectServiceContext.Verb +### ObjectSessionContext.Verb Object request verbs | Name | Number | Description | diff --git a/service/meta.proto b/service/meta.proto index ddf8d64..aad0277 100644 --- a/service/meta.proto +++ b/service/meta.proto @@ -40,7 +40,7 @@ message TokenLifetime { } // Context information for Session Tokens related to ObjectService requests -message ObjectServiceContext { +message ObjectSessionContext { // Object request verbs enum Verb { // Unknown verb @@ -93,7 +93,7 @@ message SessionToken { // Carries context of the session. oneof context { // ObjectService session context. - ObjectServiceContext object_service = 5; + ObjectSessionContext object = 5; } } // Session Token body