AAI-1484 Add device schema for CCVPN usecase
[aai/aai-common.git] / aai-schema / src / main / resources / onap / oxm / v14 / aai_oxm_v14.xml
index 5e80c6e..f72756e 100644 (file)
                                <xml-element java-attribute="networkResources" name="network-resources" type="inventory.aai.onap.org.v14.NetworkResources" />
                                <xml-element java-attribute="siteResources" name="site-resources" type="inventory.aai.onap.org.v14.SiteResources" />
                                <xml-element java-attribute="sdwanVpns" name="sdwan-vpns" type="inventory.aai.onap.org.v14.SdwanVpns" />
+                               <xml-element java-attribute="devices" name="devices" type="inventory.aai.onap.org.v14.Devices" />
             </java-attributes>
         </java-type>
         <java-type name="Configurations">
                        </xml-properties>
                </java-type>
 
+               <java-type name="Devices">
+                       <xml-root-element name="devices" />
+                       <xml-properties>
+                               <xml-property name="description" value="Collection of devices" />
+                       </xml-properties>
+                       <java-attributes>
+                               <xml-element container-type="java.util.ArrayList" java-attribute="device" name="device" type="inventory.aai.onap.org.v14.Device" />
+                       </java-attributes>
+               </java-type>
+               <java-type name="Device">
+                       <xml-root-element name="device" />
+                       <java-attributes>
+                               <xml-element java-attribute="deviceId" name="device-id" required="true" type="java.lang.String" xml-key="true">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Uniquely identifies this device by id" />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="esn" name="esn" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the esn of this device." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="deviceName" name="device-name" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the name of this device." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="description" name="description" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the description of this device." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="vendor" name="vendor" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the vendor of this device." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="class" name="class" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the class of this device." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="type" name="type" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the type of this device." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="version" name="version" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the version of this device." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="systemIp" name="system-ip" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the system-ip of this device." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="selflink" name="selflink" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the link to get more information for this object." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="operationalStatus" name="operational-status" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the operational-status for this object." />
+                                       </xml-properties>
+                               </xml-element>
+                               <xml-element java-attribute="modelCustomizationId" name="model-customization-id" type="java.lang.String">
+                                       <xml-properties>
+                                               <xml-property name="description" value="Store the model-customization-id for this object." />
+                                       </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="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v14.RelationshipList" />
+                       </java-attributes>
+                       <xml-properties>
+                               <xml-property name="description" value="Instance of a device" />
+                               <xml-property name="indexedProps" value="device-id,device-name,esn,vendor,class,type,version,system-ip,operational-status" />
+                               <xml-property name="nameProps" value="device-name" />
+                               <xml-property name="searchable" value="device-id" />
+                               <xml-property name="uniqueProps" value="device-id" />
+                               <xml-property name="container" value="devices" />
+                               <xml-property name="namespace" value="network" />
+                       </xml-properties>
+               </java-type>
+
        </java-types>
 </xml-bindings>