xref: /openbmc/bmcweb/features/redfish/schema/dmtf/csdl/ContainerImage_v1.xml (revision d125652e8a30dfeaad88bbfa5b1e04a80610469c)
12bde4061SEd Tanous<?xml version="1.0" encoding="UTF-8"?>
22bde4061SEd Tanous<!---->
32bde4061SEd Tanous<!--################################################################################       -->
4f2a8e57eSGunnar Mills<!--# Redfish Schema:  ContainerImage v1.0.1                                               -->
52bde4061SEd Tanous<!--#                                                                                      -->
62bde4061SEd Tanous<!--# For a detailed change log, see the README file contained in the DSP8010 bundle,      -->
72bde4061SEd Tanous<!--# available at http://www.dmtf.org/standards/redfish                                   -->
8*d125652eSGunnar Mills<!--# Copyright 2014-2025 DMTF.                                                            -->
92bde4061SEd Tanous<!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright -->
102bde4061SEd Tanous<!--################################################################################       -->
112bde4061SEd Tanous<!---->
122bde4061SEd Tanous<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
132bde4061SEd Tanous
142bde4061SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Core.V1.xml">
152bde4061SEd Tanous    <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData"/>
162bde4061SEd Tanous  </edmx:Reference>
172bde4061SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Capabilities.V1.xml">
182bde4061SEd Tanous    <edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities"/>
192bde4061SEd Tanous  </edmx:Reference>
202bde4061SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Measures.V1.xml">
212bde4061SEd Tanous    <edmx:Include Namespace="Org.OData.Measures.V1" Alias="Measures"/>
222bde4061SEd Tanous  </edmx:Reference>
232bde4061SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml">
242bde4061SEd Tanous    <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
252bde4061SEd Tanous    <edmx:Include Namespace="Validation.v1_0_0" Alias="Validation"/>
262bde4061SEd Tanous  </edmx:Reference>
272bde4061SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
282bde4061SEd Tanous    <edmx:Include Namespace="Resource"/>
292bde4061SEd Tanous    <edmx:Include Namespace="Resource.v1_0_0"/>
302bde4061SEd Tanous  </edmx:Reference>
312bde4061SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/SoftwareInventory_v1.xml">
322bde4061SEd Tanous    <edmx:Include Namespace="SoftwareInventory"/>
332bde4061SEd Tanous  </edmx:Reference>
342bde4061SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Container_v1.xml">
352bde4061SEd Tanous    <edmx:Include Namespace="Container"/>
362bde4061SEd Tanous  </edmx:Reference>
372bde4061SEd Tanous
382bde4061SEd Tanous  <edmx:DataServices>
392bde4061SEd Tanous
402bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="ContainerImage">
412bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
42f2a8e57eSGunnar Mills      <Annotation Term="Redfish.Language" String="en"/>
432bde4061SEd Tanous
442bde4061SEd Tanous      <EntityType Name="ContainerImage" BaseType="Resource.v1_0_0.Resource" Abstract="true">
45f2a8e57eSGunnar Mills        <Annotation Term="OData.Description" String="The `ContainerImage` schema represents a container image available to a computer system."/>
462bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This resource shall represent a container image available to a computer system."/>
472bde4061SEd Tanous        <Annotation Term="Capabilities.InsertRestrictions">
482bde4061SEd Tanous          <Record>
492bde4061SEd Tanous            <PropertyValue Property="Insertable" Bool="false"/>
502bde4061SEd Tanous          </Record>
512bde4061SEd Tanous        </Annotation>
522bde4061SEd Tanous        <Annotation Term="Capabilities.UpdateRestrictions">
532bde4061SEd Tanous          <Record>
542bde4061SEd Tanous            <PropertyValue Property="Updatable" Bool="false"/>
552bde4061SEd Tanous          </Record>
562bde4061SEd Tanous        </Annotation>
572bde4061SEd Tanous        <Annotation Term="Capabilities.DeleteRestrictions">
582bde4061SEd Tanous          <Record>
592bde4061SEd Tanous            <PropertyValue Property="Deletable" Bool="false"/>
602bde4061SEd Tanous          </Record>
612bde4061SEd Tanous        </Annotation>
622bde4061SEd Tanous        <Annotation Term="Redfish.Uris">
632bde4061SEd Tanous          <Collection>
642bde4061SEd Tanous            <String>/redfish/v1/Systems/{ComputerSystemId}/OperatingSystem/ContainerImages/{ContainerImageId}</String>
652bde4061SEd Tanous            <String>/redfish/v1/CompositionService/ResourceBlocks/{ResourceBlockId}/Systems/{ComputerSystemId}/OperatingSystem/ContainerImages/{ContainerImageId}</String>
662bde4061SEd Tanous            <String>/redfish/v1/ResourceBlocks/{ResourceBlockId}/Systems/{ComputerSystemId}/OperatingSystem/ContainerImages/{ContainerImageId}</String>
672bde4061SEd Tanous          </Collection>
682bde4061SEd Tanous        </Annotation>
692bde4061SEd Tanous      </EntityType>
702bde4061SEd Tanous
712bde4061SEd Tanous      <EnumType Name="ImageTypes">
722bde4061SEd Tanous        <Member Name="DockerV1">
732bde4061SEd Tanous          <Annotation Term="OData.Description" String="Docker V1."/>
742bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This value shall indicate a Docker Image Specification Version 1-defined Docker image."/>
752bde4061SEd Tanous        </Member>
762bde4061SEd Tanous        <Member Name="DockerV2">
772bde4061SEd Tanous          <Annotation Term="OData.Description" String="Docker V2."/>
782bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This value shall indicate a Docker Image Manifest Version 2-defined Docker image."/>
792bde4061SEd Tanous        </Member>
802bde4061SEd Tanous        <Member Name="OCI">
812bde4061SEd Tanous          <Annotation Term="OData.Description" String="OCI (Open Container Initiative)."/>
822bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This value shall indicate an Open Container Specification-defined OCI (Open Container Initiative) image."/>
832bde4061SEd Tanous        </Member>
842bde4061SEd Tanous      </EnumType>
852bde4061SEd Tanous    </Schema>
862bde4061SEd Tanous
872bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="ContainerImage.v1_0_0">
882bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
892bde4061SEd Tanous      <Annotation Term="Redfish.Release" String="2023.2"/>
902bde4061SEd Tanous
912bde4061SEd Tanous      <EntityType Name="ContainerImage" BaseType="ContainerImage.ContainerImage">
922bde4061SEd Tanous        <Property Name="Status" Type="Resource.Status" Nullable="false">
932bde4061SEd Tanous          <Annotation Term="OData.Description" String="The status and health of the resource and its subordinate or dependent resources."/>
942bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain any status or health properties of the resource."/>
952bde4061SEd Tanous        </Property>
962bde4061SEd Tanous        <Property Name="Type" Type="ContainerImage.ImageTypes">
972bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
982bde4061SEd Tanous          <Annotation Term="OData.Description" String="The image type of this container image."/>
992bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the supported image types for this container engine."/>
1002bde4061SEd Tanous        </Property>
1012bde4061SEd Tanous        <Property Name="Version" Type="Edm.String">
1022bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1032bde4061SEd Tanous          <Annotation Term="OData.Description" String="The version of this application."/>
1042bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the version of this application."/>
1052bde4061SEd Tanous        </Property>
1062bde4061SEd Tanous        <Property Name="CreateTime" Type="Edm.DateTimeOffset">
1072bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1082bde4061SEd Tanous          <Annotation Term="OData.Description" String="The date and time when the container image was created."/>
1092bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall indicate the date and time when the container image was created."/>
1102bde4061SEd Tanous        </Property>
1112bde4061SEd Tanous        <Property Name="ProgrammaticId" Type="Edm.String">
1122bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1132bde4061SEd Tanous          <Annotation Term="OData.Description" String="The programmatic identifier for this container image."/>
1142bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the programmatic identifier for this container image.  This is typically a hash string that represents the identifier of this container image."/>
1152bde4061SEd Tanous        </Property>
1162bde4061SEd Tanous        <Property Name="SizeBytes" Type="Edm.Int64">
1172bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1182bde4061SEd Tanous          <Annotation Term="OData.Description" String="The size of this container image in bytes."/>
1192bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the size of this container image in bytes."/>
1202bde4061SEd Tanous          <Annotation Term="Measures.Unit" String="By"/>
1212bde4061SEd Tanous        </Property>
1222bde4061SEd Tanous        <Property Name="Links" Type="ContainerImage.v1_0_0.Links" Nullable="false">
1232bde4061SEd Tanous          <Annotation Term="OData.Description" String="The links to other resources that are related to this resource."/>
1242bde4061SEd Tanous          <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."/>
1252bde4061SEd Tanous        </Property>
1262bde4061SEd Tanous        <Property Name="Actions" Type="ContainerImage.v1_0_0.Actions" Nullable="false">
1272bde4061SEd Tanous          <Annotation Term="OData.Description" String="The available actions for this resource."/>
1282bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the available actions for this resource."/>
1292bde4061SEd Tanous        </Property>
1302bde4061SEd Tanous      </EntityType>
1312bde4061SEd Tanous
1322bde4061SEd Tanous      <ComplexType Name="Links" BaseType="Resource.Links">
1332bde4061SEd Tanous        <Annotation Term="OData.Description" String="The links to other resources that are related to this resource."/>
1342bde4061SEd Tanous        <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."/>
1352bde4061SEd Tanous        <NavigationProperty Name="SoftwareImage" Type="SoftwareInventory.SoftwareInventory" Nullable="false">
1362bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1372bde4061SEd Tanous          <Annotation Term="OData.Description" String="The link to the software image for this container image."/>
138f2a8e57eSGunnar Mills          <Annotation Term="OData.LongDescription" String="This property shall contain a link to a resource of type `SoftwareInventory` that represents the software image for this container image."/>
1392bde4061SEd Tanous          <Annotation Term="OData.AutoExpandReferences"/>
1402bde4061SEd Tanous        </NavigationProperty>
1412bde4061SEd Tanous        <NavigationProperty Name="Containers" Type="Collection(Container.Container)">
1422bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
1432bde4061SEd Tanous          <Annotation Term="OData.Description" String="The array of links to the containers running from this container image."/>
144f2a8e57eSGunnar Mills          <Annotation Term="OData.LongDescription" String="This property shall contain an array of links to resources of type `Container` that represent the container instances running from this container image."/>
1452bde4061SEd Tanous          <Annotation Term="OData.AutoExpandReferences"/>
1462bde4061SEd Tanous        </NavigationProperty>
1472bde4061SEd Tanous      </ComplexType>
1482bde4061SEd Tanous
1492bde4061SEd Tanous      <ComplexType Name="Actions">
1502bde4061SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
1512bde4061SEd Tanous        <Annotation Term="OData.Description" String="The available actions for this resource."/>
1522bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
1532bde4061SEd Tanous        <Property Name="Oem" Type="ContainerImage.v1_0_0.OemActions" Nullable="false">
1542bde4061SEd Tanous          <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
1552bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the available OEM-specific actions for this resource."/>
1562bde4061SEd Tanous        </Property>
1572bde4061SEd Tanous      </ComplexType>
1582bde4061SEd Tanous
1592bde4061SEd Tanous      <ComplexType Name="OemActions">
1602bde4061SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="true"/>
1612bde4061SEd Tanous        <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
1622bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This type shall contain the available OEM-specific actions for this resource."/>
1632bde4061SEd Tanous      </ComplexType>
1642bde4061SEd Tanous    </Schema>
1652bde4061SEd Tanous
166f2a8e57eSGunnar Mills    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="ContainerImage.v1_0_1">
167f2a8e57eSGunnar Mills      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
168f2a8e57eSGunnar Mills      <Annotation Term="OData.Description" String="This version was created to force the regeneration of OpenAPI schemas to properly express nullable properties with external references.  It was also created to correct various typographical errors."/>
169f2a8e57eSGunnar Mills      <EntityType Name="ContainerImage" BaseType="ContainerImage.v1_0_0.ContainerImage"/>
170f2a8e57eSGunnar Mills    </Schema>
171f2a8e57eSGunnar Mills
1722bde4061SEd Tanous  </edmx:DataServices>
1732bde4061SEd Tanous</edmx:Edmx>
174