Add GRPC Blueprint Processing API
[ccsdk/apps.git] / components / model-catalog / api-definition / proto / BluePrintManagement.proto
1 syntax = "proto3";
2 option java_multiple_files = true;
3 package org.onap.ccsdk.apps.controllerblueprints.management.api;
4
5 message BluePrintUploadInput {
6     CommonHeader commonHeader = 1;
7     string blueprintName = 2;
8     string blueprintVersion = 3;
9     FileChunk fileChunk = 4;
10 }
11
12 message FileChunk {
13     bytes chunk = 1;
14 }
15
16 message BluePrintUploadOutput {
17     CommonHeader commonHeader = 1;
18     Status status = 3;
19 }
20
21 message BluePrintRemoveInput {
22     CommonHeader commonHeader = 1;
23     string blueprintName = 2;
24     string blueprintVersion = 3;
25 }
26
27 message BluePrintRemoveOutput {
28     CommonHeader commonHeader = 1;
29     Status status = 3;
30 }
31
32 message CommonHeader {
33     string timestamp = 1;
34     string originatorId = 23;
35     string requestId = 3;
36     string subRequestId = 4;
37 }
38
39 message ActionIdentifiers {
40     string blueprintName = 1;
41     string blueprintVersion = 2;
42     string actionName = 3;
43     string mode = 4;
44 }
45
46 message Status {
47     string timestamp = 1;
48     int32 code = 2;
49     string message = 3;
50     string errorMessage = 4;
51 }
52
53 service BluePrintManagementService {
54     rpc uploadBlueprint (BluePrintUploadInput) returns (BluePrintUploadOutput);
55     rpc removeBlueprint (BluePrintRemoveInput) returns (BluePrintRemoveOutput);
56 }