X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fclamp%2Fclds%2Fclient%2FDcaeDispatcherServices.java;h=2ba910a6e765bfe82d9321bebdc9dde7c59f935a;hb=e2112514bdb70a128e46501e4eae1fe162437bce;hp=9226604a1261cfe4a27b556ead58220ebd1ebd6b;hpb=2c5ab90cdf8acfa28728bd2cd8b39f3f1e0682b0;p=clamp.git diff --git a/src/main/java/org/onap/clamp/clds/client/DcaeDispatcherServices.java b/src/main/java/org/onap/clamp/clds/client/DcaeDispatcherServices.java index 9226604a..2ba910a6 100644 --- a/src/main/java/org/onap/clamp/clds/client/DcaeDispatcherServices.java +++ b/src/main/java/org/onap/clamp/clds/client/DcaeDispatcherServices.java @@ -18,13 +18,14 @@ * limitations under the License. * ============LICENSE_END============================================ * =================================================================== - * ECOMP is a trademark and service mark of AT&T Intellectual Property. + * */ package org.onap.clamp.clds.client; import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; +import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; import java.util.Date; @@ -152,14 +153,19 @@ public class DcaeDispatcherServices { * The deployment ID * @param serviceTypeId * Service type ID + * @param blueprintInputJson + * The value for each blueprint parameters in a flat JSON * @return The status URL */ - public String createNewDeployment(String deploymentId, String serviceTypeId) { + public String createNewDeployment(String deploymentId, String serviceTypeId, JsonNode blueprintInputJson) { Date startTime = new Date(); LoggingUtils.setTargetContext("DCAE", "createNewDeployment"); try { ObjectNode rootNode = (ObjectNode) refProp.getJsonTemplate("dcae.deployment.template"); rootNode.put("serviceTypeId", serviceTypeId); + if (blueprintInputJson != null) { + rootNode.put("inputs", blueprintInputJson); + } String apiBodyString = rootNode.toString(); logger.info("Dcae api Body String - " + apiBodyString); String url = refProp.getStringValue(DCAE_URL_PROPERTY_NAME) + DCAE_URL_PREFIX + deploymentId;