Commit 1338e003 by Gunnar Billung-Meyer

make some properties required on POST

parent f917a217
......@@ -23,6 +23,7 @@
<ComplexType Name="VLanNetworkInterface" BaseType="Resource.OemObject">
<Property Name="Tagged" Type="Edm.Boolean">
<Annotation Term="Redfish.RequiredOnCreate"/>
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
<Annotation Term="OData.Description" String="This indicates if VLAN is tagged (as defined in IEEE 802.1Q)."/>
<Annotation Term="OData.LongDescription" String="This indicates if VLAN is tagged (as defined in IEEE 802.1Q)." />
......
......@@ -48,18 +48,21 @@
<Annotation Term="OData.AutoExpandReferences"/>
</NavigationProperty>
<NavigationProperty Name="EndpointA" Type="HSLLInterface.HSLLInterface" Nullable="false">
<Annotation Term="Redfish.RequiredOnCreate"/>
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
<Annotation Term="OData.Description" String="The first endpoint of this connection"/>
<Annotation Term="OData.LongDescription" String="This object shall only contain a reference that complies to the HSLLInterface schema."/>
<Annotation Term="OData.AutoExpandReferences"/>
</NavigationProperty>
<NavigationProperty Name="EndpointB" Type="HSLLInterface.HSLLInterface" Nullable="false">
<Annotation Term="Redfish.RequiredOnCreate"/>
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
<Annotation Term="OData.Description" String="The second endpoint of this connection."/>
<Annotation Term="OData.LongDescription" String="This object shall only contain a reference that complies to the HSLLInterface schema."/>
<Annotation Term="OData.AutoExpandReferences"/>
</NavigationProperty>
<Property Name="Width" Type="Edm.Int64" Nullable="false">
<Annotation Term="Redfish.RequiredOnCreate"/>
<Annotation Term="OData.Permissions" EnumMember="OData.Permissions/ReadWrite"/>
<Annotation Term="OData.Description" String="Connection width of the HSLLConnection specified in number of lanes"/>
<Annotation Term="OData.LongDescription" String="The value of this property shall contain the connection width of the HSLLConnection specified in number of lanes."/>
......
......@@ -23,6 +23,7 @@
<ComplexType Name="VLanNetworkInterface" BaseType="Resource.OemObject">
<Property Name="Tagged" Type="Edm.Boolean">
<Annotation Term="Redfish.RequiredOnCreate"/>
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
<Annotation Term="OData.Description" String="This indicates if VLAN is tagged (as defined in IEEE 802.1Q)."/>
<Annotation Term="OData.LongDescription" String="This indicates if VLAN is tagged (as defined in IEEE 802.1Q)." />
......
......@@ -48,18 +48,21 @@
<Annotation Term="OData.AutoExpandReferences"/>
</NavigationProperty>
<NavigationProperty Name="EndpointA" Type="HSLLInterface.HSLLInterface" Nullable="false">
<Annotation Term="Redfish.RequiredOnCreate"/>
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
<Annotation Term="OData.Description" String="The first endpoint of this connection"/>
<Annotation Term="OData.LongDescription" String="This object shall only contain a reference that complies to the HSLLInterface schema."/>
<Annotation Term="OData.AutoExpandReferences"/>
</NavigationProperty>
<NavigationProperty Name="EndpointB" Type="HSLLInterface.HSLLInterface" Nullable="false">
<Annotation Term="Redfish.RequiredOnCreate"/>
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
<Annotation Term="OData.Description" String="The second endpoint of this connection."/>
<Annotation Term="OData.LongDescription" String="This object shall only contain a reference that complies to the HSLLInterface schema."/>
<Annotation Term="OData.AutoExpandReferences"/>
</NavigationProperty>
<Property Name="Width" Type="Edm.Int64" Nullable="false">
<Annotation Term="Redfish.RequiredOnCreate"/>
<Annotation Term="OData.Permissions" EnumMember="OData.Permissions/ReadWrite"/>
<Annotation Term="OData.Description" String="Connection width of the HSLLConnection specified in number of lanes"/>
<Annotation Term="OData.LongDescription" String="The value of this property shall contain the connection width of the HSLLConnection specified in number of lanes."/>
......
......@@ -79,10 +79,10 @@ This is the schema definition for the HSLLConnection resource.
<tr><td>&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>}</td><td></td><td></td><td></td><td></td><td></td></tr>
<tr><td>Description</td><td>string</td><td>Yes</td><td></td><td>read-only</td><td>Provides a description of this resource and is used for commonality in the schema definitions.</td></tr>
<tr><td>EndpointA {</td><td>reference(<a href="hsllinterface.html#hsllinterface">HSLLInterface</a>)</td><td></td><td></td><td>read-write</td><td>The first endpoint of this connection</td></tr>
<tr><td>EndpointA {</td><td>reference(<a href="hsllinterface.html#hsllinterface">HSLLInterface</a>)</td><td></td><td>POST</td><td>read-write</td><td>The first endpoint of this connection</td></tr>
<tr><td>&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>}</td><td></td><td></td><td></td><td></td><td></td></tr>
<tr><td>EndpointB {</td><td>reference(<a href="hsllinterface.html#hsllinterface">HSLLInterface</a>)</td><td></td><td></td><td>read-write</td><td>The second endpoint of this connection.</td></tr>
<tr><td>EndpointB {</td><td>reference(<a href="hsllinterface.html#hsllinterface">HSLLInterface</a>)</td><td></td><td>POST</td><td>read-write</td><td>The second endpoint of this connection.</td></tr>
<tr><td>&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>}</td><td></td><td></td><td></td><td></td><td></td></tr>
<tr><td>Id</td><td>string</td><td></td><td>GET</td><td>read-only</td><td>Uniquely identifies the resource within the collection of like resources.</td></tr>
......@@ -91,7 +91,7 @@ This is the schema definition for the HSLLConnection resource.
<tr><td>}</td><td></td><td></td><td></td><td></td><td></td></tr>
<tr><td>Name</td><td>string</td><td></td><td>GET</td><td>read-only</td><td>The name of the resource or array element.</td></tr>
<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>Width</td><td>number</td><td></td><td></td><td>read-write</td><td>Connection width of the HSLLConnection specified in number of lanes<br />Minimum: 0</td></tr>
<tr><td>Width</td><td>number</td><td></td><td>POST</td><td>read-write</td><td>Connection width of the HSLLConnection specified in number of lanes<br />Minimum: 0</td></tr>
</table>
<h2 id="operations">Operations</h2>
<h3 id="get">GET</h3>
......
......@@ -86,7 +86,7 @@ This resource describes the attributes of a Virtual LAN.
<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 VLAN. This can either be a Port of an (Ethernet-)Switch or a EthernetInterface.</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;&nbsp;&nbsp;&nbsp;&nbsp;Tagged</td><td>boolean</td><td>Yes</td><td></td><td>read-write</td><td>This indicates if VLAN is tagged (as defined in IEEE 802.1Q).</td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tagged</td><td>boolean</td><td>Yes</td><td>POST</td><td>read-write</td><td>This indicates if VLAN is tagged (as defined in IEEE 802.1Q).</td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;}</td><td></td><td></td><td></td><td></td><td></td></tr>
<tr><td>}</td><td></td><td></td><td></td><td></td><td></td></tr>
<tr><td>VLANEnable</td><td>boolean</td><td>Yes</td><td>POST</td><td>read-write</td><td>This indicates if this VLAN is enabled.</td></tr>
......
......@@ -34,6 +34,9 @@
]
}
},
"requiredOnCreate": [
"Tagged"
],
"type": "object"
}
},
......
......@@ -89,6 +89,11 @@
"Id",
"Name"
],
"requiredOnCreate": [
"EndpointA",
"EndpointB",
"Width"
],
"type": "object"
},
"Links": {
......
......@@ -34,6 +34,9 @@
]
}
},
"requiredOnCreate": [
"Tagged"
],
"type": "object"
}
},
......
......@@ -89,6 +89,11 @@
"Id",
"Name"
],
"requiredOnCreate": [
"EndpointA",
"EndpointB",
"Width"
],
"type": "object"
},
"Links": {
......
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