1 package org.onap.ccsdk.dashboard.model.deploymenthandler;
5 import com.fasterxml.jackson.annotation.JsonCreator;
6 import com.fasterxml.jackson.annotation.JsonProperty;
9 * Model for message POST-ed to controller to create a Deployment via the Deployment Handler API:
13 "serviceTypeId" : "serviceTypeId",
14 "type" : "install/update",
17 "input1" : "parameter1"
18 "input2" : "parameter2"
20 "inputn" : "parametern"
25 * THIS OBJECT INCLUDES THE DEPLOYMENTID CREATED BY THE USER!
27 public class DeploymentRequestObject {
29 /** Unique deployment identifier assigned by the API client. */
30 private final String deploymentId;
32 /** type of deployment request */
33 private final String method;
35 /** The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed. */
36 private final String serviceTypeId;
38 /** The cloudify tenant name for the deployment */
39 private final String tenant;
41 * Object containing inputs needed by the service blueprint to create an instance of the service.
42 * Content of the object depends on the service being deployed.
44 private final Map<String, Object> inputs;
47 public DeploymentRequestObject(@JsonProperty("deploymentId") String deploymentId,
48 @JsonProperty("serviceTypeId") String serviceTypeId,
49 @JsonProperty("inputs") Map<String, Object> inputs,
50 @JsonProperty("tenant") String tenant,
51 @JsonProperty("method") String method) {
52 this.deploymentId = deploymentId;
53 this.serviceTypeId = serviceTypeId;
59 public String getDeploymentId() {
60 return this.deploymentId;
63 public String getServiceTypeId() {
64 return this.serviceTypeId;
67 public Map<String, Object> getInputs() {
71 public String getTenant() {
75 public String getMethod() {