From 80311ac0dedb0868d3837029c6e4b5fcb984efb2 Mon Sep 17 00:00:00 2001 From: lapentafd Date: Mon, 13 Feb 2023 17:00:32 +0000 Subject: Remove annotations in models Removing last annotations in order to remove dependencies in parent Issue-ID: POLICY-3465 Change-Id: Id7a070120d452e33af805b08b37dd1eba1374615 Signed-off-by: lapentafd --- .../policy/models/tosca/authorative/concepts/ToscaConstraint.java | 7 ------- .../policy/models/tosca/authorative/concepts/ToscaEntity.java | 2 -- .../policy/models/tosca/authorative/concepts/ToscaParameter.java | 2 -- .../policy/models/tosca/authorative/concepts/ToscaProperty.java | 5 ----- .../models/tosca/authorative/concepts/ToscaSchemaDefinition.java | 2 -- .../models/tosca/authorative/concepts/ToscaServiceTemplate.java | 8 -------- .../models/tosca/authorative/concepts/ToscaServiceTemplates.java | 2 -- .../models/tosca/authorative/concepts/ToscaTopologyTemplate.java | 2 -- .../authorative/concepts/ToscaWithTypeAndObjectProperties.java | 2 -- 9 files changed, 32 deletions(-) (limited to 'models-tosca/src/main') diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaConstraint.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaConstraint.java index acfda4902..f00c243c3 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaConstraint.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaConstraint.java @@ -24,7 +24,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; import java.util.List; import lombok.Data; @@ -35,29 +34,23 @@ import lombok.Data; */ @Data public class ToscaConstraint { - @ApiModelProperty(name = "valid_values") @SerializedName("valid_values") private List validValues; private String equal; - @ApiModelProperty(name = "greater_than") @SerializedName("greater_than") private String greaterThan; - @ApiModelProperty(name = "greater_or_equal") @SerializedName("greater_or_equal") private String greaterOrEqual; - @ApiModelProperty(name = "less_than") @SerializedName("less_than") private String lessThan; - @ApiModelProperty(name = "less_or_equal") @SerializedName("less_or_equal") private String lessOrEqual; - @ApiModelProperty(name = "in_range") @SerializedName("in_range") private List rangeValues; } diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaEntity.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaEntity.java index c339f721e..24c74cbaa 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaEntity.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaEntity.java @@ -23,7 +23,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -47,7 +46,6 @@ public class ToscaEntity implements PfNameVersion { private String name = PfKey.NULL_KEY_NAME; private String version = PfKey.NULL_KEY_VERSION; - @ApiModelProperty(name = "derived_from") @SerializedName("derived_from") private String derivedFrom; diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaParameter.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaParameter.java index 290bdacfe..86557ebc2 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaParameter.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaParameter.java @@ -23,7 +23,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.NoArgsConstructor; @@ -33,7 +32,6 @@ public class ToscaParameter { private String name; private String type; - @ApiModelProperty(name = "type_version") @SerializedName("type_version") private String typeVersion; diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaProperty.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaProperty.java index 0bd0d44e8..977d32738 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaProperty.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaProperty.java @@ -24,7 +24,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; import java.util.List; import java.util.Map; import lombok.Data; @@ -43,13 +42,11 @@ public class ToscaProperty { private String name; private String type; - @ApiModelProperty(name = "type_version") @SerializedName("type_version") private String typeVersion; private String description; - @ApiModelProperty(name = "default") @SerializedName("default") private Object defaultValue; @@ -57,11 +54,9 @@ public class ToscaProperty { private Status status; private List constraints; - @ApiModelProperty(name = "key_schema") @SerializedName("key_schema") private ToscaSchemaDefinition keySchema; - @ApiModelProperty(name = "entry_schema") @SerializedName("entry_schema") private ToscaSchemaDefinition entrySchema; diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaSchemaDefinition.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaSchemaDefinition.java index 758711c98..d89af6ab7 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaSchemaDefinition.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaSchemaDefinition.java @@ -24,7 +24,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; import java.util.List; import lombok.Data; @@ -38,7 +37,6 @@ public class ToscaSchemaDefinition { private String name; private String type; - @ApiModelProperty(name = "type_version") @SerializedName("type_version") private String typeVersion; diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java index 36434bd91..1914280ff 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java @@ -24,7 +24,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; import java.util.LinkedHashMap; import java.util.Map; import lombok.Data; @@ -41,31 +40,24 @@ import lombok.NonNull; @EqualsAndHashCode(callSuper = true) @NoArgsConstructor public class ToscaServiceTemplate extends ToscaEntity { - @ApiModelProperty(name = "tosca_definitions_version") @SerializedName("tosca_definitions_version") private String toscaDefinitionsVersion; - @ApiModelProperty(name = "data_types") @SerializedName("data_types") private Map dataTypes; - @ApiModelProperty(name = "capability_types") @SerializedName("capability_types") private Map capabilityTypes; - @ApiModelProperty(name = "node_types") @SerializedName("node_types") private Map nodeTypes; - @ApiModelProperty(name = "relationship_types") @SerializedName("relationship_types") private Map relationshipTypes; - @ApiModelProperty(name = "policy_types") @SerializedName("policy_types") private Map policyTypes; - @ApiModelProperty(name = "topology_template") @SerializedName("topology_template") private ToscaTopologyTemplate toscaTopologyTemplate; diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplates.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplates.java index 912cfd580..4c145ccc4 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplates.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplates.java @@ -23,7 +23,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; @@ -34,7 +33,6 @@ import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode public class ToscaServiceTemplates { - @ApiModelProperty(name = "service_templates") @SerializedName("service_templates") private List serviceTemplates; } diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaTopologyTemplate.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaTopologyTemplate.java index eca1bea16..45b4b2076 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaTopologyTemplate.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaTopologyTemplate.java @@ -24,7 +24,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; @@ -45,7 +44,6 @@ public class ToscaTopologyTemplate { private Map inputs; - @ApiModelProperty(name = "node_templates") @SerializedName("node_templates") private Map nodeTemplates; diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaWithTypeAndObjectProperties.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaWithTypeAndObjectProperties.java index 0bcb1cf54..ff862cb77 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaWithTypeAndObjectProperties.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaWithTypeAndObjectProperties.java @@ -22,7 +22,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; import java.util.LinkedHashMap; import java.util.Map; import lombok.Data; @@ -42,7 +41,6 @@ import lombok.ToString; public class ToscaWithTypeAndObjectProperties extends ToscaEntity { private String type; - @ApiModelProperty(name = "type_version") @SerializedName("type_version") private String typeVersion; -- cgit 1.2.3-korg