aboutsummaryrefslogtreecommitdiffstats
path: root/aai-schema
diff options
context:
space:
mode:
Diffstat (limited to 'aai-schema')
-rw-r--r--aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_pnp_v14.json17
-rw-r--r--aai-schema/src/main/resources/onap/oxm/v14/aai_pnp_oxm_v14.xml77
2 files changed, 94 insertions, 0 deletions
diff --git a/aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_pnp_v14.json b/aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_pnp_v14.json
new file mode 100644
index 00000000..5f8f4306
--- /dev/null
+++ b/aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_pnp_v14.json
@@ -0,0 +1,17 @@
+{
+ "rules": [
+ {
+ "from": "software-version",
+ "to": "pnf",
+ "label": "org.onap.relationships.inventory.BelongsTo",
+ "direction": "OUT",
+ "multiplicity": "MANY2ONE",
+ "contains-other-v": "!${direction}",
+ "delete-other-v": "NONE",
+ "SVC-INFRA": "NONE",
+ "prevent-delete": "!${direction}",
+ "default": "true",
+ "description":""
+ }
+ ]
+}
diff --git a/aai-schema/src/main/resources/onap/oxm/v14/aai_pnp_oxm_v14.xml b/aai-schema/src/main/resources/onap/oxm/v14/aai_pnp_oxm_v14.xml
new file mode 100644
index 00000000..11563c56
--- /dev/null
+++ b/aai-schema/src/main/resources/onap/oxm/v14/aai_pnp_oxm_v14.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ ============LICENSE_START=======================================================
+ org.onap.aai
+ ================================================================================
+ Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ Copyright (C) 2018 Huawei Technologies (Australia) Pty Ltd. 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=========================================================
+ -->
+
+<xml-bindings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm" package-name="inventory.aai.onap.org.v14" xml-mapping-metadata-complete="true">
+ <xml-schema element-form-default="QUALIFIED">
+ <xml-ns namespace-uri="http://org.onap.aai.inventory/v14" />
+ </xml-schema>
+ <java-types>
+ <java-type name="Pnf">
+ <xml-root-element name="pnf" />
+ <java-attributes>
+ <xml-element java-attribute="pnfIpv4Address" name="pnf-ipv4-address" type="java.lang.String">
+ <xml-properties>
+ <xml-property name="description" value="This is the IP address (IPv4) for the PNF itself. This is the IPv4 address that the PNF iself can be accessed at." />
+ </xml-properties>
+ </xml-element>
+ <xml-element java-attribute="pnfIpv6Address" name="pnf-ipv6-address" type="java.lang.String">
+ <xml-properties>
+ <xml-property name="description" value="This is the IP address (IPv6) for the PNF itself. This is the IPv6 address that the PNF iself can be accessed at." />
+ </xml-properties>
+ </xml-element>
+ <xml-element java-attribute="softwareVersions" name="software-versions" type="inventory.aai.onap.org.v14.SoftwareVersions" />
+ </java-attributes>
+ </java-type>
+ <java-type name="SoftwareVersions">
+ <xml-properties>
+ <xml-property name="description" value="Collection of software versions." />
+ </xml-properties>
+ <xml-root-element name="software-versions" />
+ <java-attributes>
+ <xml-element container-type="java.util.ArrayList" java-attribute="softwareVersion" name="software-version" type="inventory.aai.onap.org.v14.SoftwareVersion" />
+ </java-attributes>
+ </java-type>
+
+ <java-type name="SoftwareVersion">
+ <xml-root-element name="software-version" />
+ <java-attributes>
+ <xml-element java-attribute="softwareVersionId" name="software-version-id" required="true" type="java.lang.String" xml-key="true">
+ <xml-properties>
+ <xml-property name="description" value="Identifier of the software version" />
+ </xml-properties>
+ </xml-element>
+ <xml-element default-value="false" java-attribute="isActiveSwVer" name="is-active-sw-ver" required="true" type="java.lang.Boolean">
+ <xml-properties>
+ <xml-property name="defaultValue" value="false"/>
+ <xml-property name="description" value="used to indicate whether or not this software-version is the active one (activeSw = true)" />
+ </xml-properties>
+ </xml-element>
+ </java-attributes>
+ <xml-properties>
+ <xml-property name="description" value="Software Version" />
+ <xml-property name="indexedProps" value="softwareVersionId,isActiveSwVer" />
+ <xml-property name="dependentOn" value="pnf" />
+ <xml-property name="container" value="pnf" />
+ </xml-properties>
+ </java-type>
+ </java-types>
+</xml-bindings>