witProtobuf/events.proto

57 lines
883 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package witProtobuf;
message Event {
EventType type = 1;
int32 id = 2;
string name = 3;
string comment = 4;
string email = 5;
string token = 6;
string password = 7;
repeated Response results = 8;
repeated Network networks = 9;
repeated VM vms = 10;
enum EventType {
ADD = 0;
DELETE = 1;
POWERON = 2;
POWEROFF = 3;
HIBERNATE = 4;
MIGRATE = 5;
DEMO = 6;
GET = 7;
LOGIN = 8;
}
message Response {
EventType type = 1;
int32 id = 2;
string name = 3;
string error = 4;
repeated string snippets = 5;
}
message Network {
int32 id = 1;
string name = 2;
int64 total_cpu = 3;
int64 total_mem = 4;
string login_url = 5;
}
message VM {
int64 id = 1;
string name = 2;
string hostname = 3;
int64 cpus = 4;
int64 memory = 5;
int64 disk = 6;
string IPv6 = 7;
string role = 8;
string baseImage = 9;
}
}