2 import "google/protobuf/struct.proto";
3 import "google/protobuf/timestamp.proto";
4 option java_multiple_files = true;
5 package org.onap.ccsdk.cds.controllerblueprints.command.api;
7 message ExecutionInput {
9 // Optional Id used to correlate multiple requests so that it can identify previous request information.
10 string correlationId = 2;
11 // Optional Blueprint Information used to identify CBA content information in shared file structure environment.
12 Identifiers identifiers = 3;
13 // Actual Command to Execute in Scripting Environment
16 // Extra Dynamic Properties for Command processing in JSON format
17 google.protobuf.Struct properties = 6;
19 google.protobuf.Timestamp timestamp = 7;
22 message PrepareEnvInput {
23 Identifiers identifiers = 1;
25 // Optional Id used to correlate multiple requests so that it can identify previous request information.
26 string correlationId = 3;
27 repeated Packages packages = 4;
29 google.protobuf.Struct properties = 6;
30 google.protobuf.Timestamp timestamp = 7;
34 string blueprintName = 1;
35 string blueprintVersion = 2;
38 message ExecutionOutput {
40 repeated string response = 2;
41 ResponseStatus status = 3;
42 google.protobuf.Timestamp timestamp = 4;
52 repeated string package = 2;
60 service CommandExecutorService {
61 rpc prepareEnv (PrepareEnvInput) returns (ExecutionOutput);
62 rpc executeCommand (ExecutionInput) returns (ExecutionOutput);