From 55dcf3197958c76b1622a0c26489e68fe77e0314 Mon Sep 17 00:00:00 2001 From: Ravi Mantena Date: Wed, 21 Oct 2020 15:47:38 -0400 Subject: Blueprint Generator Refactored Code Issue-ID: DCAEGEN2-2472 Change-Id: I2ade7fb3b4196554eb4ecadd918fd45cb6ba8a52 Signed-off-by: Ravi Mantena --- .../models/componentspec/Artifacts.java | 63 -------- .../models/componentspec/Auxilary.java | 127 ---------------- .../models/componentspec/CallsObj.java | 45 ------ .../models/componentspec/ComponentSpec.java | 166 --------------------- .../models/componentspec/ConstraintsObj.java | 62 -------- .../models/componentspec/Container.java | 60 -------- .../models/componentspec/EntrySchemaObj.java | 82 ---------- .../models/componentspec/HealthCheck.java | 72 --------- .../models/componentspec/Host.java | 56 ------- .../models/componentspec/Parameters.java | 106 ------------- .../models/componentspec/Policy.java | 62 -------- .../models/componentspec/PolicySchemaObj.java | 86 ----------- .../models/componentspec/ProvidesObj.java | 63 -------- .../models/componentspec/Publishes.java | 73 --------- .../models/componentspec/ReconfigsObj.java | 60 -------- .../models/componentspec/RequestResponseObj.java | 43 ------ .../models/componentspec/Self.java | 70 --------- .../models/componentspec/Services.java | 61 -------- .../models/componentspec/Streams.java | 63 -------- .../models/componentspec/Subscribes.java | 77 ---------- .../models/componentspec/Volumes.java | 61 -------- .../componentspec/policy_info/PolicyInfo.java | 35 ----- .../componentspec/policy_info/TypePolicy.java | 36 ----- 23 files changed, 1629 deletions(-) delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Artifacts.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Auxilary.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/CallsObj.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ComponentSpec.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ConstraintsObj.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Container.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/EntrySchemaObj.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/HealthCheck.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Host.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Parameters.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Policy.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/PolicySchemaObj.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ProvidesObj.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Publishes.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ReconfigsObj.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/RequestResponseObj.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Self.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Services.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Streams.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Subscribes.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Volumes.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/policy_info/PolicyInfo.java delete mode 100644 mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/policy_info/TypePolicy.java (limited to 'mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec') diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Artifacts.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Artifacts.java deleted file mode 100644 index 198dc19..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Artifacts.java +++ /dev/null @@ -1,63 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ - - -/** - * Instantiates a new artifacts. - */ -@NoArgsConstructor - -/** - * Instantiates a new artifacts. - * - * @param type the type - * @param uri the uri - */ - -@JsonInclude(JsonInclude.Include.NON_NULL) -@EqualsAndHashCode -//Called in Component Spec Object -public class Artifacts { - - /** The type. */ - private String type; - - /** The uri. */ - private String uri; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Auxilary.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Auxilary.java deleted file mode 100644 index 58e1e0c..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Auxilary.java +++ /dev/null @@ -1,127 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Modifications Copyright (c) 2020 Nokia. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.ArrayList; -import java.util.TreeMap; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ - - -/** - * Instantiates a new auxilary. - */ -@NoArgsConstructor - -/** - * Instantiates a new auxilary. - * - * @param healthcheck the healthcheck - * @param volumes the volumes - * @param policy the policy - * @param ports the ports - * @param reconfigs the reconfigs - * @param databases the databases - */ - -@JsonInclude(value=Include.NON_NULL) -@EqualsAndHashCode -//Called in component Spec Object -public class Auxilary { - - /** The healthcheck. */ - private HealthCheck healthcheck; - - /**log-directory**/ - @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) - private TreeMap log_info; - - /**tls-info**/ - @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) - private TreeMap tls_info; - - /** The volumes. */ - private Volumes[] volumes; - - /** The policy. */ - private Policy policy; - - /** The ports. */ - @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) - private ArrayList ports; - - /** The reconfigs. */ - private ReconfigsObj reconfigs; - - /** The databases. */ - @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) - private TreeMap databases; - - -// public TreeMap> createPorts(TreeMap> inps) { -// TreeMap> retInputs = inps; -// LinkedHashMap portType = new LinkedHashMap(); -// portType.put("type", "string"); -// -// ArrayList ports = new ArrayList(); -// String external = ""; -// boolean foundPort = false; -// for(Object o: this.getPorts()) { -// String internal = ""; -// String p = o.toString(); -// for(int i = 0; i < p.length(); i++) { -// if(p.charAt(i) == ':') { -// internal = '"' + internal + '"'; -// internal = "concat: ['" + internal + "', {get_input: external_port}]"; -// ports.add(internal); -// } -// if(p.charAt(i) == ':' && !foundPort) { -// external = p.substring(i); -// portType.put("default", external); -// retInputs.put("external_port", portType); -// -// } -// internal = internal + p.charAt(i); -// -// } -// } -// -// this.setPorts(ports); -// return retInputs; -// } -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/CallsObj.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/CallsObj.java deleted file mode 100644 index d130632..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/CallsObj.java +++ /dev/null @@ -1,45 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; - - -// TODO: Auto-generated Javadoc -/** - * The Class CallsObj. - */ -@JsonInclude(value=Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -//called from service obj -public class CallsObj { - - /** The config key. */ - private String config_key; - - /** The request. */ - private RequestResponseObj request; - - /** The response. */ - private RequestResponseObj response; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ComponentSpec.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ComponentSpec.java deleted file mode 100644 index 0cd2b72..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ComponentSpec.java +++ /dev/null @@ -1,166 +0,0 @@ -/*============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - Copyright (c) 2020 Nokia. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - -import java.io.File; -import java.io.IOException; - - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.databind.ObjectMapper; - -import lombok.Getter; -import lombok.Setter; -import lombok.NoArgsConstructor; -import org.onap.blueprintgenerator.models.componentspec.policy_info.PolicyInfo; - -// TODO: Auto-generated Javadoc - -/** - * The Class ComponentSpec. - */ -@JsonIgnoreProperties(ignoreUnknown = true) - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter -@Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ - -/** - * Instantiates a new component spec. - */ -@NoArgsConstructor - -/** - * Instantiates a new component spec. - * - * @param self the self - * @param services the services - * @param streams the streams - * @param parameters the parameters - * @param auxilary the auxilary - * @param artifacts the artifacts - */ - -@JsonInclude(value = Include.NON_NULL) -//main object that the component spec file is written in -public class ComponentSpec { - - /** - * The self. - */ - private Self self; - - /** - * The services. - */ - private Services services; - - /** - * The streams. - */ - private Streams streams; - - /** - * The parameters. - */ - private Parameters[] parameters; - - /** - * The auxilary. - */ - private Auxilary auxilary; - - @JsonProperty("policy_info") - private PolicyInfo policyInfo; - - /** - * The artifacts. - */ - private Artifacts[] artifacts; - - /** - * Creates the component spec from file. - * - * @param path the path - */ - public void createComponentSpecFromFile(String path) { - ObjectMapper componentMapper = new ObjectMapper(); - File specPathFile = new File(path); - ComponentSpec cs = new ComponentSpec(); - - try { - cs = componentMapper.readValue(specPathFile, ComponentSpec.class); - } catch (IOException e) { - throw new RuntimeException(e); - } - - //set all the pieces of the component spec - this.setSelf(cs.getSelf()); - this.setArtifacts(cs.getArtifacts()); - this.setAuxilary(cs.getAuxilary()); - this.setParameters(cs.getParameters()); - this.setServices(cs.getServices()); - this.setStreams(cs.getStreams()); - this.setPolicyInfo(cs.getPolicyInfo()); - } - - - /** - * Creates the component spec from string. - * - * @param specString the spec string - */ - public void createComponentSpecFromString(String specString) { - ObjectMapper componentMapper = new ObjectMapper(); - ComponentSpec cs = new ComponentSpec(); - try { - cs = componentMapper.readValue(specString, ComponentSpec.class); - } catch (IOException e) { - throw new RuntimeException(e); - } - - //set all the pieces of the component spec - this.setSelf(cs.getSelf()); - this.setArtifacts(cs.getArtifacts()); - this.setAuxilary(cs.getAuxilary()); - this.setParameters(cs.getParameters()); - this.setServices(cs.getServices()); - this.setStreams(cs.getStreams()); - } - - public String getImageUri() { - return artifacts[0].getUri(); - } - - public String getSelfName() { - return this.self.getName(); - } -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ConstraintsObj.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ConstraintsObj.java deleted file mode 100644 index 785df35..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ConstraintsObj.java +++ /dev/null @@ -1,62 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; - -// TODO: Auto-generated Javadoc -/** - * The Class ConstraintsObj. - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(value=Include.NON_NULL) - -public class ConstraintsObj { - - /** The equal. */ - private Object equal; - - /** The greater than. */ - private int greater_than; - - /** The greater or equal. */ - private int greater_or_equal; - - /** The less than. */ - private int less_than; - - /** The less or equal. */ - private int less_or_equal; - - /** The valid values. */ - private Object[] valid_values; - - /** The length. */ - private int length; - - /** The min length. */ - private int min_length; - - /** The max length. */ - private int max_length; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Container.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Container.java deleted file mode 100644 index cbe02dc..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Container.java +++ /dev/null @@ -1,60 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -/** - * Instantiates a new container. - */ -@NoArgsConstructor - -/** - * Instantiates a new container. - * - * @param bind the bind - * @param mode the mode - */ - -@JsonInclude(value=Include.NON_NULL) -@EqualsAndHashCode -public class Container { - - /** The bind. */ - private String bind; - - /** The mode. */ - private String mode; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/EntrySchemaObj.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/EntrySchemaObj.java deleted file mode 100644 index ef33aaf..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/EntrySchemaObj.java +++ /dev/null @@ -1,82 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/** - * The Class EntrySchemaObj. - */ -@JsonIgnoreProperties(ignoreUnknown = true) - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -/** - * Instantiates a new entry schema obj. - */ -@NoArgsConstructor - -/** - * Instantiates a new entry schema obj. - * - * @param name the name - * @param description the description - * @param type the type - * @param value the value - * @param entry_schema the entry schema - * @param required the required - */ - -@JsonInclude(value=Include.NON_NULL) -//called from policy schema obj -public class EntrySchemaObj { - - /** The name. */ - private String name; - - /** The description. */ - private String description; - - /** The type. */ - private String type; - - /** The value. */ - private String value; - - /** The entry schema. */ - private EntrySchemaObj[] entry_schema; - - /** The required. */ - private boolean required; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/HealthCheck.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/HealthCheck.java deleted file mode 100644 index 76e1036..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/HealthCheck.java +++ /dev/null @@ -1,72 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -/** - * Instantiates a new health check. - */ -@NoArgsConstructor - -/** - * Instantiates a new health check. - * - * @param interval the interval - * @param timeout the timeout - * @param script the script - * @param type the type - */ - -@JsonInclude(value=Include.NON_NULL) -@EqualsAndHashCode -//Called in Auxillary Object -public class HealthCheck { - - /** The interval. */ - private String interval; - - /** The timeout. */ - private String timeout; - - /** The script. */ - private String script; - - /** The type. */ - private String type; - - private String endpoint; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Host.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Host.java deleted file mode 100644 index f178c94..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Host.java +++ /dev/null @@ -1,56 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/** - * Instantiates a new host. - */ -@NoArgsConstructor - -/** - * Instantiates a new host. - * - * @param path the path - * @param mode the mode - */ -@JsonInclude(value=Include.NON_NULL) -@EqualsAndHashCode -public class Host{ - - /** The path. */ - private String path; - - /** The mode. */ - private String mode; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Parameters.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Parameters.java deleted file mode 100644 index eb95202..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Parameters.java +++ /dev/null @@ -1,106 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/** - * The Class Parameters. - */ -@JsonIgnoreProperties(ignoreUnknown = true) - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -/** - * Instantiates a new parameters. - */ -@NoArgsConstructor - -/** - * Instantiates a new parameters. - * - * @param name the name - * @param value the value - * @param description the description - * @param sourced_at_deployment the sourced at deployment - * @param designer_editable the designer editable - * @param policy_editable the policy editable - * @param required the required - * @param type the type - * @param policy_group the policy group - * @param policy_schema the policy schema - * @param entry_schema the entry schema - * @param constraints the constraints - */ -@JsonInclude(value=Include.NON_NULL) -@EqualsAndHashCode -//Called in component Spec Object -public class Parameters { - - /** The name. */ - private String name; - - /** The value. */ - private Object value; - - /** The description. */ - private String description; - - /** The sourced at deployment. */ - private boolean sourced_at_deployment; - - /** The designer editable. */ - private boolean designer_editable; - - /** The policy editable. */ - private boolean policy_editable; - - /** The required. */ - private boolean required; - - /** The type. */ - private String type; - - /** The policy group. */ - private String policy_group; - - /** The policy schema. */ - private PolicySchemaObj[] policy_schema; - - /** The entry schema. */ - private EntrySchemaObj[] entry_schema; - - /** The constraints. */ - private ConstraintsObj[] constraints; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Policy.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Policy.java deleted file mode 100644 index d295ca4..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Policy.java +++ /dev/null @@ -1,62 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ - -/** - * Instantiates a new policy. - */ -@NoArgsConstructor - -/** - * Instantiates a new policy. - * - * @param trigger_type the trigger type - * @param script_path the script path - */ -@JsonInclude(value=Include.NON_NULL) -@EqualsAndHashCode -//called in auxilary -public class Policy { - - /** The trigger type. */ - private String trigger_type; - - /** The script path. */ - private String script_path; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/PolicySchemaObj.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/PolicySchemaObj.java deleted file mode 100644 index aa38271..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/PolicySchemaObj.java +++ /dev/null @@ -1,86 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/** - * The Class PolicySchemaObj. - */ -@JsonIgnoreProperties(ignoreUnknown = true) - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ - -/** - * Instantiates a new policy schema obj. - */ -@NoArgsConstructor - -/** - * Instantiates a new policy schema obj. - * - * @param name the name - * @param description the description - * @param type the type - * @param value the value - * @param entry_schema the entry schema - * @param required the required - * @param constraints the constraints - */ -@JsonInclude(value=Include.NON_NULL) -//called from parameters obj -public class PolicySchemaObj { - - /** The name. */ - private String name; - - /** The description. */ - private String description; - - /** The type. */ - private String type; - - /** The value. */ - private String value; - - /** The entry schema. */ - private EntrySchemaObj[] entry_schema; - - /** The required. */ - private boolean required; - - /** The constraints. */ - private ConstraintsObj[] constraints; - } diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ProvidesObj.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ProvidesObj.java deleted file mode 100644 index 9ad24c3..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ProvidesObj.java +++ /dev/null @@ -1,63 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ - -/** - * Instantiates a new provides obj. - */ -@NoArgsConstructor - -/** - * Instantiates a new provides obj. - * - * @param route the route - * @param request the request - * @param response the response - */ -//called from service obj -public class ProvidesObj { - - /** The route. */ - private String route; - - /** The request. */ - private RequestResponseObj request; - - /** The response. */ - private RequestResponseObj response; - - private String verb; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Publishes.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Publishes.java deleted file mode 100644 index 4f46313..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Publishes.java +++ /dev/null @@ -1,73 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ - -/** - * Instantiates a new publishes. - */ -@NoArgsConstructor - -/** - * Instantiates a new publishes. - * - * @param config_key the config key - * @param format the format - * @param type the type - * @param version the version - */ -@JsonInclude(value=Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@EqualsAndHashCode -//Called in Streams Object -public class Publishes { - - /** The config key. */ - private String config_key; - - /** The format. */ - private String format; - - /** The route. */ - private String route; - /** The type. */ - private String type; - - /** The version. */ - private String version; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ReconfigsObj.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ReconfigsObj.java deleted file mode 100644 index 6d78805..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/ReconfigsObj.java +++ /dev/null @@ -1,60 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -/** - * Instantiates a new reconfigs obj. - */ -@NoArgsConstructor - -/** - * Instantiates a new reconfigs obj. - * - * @param dti the dti - * @param policy the policy - */ -@JsonInclude(value=Include.NON_NULL) -@EqualsAndHashCode -public class ReconfigsObj { - - /** The dti. */ - private String dti; - - /** The policy. */ - private String policy; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/RequestResponseObj.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/RequestResponseObj.java deleted file mode 100644 index 7ca1830..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/RequestResponseObj.java +++ /dev/null @@ -1,43 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; - - -// TODO: Auto-generated Javadoc -/** - * The Class RequestResponseObj. - */ -@JsonInclude(value=Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -//called in calls obj -public class RequestResponseObj { - - /** The format. */ - private String format; - - /** The version. */ - private String version; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Self.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Self.java deleted file mode 100644 index 8b5f35e..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Self.java +++ /dev/null @@ -1,70 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -/** - * Instantiates a new self. - */ -@NoArgsConstructor - -/** - * Instantiates a new self. - * - * @param component_type the component type - * @param description the description - * @param name the name - * @param version the version - */ -@JsonInclude(value=Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@EqualsAndHashCode -//called in Component Spec object -public class Self { - - /** The component type. */ - private String component_type; - - /** The description. */ - private String description; - - /** The name. */ - private String name; - - /** The version. */ - private String version; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Services.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Services.java deleted file mode 100644 index 772d859..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Services.java +++ /dev/null @@ -1,61 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -/** - * Instantiates a new services. - */ -@NoArgsConstructor - -/** - * Instantiates a new services. - * - * @param calls the calls - * @param provides the provides - */ -@JsonInclude(value=Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -//called in component spec object -public class Services { - - /** The calls. */ - private CallsObj[] calls; - - /** The provides. */ - private ProvidesObj[] provides; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Streams.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Streams.java deleted file mode 100644 index 500f32d..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Streams.java +++ /dev/null @@ -1,63 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -/** - * Instantiates a new streams. - */ -@NoArgsConstructor - -/** - * Instantiates a new streams. - * - * @param publishes the publishes - * @param subscribes the subscribes - */ -@JsonInclude(value=Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@EqualsAndHashCode -//Called in Component Spec Object -public class Streams { - - /** The publishes. */ - private Publishes[] publishes; - - /** The subscribes. */ - private Subscribes[] subscribes; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Subscribes.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Subscribes.java deleted file mode 100644 index ec4aa41..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Subscribes.java +++ /dev/null @@ -1,77 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ - - -/** - * Instantiates a new subscribes. - */ -@NoArgsConstructor - -/** - * Instantiates a new subscribes. - * - * @param config_key the config key - * @param format the format - * @param route the route - * @param type the type - * @param version the version - */ - -@JsonInclude(value=Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@EqualsAndHashCode -//Called in Streams Object -public class Subscribes { - - /** The config key. */ - private String config_key; - - /** The format. */ - private String format; - - /** The route. */ - private String route; - - /** The type. */ - private String type; - - /** The version. */ - private String version; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Volumes.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Volumes.java deleted file mode 100644 index 777bdeb..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/Volumes.java +++ /dev/null @@ -1,61 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -// TODO: Auto-generated Javadoc -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -@Getter @Setter - -/* (non-Javadoc) - * @see java.lang.Object#toString() - */ -/** - * Instantiates a new volumes. - */ -@NoArgsConstructor - -/** - * Instantiates a new volumes. - * - * @param container the container - * @param host the host - */ -@JsonInclude(value=Include.NON_NULL) -@EqualsAndHashCode -//Called in Auxillary Object -public class Volumes { - - /** The container. */ - private Container container; - - /** The host. */ - private Host host; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/policy_info/PolicyInfo.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/policy_info/PolicyInfo.java deleted file mode 100644 index da746a7..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/policy_info/PolicyInfo.java +++ /dev/null @@ -1,35 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ -package org.onap.blueprintgenerator.models.componentspec.policy_info; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.List; - -@Getter @Setter -@NoArgsConstructor -public class PolicyInfo { - - @JsonProperty("policy") - private List typePolicyList; -} diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/policy_info/TypePolicy.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/policy_info/TypePolicy.java deleted file mode 100644 index 038c601..0000000 --- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/componentspec/policy_info/TypePolicy.java +++ /dev/null @@ -1,36 +0,0 @@ -/**============LICENSE_START======================================================= - org.onap.dcae - ================================================================================ - Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved. - ================================================================================ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ============LICENSE_END========================================================= - - */ - -package org.onap.blueprintgenerator.models.componentspec.policy_info; - -import com.fasterxml.jackson.annotation.JsonCreator; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -@Getter @Setter -@NoArgsConstructor -public class TypePolicy { - - private String node_label; - private String policy_id; - private String policy_model_id; - -} -- cgit 1.2.3-korg