diff options
| -rw-r--r-- | yt/yt/client/api/rpc_proxy/helpers.cpp | 8 | ||||
| -rw-r--r-- | yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/yt/yt/client/api/rpc_proxy/helpers.cpp b/yt/yt/client/api/rpc_proxy/helpers.cpp index 38dd71f7db6..82a098e4d4c 100644 --- a/yt/yt/client/api/rpc_proxy/helpers.cpp +++ b/yt/yt/client/api/rpc_proxy/helpers.cpp @@ -1396,6 +1396,9 @@ void ToProto( if (query.OtherAttributes) { ToProto(protoQuery->mutable_other_attributes(), *query.OtherAttributes); } + if (query.Secrets) { + protoQuery->set_secrets(ToProto(*query.Secrets)); + } } void FromProto( @@ -1435,6 +1438,11 @@ void FromProto( } else if (query->OtherAttributes) { query->OtherAttributes->Clear(); } + if (protoQuery.has_secrets()) { + query->Secrets = TYsonString(protoQuery.secrets()); + } else if (query->Secrets) { + query->Secrets = TYsonString{}; + } } //////////////////////////////////////////////////////////////////////////////// diff --git a/yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto b/yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto index 59529c37999..35c619ea9f0 100644 --- a/yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto +++ b/yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto @@ -3541,6 +3541,7 @@ message TQuery optional bytes annotations = 14; // YSON optional NYT.NYTree.NProto.TAttributeDictionary other_attributes = 15; optional bytes access_control_objects = 16; // YSON + optional bytes secrets = 17; // YSON } //////////////////////////////////////////////////////////////////////////////// |
