blob: 564d4b32c57905528dcb058cc3f8174ffd640153 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
package org.onap.ccsdk.dashboard.model.deploymenthandler;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Model for message used by the controller to create a DeploymentRequest for
* the Deployment Handler API.
*
* <pre>
{
"deploymentId" : "deploymentId",
"body" :
{
"serviceTypeId" : "serviceTypeId",
"inputs" :
{
"input1" : "parameter1"
"input2" : "parameter2"
...
"inputn" : "parametern"
}
}
}
* </pre>
*/
public final class InventoryDeploymentRequest {
/** Unique deployment identifier assigned by the API client. */
private final String deploymentId;
/** The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed. */
private final String serviceTypeId;
/**
* Object containing inputs needed by the service blueprint to create an instance of the service.
* Content of the object depends on the service being deployed.
*/
private final Map<String, Object> inputs;
@JsonCreator
public InventoryDeploymentRequest(@JsonProperty("deploymentId") String deploymentId,
@JsonProperty("serviceTypeId") String serviceTypeId,
@JsonProperty("inputs") Map<String, Object> inputs) {
this.deploymentId = deploymentId;
this.serviceTypeId = serviceTypeId;
this.inputs = inputs;
}
public String getDeploymentId() {
return this.deploymentId;
}
public String getServiceTypeId() {
return this.serviceTypeId;
}
public Map<String, Object> getInputs() {
return this.inputs;
}
}
|