Add support for async REST
[ccsdk/cds.git] / components / model-catalog / api-definition / proto / BluePrintProcessing.proto
1 syntax = "proto3";
2 import "google/protobuf/struct.proto";
3 option java_multiple_files = true;
4 package org.onap.ccsdk.apps.controllerblueprints.processing.api;
5
6 message ExecutionServiceInput {
7     CommonHeader commonHeader = 1;
8     ActionIdentifiers actionIdentifiers = 2;
9     google.protobuf.Struct payload = 3;
10 }
11
12 message ExecutionServiceOutput {
13     CommonHeader commonHeader = 1;
14     ActionIdentifiers actionIdentifiers = 2;
15     Status status = 3;
16     google.protobuf.Struct payload = 4;
17 }
18
19 message CommonHeader {
20     string timestamp = 1;
21     string originatorId = 23;
22     string requestId = 3;
23     string subRequestId = 4;
24     Flag flag = 5;
25 }
26
27 message Flag {
28     bool isForce = 1;
29     int32 ttl = 2;
30 }
31
32 message ActionIdentifiers {
33     string blueprintName = 1;
34     string blueprintVersion = 2;
35     string actionName = 3;
36     string mode = 4;
37 }
38
39 message Status {
40     int32 code = 1;
41     string errorMessage = 2;
42     string message = 3;
43     string eventType = 4;
44     string timestamp = 5;
45 }
46
47 service BluePrintProcessingService {
48     rpc process (ExecutionServiceInput) returns (stream ExecutionServiceOutput);
49 }