From 0094e13ddec035faf7f80943783943003f12889a Mon Sep 17 00:00:00 2001 From: Oleg Mitsura Date: Thu, 19 May 2022 11:05:13 -0400 Subject: CCSDK-3671 add workflows list for grpc Issue-ID: CCSDK-3671 1. added grpc 'getWorkflows' for BlueprintManagement 2. during CBA upload, the workflows get cached to BLUEPRINT_MODEL.workflows 3. reworked HTTP endpoint to use above "/workflows/blueprint-name/{name}/version/{version}" 4. If CDS is upgraded, with existing CBAs present, fallback by parsing the CBA instead of DB lookup Signed-off-by: Oleg Mitsura Change-Id: I68bebfe23c0b16ea288512f1087bfe1ceef57686 --- .../proto-definition/proto/BluePrintManagement.proto | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'components') diff --git a/components/model-catalog/proto-definition/proto/BluePrintManagement.proto b/components/model-catalog/proto-definition/proto/BluePrintManagement.proto index a363e8ade..ee8bd2540 100644 --- a/components/model-catalog/proto-definition/proto/BluePrintManagement.proto +++ b/components/model-catalog/proto-definition/proto/BluePrintManagement.proto @@ -42,6 +42,13 @@ message BluePrintManagementOutput { google.protobuf.Struct properties = 4; } +// Get the list of workflows available for a given blueprintName/Version +message BluePrintGetWorkflowsInput { + org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader commonHeader = 1; + string blueprintName = 2; + string blueprintVersion = 3; +} + message FileChunk { bytes chunk = 1; } @@ -73,4 +80,5 @@ service BluePrintManagementService { rpc uploadBlueprint (BluePrintUploadInput) returns (BluePrintManagementOutput); rpc removeBlueprint (BluePrintRemoveInput) returns (BluePrintManagementOutput); rpc bootstrapBlueprint (BluePrintBootstrapInput) returns (BluePrintManagementOutput); + rpc getWorkflows(BluePrintGetWorkflowsInput) returns (BluePrintManagementOutput); } -- cgit 1.2.3-korg