aboutsummaryrefslogtreecommitdiffstats
path: root/models-tosca
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-04-11 10:45:23 -0400
committerJim Hahn <jrh3@att.com>2019-04-11 10:48:14 -0400
commitfe7053726fbbf5e6c4b0ef2844aceb8a8757117c (patch)
tree39f8b31462fddaec75b62c3569bfd95e7125c4a1 /models-tosca
parent891bffd9f13177d96ad26acdfa7148d09e1d682a (diff)
Use policy-id instead of name
When CLAMP deploys a policy to the PDPs, it uses field names found in the meta-data, which are "policy-id" and "policy-version". Modified the class used by that particular to use those field names when encoded/decoded via gson. Change-Id: Ib67bd2cd05a906cc809dc6078efdabbd7aa1fa37 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-tosca')
-rw-r--r--models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java
index 9350d1738..9296780d5 100644
--- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java
+++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java
@@ -20,6 +20,7 @@
package org.onap.policy.models.tosca.authorative.concepts;
+import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
@@ -32,8 +33,10 @@ import lombok.NonNull;
public class ToscaPolicyIdentifierOptVersion {
@NonNull
+ @SerializedName("policy-id")
private String name;
+ @SerializedName("policy-version")
private String version;