@@ -14,10 +14,11 @@ class TStorageConfigClient::TImpl : public TClientImplCommon<TStorageConfigClien
14
14
{
15
15
}
16
16
17
- TAsyncStatus ReplaceStorageConfig (const std::optional<TString >& yaml_config,
18
- const std::optional<TString >& storage_yaml_config,
17
+ TAsyncStatus ReplaceStorageConfig (const std::optional<std::string >& yaml_config,
18
+ const std::optional<std::string >& storage_yaml_config,
19
19
std::optional<bool > switch_dedicated_storage_section,
20
- bool dedicated_config_mode) {
20
+ bool dedicated_config_mode,
21
+ const TReplaceStorageConfigSettings& settings) {
21
22
auto request = MakeRequest<Ydb::BSConfig::ReplaceStorageConfigRequest>();
22
23
23
24
if (yaml_config) {
@@ -33,11 +34,12 @@ class TStorageConfigClient::TImpl : public TClientImplCommon<TStorageConfigClien
33
34
34
35
return RunSimple<Ydb::BSConfig::V1::BSConfigService, Ydb::BSConfig::ReplaceStorageConfigRequest, Ydb::BSConfig::ReplaceStorageConfigResponse>(
35
36
std::move (request),
36
- &Ydb::BSConfig::V1::BSConfigService::Stub::AsyncReplaceStorageConfig);
37
+ &Ydb::BSConfig::V1::BSConfigService::Stub::AsyncReplaceStorageConfig,
38
+ TRpcRequestSettings::Make (settings));
37
39
}
38
40
39
41
TAsyncFetchStorageConfigResult FetchStorageConfig (bool dedicated_storage_section, bool dedicated_cluster_section,
40
- const TStorageConfigSettings & settings = {} ) {
42
+ const TFetchStorageConfigSettings & settings) {
41
43
auto request = MakeOperationRequest<Ydb::BSConfig::FetchStorageConfigRequest>(settings);
42
44
if (dedicated_storage_section) {
43
45
request.set_dedicated_storage_section (true );
@@ -70,12 +72,13 @@ class TStorageConfigClient::TImpl : public TClientImplCommon<TStorageConfigClien
70
72
return promise.GetFuture ();
71
73
}
72
74
73
- TAsyncStatus BootstrapCluster (const std::string& selfAssemblyUUID) {
75
+ TAsyncStatus BootstrapCluster (const std::string& selfAssemblyUUID, const TBootstrapClusterSettings& settings ) {
74
76
auto request = MakeRequest<Ydb::BSConfig::BootstrapClusterRequest>();
75
77
request.set_self_assembly_uuid (selfAssemblyUUID);
76
78
return RunSimple<Ydb::BSConfig::V1::BSConfigService, Ydb::BSConfig::BootstrapClusterRequest,
77
79
Ydb::BSConfig::BootstrapClusterResponse>(std::move (request),
78
- &Ydb::BSConfig::V1::BSConfigService::Stub::AsyncBootstrapCluster);
80
+ &Ydb::BSConfig::V1::BSConfigService::Stub::AsyncBootstrapCluster,
81
+ TRpcRequestSettings::Make (settings));
79
82
}
80
83
};
81
84
@@ -85,20 +88,20 @@ TStorageConfigClient::TStorageConfigClient(const TDriver& driver, const TCommonC
85
88
86
89
TStorageConfigClient::~TStorageConfigClient () = default ;
87
90
88
- TAsyncStatus TStorageConfigClient::ReplaceStorageConfig (const std::optional<TString >& yaml_config,
89
- const std::optional<TString >& storage_yaml_config, std::optional<bool > switch_dedicated_storage_section,
90
- bool dedicated_config_mode) {
91
+ TAsyncStatus TStorageConfigClient::ReplaceStorageConfig (const std::optional<std::string >& yaml_config,
92
+ const std::optional<std::string >& storage_yaml_config, std::optional<bool > switch_dedicated_storage_section,
93
+ bool dedicated_config_mode, const TReplaceStorageConfigSettings& settings ) {
91
94
return Impl_->ReplaceStorageConfig (yaml_config, storage_yaml_config, switch_dedicated_storage_section,
92
- dedicated_config_mode);
95
+ dedicated_config_mode, settings );
93
96
}
94
97
95
98
TAsyncFetchStorageConfigResult TStorageConfigClient::FetchStorageConfig (bool dedicated_storage_section,
96
- bool dedicated_cluster_section, const TStorageConfigSettings & settings) {
99
+ bool dedicated_cluster_section, const TFetchStorageConfigSettings & settings) {
97
100
return Impl_->FetchStorageConfig (dedicated_storage_section, dedicated_cluster_section, settings);
98
101
}
99
102
100
- TAsyncStatus TStorageConfigClient::BootstrapCluster (const std::string& selfAssemblyUUID) {
101
- return Impl_->BootstrapCluster (selfAssemblyUUID);
103
+ TAsyncStatus TStorageConfigClient::BootstrapCluster (const std::string& selfAssemblyUUID, const TBootstrapClusterSettings& settings ) {
104
+ return Impl_->BootstrapCluster (selfAssemblyUUID, settings );
102
105
}
103
106
104
107
0 commit comments