UNPKG

on-http-y1

Version:
65 lines 2.27 kB
{ "@odata.context" : "<%= basepath %>/$metadata#Chassis/Members/$entity", "@odata.id": "<%= url %>", "@odata.type": "#Chassis.1.0.0.Chassis", "Oem": {}, "Id": "<%= identifier %>", "Description": "", "Name": "Chassis", "ChassisType": "<%= chassisType %>", "AssetTag" : "<%= catData.chassis.asset_tag %>", "Manufacturer": "<%= catData.chassis.manufacturer %>", "Model": "<%= catData.system.product_name %>", "SKU": "<%= catData.chassis.sku_number %>", "SerialNumber": "<%= catData.chassis.serial_number %>", "Actions": { "Oem": {}, "#Chassis.Reset": {} }, "Status": {}, "Thermal": { "@odata.id": "<%= basepath %>/Chassis/<%= identifier %>/Thermal" }, "Power": { "@odata.id": "<%= basepath %>/Chassis/<%= identifier %>/Power" }, "LogServices": {}, "IndicatorLED": "<%= chassisData.uid %>", "Links": { "Oem": {}, "ComputerSystems@odata.count": <%= targetList.length %>, "ComputerSystems": [ <% targetList.forEach(function(target, i, arr) { %> { "@odata.id": "<%= basepath %>/Systems/<%= target %>" } <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %> <% }); %> ], "ManagedBy@odata.count": <%= obm.length %>, "ManagedBy": [ <% obm.forEach(function(obm, i, arr) { %> { "@odata.id": "<%= basepath %>/Managers/<%= obm %>" } <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %> <% }); %> ] <% if( typeof contains !== 'undefined' ) { %> ,"Contains@odata.count": <%= contains.length %>, "Contains": [ <% contains.forEach(function(encloses, i, arr) { %> { "@odata.id": "<%= basepath %>/Chassis/<%= encloses %>" } <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %> <% }); %> ] <% } %> <% if( typeof containedBy !== 'undefined' ) { %> , "ContainedBy": { "@odata.id": "<%= basepath %>/Chassis/<%= containedBy %>" } <% } %> } }