Newer
Older
option go_package = "code.fbi.h-da.de/cocsn/api/go/gosdn/csbi";
service csbi {
rpc Get(GetRequest) returns (GetResponse);
rpc Create(CreateRequest) returns (CreateResponse);
rpc Delete(DeleteRequest) returns (DeleteResponse);
}
message GetRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
bool all = 2;
message GetResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated Deployment deployments = 2;
}
message Deployment {
string id = 1;
string name = 2;
State state = 3;
message CreateRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
}
message CreateResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
}
message DeleteRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.