summaryrefslogtreecommitdiffstats
path: root/components/model-catalog/proto-definition/proto/BlueprintManagement.proto
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2021-01-22 11:49:51 -0500
committerSingal, Kapil (ks220y) <ks220y@att.com>2021-01-22 12:08:19 -0500
commitadcd4f2bc695840e9ecbc05003bc52c675f22fec (patch)
tree5db58ce9b6b3e86977ca3c697ce3e8998523eb61 /components/model-catalog/proto-definition/proto/BlueprintManagement.proto
parentdc8252f3cfa1ddd0c1c8c70513c16c738d840822 (diff)
Renaming Files having BluePrint to have Blueprint
Replacing BluePrint with Blueprint throughout Issue-ID: CCSDK-3098 Signed-off-by: KAPIL SINGAL <ks220y@att.com> Change-Id: Ibee8bad07ae7d9287073db2d4f2f2cd730fa8b96
Diffstat (limited to 'components/model-catalog/proto-definition/proto/BlueprintManagement.proto')
-rw-r--r--components/model-catalog/proto-definition/proto/BlueprintManagement.proto76
1 files changed, 76 insertions, 0 deletions
diff --git a/components/model-catalog/proto-definition/proto/BlueprintManagement.proto b/components/model-catalog/proto-definition/proto/BlueprintManagement.proto
new file mode 100644
index 000000000..3b6d43f3e
--- /dev/null
+++ b/components/model-catalog/proto-definition/proto/BlueprintManagement.proto
@@ -0,0 +1,76 @@
+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.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;
+ org.onap.ccsdk.cds.controllerblueprints.common.api.ActionIdentifiers actionIdentifiers = 2;
+ // Extra optional dynamic properties used to remove.
+ google.protobuf.Struct properties = 3;
+}
+
+message BlueprintBootstrapInput {
+ org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
+ bool loadCBA = 2;
+ bool loadModelType = 3;
+ bool loadResourceDictionary = 4;
+}
+
+message BlueprintManagementOutput {
+ 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;
+}
+// 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;
+}
+
+enum RemoveAction {
+ // Delete CBA from database, deploy path and clean cache.
+ DEFAULT = 0;
+}
+
+service BlueprintManagementService {
+ rpc downloadBlueprint (BlueprintDownloadInput) returns (BlueprintManagementOutput);
+ rpc uploadBlueprint (BlueprintUploadInput) returns (BlueprintManagementOutput);
+ rpc removeBlueprint (BlueprintRemoveInput) returns (BlueprintManagementOutput);
+ rpc bootstrapBlueprint (BlueprintBootstrapInput) returns (BlueprintManagementOutput);
+}