File tree Expand file tree Collapse file tree 6 files changed +55
-1
lines changed
include/ydb-cpp-sdk/client Expand file tree Collapse file tree 6 files changed +55
-1
lines changed Original file line number Diff line number Diff line change 1- ca39c1dc5e3592adab111f61e4aaec2021bfa95b
1+ b221825ccb0f9e8813d5df19a7167ecdd5b9f098
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ class TProtoAccessor {
5454 static const Ydb::Import::ListObjectsInS3ExportResult& GetProto (const NYdb::NImport::TListObjectsInS3ExportResult& result);
5555#ifdef YDB_SDK_INTERNAL_CLIENTS
5656 static const Ydb::Replication::DescribeReplicationResult& GetProto (const NYdb::NReplication::TDescribeReplicationResult& desc);
57+ static const Ydb::Replication::DescribeTransferResult& GetProto (const NYdb::NReplication::TDescribeTransferResult& desc);
5758 static const Ydb::View::DescribeViewResult& GetProto (const NYdb::NView::TDescribeViewResult& desc);
5859#endif
5960
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ enum class ESchemeEntryType : i32 {
5151 View = 20 ,
5252 ResourcePool = 21 ,
5353 SysView = 22 ,
54+ Transfer = 23 ,
5455};
5556
5657struct TVirtualTimestamp {
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ option java_package = "com.yandex.ydb.replication.v1";
77
88service ReplicationService {
99 rpc DescribeReplication (Replication .DescribeReplicationRequest ) returns (Replication .DescribeReplicationResponse );
10+ rpc DescribeTransfer (Replication .DescribeTransferRequest ) returns (Replication .DescribeTransferResponse );
1011}
Original file line number Diff line number Diff line change @@ -97,3 +97,52 @@ message DescribeReplicationResult {
9797 }
9898}
9999
100+ message DescribeTransferRequest {
101+ Ydb.Operations.OperationParams operation_params = 1 ;
102+ // Replication path.
103+ string path = 2 [(required) = true ];
104+ }
105+
106+ message DescribeTransferResponse {
107+ // Result of request will be inside operation.
108+ Ydb.Operations.Operation operation = 1 ;
109+ }
110+
111+ message DescribeTransferResult {
112+ message RunningState {
113+ }
114+
115+ message ErrorState {
116+ repeated Ydb.Issue.IssueMessage issues = 1 ;
117+ }
118+
119+ message DoneState {
120+ }
121+
122+ message PausedState {
123+ }
124+
125+ // Description of scheme object.
126+ Ydb.Scheme.Entry self = 1 ;
127+
128+ ConnectionParams connection_params = 2 ;
129+
130+ oneof state {
131+ RunningState running = 3 ;
132+ ErrorState error = 4 ;
133+ DoneState done = 5 ;
134+ PausedState paused = 6 ;
135+ }
136+
137+ string source_path = 7 ;
138+ string destination_path = 8 ;
139+ string transformation_lambda = 9 ;
140+ string consumer_name = 10 ;
141+
142+ message BatchSettings {
143+ optional uint64 size_bytes = 1 ;
144+ google.protobuf.Duration flush_interval = 2 ;
145+ }
146+
147+ optional BatchSettings batch_settings = 11 ;
148+ }
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ static ESchemeEntryType ConvertProtoEntryType(::Ydb::Scheme::Entry::Type entry)
111111 return ESchemeEntryType::ResourcePool;
112112 case ::Ydb::Scheme::Entry::SYS_VIEW:
113113 return ESchemeEntryType::SysView;
114+ case ::Ydb::Scheme::Entry::TRANSFER:
115+ return ESchemeEntryType::Transfer;
114116 default :
115117 return ESchemeEntryType::Unknown;
116118 }
You can’t perform that action at this time.
0 commit comments