blob: 10f64dd6a341dbb5fa5590b33263db7fb613fb12 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "scope.h"
namespace NYdb {
namespace NYq {
template<typename T>
T CreateYqSettings(const TString& folderId)
{
T settings;
settings.Header_ = {{ "x-yq-scope", TScope::YandexCloudScopeSchema + "://" + folderId }}; // TODO: remove YQ-1055
settings.Header_ = {{ "x-fq-scope", TScope::YandexCloudScopeSchema + "://" + folderId }};
return settings;
}
template<typename T>
T CreateYqSettings(const TScope& scope)
{
T settings;
settings.Header_ = {{ "x-yq-scope", scope.ToString() }}; // TODO: remove YQ-1055
settings.Header_ = {{ "x-fq-scope", scope.ToString() }};
return settings;
}
} // namespace NYq
} // namespace Ndb
|