9b24c50fce1ee393abd72d5570a033676e5c5155
[ccsdk/cds.git] / components / model-catalog / proto-definition / proto / BluePrintCommon.proto
1 syntax = "proto3";
2 option java_multiple_files = true;
3 package org.onap.ccsdk.cds.controllerblueprints.common.api;
4
5 message CommonHeader {
6   string timestamp = 1;
7   string originatorId = 23;
8   string requestId = 3;
9   string subRequestId = 4;
10   Flag flag = 5;
11 }
12
13 message Flag {
14   bool isForce = 1;
15   int32 ttl = 2;
16 }
17
18 message ActionIdentifiers {
19   string blueprintName = 1;
20   string blueprintVersion = 2;
21   string actionName = 3;
22   string mode = 4;
23 }
24
25 message Status {
26   int32 code = 1;
27   // present only if message is failure
28   string errorMessage = 2;
29   // This will be success or failure
30   string message = 3;
31   EventType eventType = 4;
32   string timestamp = 5;
33 }
34
35 enum EventType {
36   EVENT_COMPONENT_FAILURE = 0;
37   EVENT_COMPONENT_PROCESSING = 1;
38   EVENT_COMPONENT_NOTIFICATION = 2;
39   EVENT_COMPONENT_EXECUTED = 3;
40 }