diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2018-08-17 16:03:32 -0400 |
---|---|---|
committer | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2018-08-27 13:11:55 -0400 |
commit | d26f38d193e2cee5b502c7418f282dc69a029a3c (patch) | |
tree | e07b494695d10c2d3121831bdeeb9a933998b5f5 /src/main/java | |
parent | babe600d76c8593c84f3d5fabfc4bff1a068bee1 (diff) |
Version 1
Issue-ID: LOG-614
Change-Id: I894dd52b6592c9c09f10793a2f13a369081938a6
Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'src/main/java')
7 files changed, 273 insertions, 19 deletions
diff --git a/src/main/java/org/onap/pomba/common/datatypes/Attribute.java b/src/main/java/org/onap/pomba/common/datatypes/Attribute.java new file mode 100644 index 0000000..d73435e --- /dev/null +++ b/src/main/java/org/onap/pomba/common/datatypes/Attribute.java @@ -0,0 +1,67 @@ +/*
+ * ============LICENSE_START===================================================
+ * Copyright (c) 2018 Amdocs
+ * ============================================================================
+ * 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.pomba.common.datatypes;
+
+import com.google.gson.annotations.Expose;
+import com.google.gson.annotations.SerializedName;
+
+public class Attribute {
+ @Expose
+ @SerializedName("name")
+ private String name;
+ @Expose
+ @SerializedName("value")
+ private Value value;
+ @Expose
+ @SerializedName("dataQuality")
+ private DataQuality dataQuality = new DataQuality();
+
+ public enum Value {
+ adminState,
+ ipAddress,
+ hostName,
+ lockedBoolean,
+ macAddress,
+ networkType,
+ networkTechnology,
+ physicalNetworkName,
+ sharedNetworkBoolean,
+ networkRole,
+ routerExternalBoolean
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public Value getValue() {
+ return value;
+ }
+ public void setValue(Value value) {
+ this.value = value;
+ }
+ public DataQuality getDataQuality() {
+ return dataQuality;
+ }
+ public void setDataQuality(DataQuality dataQuality) {
+ this.dataQuality = dataQuality;
+ }
+
+}
diff --git a/src/main/java/org/onap/pomba/common/datatypes/DataQuality.java b/src/main/java/org/onap/pomba/common/datatypes/DataQuality.java new file mode 100644 index 0000000..111fd94 --- /dev/null +++ b/src/main/java/org/onap/pomba/common/datatypes/DataQuality.java @@ -0,0 +1,52 @@ +/*
+ * ============LICENSE_START===================================================
+ * Copyright (c) 2018 Amdocs
+ * ============================================================================
+ * 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.pomba.common.datatypes;
+
+import com.google.gson.annotations.Expose;
+import com.google.gson.annotations.SerializedName;
+
+public class DataQuality {
+ @Expose
+ @SerializedName("status")
+ private Status status;
+ @Expose
+ @SerializedName("errorText")
+ private String errorText;
+
+ public enum Status {
+ ok,
+ error
+ }
+
+ public Status getStatus() {
+ return this.status;
+ }
+
+ public void setStatus(Status status) {
+ this.status = status;
+ }
+
+ public String getErrorText() {
+ return this.errorText;
+ }
+
+ public void setErrorText(String errorText) {
+ this.errorText = errorText;
+ }
+}
diff --git a/src/main/java/org/onap/pomba/common/datatypes/ModelContext.java b/src/main/java/org/onap/pomba/common/datatypes/ModelContext.java index 6e5c0bb..523ed52 100644 --- a/src/main/java/org/onap/pomba/common/datatypes/ModelContext.java +++ b/src/main/java/org/onap/pomba/common/datatypes/ModelContext.java @@ -15,13 +15,13 @@ * limitations under the License.
* ============LICENSE_END=====================================================
*/
-package org.onap.pomba.common.datatypes;
-import java.util.ArrayList;
-import java.util.List;
+package org.onap.pomba.common.datatypes;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
+import java.util.ArrayList;
+import java.util.List;
public class ModelContext {
@@ -29,8 +29,14 @@ public class ModelContext { @SerializedName("service")
private Service service;
@Expose
- @SerializedName("vf-list")
- private List<VF> vf = new ArrayList<>();
+ @SerializedName("dataQuality")
+ private DataQuality dataQuality = new DataQuality();
+ @Expose
+ @SerializedName("attributeList")
+ private List<Attribute> attributeList = new ArrayList<>();
+ @Expose
+ @SerializedName("vfList")
+ private List<VF> vfList = new ArrayList<>();
public Service getService() {
return service;
@@ -38,13 +44,28 @@ public class ModelContext { public void setService(Service service) {
this.service = service;
}
+ public DataQuality getDataQuality() {
+ return dataQuality;
+ }
+ public void setDataQuality(DataQuality dataQuality) {
+ this.dataQuality = dataQuality;
+ }
+ public List<Attribute> getAttribute() {
+ return attributeList;
+ }
+ public void setAttribute(List<Attribute> attributeList) {
+ this.attributeList = attributeList;
+ }
+ public void addAttribute(Attribute attribute) {
+ this.attributeList.add(attribute);
+ }
public List<VF> getVf() {
- return vf;
+ return vfList;
}
- public void setVf(List<VF> vf) {
- this.vf = vf;
+ public void setVf(List<VF> vfList) {
+ this.vfList = vfList;
}
public void addVf(VF vf) {
- this.vf.add(vf);
+ this.vfList.add(vf);
}
}
diff --git a/src/main/java/org/onap/pomba/common/datatypes/Service.java b/src/main/java/org/onap/pomba/common/datatypes/Service.java index e52e82e..1fde805 100644 --- a/src/main/java/org/onap/pomba/common/datatypes/Service.java +++ b/src/main/java/org/onap/pomba/common/datatypes/Service.java @@ -15,10 +15,13 @@ * limitations under the License.
* ============LICENSE_END=====================================================
*/
+
package org.onap.pomba.common.datatypes;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
+import java.util.ArrayList;
+import java.util.List;
public class Service {
@@ -26,11 +29,17 @@ public class Service { @SerializedName("name")
private String name;
@Expose
- @SerializedName("invariant-id")
+ @SerializedName("invariantUUID")
private String invariantUuid;
@Expose
@SerializedName("uuid")
private String uuid;
+ @Expose
+ @SerializedName("dataQuality")
+ private DataQuality dataQuality = new DataQuality();
+ @Expose
+ @SerializedName("attributeList")
+ private List<Attribute> attributeList = new ArrayList<>();
public String getName() {
return name;
@@ -50,4 +59,19 @@ public class Service { public void setUuid(String uuid) {
this.uuid = uuid;
}
+ public DataQuality getDataQuality() {
+ return dataQuality;
+ }
+ public void setDataQuality(DataQuality dataQuality) {
+ this.dataQuality = dataQuality;
+ }
+ public List<Attribute> getAttribute() {
+ return attributeList;
+ }
+ public void setAttribute(List<Attribute> attributeList) {
+ this.attributeList = attributeList;
+ }
+ public void addAttribute(Attribute attribute) {
+ this.attributeList.add(attribute);
+ }
}
diff --git a/src/main/java/org/onap/pomba/common/datatypes/VF.java b/src/main/java/org/onap/pomba/common/datatypes/VF.java index 83cf37d..05fb9ec 100644 --- a/src/main/java/org/onap/pomba/common/datatypes/VF.java +++ b/src/main/java/org/onap/pomba/common/datatypes/VF.java @@ -15,7 +15,9 @@ * limitations under the License.
* ============LICENSE_END=====================================================
*/
+
package org.onap.pomba.common.datatypes;
+
import java.util.ArrayList;
import java.util.List;
@@ -31,19 +33,25 @@ public class VF { @SerializedName("type")
private String type;
@Expose
- @SerializedName("invariant-id")
+ @SerializedName("invariantUUID")
private String invariantUuid;
@Expose
@SerializedName("uuid")
private String uuid;
@Expose
- @SerializedName("nf-naming-code")
+ @SerializedName("nfNamingCode")
private String nfNamingCode;
@Expose
- @SerializedName("vf-module-list")
+ @SerializedName("dataQuality")
+ private DataQuality dataQuality = new DataQuality();
+ @Expose
+ @SerializedName("attributeList")
+ private List<Attribute> attributeList = new ArrayList<>();
+ @Expose
+ @SerializedName("vfModuleList")
private List<VFModule> vfModules = new ArrayList<>();
@Expose
- @SerializedName("vnfc-list")
+ @SerializedName("vnfcList")
private List<VNFC> vnfc = new ArrayList<>();
public String getName() {
@@ -94,4 +102,19 @@ public class VF { public void addVnfc(VNFC vnfc) {
this.vnfc.add(vnfc);
}
+ public List<Attribute> getAttribute() {
+ return attributeList;
+ }
+ public void setAttribute(List<Attribute> attributeList) {
+ this.attributeList = attributeList;
+ }
+ public void addAttribute(Attribute attribute) {
+ this.attributeList.add(attribute);
+ }
+ public DataQuality getDataQuality() {
+ return dataQuality;
+ }
+ public void setDataQuality(DataQuality dataQuality) {
+ this.dataQuality = dataQuality;
+ }
}
diff --git a/src/main/java/org/onap/pomba/common/datatypes/VFModule.java b/src/main/java/org/onap/pomba/common/datatypes/VFModule.java index 7e3b0b1..1c82801 100644 --- a/src/main/java/org/onap/pomba/common/datatypes/VFModule.java +++ b/src/main/java/org/onap/pomba/common/datatypes/VFModule.java @@ -15,26 +15,48 @@ * limitations under the License.
* ============LICENSE_END=====================================================
*/
+
package org.onap.pomba.common.datatypes;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
+import java.util.ArrayList;
+import java.util.List;
public class VFModule {
@Expose
- @SerializedName("invariant-id")
+ @SerializedName("name")
+ private String name;
+ @Expose
+ @SerializedName("invariantUUID")
private String invariantUuid;
@Expose
@SerializedName("uuid")
private String uuid;
@Expose
- @SerializedName("max-instances")
+ @SerializedName("nfNamingCode")
+ private String nfNamingCode;
+ @Expose
+ @SerializedName("maxInstances")
private int maxInstances;
@Expose
- @SerializedName("min-instances")
+ @SerializedName("minInstances")
private int minInstances;
+ @Expose
+ @SerializedName("dataQuality")
+ private DataQuality dataQuality = new DataQuality();
+ @Expose
+ @SerializedName("attributeList")
+ private List<Attribute> attributeList = new ArrayList<>();
+
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
public String getInvariantUuid() {
return invariantUuid;
}
@@ -47,6 +69,12 @@ public class VFModule { public void setUuid(String uuid) {
this.uuid = uuid;
}
+ public String getNfNamingCode() {
+ return nfNamingCode;
+ }
+ public void setNfNamingCode(String nfNamingCode) {
+ this.nfNamingCode = nfNamingCode;
+ }
public int getMaxInstances() {
return maxInstances;
}
@@ -59,4 +87,19 @@ public class VFModule { public void setMinInstances(int minInstances) {
this.minInstances = minInstances;
}
+ public List<Attribute> getAttribute() {
+ return attributeList;
+ }
+ public void setAttribute(List<Attribute> attributeList) {
+ this.attributeList = attributeList;
+ }
+ public void addAttribute(Attribute attribute) {
+ this.attributeList.add(attribute);
+ }
+ public DataQuality getDataQuality() {
+ return dataQuality;
+ }
+ public void setDataQuality(DataQuality dataQuality) {
+ this.dataQuality = dataQuality;
+ }
}
diff --git a/src/main/java/org/onap/pomba/common/datatypes/VNFC.java b/src/main/java/org/onap/pomba/common/datatypes/VNFC.java index 6eaee0d..1302b6f 100644 --- a/src/main/java/org/onap/pomba/common/datatypes/VNFC.java +++ b/src/main/java/org/onap/pomba/common/datatypes/VNFC.java @@ -15,10 +15,13 @@ * limitations under the License.
* ============LICENSE_END=====================================================
*/
+
package org.onap.pomba.common.datatypes;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
+import java.util.ArrayList;
+import java.util.List;
public class VNFC {
@@ -26,14 +29,20 @@ public class VNFC { @SerializedName("name")
private String name;
@Expose
- @SerializedName("invariant-id")
+ @SerializedName("invariantUUID")
private String invariantUuid;
@Expose
@SerializedName("uuid")
private String uuid;
@Expose
- @SerializedName("nfc-naming-code")
+ @SerializedName("nfNamingCode")
private String nfcNamingCode;
+ @Expose
+ @SerializedName("dataQuality")
+ private DataQuality dataQuality = new DataQuality();
+ @Expose
+ @SerializedName("attributeList")
+ private List<Attribute> attributeList = new ArrayList<>();
public String getName() {
return name;
@@ -59,4 +68,19 @@ public class VNFC { public void setNfcNamingCode(String nfcType) {
this.nfcNamingCode = nfcType;
}
+ public List<Attribute> getAttribute() {
+ return attributeList;
+ }
+ public void setAttribute(List<Attribute> attributeList) {
+ this.attributeList = attributeList;
+ }
+ public void addAttribute(Attribute attribute) {
+ this.attributeList.add(attribute);
+ }
+ public DataQuality getDataQuality() {
+ return dataQuality;
+ }
+ public void setDataQuality(DataQuality dataQuality) {
+ this.dataQuality = dataQuality;
+ }
}
|