Remove annotations in models 37/133237/1
authorlapentafd <francesco.lapenta@est.tech>
Mon, 13 Feb 2023 17:00:32 +0000 (17:00 +0000)
committerFrancesco Davide Lapenta <francesco.lapenta@est.tech>
Mon, 13 Feb 2023 17:04:53 +0000 (17:04 +0000)
Removing last annotations in order to remove dependencies in parent

Issue-ID: POLICY-3465
Change-Id: Id7a070120d452e33af805b08b37dd1eba1374615
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
12 files changed:
models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/SoSimulatorJaxRs.java
models-pap/src/main/java/org/onap/policy/models/pap/concepts/PapPolicyIdentifier.java
models-sim/models-sim-dmaap/src/main/java/org/onap/policy/models/sim/dmaap/rest/BaseRestControllerV1.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaConstraint.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaEntity.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaParameter.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaProperty.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaSchemaDefinition.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplates.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaTopologyTemplate.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaWithTypeAndObjectProperties.java

index 948529f..9575419 100644 (file)
@@ -23,7 +23,6 @@
 
 package org.onap.policy.simulators;
 
-import io.swagger.annotations.ApiParam;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -78,7 +77,7 @@ public class SoSimulatorJaxRs {
     @Produces("application/json")
     public String soPostQuery(@PathParam("serviceInstanceId") final String serviceInstanceId,
                     @PathParam("vnfInstanceId") final String vnfInstanceId,
-                    @ApiParam(required = true) SoRequest request) {
+                    SoRequest request) {
 
         List<Map<String, String>> userParam = null;
         userParam = request.getRequestDetails().getRequestParameters().getUserParams();
@@ -131,7 +130,7 @@ public class SoSimulatorJaxRs {
     @Path("/3gppservices/v7/modify")
     @Consumes(MediaType.APPLICATION_JSON)
     @Produces("application/json")
-    public String soPost3gpp(@ApiParam(required = true) SoRequest3gpp request) {
+    public String soPost3gpp(SoRequest3gpp request) {
         return ResourceUtils.getResourceAsString("org/onap/policy/simulators/so/so.3gpp.success.json");
     }
 
@@ -139,7 +138,7 @@ public class SoSimulatorJaxRs {
     @Path("/infra/serviceIntent/v1/modify")
     @Consumes(MediaType.APPLICATION_JSON)
     @Produces("application/json")
-    public String soPostModifyCll(@ApiParam(required = true) SoRequest3gpp request) {
+    public String soPostModifyCll(SoRequest3gpp request) {
         return ResourceUtils.getResourceAsString("org/onap/policy/simulators/so/so.cll.success.json");
     }
 
index 7bd78a2..ef46247 100644 (file)
@@ -21,7 +21,6 @@
 package org.onap.policy.models.pap.concepts;
 
 import com.google.gson.annotations.SerializedName;
-import io.swagger.annotations.ApiModelProperty;
 import lombok.NonNull;
 import org.onap.policy.models.tosca.authorative.concepts.ToscaConceptIdentifier;
 import org.onap.policy.models.tosca.authorative.concepts.ToscaConceptIdentifierOptVersion;
@@ -34,11 +33,9 @@ import org.onap.policy.models.tosca.authorative.concepts.ToscaConceptIdentifierO
  */
 public class PapPolicyIdentifier {
     @NonNull
-    @ApiModelProperty(name = "policy-id")
     @SerializedName("policy-id")
     private String name;
 
-    @ApiModelProperty(name = "policy-version")
     @SerializedName("policy-version")
     private String version;
 
index ed8909b..472a898 100644 (file)
 
 package org.onap.policy.models.sim.dmaap.rest;
 
-import io.swagger.annotations.Api;
-import io.swagger.annotations.BasicAuthDefinition;
-import io.swagger.annotations.Info;
-import io.swagger.annotations.SecurityDefinition;
-import io.swagger.annotations.SwaggerDefinition;
-import io.swagger.annotations.Tag;
 import java.net.HttpURLConnection;
 import java.util.UUID;
 import javax.ws.rs.Consumes;
 import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response.ResponseBuilder;
 
 /**
  * Version v1 common superclass to provide DMaaP endpoints for the DMaaP simulator component.
  */
-// @formatter:off
-@Api(value = "DMaaP Simulator API")
 @Produces("application/json")
 @Consumes({"application/cambria", "application/json"})
-@SwaggerDefinition(
-    info = @Info(description =
-                    "Simulator for DMaaP, follows API as described at "
-                  + "\"https://onap.readthedocs.io/en/amsterdam/submodules/dmaap/messagerouter/messageservice.git/"
-                  + "docs/message-router/message-router.html", version = "v1.0",
-                    title = "Policy Administration"),
-    consumes = {MediaType.APPLICATION_JSON},
-    produces = {MediaType.APPLICATION_JSON},
-    schemes = {SwaggerDefinition.Scheme.HTTP, SwaggerDefinition.Scheme.HTTPS},
-    tags = {@Tag(name = "dmaap-simulator", description = "DMaaP simulation")},
-    securityDefinition = @SecurityDefinition(basicAuthDefinitions = {@BasicAuthDefinition(key = "basicAuth")}))
-// @formatter:on
 public class BaseRestControllerV1 {
     public static final String EXTENSION_NAME = "interface info";
 
index acfda49..f00c243 100644 (file)
@@ -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<String> 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<String> rangeValues;
 }
index c339f72..24c74cb 100644 (file)
@@ -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;
 
index 290bdac..86557eb 100644 (file)
@@ -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;
index 0bd0d44..977d327 100644 (file)
@@ -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<ToscaConstraint> constraints;
 
-    @ApiModelProperty(name = "key_schema")
     @SerializedName("key_schema")
     private ToscaSchemaDefinition keySchema;
 
-    @ApiModelProperty(name = "entry_schema")
     @SerializedName("entry_schema")
     private ToscaSchemaDefinition entrySchema;
 
index 758711c..d89af6a 100644 (file)
@@ -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;
 
index 36434bd..1914280 100644 (file)
@@ -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<String, ToscaDataType> dataTypes;
 
-    @ApiModelProperty(name = "capability_types")
     @SerializedName("capability_types")
     private Map<String, ToscaCapabilityType> capabilityTypes;
 
-    @ApiModelProperty(name = "node_types")
     @SerializedName("node_types")
     private Map<String, ToscaNodeType> nodeTypes;
 
-    @ApiModelProperty(name = "relationship_types")
     @SerializedName("relationship_types")
     private Map<String, ToscaRelationshipType> relationshipTypes;
 
-    @ApiModelProperty(name = "policy_types")
     @SerializedName("policy_types")
     private Map<String, ToscaPolicyType> policyTypes;
 
-    @ApiModelProperty(name = "topology_template")
     @SerializedName("topology_template")
     private ToscaTopologyTemplate toscaTopologyTemplate;
 
index 912cfd5..4c145cc 100644 (file)
@@ -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<ToscaServiceTemplate> serviceTemplates;
 }
index eca1bea..45b4b20 100644 (file)
@@ -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<String, ToscaParameter> inputs;
 
-    @ApiModelProperty(name = "node_templates")
     @SerializedName("node_templates")
     private Map<String, ToscaNodeTemplate> nodeTemplates;
 
index 0bcb1cf..ff862cb 100644 (file)
@@ -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;