aai-schema introduce composed-resource to build 99/123199/2
authorNiharika Sharma <niharika.sharma1@bell.ca>
Mon, 9 Aug 2021 18:31:50 +0000 (14:31 -0400)
committerNiharika Sharma <niharika.sharma@amdocs.com>
Tue, 10 Aug 2021 15:10:40 +0000 (11:10 -0400)
parent child relationship between service instances
this allows us to identify which object is parent and which is child service

Issue-ID: AAI-3366
Signed-off-by: Niharika Sharma <niharika.sharma@amdocs.com>
Change-Id: Ic98353c35902610792de8680effd0aa1b7ce36a6

aai-schema/src/main/resources/onap/dbedgerules/v24/DbEdgeRules_v24.json
aai-schema/src/main/resources/onap/oxm/v24/aai_oxm_v24.xml

index 6826a78..1735909 100644 (file)
                        "default": "true",
                        "description": ""
                },
-                {
-                    "from": "composed-resource",
-                    "to": "service-instance",
-                    "label": "org.onap.relationships.inventory.ComposedOf",
-                    "direction": "OUT",
-                    "multiplicity": "MANY2ONE",
-                    "contains-other-v": "!${direction}",
-                    "delete-other-v": "!${direction}",
-                    "prevent-delete": "NONE",
-                    "default": "true",
-                    "description": ""
-                },
-                {
-                    "from": "service-instance",
-                    "to": "composed-resource",
-                    "label": "org.onap.relationships.inventory.BelongsTo",
-                    "direction": "OUT",
-                    "multiplicity": "ONE2ONE",
-                    "contains-other-v": "NONE",
-                    "delete-other-v": "NONE",
-                    "prevent-delete": "NONE",
-                    "default": "true",
-                    "description": ""
-                },
+        {
+            "from": "composed-resource",
+            "to": "service-instance",
+            "label": "org.onap.relationships.inventory.ComposedOf",
+            "direction": "OUT",
+            "multiplicity": "MANY2ONE",
+            "contains-other-v": "!${direction}",
+            "delete-other-v": "!${direction}",
+            "prevent-delete": "NONE",
+            "default": "true",
+            "description": ""
+        },
+        {
+            "from": "service-instance",
+            "to": "composed-resource",
+            "label": "org.onap.relationships.inventory.BelongsTo",
+            "direction": "OUT",
+            "multiplicity": "ONE2ONE",
+            "contains-other-v": "NONE",
+            "delete-other-v": "NONE",
+            "prevent-delete": "NONE",
+            "default": "true",
+            "description": ""
+        },
                {
                        "from": "service-instance",
                        "to": "instance-group",
index 6c730a3..6591ec1 100644 (file)
         </java-type>
         <java-type name="ComposedResources">
             <xml-properties>
-                <xml-property name="description" value="This object is used to store slices of services being offered"/>
+                <xml-property name="description" value="This object is used to represent parent-child relationship between service-instance"/>
             </xml-properties>
             <xml-root-element name="composed-resources"/>
             <java-attributes>
                         <xml-property name="description" value="Link back to more information in the controller"/>
                     </xml-properties>
                 </xml-element>
-                <xml-element java-attribute="modelInvariantId" name="model-invariant-id" type="java.lang.String">
-                    <xml-properties>
-                        <xml-property name="description" value="the ASDC model id for this resource or service model."/>
-                        <xml-property name="visibility" value="deployment"/>
-                        <xml-property name="requires" value="model-version-id"/>
-                        <xml-property name="dbAlias" value="model-invariant-id-local"/>
-                    </xml-properties>
-                </xml-element>
-                <xml-element java-attribute="modelVersionId" name="model-version-id" type="java.lang.String">
-                    <xml-properties>
-                        <xml-property name="description" value="the ASDC model version for this resource or service model."/>
-                        <xml-property name="visibility" value="deployment"/>
-                        <xml-property name="requires" value="model-invariant-id"/>
-                        <xml-property name="dbAlias" value="model-version-id-local"/>
-                        <xml-property name="privateEdge" value="service-design-and-creation/models/model/{model-invariant-id}/model-vers/model-ver/{model-version-id}"/>
-                    </xml-properties>
-                </xml-element>
                 <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String">
                     <xml-properties>
                         <xml-property name="description" value="Concurrency value"/>
                         <xml-property name="description" value="Identifies the version of the upstream source."/>
                     </xml-properties>
                 </xml-element>                         
-                <xml-element java-attribute="tunnelXconnects" name="tunnel-xconnects" type="inventory.aai.onap.org.v24.TunnelXconnects"/>
                 <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v24.RelationshipList"/>
             </java-attributes>
 
             <xml-properties>
-                <xml-property name="description" value="Represents a slice or partial piece of a resource that gets separately composed"/>
+                <xml-property name="description" value="Represents a resource that acts as a bridge between service-instance to define parent-child relationship"/>
         <xml-property name="nameProps" value="description,composed-resource-name"/>
-        <xml-property name="indexedProps" value="id,model-invariant-id,model-version-id,type,role,composed-resource-name,access-provider-id,access-client-id,access-topology-id,access-node-id,access-ltp-id,vpn-name,orchestration-status,data-owner,data-source,data-source-version"/>
+        <xml-property name="indexedProps" value="id,type,role,composed-resource-name,access-provider-id,access-client-id,access-topology-id,access-node-id,access-ltp-id,vpn-name,orchestration-status,data-owner,data-source,data-source-version"/>
                 <xml-property name="dependentOn" value="service-instance"/>
                 <xml-property name="container" value="composed-resources"/>
                 <!--  <xml-property name="namespace" value="network" /> -->