Files
maestro/src/transformations/proto/transformation.proto
T
2022-02-04 10:03:55 -03:00

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;
}