diff options
-rwxr-xr-x | scripts/update_schemas.py | 6 | ||||
-rw-r--r-- | static/redfish/v1/$metadata/index.xml | 4 | ||||
-rw-r--r-- | static/redfish/v1/JsonSchemas/OemSession/index.json | 45 | ||||
-rw-r--r-- | static/redfish/v1/schema/OemSession_v1.xml | 44 |
4 files changed, 99 insertions, 0 deletions
diff --git a/scripts/update_schemas.py b/scripts/update_schemas.py index 3bca686c59..6fd2920368 100755 --- a/scripts/update_schemas.py +++ b/scripts/update_schemas.py @@ -145,6 +145,12 @@ with open(metadata_index_path, 'w') as metadata_index: metadata_index.write(" <edmx:Include Namespace=\"OemLogEntry.v1_0_0\"/>\n") metadata_index.write(" </edmx:Reference>\n") + metadata_index.write( + " <edmx:Reference Uri=\"/redfish/v1/schema/OemSession_v1.xml\">\n") + metadata_index.write(" <edmx:Include Namespace=\"OemSession\"/>\n") + metadata_index.write(" <edmx:Include Namespace=\"OemSession.v1_0_0\"/>\n") + metadata_index.write(" </edmx:Reference>\n") + metadata_index.write("</edmx:Edmx>\n") schema_files = {} diff --git a/static/redfish/v1/$metadata/index.xml b/static/redfish/v1/$metadata/index.xml index a9df1bf82e..74abd2e931 100644 --- a/static/redfish/v1/$metadata/index.xml +++ b/static/redfish/v1/$metadata/index.xml @@ -2260,4 +2260,8 @@ <edmx:Include Namespace="OemLogEntry"/> <edmx:Include Namespace="OemLogEntry.v1_0_0"/> </edmx:Reference> + <edmx:Reference Uri="/redfish/v1/schema/OemSession_v1.xml"> + <edmx:Include Namespace="OemSession"/> + <edmx:Include Namespace="OemSession.v1_0_0"/> + </edmx:Reference> </edmx:Edmx> diff --git a/static/redfish/v1/JsonSchemas/OemSession/index.json b/static/redfish/v1/JsonSchemas/OemSession/index.json new file mode 100644 index 0000000000..c80e34003c --- /dev/null +++ b/static/redfish/v1/JsonSchemas/OemSession/index.json @@ -0,0 +1,45 @@ +{ + "$id": "http://redfish.dmtf.org/schemas/v1/OemSession.v1_0_0.json", + "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", + "copyright": "Copyright 2014-2019 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", + "definitions": { + "Session": { + "additionalProperties": false, + "description": "OEM Extension for Session", + "longDescription": "OEM Extension for Session to provide the Client details.", + "patternProperties": { + "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { + "description": "This property shall specify a valid odata or Redfish property.", + "type": [ + "array", + "boolean", + "integer", + "number", + "null", + "object", + "string" + ] + } + }, + "properties": { + "ClientID" : { + "description" : "The Id of the client creating this session.", + "longDescription": "This will be the unique identifier set by the client.", + "readonly": true, + "type" : "string" + }, + "ClientOriginIP" : { + "description": "The IP address where the Session was created from.", + "longDescription": "This property shall contain the IP address where the client created the session from.", + "readonly": true, + "type": "string" + }, + "type": "object" + } + } + }, + "owningEntity": "OpenBMC", + "release": "1.0", + "title": "#OemSession.v1_0_0" +} + diff --git a/static/redfish/v1/schema/OemSession_v1.xml b/static/redfish/v1/schema/OemSession_v1.xml new file mode 100644 index 0000000000..cc74848b81 --- /dev/null +++ b/static/redfish/v1/schema/OemSession_v1.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0"> + + <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Core.V1.xml"> + <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData"/> + </edmx:Reference> + <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Measures.V1.xml"> + <edmx:Include Namespace="Org.OData.Measures.V1" Alias="Measures"/> + </edmx:Reference> + <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml"> + <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/> + </edmx:Reference> + <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml"> + <edmx:Include Namespace="Resource"/> + <edmx:Include Namespace="Resource.v1_0_0"/> + </edmx:Reference> + <edmx:DataServices> + + <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="OemSession"> + <Annotation Term="Redfish.OwningEntity" String="OpenBMC"/> + </Schema> + + <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="OemSession.v1_0_0"> + <Annotation Term="Redfish.OwningEntity" String="OpenBMC"/> + <Annotation Term="Redfish.Release" String="1.0"/> + + <EntityType Name="Session" BaseType="Resource.OemObject" Abstract="true"> + <Annotation Term="OData.Description" String="OEM Extension for Session"/> + <Annotation Term="OData.LongDescription" String="OEM Extension for Session"/> + + <Property Name="ClientID" Type="Edm.String"> + <Annotation Term="OData.Description" String="The Id of the client creating this session."/> + <Annotation Term="OData.LongDescription" String="This will be the unique identifier set by the client."/> + </Property> + <Property Name="ClientOriginIP" Type="Edm.String"> + <Annotation Term="OData.Description" String="The IP address where the Session was created from."/> + <Annotation Term="OData.LongDescription" String="This property shall contain the IP address where the client created the session from."/> + </Property> + + </EntityType> + </Schema> + </edmx:DataServices> +</edmx:Edmx> + |