virtbuf/droplet.proto

39 lines
674 B
Protocol Buffer

syntax = "proto3";
package virtbuf;
import "google/protobuf/any.proto";
message Droplet {
string uuid = 1;
string name = 2;
string hostname = 3;
int64 cpus = 4;
int64 memory = 5;
int64 disk = 6;
string base_image = 7;
repeated Network networks = 8;
repeated Disk disks = 9;
string comment = 10;
string default_state = 11;
string preferred_hypervisor = 12;
google.protobuf.Any testany = 13;
StorageInfo humantest = 14;
message Network {
string mac = 1;
string name = 2;
}
}
message Disk {
string filename = 1;
int64 size = 2;
}
message StorageInfo {
int64 capacity = 1; // Stores the storage capacity in bytes.
}