2 import "google/protobuf/struct.proto";
3 import "BluePrintCommon.proto";
4 option java_multiple_files = true;
5 package org.onap.ccsdk.cds.controllerblueprints.management.api;
7 message BluePrintUploadInput {
8 org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
9 FileChunk fileChunk = 2;
10 org.onap.ccsdk.cds.controllerblueprints.common.api.ActionIdentifiers actionIdentifiers = 3;
11 // Extra optional dynamic properties used during upload.
12 google.protobuf.Struct properties = 4;
15 message BluePrintDownloadInput {
16 org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
17 org.onap.ccsdk.cds.controllerblueprints.common.api.ActionIdentifiers actionIdentifiers = 2;
18 // Extra optional dynamic properties used to download.
19 google.protobuf.Struct properties = 3;
22 message BluePrintRemoveInput {
23 org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
24 org.onap.ccsdk.cds.controllerblueprints.common.api.ActionIdentifiers actionIdentifiers = 2;
25 // Extra optional dynamic properties used to remove.
26 google.protobuf.Struct properties = 3;
29 message BluePrintBootstrapInput {
30 org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
32 bool loadModelType = 3;
33 bool loadResourceDictionary = 4;
36 message BluePrintManagementOutput {
37 org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
38 // Optional file chunk sent back to the client for Enrich and Download this is mandatory.
39 FileChunk fileChunk = 2;
40 org.onap.ccsdk.cds.controllerblueprints.common.api.Status status = 3;
41 // Extra optional dynamic properties.
42 google.protobuf.Struct properties = 4;
48 // Values used in BluePrintDownloadInput/actionIdentifiers/action
50 // Default is SEARCH the cba and download the cba
52 // Download the starter cba with corresponding property options
54 // clone cba with corresponding property options
67 // Delete CBA from database, deploy path and clean cache.
71 service BluePrintManagementService {
72 rpc downloadBlueprint (BluePrintDownloadInput) returns (BluePrintManagementOutput);
73 rpc uploadBlueprint (BluePrintUploadInput) returns (BluePrintManagementOutput);
74 rpc removeBlueprint (BluePrintRemoveInput) returns (BluePrintManagementOutput);
75 rpc bootstrapBlueprint (BluePrintBootstrapInput) returns (BluePrintManagementOutput);