summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorVidya Satyamsetti <satyamsetti@google.com>2022-04-22 00:53:44 +0300
committerEd Tanous <ed@tanous.net>2022-05-20 04:59:46 +0300
commit4cee35e72cc593f7d407c110ed8c19afb78d279c (patch)
tree10134fc833a919e9d674d5396787594feac900c3 /static
parent9a5aceac206a550930204f102f1b84d808579407 (diff)
downloadbmcweb-4cee35e72cc593f7d407c110ed8c19afb78d279c.tar.xz
Add RootOfTrustCollection and RootOfTrust under Google service root.
These are Google only resources powered by Hoth DBus interface. The ComponentsProtected links is hardcoded for now. But it will be queried from DBus and interpreted accordingly in the future. TEST: $curl -u root:0penBmc -X GET http://[::1]:$PORT/google/v1/RootOfTrustCollection { "@odata.id": "/google/v1/RootOfTrustCollection", "@odata.type": "#RootOfTrustCollection.RootOfTrustCollection", "Members": [ { "@odata.id": "/google/v1/RootOfTrustCollection/Hoth" } ], "Members@odata.count": 1 } $ curl -u root:0penBmc -X GET http://[::1]:$PORT/google/v1/RootOfTrustCollection/Hoth { "@odata.id": "/google/v1/RootOfTrustCollection/Hoth", "@odata.type": "#RootOfTrust.v1_0_0.RootOfTrust", "Actions": { "#RootOfTrust.SendCommand": { "target": "/google/v1/RootOfTrustCollection/Hoth/Actions/RootOfTrust.SendCommand" } }, "Id": "Hoth", "Location": { "PartLocation": { "ServiceLabel": "Hoth", "Locationtype": "Embedded" } }, "Name": "RootOfTrust-Hoth", "Status": { "State": "Enabled" } $ curl -u root:0penBmc -X POST -d @req.json -H "Content-Type: application/json" http://[::1]:$PORT/google/v1/RootOfTrustCollection/Hoth/Actions/RootOfTrust.SendCommand { "CommandResponse": "033B0000" } Signed-off-by: Vidya Satyamsetti <satyamsetti@google.com> Change-Id: If64612468bb89e6d9251d848697608b7daf37339
Diffstat (limited to 'static')
-rw-r--r--static/google/v1/$metadata/index.xml8
-rw-r--r--static/google/v1/odata/index.json5
-rw-r--r--static/google/v1/schema/RootOfTrustCollection_v1.xml44
-rw-r--r--static/google/v1/schema/RootOfTrust_v1.xml71
-rw-r--r--static/google/v1/schema/ServiceRoot_v1.xml7
5 files changed, 134 insertions, 1 deletions
diff --git a/static/google/v1/$metadata/index.xml b/static/google/v1/$metadata/index.xml
index 57a64afa2f..9cd9c37906 100644
--- a/static/google/v1/$metadata/index.xml
+++ b/static/google/v1/$metadata/index.xml
@@ -3,5 +3,13 @@
<edmx:Reference Uri="/google/v1/schema/ServiceRoot_v1.xml">
<edmx:Include Namespace="GoogleServiceRoot"/>
<edmx:Include Namespace="GoogleServiceRoot.v1_0_0"/>
+
+ <edmx:Reference Uri="/google/v1/schema/RootOfTrustCollection_v1.xml">
+ <edmx:Include Namespace="RootOfTrustCollection"/>
+ </edmx:Reference>
+ <edmx:Reference Uri="/google/v1/schema/RootOfTrust_v1.xml">
+ <edmx:Include Namespace="RootOfTrust"/>
+ <edmx:Include Namespace="RootOfTrust.v1_0_0"/>
+ </edmx:Reference>
</edmx:Reference>
</edmx:Edmx>
diff --git a/static/google/v1/odata/index.json b/static/google/v1/odata/index.json
index 3b5896b2b4..8b00f37efb 100644
--- a/static/google/v1/odata/index.json
+++ b/static/google/v1/odata/index.json
@@ -20,6 +20,11 @@
"kind": "Singleton",
"name": "ServiceRoot",
"url": "/google/v1/ServiceRoot"
+ },
+ {
+ "kind": "Singleton",
+ "name": "RootOfTrustCollection",
+ "url": "/google/v1/RootOfTrustCollection"
}
]
}
diff --git a/static/google/v1/schema/RootOfTrustCollection_v1.xml b/static/google/v1/schema/RootOfTrustCollection_v1.xml
new file mode 100644
index 0000000000..62ed1cb1ed
--- /dev/null
+++ b/static/google/v1/schema/RootOfTrustCollection_v1.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!---->
+<!--################################################################################ -->
+<!--# Redfish Schema: RootOfTrustCollection -->
+<!--# -->
+<!--# For a detailed change log, see the README file contained in the DSP8010 bundle, -->
+<!--# available at http://www.dmtf.org/standards/redfish -->
+<!--# Copyright 2014-2021 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="RootOfTrustCollection">
+ <Annotation Term="Redfish.OwningEntity" String="Google"/>
+ <EntityType Name="RootOfTrustCollection" BaseType="Resource.v1_0_0.ResourceCollection">
+ <Annotation Term="OData.Description" String="The RootOfTrustCollection schema describes a Resource Collection of RootOfTrust instances."/>
+ <Annotation Term="OData.LongDescription" String="This Resource shall represent a Resource Collection of RootOfTrust instances for a Redfish implementation."/>
+ <NavigationProperty Name="Members" Type="Collection(RootOfTrust.RootOfTrust)">
+ <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
+ <Annotation Term="OData.Description" String="The members of this collection."/>
+ <Annotation Term="OData.LongDescription" String="This property shall contain an array of links to the members of this collection."/>
+ <Annotation Term="Redfish.Required"/>
+ </NavigationProperty>
+ </EntityType>
+
+ </Schema>
+ </edmx:DataServices>
+</edmx:Edmx>
diff --git a/static/google/v1/schema/RootOfTrust_v1.xml b/static/google/v1/schema/RootOfTrust_v1.xml
new file mode 100644
index 0000000000..ad7670030b
--- /dev/null
+++ b/static/google/v1/schema/RootOfTrust_v1.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!---->
+<!--################################################################################ -->
+<!--# Redfish Schema: RootOfTrust v1.0.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-2021 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/RedfishExtensions_v1.xml">
+ <edmx:Include Namespace="Validation.v1_0_0" Alias="Validation"/>
+ <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="RootOfTrust">
+ <Annotation Term="Redfish.OwningEntity" String="Google"/>
+
+ <EntityType Name="RootOfTrust" BaseType="Resource.v1_0_0.Resource" Abstract="true">
+ <Annotation Term="OData.Description" String="The RootOfTrust resource represents a trusted physical entity."/>
+ <Annotation Term="OData.LongDescription" String="This resource shall represent a trusted physical entity."/>
+ </EntityType>
+
+ </Schema>
+
+ <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="RootOfTrust.v1_0_0">
+ <Annotation Term="Redfish.OwningEntity" String="Google"/>
+
+ <EntityType Name="RootOfTrust" BaseType="RootOfTrust.RootOfTrust">
+ <Property Name="Actions" Type="RootOfTrust.v1_0_0.Actions" Nullable="false">
+ <Annotation Term="OData.Description" String="The available actions for this resource."/>
+ <Annotation Term="OData.LongDescription" String="This 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."/>
+ </ComplexType>
+
+ <Action Name="SendCommand" IsBound="true">
+ <Annotation Term="OData.Description" String="This action sends commands to trusted component."/>
+ <Annotation Term="OData.LongDescription" String="This action shall send hoth commands to trusted component."/>
+ <Parameter Name="RootOfTrust" Type="RootOfTrust.v1_0_0.Actions"/>
+ <Parameter Name="Command" Type="Edm.String" Nullable="false"/>
+ <Annotation Term="OData.Description" String="The bytes to forward to the root of trust device."/>
+ <Annotation Term="OData.LongDescription" String="This parameter shall contain the bytes to be forwarded to the root of trust device. The string should be a hex-encoded string, for instance '0100'. Each byte shall be encoded as a 2-character hex."/>
+ <ReturnType Name="CommandResponse" Type="Edm.String"/>
+ <Annotation Term="OData.Description" String="The bytes returned by the root of trust device."/>
+ <Annotation Term="OData.LongDescription" String="This return value shall contain the bytes returned by the root of trust device. The string should be a hex-encoded string, for instance '0100'. Each byte shall be encoded as a 2-character hex."/>
+ </Action>
+ </Schema>
+
+ </edmx:DataServices>
+</edmx:Edmx>
diff --git a/static/google/v1/schema/ServiceRoot_v1.xml b/static/google/v1/schema/ServiceRoot_v1.xml
index 59771b6a5e..09dc8b148b 100644
--- a/static/google/v1/schema/ServiceRoot_v1.xml
+++ b/static/google/v1/schema/ServiceRoot_v1.xml
@@ -5,7 +5,7 @@
<!--# -->
<!--################################################################################ -->
<!---->
-<edmx:Edmx Version="1.0">
+<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<edmx:DataServices>
@@ -38,6 +38,11 @@
<Annotation Term="OData.LongDescription" String="This property shall contain a link to a Resource Collection of type JsonSchemaFileCollection."/>
<Annotation Term="OData.AutoExpandReferences"/>
</NavigationProperty>
+ <NavigationProperty Name="RootOfTrustCollection" Type="RootOfTrustCollection.RootOfTrustCollection" Nullable="false">
+ <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
+ <Annotation Term="OData.Description" String="The link to a Google Root Of Trust collection."/>
+ <Annotation Term="OData.LongDescription" String="This property shall contain a link to a Google RootOfTrust collection."/>
+ </NavigationProperty>
</EntityType>
</Schema>