summaryrefslogtreecommitdiffstats
path: root/static/redfish/v1/JsonSchemas/VLanNetworkInterface
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2018-07-26 12:47:19 -0700
committerEd Tanous <ed.tanous@intel.com>2018-09-17 16:25:06 +0000
commit683f7276576dbf0bf7770570190f6b5b4e84d4c9 (patch)
tree5ce732faa82e8360367006c510e9797bb7ee51d1 /static/redfish/v1/JsonSchemas/VLanNetworkInterface
parentcc340dd933d38095214a0eeb7c1ee77510bd30cd (diff)
downloadbmcweb-683f7276576dbf0bf7770570190f6b5b4e84d4c9.tar.gz
bmcweb-683f7276576dbf0bf7770570190f6b5b4e84d4c9.zip
Implement JsonSchema endpoint
This patchset implements JsonSchema support, and automates our update of the XML metadata, and Json schema files in the future by way of a python script. Change-Id: Iec6f580d10736678149db18d87be2f140b535be9 Signed-off-by: Ed Tanous <ed.tanous@intel.com> Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'static/redfish/v1/JsonSchemas/VLanNetworkInterface')
-rw-r--r--static/redfish/v1/JsonSchemas/VLanNetworkInterface/index.json193
1 files changed, 193 insertions, 0 deletions
diff --git a/static/redfish/v1/JsonSchemas/VLanNetworkInterface/index.json b/static/redfish/v1/JsonSchemas/VLanNetworkInterface/index.json
new file mode 100644
index 0000000..e51a9ca
--- /dev/null
+++ b/static/redfish/v1/JsonSchemas/VLanNetworkInterface/index.json
@@ -0,0 +1,193 @@
+{
+ "$ref": "#/definitions/VLanNetworkInterface",
+ "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_3_0.json",
+ "copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
+ "definitions": {
+ "Actions": {
+ "additionalProperties": false,
+ "description": "The available actions for this resource.",
+ "longDescription": "This type shall contain the available actions for this resource.",
+ "patternProperties": {
+ "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
+ "description": "This property shall specify a valid odata or Redfish property.",
+ "type": [
+ "array",
+ "boolean",
+ "number",
+ "null",
+ "object",
+ "string"
+ ]
+ }
+ },
+ "properties": {
+ "Oem": {
+ "$ref": "#/definitions/OemActions"
+ }
+ },
+ "type": "object"
+ },
+ "OemActions": {
+ "additionalProperties": true,
+ "description": "The available OEM specific actions for this resource.",
+ "longDescription": "This type shall contain any additional OEM actions for this resource.",
+ "patternProperties": {
+ "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
+ "description": "This property shall specify a valid odata or Redfish property.",
+ "type": [
+ "array",
+ "boolean",
+ "number",
+ "null",
+ "object",
+ "string"
+ ]
+ }
+ },
+ "properties": {},
+ "type": "object"
+ },
+ "VLAN": {
+ "additionalProperties": false,
+ "description": "This type describes the attributes of a Virtual LAN.",
+ "longDescription": "This type shall contain any attributes of a Virtual LAN.",
+ "patternProperties": {
+ "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
+ "description": "This property shall specify a valid odata or Redfish property.",
+ "type": [
+ "array",
+ "boolean",
+ "number",
+ "null",
+ "object",
+ "string"
+ ]
+ }
+ },
+ "properties": {
+ "VLANEnable": {
+ "description": "This indicates if this VLAN is enabled.",
+ "longDescription": "The value of this property shall be used to indicate if this VLAN is enabled for this interface.",
+ "readonly": false,
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "VLANId": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/VLANId"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "This indicates the VLAN identifier for this VLAN.",
+ "longDescription": "The value of this property shall be used to indicate the VLAN identifier for this VLAN.",
+ "readonly": false
+ }
+ },
+ "requiredOnCreate": [
+ "VLANEnable",
+ "VLANId"
+ ],
+ "type": "object"
+ },
+ "VLANId": {
+ "maximum": 4094,
+ "minimum": 0,
+ "type": "number"
+ },
+ "VLanNetworkInterface": {
+ "additionalProperties": false,
+ "description": "This resource describes the attributes of a Virtual LAN.",
+ "longDescription": "This resource shall contain any attributes of a Virtual LAN.",
+ "patternProperties": {
+ "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
+ "description": "This property shall specify a valid odata or Redfish property.",
+ "type": [
+ "array",
+ "boolean",
+ "number",
+ "null",
+ "object",
+ "string"
+ ]
+ }
+ },
+ "properties": {
+ "@odata.context": {
+ "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/context"
+ },
+ "@odata.id": {
+ "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/id"
+ },
+ "@odata.type": {
+ "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/type"
+ },
+ "Actions": {
+ "$ref": "#/definitions/Actions",
+ "description": "The available actions for this resource.",
+ "longDescription": "The Actions property shall contain the available actions for this resource."
+ },
+ "Description": {
+ "anyOf": [
+ {
+ "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "readonly": true
+ },
+ "Id": {
+ "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
+ "readonly": true
+ },
+ "Name": {
+ "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
+ "readonly": true
+ },
+ "Oem": {
+ "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
+ "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.",
+ "longDescription": "The value of this string shall be of the format for the reserved word *Oem*."
+ },
+ "VLANEnable": {
+ "description": "This indicates if this VLAN is enabled.",
+ "longDescription": "The value of this property shall be used to indicate if this VLAN is enabled for this interface.",
+ "readonly": false,
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "VLANId": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/VLANId"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "This indicates the VLAN identifier for this VLAN.",
+ "longDescription": "The value of this property shall be used to indicate the VLAN identifier for this VLAN.",
+ "readonly": false
+ }
+ },
+ "required": [
+ "Id",
+ "Name"
+ ],
+ "requiredOnCreate": [
+ "VLANEnable",
+ "VLANId"
+ ],
+ "type": "object"
+ }
+ },
+ "title": "#VLanNetworkInterface.v1_1_1.VLanNetworkInterface"
+} \ No newline at end of file
OpenPOWER on IntegriCloud