2024-10-18 20:58:15 -05:00
|
|
|
syntax = "proto3";
|
|
|
|
package virtbuf;
|
|
|
|
|
2024-10-22 14:40:59 -05:00
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
|
2024-10-18 20:58:15 -05:00
|
|
|
message Droplet {
|
|
|
|
string uuid = 1;
|
|
|
|
string name = 2;
|
2024-10-21 17:53:36 -05:00
|
|
|
string hostname = 3;
|
|
|
|
int64 cpus = 4;
|
2024-10-22 16:33:36 -05:00
|
|
|
int64 memory = 5;
|
2024-10-22 17:53:43 -05:00
|
|
|
string start_state = 6;
|
|
|
|
// int64 disk = 6;
|
|
|
|
// string base_image = 7;
|
2024-10-18 20:58:15 -05:00
|
|
|
|
2024-10-22 17:53:43 -05:00
|
|
|
repeated Network networks = 7;
|
|
|
|
repeated Disk disks = 8;
|
2024-10-18 20:58:15 -05:00
|
|
|
|
2024-10-22 17:53:43 -05:00
|
|
|
string comment = 9;
|
|
|
|
string preferred_hypervisor = 10;
|
|
|
|
google.protobuf.Any testany = 11;
|
|
|
|
StorageInfo humantest = 12;
|
|
|
|
}
|
2024-10-18 20:58:15 -05:00
|
|
|
|
2024-10-22 17:53:43 -05:00
|
|
|
message Network {
|
|
|
|
string mac = 1;
|
|
|
|
string name = 2;
|
2024-10-22 17:39:12 -05:00
|
|
|
}
|
2024-10-22 16:33:36 -05:00
|
|
|
|
2024-10-22 17:39:12 -05:00
|
|
|
message Disk {
|
|
|
|
string filename = 1;
|
|
|
|
int64 size = 2;
|
2024-10-22 16:42:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message StorageInfo {
|
|
|
|
int64 capacity = 1; // Stores the storage capacity in bytes.
|
2024-10-18 20:58:15 -05:00
|
|
|
}
|