xref: /openbmc/bmcweb/features/redfish/schema/dmtf/csdl/TaskService_v1.xml (revision d125652e8a30dfeaad88bbfa5b1e04a80610469c)
1720c9898SEd Tanous<?xml version="1.0" encoding="UTF-8"?>
2720c9898SEd Tanous<!---->
3720c9898SEd Tanous<!--################################################################################       -->
4f2a8e57eSGunnar Mills<!--# Redfish Schema:  TaskService v1.2.1                                                  -->
5720c9898SEd Tanous<!--#                                                                                      -->
6720c9898SEd Tanous<!--# For a detailed change log, see the README file contained in the DSP8010 bundle,      -->
7720c9898SEd Tanous<!--# available at http://www.dmtf.org/standards/redfish                                   -->
8*d125652eSGunnar Mills<!--# Copyright 2014-2025 DMTF.                                                            -->
9720c9898SEd Tanous<!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright -->
10720c9898SEd Tanous<!--################################################################################       -->
11720c9898SEd Tanous<!---->
12720c9898SEd Tanous<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
13720c9898SEd Tanous
14720c9898SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Core.V1.xml">
15720c9898SEd Tanous    <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData"/>
16720c9898SEd Tanous  </edmx:Reference>
17720c9898SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Capabilities.V1.xml">
18720c9898SEd Tanous    <edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities"/>
19720c9898SEd Tanous  </edmx:Reference>
20720c9898SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
21720c9898SEd Tanous    <edmx:Include Namespace="Resource"/>
22720c9898SEd Tanous    <edmx:Include Namespace="Resource.v1_0_0"/>
23720c9898SEd Tanous  </edmx:Reference>
24720c9898SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml">
25720c9898SEd Tanous    <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
26720c9898SEd Tanous    <edmx:Include Namespace="Validation.v1_0_0" Alias="Validation"/>
27720c9898SEd Tanous  </edmx:Reference>
28720c9898SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/TaskCollection_v1.xml">
29720c9898SEd Tanous    <edmx:Include Namespace="TaskCollection"/>
30720c9898SEd Tanous  </edmx:Reference>
31720c9898SEd Tanous
32720c9898SEd Tanous  <edmx:DataServices>
33720c9898SEd Tanous
34720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService">
35720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
36f2a8e57eSGunnar Mills      <Annotation Term="Redfish.Language" String="en"/>
37720c9898SEd Tanous
38720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="Resource.v1_0_0.Resource" Abstract="true">
39f2a8e57eSGunnar Mills        <Annotation Term="OData.Description" String="The `TaskService` schema describes a task service that enables management of long-duration operations, includes the properties for the task service itself, and has links to the resource collection of tasks."/>
40720c9898SEd Tanous        <Annotation Term="OData.LongDescription" String="This resource contains a task service for a Redfish implementation."/>
41720c9898SEd Tanous        <Annotation Term="Capabilities.InsertRestrictions">
42720c9898SEd Tanous          <Record>
43720c9898SEd Tanous            <PropertyValue Property="Insertable" Bool="false"/>
44720c9898SEd Tanous          </Record>
45720c9898SEd Tanous        </Annotation>
46720c9898SEd Tanous        <Annotation Term="Capabilities.UpdateRestrictions">
47720c9898SEd Tanous          <Record>
48720c9898SEd Tanous            <PropertyValue Property="Updatable" Bool="true"/>
49720c9898SEd Tanous            <Annotation Term="OData.Description" String="The task service can be updated to enable or disable it, though some implementations might fail the update operation."/>
50720c9898SEd Tanous          </Record>
51720c9898SEd Tanous        </Annotation>
52720c9898SEd Tanous        <Annotation Term="Capabilities.DeleteRestrictions">
53720c9898SEd Tanous          <Record>
54720c9898SEd Tanous            <PropertyValue Property="Deletable" Bool="false"/>
55720c9898SEd Tanous          </Record>
56720c9898SEd Tanous        </Annotation>
57720c9898SEd Tanous        <Annotation Term="Redfish.Uris">
58720c9898SEd Tanous          <Collection>
59720c9898SEd Tanous            <String>/redfish/v1/TaskService</String>
60720c9898SEd Tanous          </Collection>
61720c9898SEd Tanous        </Annotation>
62720c9898SEd Tanous      </EntityType>
63720c9898SEd Tanous    </Schema>
64720c9898SEd Tanous
65720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_0_0">
66720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
67720c9898SEd Tanous      <Annotation Term="Redfish.Release" String="1.0"/>
68720c9898SEd Tanous
69720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.TaskService">
70720c9898SEd Tanous        <Property Name="CompletedTaskOverWritePolicy" Type="TaskService.v1_0_0.OverWritePolicy" Nullable="false">
71720c9898SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
72720c9898SEd Tanous          <Annotation Term="OData.Description" String="The overwrite policy for completed tasks.  This property indicates if the task service overwrites completed task information."/>
73720c9898SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the overwrite policy for completed tasks.  This property shall indicate if the task service overwrites completed task information."/>
74720c9898SEd Tanous        </Property>
75720c9898SEd Tanous        <Property Name="DateTime" Type="Edm.DateTimeOffset">
76720c9898SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
77720c9898SEd Tanous          <Annotation Term="OData.Description" String="The current date and time, with UTC offset, setting that the task service uses."/>
78720c9898SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the current date and time for the task service, with UTC offset."/>
79720c9898SEd Tanous        </Property>
80720c9898SEd Tanous        <Property Name="LifeCycleEventOnTaskStateChange" Type="Edm.Boolean" Nullable="false">
81720c9898SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
82720c9898SEd Tanous          <Annotation Term="OData.Description" String="An indication of whether a task state change sends an event."/>
83720c9898SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall indicate whether a task state change sends an event.  Services should send an event containing a message defined in the Task Event Message Registry when the state of a task changes."/>
84720c9898SEd Tanous        </Property>
85720c9898SEd Tanous        <Property Name="ServiceEnabled" Type="Edm.Boolean">
86720c9898SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
87720c9898SEd Tanous          <Annotation Term="OData.Description" String="An indication of whether this service is enabled."/>
88720c9898SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall indicate whether this service is enabled."/>
89720c9898SEd Tanous        </Property>
90720c9898SEd Tanous        <Property Name="Status" Type="Resource.Status" Nullable="false">
91720c9898SEd Tanous          <Annotation Term="OData.Description" String="The status and health of the resource and its subordinate or dependent resources."/>
92720c9898SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain any status or health properties of the resource."/>
93720c9898SEd Tanous        </Property>
94720c9898SEd Tanous        <NavigationProperty Name="Tasks" Type="TaskCollection.TaskCollection" ContainsTarget="true" Nullable="false">
95720c9898SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
96720c9898SEd Tanous          <Annotation Term="OData.Description" String="The links to the collection of tasks."/>
97f2a8e57eSGunnar Mills          <Annotation Term="OData.LongDescription" String="This property shall contain a link to a resource collection of type `TaskCollection`."/>
98720c9898SEd Tanous          <Annotation Term="OData.AutoExpandReferences"/>
99720c9898SEd Tanous        </NavigationProperty>
100720c9898SEd Tanous      </EntityType>
101720c9898SEd Tanous
102720c9898SEd Tanous      <EnumType Name="OverWritePolicy">
103720c9898SEd Tanous        <Member Name="Manual">
104720c9898SEd Tanous          <Annotation Term="OData.Description" String="Completed tasks are not automatically overwritten."/>
105720c9898SEd Tanous        </Member>
106720c9898SEd Tanous        <Member Name="Oldest">
107720c9898SEd Tanous          <Annotation Term="OData.Description" String="Oldest completed tasks are overwritten."/>
108720c9898SEd Tanous        </Member>
109720c9898SEd Tanous      </EnumType>
110720c9898SEd Tanous    </Schema>
111720c9898SEd Tanous
112720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_0_2">
113720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
114720c9898SEd Tanous      <Annotation Term="OData.Description" String="This version was created to show that annotations in previous namespaces were updated."/>
115720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_0_0.TaskService"/>
116720c9898SEd Tanous    </Schema>
117720c9898SEd Tanous
118720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_0_3">
119720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
120720c9898SEd Tanous      <Annotation Term="OData.Description" String="This version was created to add explicit permissions annotations to all properties for clarity."/>
121720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_0_2.TaskService"/>
122720c9898SEd Tanous    </Schema>
123720c9898SEd Tanous
124720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_0_4">
125720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
126f2a8e57eSGunnar Mills      <Annotation Term="OData.Description" String="This version was created to correct the `LifeCycleEventOnTaskStateChange` long description."/>
127720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_0_3.TaskService"/>
128720c9898SEd Tanous    </Schema>
129720c9898SEd Tanous
130720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_0_5">
131720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
132720c9898SEd Tanous      <Annotation Term="OData.Description" String="This version was created to force the regeneration of JSON Schema so that OData properties are marked as required, and integer properties are marked as integer rather than number."/>
133720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_0_4.TaskService"/>
134720c9898SEd Tanous    </Schema>
135720c9898SEd Tanous
136720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_0_6">
137720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
138720c9898SEd Tanous      <Annotation Term="OData.Description" String="This version was created to force the regeneration of JSON Schema so that URI properties use the uri-reference format.  It was also created to correct the resource description."/>
139720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_0_5.TaskService"/>
140720c9898SEd Tanous    </Schema>
141720c9898SEd Tanous
142720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_0_7">
143720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
144720c9898SEd Tanous      <Annotation Term="OData.Description" String="This version was created to update descriptions that this schema defines."/>
145720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_0_6.TaskService"/>
146720c9898SEd Tanous    </Schema>
147720c9898SEd Tanous
148720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_0_8">
149720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
150f2a8e57eSGunnar Mills      <Annotation Term="OData.Description" String="This version was created to update the description of `LifeCycleEventOnTaskStateChange`."/>
151720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_0_7.TaskService"/>
152720c9898SEd Tanous    </Schema>
153720c9898SEd Tanous
154720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_0_9">
155720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
156720c9898SEd Tanous      <Annotation Term="OData.Description" String="This version was created to correct various typographical errors."/>
157720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_0_8.TaskService"/>
158720c9898SEd Tanous    </Schema>
159720c9898SEd Tanous
160f2a8e57eSGunnar Mills    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_0_10">
161f2a8e57eSGunnar Mills      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
162f2a8e57eSGunnar 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."/>
163f2a8e57eSGunnar Mills      <EntityType Name="TaskService" BaseType="TaskService.v1_0_9.TaskService"/>
164f2a8e57eSGunnar Mills    </Schema>
165f2a8e57eSGunnar Mills
166720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_1_0">
167720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
168720c9898SEd Tanous      <Annotation Term="Redfish.Release" String="2017.1"/>
169720c9898SEd Tanous
170720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_0_3.TaskService">
171720c9898SEd Tanous        <Property Name="Actions" Type="TaskService.v1_1_0.Actions" Nullable="false">
172720c9898SEd Tanous          <Annotation Term="OData.Description" String="The available actions for this resource."/>
173720c9898SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the available actions for this resource."/>
174720c9898SEd Tanous        </Property>
175720c9898SEd Tanous      </EntityType>
176720c9898SEd Tanous
177720c9898SEd Tanous      <ComplexType Name="Actions">
178720c9898SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
179720c9898SEd Tanous        <Annotation Term="OData.Description" String="The available actions for this resource."/>
180720c9898SEd Tanous        <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
181720c9898SEd Tanous        <Property Name="Oem" Type="TaskService.v1_1_0.OemActions" Nullable="false">
182720c9898SEd Tanous          <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
183720c9898SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the available OEM-specific actions for this resource."/>
184720c9898SEd Tanous        </Property>
185720c9898SEd Tanous      </ComplexType>
186720c9898SEd Tanous
187720c9898SEd Tanous      <ComplexType Name="OemActions">
188720c9898SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="true"/>
189720c9898SEd Tanous        <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
190720c9898SEd Tanous        <Annotation Term="OData.LongDescription" String="This type shall contain the available OEM-specific actions for this resource."/>
191720c9898SEd Tanous      </ComplexType>
192720c9898SEd Tanous    </Schema>
193720c9898SEd Tanous
194720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_1_1">
195720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
196f2a8e57eSGunnar Mills      <Annotation Term="OData.Description" String="This version was created to correct the `LifeCycleEventOnTaskStateChange` long description."/>
197720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_1_0.TaskService"/>
198720c9898SEd Tanous    </Schema>
199720c9898SEd Tanous
200720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_1_2">
201720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
202720c9898SEd Tanous      <Annotation Term="OData.Description" String="This version was created to force the regeneration of JSON Schema so that OData properties are marked as required, and integer properties are marked as integer rather than number."/>
203720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_1_1.TaskService"/>
204720c9898SEd Tanous    </Schema>
205720c9898SEd Tanous
206720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_1_3">
207720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
208720c9898SEd Tanous      <Annotation Term="OData.Description" String="This version was created to force the regeneration of JSON Schema so that URI properties use the uri-reference format.  It was also created to correct the resource description."/>
209720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_1_2.TaskService"/>
210720c9898SEd Tanous    </Schema>
211720c9898SEd Tanous
212720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_1_4">
213720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
214720c9898SEd Tanous      <Annotation Term="OData.Description" String="This version was created to update descriptions that this schema defines."/>
215720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_1_3.TaskService"/>
216720c9898SEd Tanous    </Schema>
217720c9898SEd Tanous
218720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_1_5">
219720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
220f2a8e57eSGunnar Mills      <Annotation Term="OData.Description" String="This version was created to update the description of `LifeCycleEventOnTaskStateChange`."/>
221720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_1_4.TaskService"/>
222720c9898SEd Tanous    </Schema>
223720c9898SEd Tanous
224720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_1_6">
225720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
226720c9898SEd Tanous      <Annotation Term="OData.Description" String="This version was created to correct various typographical errors."/>
227720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_1_5.TaskService"/>
228720c9898SEd Tanous    </Schema>
229720c9898SEd Tanous
230f2a8e57eSGunnar Mills    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_1_7">
231f2a8e57eSGunnar Mills      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
232f2a8e57eSGunnar 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."/>
233f2a8e57eSGunnar Mills      <EntityType Name="TaskService" BaseType="TaskService.v1_1_6.TaskService"/>
234f2a8e57eSGunnar Mills    </Schema>
235f2a8e57eSGunnar Mills
236720c9898SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_2_0">
237720c9898SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
238720c9898SEd Tanous      <Annotation Term="Redfish.Release" String="2021.1"/>
239720c9898SEd Tanous
240720c9898SEd Tanous      <EntityType Name="TaskService" BaseType="TaskService.v1_1_6.TaskService">
241720c9898SEd Tanous        <Property Name="TaskAutoDeleteTimeoutMinutes" Type="Edm.Int64" Nullable="false">
242720c9898SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
243720c9898SEd Tanous          <Annotation Term="OData.Description" String="The number of minutes after which a completed task is deleted by the service."/>
244f2a8e57eSGunnar Mills          <Annotation Term="OData.LongDescription" String="This property shall contain the number of minutes after which a completed task, where `TaskState` contains the value `Completed`, `Killed`, `Cancelled`, or `Exception`, is deleted by the service."/>
245720c9898SEd Tanous          <Annotation Term="Validation.Minimum" Int="1"/>
246720c9898SEd Tanous        </Property>
247720c9898SEd Tanous      </EntityType>
248720c9898SEd Tanous    </Schema>
249720c9898SEd Tanous
250f2a8e57eSGunnar Mills    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="TaskService.v1_2_1">
251f2a8e57eSGunnar Mills      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
252f2a8e57eSGunnar 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."/>
253f2a8e57eSGunnar Mills      <EntityType Name="TaskService" BaseType="TaskService.v1_2_0.TaskService"/>
254f2a8e57eSGunnar Mills    </Schema>
255f2a8e57eSGunnar Mills
256720c9898SEd Tanous  </edmx:DataServices>
257720c9898SEd Tanous</edmx:Edmx>
258