summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorBrinda Santh <brindasanth@in.ibm.com>2019-09-03 13:44:43 -0400
committerBrinda Santh <brindasanth@in.ibm.com>2019-09-03 15:28:25 -0400
commitf58ffbbdac2800a6828d072223883e52714460b6 (patch)
treecc82e4f2b2435383f92208b96203b12a983ea128 /components
parent240f25e7fd15209cf298f640bb856793854fa32f (diff)
Add support for cba enrich, publish, draft, remove
Change-Id: If02e737e6103f0c51ad4371129f6ea1e7337ec98 Issue-ID: CCSDK-1682 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
Diffstat (limited to 'components')
-rw-r--r--components/model-catalog/proto-definition/proto/BluePrintManagement.proto53
1 files changed, 43 insertions, 10 deletions
diff --git a/components/model-catalog/proto-definition/proto/BluePrintManagement.proto b/components/model-catalog/proto-definition/proto/BluePrintManagement.proto
index 3349443d4..2e0693c28 100644
--- a/components/model-catalog/proto-definition/proto/BluePrintManagement.proto
+++ b/components/model-catalog/proto-definition/proto/BluePrintManagement.proto
@@ -1,29 +1,62 @@
syntax = "proto3";
+import "google/protobuf/struct.proto";
import "BluePrintCommon.proto";
option java_multiple_files = true;
package org.onap.ccsdk.cds.controllerblueprints.management.api;
message BluePrintUploadInput {
- org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
- FileChunk fileChunk = 2;
+ org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
+ FileChunk fileChunk = 2;
+ org.onap.ccsdk.cds.controllerblueprints.common.api.ActionIdentifiers actionIdentifiers = 3;
+ // Extra optional dynamic properties used during upload.
+ google.protobuf.Struct properties = 4;
+}
+
+message BluePrintDownloadInput {
+ org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
+ org.onap.ccsdk.cds.controllerblueprints.common.api.ActionIdentifiers actionIdentifiers = 2;
+ // Extra optional dynamic properties used to download.
+ google.protobuf.Struct properties = 3;
}
message BluePrintRemoveInput {
- org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
- string blueprintName = 2;
- string blueprintVersion = 3;
+ org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
+ string blueprintName = 2;
+ string blueprintVersion = 3;
}
message BluePrintManagementOutput {
- org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
- org.onap.ccsdk.cds.controllerblueprints.common.api.Status status = 3;
+ org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
+ // Optional file chunk sent back to the client for Enrich and Download this is mandatory.
+ FileChunk fileChunk = 2;
+ org.onap.ccsdk.cds.controllerblueprints.common.api.Status status = 3;
+ // Extra optional dynamic properties.
+ google.protobuf.Struct properties = 4;
}
message FileChunk {
- bytes chunk = 1;
+ bytes chunk = 1;
+}
+// Values used in BluePrintDownloadInput/actionIdentifiers/action
+enum DownloadAction {
+ // Default is SEARCH the cba and download the cba
+ SEARCH = 0;
+ // Download the starter cba with corresponding property options
+ STARTER = 1;
+ // clone cba with corresponding property options
+ CLONE = 2;
+}
+
+enum UploadAction {
+ // Default is DRAFT
+ DRAFT = 0;
+ ENRICH = 1;
+ VALIDATE = 2;
+ PUBLISH = 3;
}
service BluePrintManagementService {
- rpc uploadBlueprint (BluePrintUploadInput) returns (BluePrintManagementOutput);
- rpc removeBlueprint (BluePrintRemoveInput) returns (BluePrintManagementOutput);
+ rpc downloadBlueprint (BluePrintDownloadInput) returns (BluePrintManagementOutput);
+ rpc uploadBlueprint (BluePrintUploadInput) returns (BluePrintManagementOutput);
+ rpc removeBlueprint (BluePrintRemoveInput) returns (BluePrintManagementOutput);
}