mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-09 03:49:08 +00:00
50 lines
948 B
Protocol Buffer
50 lines
948 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package transformation;
|
|
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
|
|
|
|
service TransformationService {
|
|
rpc Create(CreateTransformationRequest) returns (Transformation) {}
|
|
rpc Show(IdRequest) returns (Transformation) {}
|
|
rpc List(Empty) returns (ListResponse){}
|
|
rpc Update(UpdateTransformationRequest) returns (Transformation){}
|
|
rpc Remove(IdRequest) returns (Empty){}
|
|
}
|
|
|
|
message Empty {}
|
|
|
|
message IdRequest{
|
|
string id = 1;
|
|
}
|
|
|
|
message UpdateTransformationRequest{
|
|
string id = 1;
|
|
string inputSource = 2;
|
|
string table = 3;
|
|
string type = 4;
|
|
string params = 5;
|
|
}
|
|
|
|
message Transformation {
|
|
string id = 1;
|
|
string inputSource = 2;
|
|
string table = 3;
|
|
string type = 4;
|
|
string params = 5;
|
|
}
|
|
|
|
message CreateTransformationRequest {
|
|
string inputSource = 1;
|
|
string table = 2;
|
|
string type = 3;
|
|
string params = 4;
|
|
}
|
|
|
|
message ListResponse {
|
|
repeated Transformation transformations = 2;
|
|
}
|