1 Star 0 Fork 18

lixiang/eulerlauncher

forked from openEuler/eulerlauncher 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vm_operations.proto 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
xwj 提交于 2023-09-26 22:16 . 1
// vm_operations.proto
syntax = "proto3";
package vmoperations;
service VmOperationsService {
rpc CreateVm(CreateVmRequest) returns (VmResponse);
rpc StartVm(StartVmRequest) returns (VmResponse);
rpc StopVm(StopVmRequest) returns (VmResponse);
rpc AttachDisk(AttachDiskRequest) returns (VmResponse);
rpc DetachDisk(DetachDiskRequest) returns (VmResponse);
rpc CreateFlavor(CreateFlavorRequest) returns (VmResponse);
rpc DeleteFlavor(DeleteFlavorRequest) returns (VmResponse);
}
message CreateVmRequest {
string vm_name = 1;
bool vnuma_enabled = 2;
string vm_gen = 3;
string instance_path = 4;
string root_disk_path = 5;
Flavor flavor = 6;
}
message StartVmRequest {
string vm_name = 1;
}
message StopVmRequest {
string vm_name = 1;
}
message AttachDiskRequest {
string vm_name = 1;
string disk_path = 2;
string drive_type = 3;
}
message DetachDiskRequest {
string vm_name = 1;
string disk_path = 2;
}
message CreateFlavorRequest {
string flavor_name = 1;
string cpucores_num = 2;
string ram_capacity = 3;
string disk_capacity = 4;
}
message DeleteFlavorRequest {
string flavor_id = 1;
}
message VmResponse {
string message = 1;
}
message Flavor {
string flavor_id = 1;
string flavor_name = 2;
string cpucores_num = 3;
string ram_capacity = 4;
string disk_capacity = 5;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lx1229207124/eulerlauncher.git
[email protected]:lx1229207124/eulerlauncher.git
lx1229207124
eulerlauncher
eulerlauncher
master

搜索帮助