summaryrefslogtreecommitdiffstats
path: root/prh-commons
diff options
context:
space:
mode:
authorPiotr Wielebski <piotr.wielebski@nokia.com>2019-06-14 06:39:12 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-14 06:39:12 +0000
commit44b70902a263f9dcc73e1910377792097194f1d5 (patch)
tree9d23a21a6c90cb1559a47b40684c99ea134d9d7e /prh-commons
parent08d176c8640902686a26798729304a0316259274 (diff)
parent93bed2156ac39eb3e829dd1a163ff90e05f9525a (diff)
Merge "Logical links creation bug"
Diffstat (limited to 'prh-commons')
-rw-r--r--prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/bbs/LogicalLink.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/bbs/LogicalLink.java b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/bbs/LogicalLink.java
index 23f0e9bb..3b3dce15 100644
--- a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/bbs/LogicalLink.java
+++ b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/bbs/LogicalLink.java
@@ -20,10 +20,12 @@
package org.onap.dcaegen2.services.prh.model.bbs;
import com.google.gson.annotations.SerializedName;
-import java.util.List;
import org.immutables.gson.Gson;
import org.immutables.value.Value;
+import org.onap.dcaegen2.services.prh.model.ImmutableRelationship;
+import org.onap.dcaegen2.services.prh.model.Relationship;
import org.onap.dcaegen2.services.sdk.rest.services.model.ClientModel;
+import org.springframework.lang.Nullable;
@Value.Immutable
@Gson.TypeAdapters(fieldNamingStrategy = true)
@@ -35,6 +37,13 @@ public interface LogicalLink extends ClientModel {
@SerializedName(value = "link-type")
String getLinkType();
- @SerializedName(value = "relationship-list")
- List<RelationshipWrapper> getRelationshipList();
+ @Nullable
+ @SerializedName(value = "resource-version")
+ String getResourceVersion();
+
+ @SerializedName("relationship-list")
+ @Value.Default
+ default Relationship getRelationshipList() {
+ return ImmutableRelationship.builder().build();
+ }
}