File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
include/ydb-cpp-sdk/client/discovery Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
- cde1dc253a0f9d5f7f11bfe9adb826e4748adf1c
1
+ a19b867b82af456bce938a0506364f0ba85214a5
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ struct TNodeRegistrationSettings : public TSimpleRequestSettings<TNodeRegistrati
48
48
FLUENT_SETTING (std::string, DomainPath);
49
49
FLUENT_SETTING_DEFAULT (bool , FixedNodeId, false );
50
50
FLUENT_SETTING (std::string, Path);
51
+ FLUENT_SETTING (std::string, BridgePileName);
51
52
};
52
53
53
54
struct TEndpointInfo {
@@ -96,6 +97,7 @@ struct TNodeInfo {
96
97
std::string Address;
97
98
TNodeLocation Location;
98
99
uint64_t Expire;
100
+ std::optional<uint32_t > BridgePileId;
99
101
};
100
102
101
103
class TNodeRegistrationResult : public TStatus {
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ message NodeInfo {
83
83
optional string address = 5 ;
84
84
optional NodeLocation location = 6 ;
85
85
optional uint64 expire = 7 ;
86
+ optional uint32 bridge_pile_id = 8 ;
86
87
}
87
88
88
89
message NodeRegistrationRequest {
@@ -94,6 +95,7 @@ message NodeRegistrationRequest {
94
95
optional string domain_path = 6 ;
95
96
optional bool fixed_node_id = 7 ;
96
97
optional string path = 8 ;
98
+ optional string bridge_pile_name = 9 ;
97
99
}
98
100
99
101
message NodeRegistrationResult {
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ TNodeInfo::TNodeInfo(const Ydb::Discovery::NodeInfo& info)
77
77
, Address(info.address())
78
78
, Location(info.location())
79
79
, Expire(info.expire())
80
- {}
80
+ , BridgePileId(info.has_bridge_pile_id() ? std::make_optional(info.bridge_pile_id()) : std::nullopt)
81
+ {}
81
82
82
83
TNodeRegistrationResult::TNodeRegistrationResult (TStatus&& status, const Ydb::Discovery::NodeRegistrationResult& proto)
83
84
: TStatus(std::move(status))
@@ -208,6 +209,9 @@ class TDiscoveryClient::TImpl : public TClientImplCommon<TDiscoveryClient::TImpl
208
209
if (!settings.Path_ .empty ()) {
209
210
request.set_path (TStringType{settings.Path_ });
210
211
}
212
+ if (!settings.BridgePileName_ .empty ()) {
213
+ request.set_bridge_pile_name (TStringType{settings.BridgePileName_ });
214
+ }
211
215
212
216
auto requestLocation = request.mutable_location ();
213
217
const auto & location = settings.Location_ ;
You can’t perform that action at this time.
0 commit comments