File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
include/ydb-cpp-sdk/client/draft Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ class TRunningState {
100
100
101
101
struct TDoneState {};
102
102
103
+ struct TPausedState {};
104
+
103
105
class TErrorState {
104
106
class TImpl ;
105
107
@@ -131,6 +133,7 @@ class TReplicationDescription {
131
133
Running,
132
134
Error,
133
135
Done,
136
+ Paused,
134
137
};
135
138
136
139
explicit TReplicationDescription (const Ydb::Replication::DescribeReplicationResult& desc);
@@ -145,6 +148,7 @@ class TReplicationDescription {
145
148
const TRunningState& GetRunningState () const ;
146
149
const TErrorState& GetErrorState () const ;
147
150
const TDoneState& GetDoneState () const ;
151
+ const TPausedState& GetPausedState () const ;
148
152
149
153
private:
150
154
TConnectionParams ConnectionParams_;
@@ -158,7 +162,8 @@ class TReplicationDescription {
158
162
std::variant<
159
163
TRunningState,
160
164
TErrorState,
161
- TDoneState
165
+ TDoneState,
166
+ TPausedState
162
167
> State_;
163
168
};
164
169
Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ message DescribeReplicationResult {
77
77
message DoneState {
78
78
}
79
79
80
+ message PausedState {
81
+ }
82
+
80
83
// Description of scheme object.
81
84
Ydb.Scheme.Entry self = 1 ;
82
85
@@ -90,6 +93,7 @@ message DescribeReplicationResult {
90
93
RunningState running = 4 ;
91
94
ErrorState error = 5 ;
92
95
DoneState done = 6 ;
96
+ PausedState paused = 9 ;
93
97
}
94
98
}
95
99
Original file line number Diff line number Diff line change @@ -162,6 +162,10 @@ TReplicationDescription::TReplicationDescription(const Ydb::Replication::Describ
162
162
State_ = TDoneState ();
163
163
break ;
164
164
165
+ case Ydb::Replication::DescribeReplicationResult::kPaused :
166
+ State_ = TPausedState ();
167
+ break ;
168
+
165
169
default :
166
170
break ;
167
171
}
@@ -200,6 +204,10 @@ const TDoneState& TReplicationDescription::GetDoneState() const {
200
204
return std::get<TDoneState>(State_);
201
205
}
202
206
207
+ const TPausedState& TReplicationDescription::GetPausedState () const {
208
+ return std::get<TPausedState>(State_);
209
+ }
210
+
203
211
TDescribeReplicationResult::TDescribeReplicationResult (TStatus&& status, Ydb::Replication::DescribeReplicationResult&& desc)
204
212
: NScheme::TDescribePathResult(std::move(status), desc.self())
205
213
, ReplicationDescription_(desc)
You can’t perform that action at this time.
0 commit comments