1<?xml version="1.0" encoding="UTF-8"?>
2<!---->
3<!--################################################################################       -->
4<!--# Redfish Schema:  Container v1.0.0                                                    -->
5<!--#                                                                                      -->
6<!--# For a detailed change log, see the README file contained in the DSP8010 bundle,      -->
7<!--# available at http://www.dmtf.org/standards/redfish                                   -->
8<!--# Copyright 2014-2023 DMTF.                                                            -->
9<!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright -->
10<!--################################################################################       -->
11<!---->
12<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
13
14  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Core.V1.xml">
15    <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData"/>
16  </edmx:Reference>
17  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Capabilities.V1.xml">
18    <edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities"/>
19  </edmx:Reference>
20  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Measures.V1.xml">
21    <edmx:Include Namespace="Org.OData.Measures.V1" Alias="Measures"/>
22  </edmx:Reference>
23  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml">
24    <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
25    <edmx:Include Namespace="Validation.v1_0_0" Alias="Validation"/>
26  </edmx:Reference>
27  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
28    <edmx:Include Namespace="Resource"/>
29    <edmx:Include Namespace="Resource.v1_0_0"/>
30  </edmx:Reference>
31  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/ContainerImage_v1.xml">
32    <edmx:Include Namespace="ContainerImage"/>
33  </edmx:Reference>
34  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/EthernetInterfaceCollection_v1.xml">
35    <edmx:Include Namespace="EthernetInterfaceCollection"/>
36  </edmx:Reference>
37
38  <edmx:DataServices>
39
40    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Container">
41      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
42
43      <EntityType Name="Container" BaseType="Resource.v1_0_0.Resource" Abstract="true">
44        <Annotation Term="OData.Description" String="The Container schema represents an instance of a container that is running on a computer system."/>
45        <Annotation Term="OData.LongDescription" String="This resource shall represent an instance of a container that is running on a computer system."/>
46        <Annotation Term="Capabilities.InsertRestrictions">
47          <Record>
48            <PropertyValue Property="Insertable" Bool="false"/>
49          </Record>
50        </Annotation>
51        <Annotation Term="Capabilities.UpdateRestrictions">
52          <Record>
53            <PropertyValue Property="Updatable" Bool="false"/>
54          </Record>
55        </Annotation>
56        <Annotation Term="Capabilities.DeleteRestrictions">
57          <Record>
58            <PropertyValue Property="Deletable" Bool="false"/>
59          </Record>
60        </Annotation>
61        <Annotation Term="Redfish.Uris">
62          <Collection>
63            <String>/redfish/v1/Systems/{ComputerSystemId}/OperatingSystem/Containers/{ContainerId}</String>
64            <String>/redfish/v1/CompositionService/ResourceBlocks/{ResourceBlockId}/Systems/{ComputerSystemId}/OperatingSystem/Containers/{ContainerId}</String>
65            <String>/redfish/v1/ResourceBlocks/{ResourceBlockId}/Systems/{ComputerSystemId}/OperatingSystem/Containers/{ContainerId}</String>
66          </Collection>
67        </Annotation>
68      </EntityType>
69
70      <Action Name="Reset" IsBound="true">
71        <Annotation Term="OData.Description" String="This action resets the container."/>
72        <Annotation Term="OData.LongDescription" String="This action shall reset the container."/>
73        <Parameter Name="Container" Type="Container.v1_0_0.Actions"/>
74        <Parameter Name="ResetType" Type="Resource.ResetType">
75          <Annotation Term="OData.Description" String="The type of reset."/>
76          <Annotation Term="OData.LongDescription" String="This parameter shall contain the type of reset.  `GracefulRestart` and `ForceRestart` shall indicate requests to restart the container.  `GracefulShutdown` and `ForceOff` shall indicate requests to stop or disable the container.  `On` and `ForceOn` shall indicate requests to start or enable the container.  The service can accept a request without the parameter and shall perform a `GracefulRestart`."/>
77        </Parameter>
78      </Action>
79    </Schema>
80
81    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Container.v1_0_0">
82      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
83      <Annotation Term="Redfish.Release" String="2023.2"/>
84
85      <EntityType Name="Container" BaseType="Container.Container">
86        <Property Name="Status" Type="Resource.Status" Nullable="false">
87          <Annotation Term="OData.Description" String="The status and health of the resource and its subordinate or dependent resources."/>
88          <Annotation Term="OData.LongDescription" String="This property shall contain any status or health properties of the resource."/>
89        </Property>
90        <Property Name="StartTime" Type="Edm.DateTimeOffset">
91          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
92          <Annotation Term="OData.Description" String="The date and time when the container started running."/>
93          <Annotation Term="OData.LongDescription" String="This property shall indicate the date and time when the container started running."/>
94        </Property>
95        <Property Name="ProgrammaticId" Type="Edm.String">
96          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
97          <Annotation Term="OData.Description" String="The programmatic identifier for this container."/>
98          <Annotation Term="OData.LongDescription" String="This property shall contain the programmatic identifier for this container.  This is typically a hash string that represents the running instance of this container."/>
99        </Property>
100        <Property Name="Limits" Type="Container.v1_0_0.Limits">
101          <Annotation Term="OData.Description" String="The resource limits allocated to this container."/>
102          <Annotation Term="OData.LongDescription" String="This property shall contain the resource limits allocated to this container."/>
103        </Property>
104        <Property Name="MountPoints" Type="Collection(Container.v1_0_0.MountPoint)">
105          <Annotation Term="OData.Description" String="The file system mount points configured for this container."/>
106          <Annotation Term="OData.LongDescription" String="This property shall contain the file system mount points configured for this container."/>
107        </Property>
108        <NavigationProperty Name="EthernetInterfaces" Type="EthernetInterfaceCollection.EthernetInterfaceCollection" ContainsTarget="true" Nullable="false">
109          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
110          <Annotation Term="OData.Description" String="The link to the collection of Ethernet interfaces associated with this container."/>
111          <Annotation Term="OData.LongDescription" String="This property shall contain a link to a resource collection of type EthernetInterfaceCollection."/>
112          <Annotation Term="OData.AutoExpandReferences"/>
113        </NavigationProperty>
114        <Property Name="Links" Type="Container.v1_0_0.Links" Nullable="false">
115          <Annotation Term="OData.Description" String="The links to other resources that are related to this resource."/>
116          <Annotation Term="OData.LongDescription" String="This property shall contain links to resources that are related to but are not contained by, or subordinate to, this resource."/>
117        </Property>
118        <Property Name="Actions" Type="Container.v1_0_0.Actions" Nullable="false">
119          <Annotation Term="OData.Description" String="The available actions for this resource."/>
120          <Annotation Term="OData.LongDescription" String="This property shall contain the available actions for this resource."/>
121        </Property>
122      </EntityType>
123
124      <ComplexType Name="Limits">
125        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
126        <Annotation Term="OData.Description" String="The resource limits allocated to a container."/>
127        <Annotation Term="OData.LongDescription" String="This type shall contain the resource limits allocated to a container."/>
128        <Property Name="MemoryBytes" Type="Edm.Int64">
129          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
130          <Annotation Term="OData.Description" String="The amount of memory available to this container in bytes."/>
131          <Annotation Term="OData.LongDescription" String="This property shall contain the amount of memory available to this container in bytes."/>
132          <Annotation Term="Measures.Unit" String="By"/>
133        </Property>
134        <Property Name="CPUCount" Type="Edm.Decimal">
135          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
136          <Annotation Term="OData.Description" String="The number of processors available to this container."/>
137          <Annotation Term="OData.LongDescription" String="This property shall contain the number of processors available to this container."/>
138        </Property>
139      </ComplexType>
140
141      <ComplexType Name="MountPoint">
142        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
143        <Annotation Term="OData.Description" String="A file system mount point configured for a container."/>
144        <Annotation Term="OData.LongDescription" String="This type shall contain a file system mount point configured for a container."/>
145        <Property Name="Source" Type="Edm.String">
146          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
147          <Annotation Term="OData.Description" String="The file system path from the hosting system that is provided to this container."/>
148          <Annotation Term="OData.LongDescription" String="This property shall contain the file system path from the hosting system that is provided to this container."/>
149        </Property>
150        <Property Name="Destination" Type="Edm.String">
151          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
152          <Annotation Term="OData.Description" String="The file system path in the container that is provided as the mount point to access the files and folders contained in the source path."/>
153          <Annotation Term="OData.LongDescription" String="This property shall contain the file system path in the container that is provided as the mount point to access the files and folders specified by the Source property."/>
154        </Property>
155      </ComplexType>
156
157      <ComplexType Name="Links" BaseType="Resource.Links">
158        <Annotation Term="OData.Description" String="The links to other resources that are related to this resource."/>
159        <Annotation Term="OData.LongDescription" String="This Redfish Specification-described type shall contain links to resources that are related to but are not contained by, or subordinate to, this resource."/>
160        <NavigationProperty Name="ContainerImage" Type="ContainerImage.ContainerImage" Nullable="false">
161          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
162          <Annotation Term="OData.Description" String="The link to the container image for this container."/>
163          <Annotation Term="OData.LongDescription" String="This property shall contain a link to a resource of type ContainerImage that represents the container image for this container."/>
164          <Annotation Term="OData.AutoExpandReferences"/>
165        </NavigationProperty>
166      </ComplexType>
167
168      <ComplexType Name="Actions">
169        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
170        <Annotation Term="OData.Description" String="The available actions for this resource."/>
171        <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
172        <Property Name="Oem" Type="Container.v1_0_0.OemActions" Nullable="false">
173          <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
174          <Annotation Term="OData.LongDescription" String="This property shall contain the available OEM-specific actions for this resource."/>
175        </Property>
176      </ComplexType>
177
178      <ComplexType Name="OemActions">
179        <Annotation Term="OData.AdditionalProperties" Bool="true"/>
180        <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
181        <Annotation Term="OData.LongDescription" String="This type shall contain the available OEM-specific actions for this resource."/>
182      </ComplexType>
183    </Schema>
184
185  </edmx:DataServices>
186</edmx:Edmx>
187