Revert "Renaming Files having BluePrint to have Blueprint"
[ccsdk/cds.git] / components / model-catalog / proto-definition / proto / BluePrintManagement.proto
1 syntax = "proto3";
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;
6
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;
13 }
14
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;
20 }
21
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;
27 }
28
29 message BluePrintBootstrapInput {
30     org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1;
31     bool loadCBA = 2;
32     bool loadModelType = 3;
33     bool loadResourceDictionary = 4;
34 }
35
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;
43 }
44
45 message FileChunk {
46     bytes chunk = 1;
47 }
48 // Values used in BluePrintDownloadInput/actionIdentifiers/action
49 enum DownloadAction {
50     // Default is SEARCH the cba and download the cba
51     SEARCH = 0;
52     // Download the starter cba with corresponding property options
53     STARTER = 1;
54     // clone cba with corresponding property options
55     CLONE = 2;
56 }
57
58 enum UploadAction {
59     // Default is DRAFT
60     DRAFT = 0;
61     ENRICH = 1;
62     VALIDATE = 2;
63     PUBLISH = 3;
64 }
65
66 enum RemoveAction {
67     // Delete CBA from database, deploy path and clean cache.
68     DEFAULT = 0;
69 }
70
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);
76 }