diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2019-05-02 12:29:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-05-02 12:29:41 +0000 |
commit | 0502bae356e44cb381cd7ec0f72c7b2bd6429e87 (patch) | |
tree | 86d96b73d466b1aca2f1ff91a91ea1ac094701ef /bpmn/MSOCoreBPMN | |
parent | 3fd8ef6976a988482fce4e3b2eaeefc879330a56 (diff) | |
parent | 5ed1062dcc39cfa7a99b8a5b6882a75f4acffea6 (diff) |
Merge "Modify instance resource list creation"
Diffstat (limited to 'bpmn/MSOCoreBPMN')
-rw-r--r-- | bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/GroupResource.java | 2 | ||||
-rw-r--r-- | bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/VnfcResource.java | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/GroupResource.java b/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/GroupResource.java index d194f2750a..79714d0f0e 100644 --- a/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/GroupResource.java +++ b/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/GroupResource.java @@ -19,10 +19,12 @@ */ package org.onap.so.bpmn.core.domain; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.UUID; +@JsonIgnoreProperties(ignoreUnknown = true) public class GroupResource extends Resource { private static final long serialVersionUID = 1L; diff --git a/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/VnfcResource.java b/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/VnfcResource.java index 5fced9a8ab..c363fcc7ff 100644 --- a/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/VnfcResource.java +++ b/bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/VnfcResource.java @@ -19,13 +19,27 @@ */ package org.onap.so.bpmn.core.domain; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.UUID; +@JsonIgnoreProperties(ignoreUnknown = true) public class VnfcResource extends Resource { private static final long serialVersionUID = 1L; + @JsonProperty("resource-input") + private String resourceInput; + public VnfcResource() { resourceType = ResourceType.VNFC; setResourceId(UUID.randomUUID().toString()); } + + public String getResourceInput() { + return resourceInput; + } + + public void setResourceInput(String resourceInput) { + this.resourceInput = resourceInput; + } } |