RackHD/on-http

View on GitHub
data/views/redfish-1.0/redfish.1.0.0.storage.1.0.0.json

Summary

Maintainability
Test Coverage
{
    "@odata.context" : "<%= basepath %>/$metadata#Storage.Storage",
    "@odata.id": "<%= url %>",
    "@odata.type": "#Storage.v1_0_0.Storage",
    "Oem" : {},
    "Name": "Local Storage Controller",
    "Id": "<%= index %>",
    "Description": "Integrated RAID Controller %>",
    "Links" : { },
    "Status": {},
    "StorageControllers@odata.count" : <%= controllerArr.length %>,
    "StorageControllers" :[
        <% controllerArr.forEach(function(device, i, arr) { %>
            {
                "@odata.id": "<%= basepath %>/Storage/<%= index %>#/StorageControllers/<%= i %>",
                "MemberId" : "<%= i %>",
                "Status": {}
            }
        <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
        <% }); %>
    ],
    "Drives@odata.count" : <%= devices.length %>,
    "Drives" : [
        <% devices.forEach(function(device, i, arr) { %>
            {
                "@odata.id" : "<%= url %>/Drives/<%= device.Identity["Serial number"] ? device.Identity["Serial number"] : device.Identity["Serial Number"] %>"
            }
        <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
        <% }); %>
    ]



}