Add support for async REST
[ccsdk/cds.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 BluePrintManagementInput {
6   CommonHeader commonHeader = 1;
7   string blueprintName = 2;
8   string blueprintVersion = 3;
9   FileChunk fileChunk = 4;
10 }
11
12 message BluePrintManagementOutput {
13   CommonHeader commonHeader = 1;
14   Status status = 3;
15 }
16
17 message FileChunk {
18   bytes chunk = 1;
19 }
20
21 message CommonHeader {
22   string timestamp = 1;
23   string originatorId = 23;
24   string requestId = 3;
25   string subRequestId = 4;
26 }
27
28 message Status {
29   string timestamp = 1;
30   int32 code = 2;
31   string message = 3;
32   string errorMessage = 4;
33 }
34
35 service BluePrintManagementService {
36   rpc uploadBlueprint (BluePrintManagementInput) returns (BluePrintManagementOutput);
37   rpc removeBlueprint (BluePrintManagementInput) returns (BluePrintManagementOutput);
38 }