Commit 646d9560 by Gunnar Billung-Meyer

make type EthernetInterface.Provider a generic Resource

parent a81eb5b1
......@@ -16,19 +16,16 @@
<edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
<edmx:Include Namespace="Resource"/>
</edmx:Reference>
<edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/ComputerSystem_v1.xml">
<edmx:Include Namespace="ComputerSystem"/>
</edmx:Reference>
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="EID_47597_RECSBox_EthernetInterface.v1_0_0">
<ComplexType Name="EthernetInterface" BaseType="Resource.OemObject">
<NavigationProperty Name="Provider" Type="ComputerSystem.ComputerSystem" Nullable="false">
<NavigationProperty Name="Provider" Type="Resource.Item" Nullable="false">
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
<Annotation Term="OData.Description" String="The ComputerSystem providing this Interface."/>
<Annotation Term="OData.LongDescription" String="This object shall only contain a reference that complies to the ComputerSystem schema."/>
<Annotation Term="OData.Description" String="The provider of this EthernetInterface. This can either be a Port of a ComputerSystem or a PCIeFunction."/>
<Annotation Term="OData.LongDescription" String="This object shall only contain a reference that complies to the ComputerSystem or PCIeFunction schema."/>
<Annotation Term="OData.AutoExpandReferences"/>
</NavigationProperty>
<Property Name="MaxSpeedMbps" Type="Edm.Int64">
......
......@@ -16,19 +16,16 @@
<edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
<edmx:Include Namespace="Resource"/>
</edmx:Reference>
<edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/ComputerSystem_v1.xml">
<edmx:Include Namespace="ComputerSystem"/>
</edmx:Reference>
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="EID_47597_RECSBox_EthernetInterface.v1_0_0">
<ComplexType Name="EthernetInterface" BaseType="Resource.OemObject">
<NavigationProperty Name="Provider" Type="ComputerSystem.ComputerSystem" Nullable="false">
<NavigationProperty Name="Provider" Type="Resource.Item" Nullable="false">
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
<Annotation Term="OData.Description" String="The ComputerSystem providing this Interface."/>
<Annotation Term="OData.LongDescription" String="This object shall only contain a reference that complies to the ComputerSystem schema."/>
<Annotation Term="OData.Description" String="The provider of this EthernetInterface. This can either be a Port of a ComputerSystem or a PCIeFunction."/>
<Annotation Term="OData.LongDescription" String="This object shall only contain a reference that complies to the ComputerSystem or PCIeFunction schema."/>
<Annotation Term="OData.AutoExpandReferences"/>
</NavigationProperty>
<Property Name="MaxSpeedMbps" Type="Edm.Int64">
......
......@@ -87,7 +87,7 @@ The EthernetInterface schema represents a single, logical ethernet interface or
<tr><td>Oem {</td><td>object</td><td></td><td></td><td>read-write</td><td>This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.</td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;EID_47597 {</td><td>object</td><td></td><td></td><td>read-write</td><td></td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MaxSpeedMbps</td><td>number</td><td>Yes</td><td></td><td>read-write</td><td>This is the maximum speed in Mbps of this interface.<br />Unit: Mbit/s</td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provider {</td><td>reference(<a href="computersystem.html#computersystem">ComputerSystem</a>)</td><td></td><td></td><td>read-only</td><td>The ComputerSystem providing this Interface.</td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provider {</td><td>reference</td><td></td><td></td><td>read-only</td><td>The provider of this EthernetInterface. This can either be a Port of a ComputerSystem or a PCIeFunction.</td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@odata.id</td><td>string</td><td></td><td></td><td>read-only</td><td>The unique identifier for a resource.<br />Format: uri</td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</td><td></td><td></td><td></td><td></td><td></td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;}</td><td></td><td></td><td></td><td></td><td></td></tr>
......@@ -143,7 +143,7 @@ Content-Type: application/json
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Provider": {
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"@odata.id": "/redfish/v1/Systems/ComputerSystem1"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"@odata.id": "uri"
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<br />
......
......@@ -29,9 +29,9 @@
"units": "Mbit/s"
},
"Provider": {
"$ref": "http://redfish.dmtf.org/schemas/v1/ComputerSystem.json#/definitions/ComputerSystem",
"description": "The ComputerSystem providing this Interface.",
"longDescription": "This object shall only contain a reference that complies to the ComputerSystem schema.",
"$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/idRef",
"description": "The provider of this EthernetInterface. This can either be a Port of a ComputerSystem or a PCIeFunction.",
"longDescription": "This object shall only contain a reference that complies to the ComputerSystem or PCIeFunction schema.",
"readonly": true
}
},
......
......@@ -29,9 +29,9 @@
"units": "Mbit/s"
},
"Provider": {
"$ref": "http://redfish.dmtf.org/schemas/v1/ComputerSystem.json#/definitions/ComputerSystem",
"description": "The ComputerSystem providing this Interface.",
"longDescription": "This object shall only contain a reference that complies to the ComputerSystem schema.",
"$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/idRef",
"description": "The provider of this EthernetInterface. This can either be a Port of a ComputerSystem or a PCIeFunction.",
"longDescription": "This object shall only contain a reference that complies to the ComputerSystem or PCIeFunction schema.",
"readonly": true
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment