bf8c39b534dbed3bab90fca44b740ddbcf18915a
[ealt-edge.git] / mecm / mepm / applcm / broker / internal / lcmservice / lcmservice.proto
1 syntax = "proto3";
2
3 package lcmservice;
4
5 message InstantiateRequest {
6   oneof data {
7     string hostIp = 1;
8     bytes package = 2;
9   };
10 }
11
12 message InstantiateResponse {
13   string workloadId = 1;
14   string status = 2;
15 }
16
17 message TerminateRequest {
18    string hostIp = 1;
19    string workloadId = 2;
20 }
21
22 message TerminateResponse {
23   string status = 1;
24 }
25
26 message QueryRequest {
27    string hostIp = 1;
28    string workloadId = 2;
29 }
30
31 message QueryResponse {
32   string status = 1;
33 }
34
35 service AppLCM {
36   rpc instantiate (stream InstantiateRequest) returns (InstantiateResponse) {}
37   rpc terminate (TerminateRequest) returns (TerminateResponse) {}
38   rpc query (QueryRequest) returns (QueryResponse) {}
39 }