Update Redfish Schema to 2018.1
Change-Id: I4e5d5d49b4524c8a4d73ae0117fcf7e9aedfbb79
diff --git a/static/redfish/v1/schema/VirtualMedia_v1.xml b/static/redfish/v1/schema/VirtualMedia_v1.xml
old mode 100755
new mode 100644
index dd8aa31..4f52ce3
--- a/static/redfish/v1/schema/VirtualMedia_v1.xml
+++ b/static/redfish/v1/schema/VirtualMedia_v1.xml
@@ -1,129 +1,195 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!---->
-<!--################################################################################ -->
-<!--# Redfish Schema: VirtualMedia v1.0.3-->
-<!--# -->
-<!--# For a detailed change log, see the README file contained in the DSP8010 bundle, -->
-<!--# available at http://www.dmtf.org/standards/redfish -->
-<!--# Copyright 2014-2016 Distributed Management Task Force, Inc. (DMTF). -->
-<!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright -->
-<!--################################################################################ -->
-<!---->
-<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.Capabilities.V1.xml">
- <edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities"/>
- </edmx:Reference>
- <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
- <edmx:Include Namespace="Resource.v1_0_0"/>
- </edmx:Reference>
-
- <edmx:DataServices>
-
- <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia">
-
- <EntityType Name="VirtualMedia" BaseType="Resource.v1_0_0.Resource" Abstract="true">
- <Annotation Term="OData.Description" String="This resource allows monitoring and control of an instance of virtual media (e.g. a remote CD, DVD, or USB device) functionality provided by a Manager for a system or device."/>
- <Annotation Term="OData.LongDescription" String="This resource shall be used to represent a virtual media service for a Redfish implementation."/>
- <Annotation Term="Capabilities.InsertRestrictions">
- <Record>
- <PropertyValue Property="Insertable" Bool="false"/>
- </Record>
- </Annotation>
- <Annotation Term="Capabilities.UpdateRestrictions">
- <Record>
- <PropertyValue Property="Updatable" Bool="false"/>
- </Record>
- </Annotation>
- <Annotation Term="Capabilities.DeleteRestrictions">
- <Record>
- <PropertyValue Property="Deletable" Bool="false"/>
- </Record>
- </Annotation>
- </EntityType>
-
- </Schema>
-
- <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia.v1_0_0">
-
- <EntityType Name="VirtualMedia" BaseType="VirtualMedia.VirtualMedia">
- <Property Name="ImageName" Type="Edm.String">
- <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
- <Annotation Term="OData.Description" String="The current image name."/>
- <Annotation Term="OData.LongDescription" String="The value of this property shall be the name of the image."/>
- </Property>
- <Property Name="Image" Type="Edm.String">
- <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
- <Annotation Term="OData.Description" String="A URI providing the location of the selected image."/>
- <Annotation Term="OData.LongDescription" String="The value of this string shall be an URI. A null value indicated no image connection."/>
- <Annotation Term="OData.IsURL"/>
- </Property>
- <Property Name="MediaTypes" Type="Collection(VirtualMedia.v1_0_0.MediaType)" Nullable="false">
- <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
- <Annotation Term="OData.Description" String="This is the media types supported as virtual media."/>
- <Annotation Term="OData.LongDescription" String="The values of this array shall be the supported media types for this connection."/>
- </Property>
- <Property Name="ConnectedVia" Type="VirtualMedia.v1_0_0.ConnectedVia">
- <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
- <Annotation Term="OData.Description" String="Current virtual media connection methods."/>
- <Annotation Term="OData.LongDescription" String="The value of this property shall indicate the current connection method from a client to the virtual media represented by this resource. A value of NotConnected shall indicate no connection is present. A value of URI shall indicate that a remote connection via a URI reference type is being used."/>
- </Property>
- <Property Name="Inserted" Type="Edm.Boolean">
- <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
- <Annotation Term="OData.Description" String="Indicates if virtual media is inserted in the virtual device."/>
- <Annotation Term="OData.LongDescription" String="The value of this property shall be used to indicate if media is present in the virtual media device. This is usually only applicable to remoting of devices and not for image virtual media usage."/>
- </Property>
- <Property Name="WriteProtected" Type="Edm.Boolean">
- <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
- <Annotation Term="OData.Description" String="Indicates the media is write protected."/>
- <Annotation Term="OData.LongDescription" String="The value of this property shall be used to indicate if the remote device media prevents writing to that media."/>
- </Property>
- </EntityType>
-
- <EnumType Name="MediaType">
- <Member Name="CD">
- <Annotation Term="OData.Description" String="A CD-ROM format (ISO) image."/>
- </Member>
- <Member Name="Floppy">
- <Annotation Term="OData.Description" String="A floppy disk image."/>
- </Member>
- <Member Name="USBStick">
- <Annotation Term="OData.Description" String="An emulation of a USB storage device."/>
- </Member>
- <Member Name="DVD">
- <Annotation Term="OData.Description" String="A DVD-ROM format image."/>
- </Member>
- </EnumType>
-
- <EnumType Name="ConnectedVia">
- <Member Name="NotConnected">
- <Annotation Term="OData.Description" String="No current connection."/>
- </Member>
- <Member Name="URI">
- <Annotation Term="OData.Description" String="Connected to a URI location."/>
- </Member>
- <Member Name="Applet">
- <Annotation Term="OData.Description" String="Connected to a client application."/>
- </Member>
- <Member Name="Oem">
- <Annotation Term="OData.Description" String="Connected via an OEM-defined method."/>
- </Member>
- </EnumType>
-
- </Schema>
-
- <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia.v1_0_2">
- <Annotation Term="OData.Description" String="This version was created to show annotations in previous namespaces were updated."/>
- <EntityType Name="VirtualMedia" BaseType="VirtualMedia.v1_0_0.VirtualMedia"/>
- </Schema>
-
- <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia.v1_0_3">
- <Annotation Term="OData.Description" String="This version was created to show annotations in previous namespaces were updated."/>
- <EntityType Name="VirtualMedia" BaseType="VirtualMedia.v1_0_2.VirtualMedia"/>
- </Schema>
-
- </edmx:DataServices>
-</edmx:Edmx>
+<?xml version="1.0" encoding="UTF-8"?>
+<!---->
+<!--################################################################################ -->
+<!--# Redfish Schema: VirtualMedia v1.2.0-->
+<!--# -->
+<!--# For a detailed change log, see the README file contained in the DSP8010 bundle, -->
+<!--# available at http://www.dmtf.org/standards/redfish -->
+<!--# Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). -->
+<!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright -->
+<!--################################################################################ -->
+<!---->
+<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.Capabilities.V1.xml">
+ <edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities"/>
+ </edmx:Reference>
+ <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
+ <edmx:Include Namespace="Resource.v1_0_0"/>
+ </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:DataServices>
+
+ <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia">
+ <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
+
+ <EntityType Name="VirtualMedia" BaseType="Resource.v1_0_0.Resource" Abstract="true">
+ <Annotation Term="OData.Description" String="The VirtualMedia schema contains properties related to monitoring and control of an instance of virtual media such as a remote CD, DVD, or USB device. Virtual media functionality is provided by a Manager for a system or device."/>
+ <Annotation Term="OData.LongDescription" String="This resource shall be used to represent a virtual media service for a Redfish implementation."/>
+ <Annotation Term="Capabilities.InsertRestrictions">
+ <Record>
+ <PropertyValue Property="Insertable" Bool="false"/>
+ </Record>
+ </Annotation>
+ <Annotation Term="Capabilities.UpdateRestrictions">
+ <Record>
+ <PropertyValue Property="Updatable" Bool="false"/>
+ </Record>
+ </Annotation>
+ <Annotation Term="Capabilities.DeleteRestrictions">
+ <Record>
+ <PropertyValue Property="Deletable" Bool="false"/>
+ </Record>
+ </Annotation>
+ </EntityType>
+
+ <Action Name="InsertMedia" IsBound="true">
+ <Annotation Term="OData.Description" String="This action is used to attach remote media to virtual media."/>
+ <Annotation Term="OData.LongDescription" String="This action shall attach remote media to virtual media."/>
+ <Parameter Name="VirtualMedia" Type="VirtualMedia.v1_1_0.Actions"/>
+ <Parameter Name="Image" Type="Edm.String" Nullable="false">
+ <Annotation Term="OData.Description" String="The URI of the remote media to attach to the virtual media."/>
+ <Annotation Term="OData.LongDescription" String="This value shall specify the URI of the remote media to be attached to the virtual media."/>
+ </Parameter>
+ <Parameter Name="Inserted" Type="Edm.Boolean">
+ <Annotation Term="OData.Description" String="Indicates if the image is to be treated as inserted upon completion of the action."/>
+ <Annotation Term="OData.LongDescription" String="This value shall specify if the image is to be treated as inserted upon completion of the action. If this parameter is not provided by the client, the service shall default this value to be true."/>
+ </Parameter>
+ <Parameter Name="WriteProtected" Type="Edm.Boolean">
+ <Annotation Term="OData.Description" String="Indicates if the remote media is supposed to be treated as write protected."/>
+ <Annotation Term="OData.LongDescription" String="This value shall specify if the remote media is supposed to be treated as write protected. If this parameter is not provided by the client, the service shall default this value to be true."/>
+ </Parameter>
+ </Action>
+
+ <Action Name="EjectMedia" IsBound="true">
+ <Annotation Term="OData.Description" String="This action is used to detach remote media from virtual media."/>
+ <Annotation Term="OData.LongDescription" String="This action shall detach the remote media from the virtual media. At the completion of the operation, inserted shall be set to false and the image name shall be cleared."/>
+ <Parameter Name="VirtualMedia" Type="VirtualMedia.v1_1_0.Actions"/>
+ </Action>
+
+ </Schema>
+
+ <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia.v1_0_0">
+ <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
+
+ <EntityType Name="VirtualMedia" BaseType="VirtualMedia.VirtualMedia">
+ <Property Name="ImageName" Type="Edm.String">
+ <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
+ <Annotation Term="OData.Description" String="The current image name."/>
+ <Annotation Term="OData.LongDescription" String="The value of this property shall be the name of the image."/>
+ </Property>
+ <Property Name="Image" Type="Edm.String">
+ <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
+ <Annotation Term="OData.Description" String="A URI providing the location of the selected image."/>
+ <Annotation Term="OData.LongDescription" String="The value of this string shall be an URI. A null value indicated no image connection."/>
+ <Annotation Term="OData.IsURL"/>
+ </Property>
+ <Property Name="MediaTypes" Type="Collection(VirtualMedia.v1_0_0.MediaType)" Nullable="false">
+ <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
+ <Annotation Term="OData.Description" String="This is the media types supported as virtual media."/>
+ <Annotation Term="OData.LongDescription" String="The values of this array shall be the supported media types for this connection."/>
+ </Property>
+ <Property Name="ConnectedVia" Type="VirtualMedia.v1_0_0.ConnectedVia">
+ <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
+ <Annotation Term="OData.Description" String="Current virtual media connection methods."/>
+ <Annotation Term="OData.LongDescription" String="The value of this property shall indicate the current connection method from a client to the virtual media represented by this resource. A value of NotConnected shall indicate no connection is present. A value of URI shall indicate that a remote connection via a URI reference type is being used."/>
+ </Property>
+ <Property Name="Inserted" Type="Edm.Boolean">
+ <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
+ <Annotation Term="OData.Description" String="Indicates if virtual media is inserted in the virtual device."/>
+ <Annotation Term="OData.LongDescription" String="The value of this property shall be used to indicate if media is present in the virtual media device. This is usually only applicable to remoting of devices and not for image virtual media usage."/>
+ </Property>
+ <Property Name="WriteProtected" Type="Edm.Boolean">
+ <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
+ <Annotation Term="OData.Description" String="Indicates the media is write protected."/>
+ <Annotation Term="OData.LongDescription" String="The value of this property shall be used to indicate if the remote device media prevents writing to that media."/>
+ </Property>
+ </EntityType>
+
+ <EnumType Name="MediaType">
+ <Member Name="CD">
+ <Annotation Term="OData.Description" String="A CD-ROM format (ISO) image."/>
+ </Member>
+ <Member Name="Floppy">
+ <Annotation Term="OData.Description" String="A floppy disk image."/>
+ </Member>
+ <Member Name="USBStick">
+ <Annotation Term="OData.Description" String="An emulation of a USB storage device."/>
+ </Member>
+ <Member Name="DVD">
+ <Annotation Term="OData.Description" String="A DVD-ROM format image."/>
+ </Member>
+ </EnumType>
+
+ <EnumType Name="ConnectedVia">
+ <Member Name="NotConnected">
+ <Annotation Term="OData.Description" String="No current connection."/>
+ </Member>
+ <Member Name="URI">
+ <Annotation Term="OData.Description" String="Connected to a URI location."/>
+ </Member>
+ <Member Name="Applet">
+ <Annotation Term="OData.Description" String="Connected to a client application."/>
+ </Member>
+ <Member Name="Oem">
+ <Annotation Term="OData.Description" String="Connected via an OEM-defined method."/>
+ </Member>
+ </EnumType>
+
+ </Schema>
+
+ <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia.v1_0_2">
+ <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
+ <Annotation Term="OData.Description" String="This version was created to show annotations in previous namespaces were updated."/>
+ <EntityType Name="VirtualMedia" BaseType="VirtualMedia.v1_0_0.VirtualMedia"/>
+ </Schema>
+
+ <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia.v1_0_3">
+ <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
+ <Annotation Term="OData.Description" String="This version was created to show annotations in previous namespaces were updated."/>
+ <EntityType Name="VirtualMedia" BaseType="VirtualMedia.v1_0_2.VirtualMedia"/>
+ </Schema>
+
+ <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia.v1_1_0">
+ <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
+ <EntityType Name="VirtualMedia" BaseType="VirtualMedia.v1_0_3.VirtualMedia">
+ <Property Name="Actions" Type="VirtualMedia.v1_1_0.Actions" Nullable="false">
+ <Annotation Term="OData.Description" String="The available actions for this resource."/>
+ <Annotation Term="OData.LongDescription" String="The Actions property shall contain the available actions for this resource."/>
+ </Property>
+ </EntityType>
+
+ <ComplexType Name="Actions">
+ <Annotation Term="OData.AdditionalProperties" Bool="false"/>
+ <Annotation Term="OData.Description" String="The available actions for this resource."/>
+ <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
+ <Property Name="Oem" Type="VirtualMedia.v1_1_0.OemActions" Nullable="false"/>
+ </ComplexType>
+
+ <ComplexType Name="OemActions">
+ <Annotation Term="OData.AdditionalProperties" Bool="true"/>
+ <Annotation Term="OData.Description" String="The available OEM specific actions for this resource."/>
+ <Annotation Term="OData.LongDescription" String="This type shall contain any additional OEM actions for this resource."/>
+ </ComplexType>
+ </Schema>
+
+ <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia.v1_1_1">
+ <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
+ <Annotation Term="OData.Description" String="This version was created to perform editoral updates of descriptions defined in this schema."/>
+ <EntityType Name="VirtualMedia" BaseType="VirtualMedia.v1_1_0.VirtualMedia"/>
+ </Schema>
+
+ <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="VirtualMedia.v1_2_0">
+ <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
+ <Annotation Term="OData.Description" String="This version was created to change the permissions of Image, Inserted, and WriteProtected and to add the InsertMedia and InjectMedia actions."/>
+ <EntityType Name="VirtualMedia" BaseType="VirtualMedia.v1_1_1.VirtualMedia"/>
+ </Schema>
+
+ </edmx:DataServices>
+</edmx:Edmx>