aai-schema introduce profiles with relationship to pnf, pserver and vserver objects 16/110916/5
authorMunir Ahmad <munir.ahmad@bell.ca>
Wed, 5 Aug 2020 14:53:48 +0000 (10:53 -0400)
committerMunir Ahmad <munir.ahmad@bell.ca>
Thu, 6 Aug 2020 21:20:05 +0000 (21:20 +0000)
Issue-ID: AAI-3104

Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
Change-Id: I86225ca945fbeec7b73b85299123dcc8e0bba5bc

aai-schema/src/main/resources/onap/dbedgerules/v20/DbEdgeRules_v20.json
aai-schema/src/main/resources/onap/oxm/v20/aai_oxm_v20.xml

index 9121ca5..5067fd3 100644 (file)
                        "default": "true",
                        "description":""
                },
+                {
+                        "from": "profile",
+                        "to": "pnf",
+                        "label": "org.onap.relationships.inventory.supports",
+                        "direction": "OUT",
+                        "multiplicity": "MANY2MANY",
+                        "contains-other-v": "NONE",
+                        "delete-other-v": "NONE",
+                        "SVC-INFRA": "NONE",
+                        "prevent-delete": "NONE",
+                        "default": "true",
+                        "description":""
+                },
+                {
+                        "from": "profile",
+                        "to": "pserver",
+                        "label": "org.onap.relationships.inventory.supports",
+                        "direction": "OUT",
+                        "multiplicity": "MANY2MANY",
+                        "contains-other-v": "NONE",
+                        "delete-other-v": "NONE",
+                        "SVC-INFRA": "NONE",
+                        "prevent-delete": "NONE",
+                        "default": "true",
+                        "description":""
+                },
+                {
+                        "from": "profile",
+                        "to": "vserver",
+                        "label": "org.onap.relationships.inventory.supports",
+                        "direction": "OUT",
+                        "multiplicity": "MANY2MANY",
+                        "contains-other-v": "NONE",
+                        "delete-other-v": "NONE",
+                        "SVC-INFRA": "NONE",
+                        "prevent-delete": "NONE",
+                        "default": "true",
+                        "description":""
+                },
                {
                        "from": "cvlan-tag",
                        "to": "port-group",
                        "delete-other-v": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
-                       "description":"A Configuration uses VRFs"       
+                       "description":"A Configuration uses VRFs"
                },
                {
                        "from": "vrf",
                        "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "default": "true",
-                       "description":""                
+                       "description":""
                },
                {
                        "from": "communication-service-profile",
                        "default": "true",
                        "description":""
                }
-               
+
        ]
 }
 
index bb18fd4..5669464 100644 (file)
             <xml-root-element name="common"/>
             <java-attributes>
                <xml-element java-attribute="contacts" name="contacts" type="inventory.aai.onap.org.v20.Contacts"/>
+                <xml-element java-attribute="profiles" name="profiles" type="inventory.aai.onap.org.v20.Profiles"/>
             </java-attributes>
                </java-type>
 
             </xml-properties>
                </java-type>
 
+        <java-type name="Profiles">
+            <xml-properties>
+                <xml-property name="description" value="Collection of profiles"/>
+            </xml-properties>
+            <xml-root-element name="profiles"/>
+            <java-attributes>
+                <xml-element container-type="java.util.ArrayList" java-attribute="profile" name="profile" type="inventory.aai.onap.org.v20.Profile"/>
+            </java-attributes>
+        </java-type>
+
+        <java-type name="Profile">
+            <xml-root-element name="profile"/>
+            <java-attributes>
+                <xml-element java-attribute="profileName" name="profile-name" required="true" type="java.lang.String" xml-key="true">
+                    <xml-properties>
+                        <xml-property name="description" value="Name of the profile"/>
+                    </xml-properties>
+                </xml-element>
+                <xml-element java-attribute="profileType" name="profile-type" type="java.lang.String">
+                    <xml-properties>
+                        <xml-property name="description" value="Type of profile (ex,network-power-profile)"/>
+                    </xml-properties>
+                </xml-element>
+                <xml-element java-attribute="profileCharacteristics" name="profile-characteristics" type="java.lang.String">
+                    <xml-properties>
+                        <xml-property name="description" value="Set of characteristics of the profile."/>
+                    </xml-properties>
+                </xml-element>
+                <xml-element java-attribute="profileSubtype" name="profile-subtype" type="java.lang.String">
+                    <xml-properties>
+                        <xml-property name="description" value="Descriptive subtype."/>
+                    </xml-properties>
+                </xml-element>
+                <xml-element java-attribute="profileSelflink" name="profile-selflink" required="true" type="java.lang.String">
+                    <xml-properties>
+                        <xml-property name="description" value="URL to endpoint where AAI can get more details"/>
+                    </xml-properties>
+                </xml-element>
+                <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String">
+                    <xml-properties>
+                        <xml-property name="description" value="Used for optimistic concurrency.  Must be empty on create, valid on update and delete."/>
+                    </xml-properties>
+                </xml-element>
+                <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v20.RelationshipList"/>
+            </java-attributes>
+            <xml-properties>
+                <xml-property name="description" value="Profiles store the information (ex, credential-profile) and have a relationship to (ex, pnf)"/>
+                <xml-property name="uniqueProps" value="profile-name"/>
+                <xml-property name="container" value="profiles"/>
+                <xml-property name="namespace" value="common"/>
+                <xml-property name="nameProps" value="profile-name,profile-type"/>
+                <xml-property name="uriTemplate" value="/common/profiles/profile/{profile-name}"/>
+                <xml-property name="requiredProps" value="profile-name"/>
+            </xml-properties>
+        </java-type>
                                <java-type name="AggregateRoutes">
             <xml-properties>
                 <xml-property name="description" value="Collection of aggregate routes."/>