1<?xml version="1.0" encoding="UTF-8"?> 2<!----> 3<!--################################################################################ --> 4<!--# Redfish Schema: JobDocument 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-2025 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://redfish.dmtf.org/schemas/v1/Resource_v1.xml"> 21 <edmx:Include Namespace="Resource"/> 22 <edmx:Include Namespace="Resource.v1_0_0"/> 23 </edmx:Reference> 24 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml"> 25 <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/> 26 <edmx:Include Namespace="Validation.v1_0_0" Alias="Validation"/> 27 </edmx:Reference> 28 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Job_v1.xml"> 29 <edmx:Include Namespace="Job"/> 30 </edmx:Reference> 31 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/JobExecutor_v1.xml"> 32 <edmx:Include Namespace="JobExecutor"/> 33 </edmx:Reference> 34 35 <edmx:DataServices> 36 37 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="JobDocument"> 38 <Annotation Term="Redfish.OwningEntity" String="DMTF"/> 39 <Annotation Term="Redfish.Language" String="en"/> 40 41 <EntityType Name="JobDocument" BaseType="Resource.v1_0_0.Resource" Abstract="true"> 42 <Annotation Term="OData.Description" String="The `JobDocument` schema describes the template for a job with a set of parameters."/> 43 <Annotation Term="OData.LongDescription" String="This resource shall represent a job document for a Redfish implementation."/> 44 <Annotation Term="Capabilities.InsertRestrictions"> 45 <Record> 46 <PropertyValue Property="Insertable" Bool="false"/> 47 </Record> 48 </Annotation> 49 <Annotation Term="Capabilities.UpdateRestrictions"> 50 <Record> 51 <PropertyValue Property="Updatable" Bool="false"/> 52 </Record> 53 </Annotation> 54 <Annotation Term="Capabilities.DeleteRestrictions"> 55 <Record> 56 <PropertyValue Property="Deletable" Bool="true"/> 57 </Record> 58 </Annotation> 59 <Annotation Term="Redfish.Uris"> 60 <Collection> 61 <String>/redfish/v1/JobService/Documents/{JobDocumentId}</String> 62 </Collection> 63 </Annotation> 64 </EntityType> 65 66 <Action Name="SubmitJob" IsBound="true"> 67 <Annotation Term="OData.Description" String="Creates a new job based on the contents of this job document and additional parameters."/> 68 <Annotation Term="OData.LongDescription" String="This action shall create a new `Job` resource based on the contents of this job document and additional parameters."/> 69 <Parameter Name="JobDocument" Type="JobDocument.v1_0_0.Actions"/> 70 <Parameter Name="JobCreator" Type="Job.Job"> 71 <Annotation Term="OData.Description" String="The link to the job that is submitting this job."/> 72 <Annotation Term="OData.LongDescription" String="This parameter shall contain a link to a resource of type `Job` that represents the job that is submitting this job."/> 73 </Parameter> 74 <Parameter Name="Parameters" Type="JobDocument.v1_0_0.Parameter" Nullable="false"> 75 <Annotation Term="OData.Description" String="The list of parameters for the new job that are specific to this job document."/> 76 <Annotation Term="OData.LongDescription" String="This parameter shall contain the list of parameters for the new job that are specific to this job document. Services shall reject requests containing parameters that do not meet the requirements specified by the `ParameterMetadata` property."/> 77 </Parameter> 78 <Parameter Name="StartTime" Type="Edm.DateTimeOffset"> 79 <Annotation Term="OData.Description" String="The date and time when the job is scheduled to start."/> 80 <Annotation Term="OData.LongDescription" String="This parameter shall contain the date and time when the job is scheduled to start."/> 81 </Parameter> 82 <Parameter Name="PreferredExecutors" Type="Collection(JobExecutor.JobExecutor)" Nullable="false"> 83 <Annotation Term="OData.Description" String="An array of links to the preferred executors to run this job."/> 84 <Annotation Term="OData.LongDescription" String="This parameter shall contain an array of links to resources of type `JobExecutor` that represent the preferred executors to run this job."/> 85 </Parameter> 86 <Parameter Name="HidePayload" Type="Edm.Boolean"> 87 <Annotation Term="OData.Description" String="An indication of whether the contents of the parameters should be hidden from view after the job has been created. If `true`, responses do not return the parameters. If `false`, responses return the parameters. If this parameter is not present when the job is created, the default is `false`."/> 88 <Annotation Term="OData.LongDescription" String="This parameter shall indicate whether the contents of the parameters should be hidden from view after the job has been created. If `true`, responses shall not return the `Parameters` property. If `false`, responses shall return the `Parameters` property. If this parameter is not present when the job is created, the default is `false`."/> 89 </Parameter> 90 </Action> 91 </Schema> 92 93 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="JobDocument.v1_0_0"> 94 <Annotation Term="Redfish.OwningEntity" String="DMTF"/> 95 <Annotation Term="Redfish.Release" String="2025.2"/> 96 97 <EntityType Name="JobDocument" BaseType="JobDocument.JobDocument"> 98 <Property Name="Status" Type="Resource.Status" Nullable="false"> 99 <Annotation Term="OData.Description" String="The status and health of the resource and its subordinate or dependent resources."/> 100 <Annotation Term="OData.LongDescription" String="This property shall contain any status or health properties of the resource."/> 101 </Property> 102 <Property Name="Links" Type="JobDocument.v1_0_0.Links" Nullable="false"> 103 <Annotation Term="OData.Description" String="The links to other resources that are related to this resource."/> 104 <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."/> 105 </Property> 106 <Property Name="Actions" Type="JobDocument.v1_0_0.Actions" Nullable="false"> 107 <Annotation Term="OData.Description" String="The available actions for this resource."/> 108 <Annotation Term="OData.LongDescription" String="This property shall contain the available actions for this resource."/> 109 </Property> 110 <Property Name="DocumentType" Type="Edm.String" Nullable="false"> 111 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 112 <Annotation Term="OData.Description" String="The type of job document data associated with this job document."/> 113 <Annotation Term="OData.LongDescription" String="This property shall contain the type of job document data associated with this job document."/> 114 </Property> 115 <Property Name="Version" Type="Edm.String" Nullable="false"> 116 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 117 <Annotation Term="OData.Description" String="The version of this job document."/> 118 <Annotation Term="OData.LongDescription" String="This property shall contain the version of this job document."/> 119 </Property> 120 <Property Name="CreationTime" Type="Edm.DateTimeOffset" Nullable="false"> 121 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 122 <Annotation Term="OData.Description" String="The date and time when this job document resource was created."/> 123 <Annotation Term="OData.LongDescription" String="This property shall contain the date and time when this job document resource was created."/> 124 </Property> 125 <Property Name="DocumentData" Type="Edm.String" Nullable="false"> 126 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 127 <Annotation Term="OData.Description" String="The job document data as a Base64-encoded string."/> 128 <Annotation Term="OData.LongDescription" String="This property shall contain a Base64-encoded string of the job document data. This property shall not be present if `DocumentDataURI` is present."/> 129 </Property> 130 <Property Name="DocumentDataURI" Type="Edm.String" Nullable="false"> 131 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 132 <Annotation Term="OData.Description" String="The URI at which to access the job document data."/> 133 <Annotation Term="OData.LongDescription" String="This property shall contain the URI at which to access the job document data. This property shall not be present if `DocumentData` is present."/> 134 <Annotation Term="OData.IsURL"/> 135 </Property> 136 <Property Name="DocumentDataHash" Type="Edm.String" Nullable="false"> 137 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 138 <Annotation Term="OData.Description" String="The hash of the job document data."/> 139 <Annotation Term="OData.LongDescription" String="This property shall contain the hash of the job document data as a hex-encoded string."/> 140 <Annotation Term="Validation.Pattern" String="^[0-9a-fA-F]+$"/> 141 </Property> 142 <Property Name="ParameterMetadata" Type="Collection(JobDocument.v1_0_0.ParameterMetadata)" Nullable="false"> 143 <Annotation Term="OData.Description" String="The metadata for each of the parameters supported by this job document for the `SubmitJob` action."/> 144 <Annotation Term="OData.LongDescription" String="This property shall contain the metadata for each of the parameters supported by this job document for the `SubmitJob` action."/> 145 </Property> 146 </EntityType> 147 148 <EnumType Name="DataType"> 149 <Member Name="Boolean"> 150 <Annotation Term="OData.Description" String="A boolean."/> 151 </Member> 152 <Member Name="Number"> 153 <Annotation Term="OData.Description" String="A number."/> 154 </Member> 155 <Member Name="String"> 156 <Annotation Term="OData.Description" String="A string."/> 157 </Member> 158 </EnumType> 159 160 <ComplexType Name="ParameterMetadata"> 161 <Annotation Term="OData.AdditionalProperties" Bool="false"/> 162 <Annotation Term="OData.Description" String="The metadata for a parameter supported by a job document for the `SubmitJob` action."/> 163 <Annotation Term="OData.LongDescription" String="This type shall contain the metadata a parameter supported by a job document for the `SubmitJob` action."/> 164 <Property Name="AllowableNumbers" Type="Collection(Edm.String)" Nullable="false"> 165 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 166 <Annotation Term="OData.Description" String="The allowable numeric values or duration values, inclusive ranges of values, and incremental step values for this parameter."/> 167 <Annotation Term="OData.LongDescription" String="This property shall indicate the allowable numeric values, inclusive ranges of values, and incremental step values for this parameter, as defined in the 'Allowable values for numbers and durations' clause of the Redfish Specification. This property shall only be present for numeric parameters or string parameters that specify a duration."/> 168 </Property> 169 <Property Name="AllowablePattern" Type="Edm.String" Nullable="false"> 170 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 171 <Annotation Term="OData.Description" String="The allowable pattern for this parameter."/> 172 <Annotation Term="OData.LongDescription" String="This property shall contain a regular expression that describes the allowable values for this parameter. This property shall only be present for string parameters."/> 173 </Property> 174 <Property Name="AllowableValueDescriptions" Type="Collection(Edm.String)" Nullable="false"> 175 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 176 <Annotation Term="OData.Description" String="Descriptions of allowable values for this parameter."/> 177 <Annotation Term="OData.LongDescription" String="This property shall contain the descriptions of allowable values for this parameter. The descriptions shall appear in the same array order as the `AllowableValues` property."/> 178 </Property> 179 <Property Name="AllowableValues" Type="Collection(Edm.String)" Nullable="false"> 180 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 181 <Annotation Term="OData.Description" String="The allowable values for this parameter."/> 182 <Annotation Term="OData.LongDescription" String="This property shall indicate the allowable values for this parameter."/> 183 </Property> 184 <Property Name="DataType" Type="JobDocument.v1_0_0.DataType" Nullable="false"> 185 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 186 <Annotation Term="OData.Description" String="The JSON property type for this parameter."/> 187 <Annotation Term="OData.LongDescription" String="This property shall contain the JSON property type for this parameter."/> 188 <Annotation Term="Redfish.Required"/> 189 </Property> 190 <Property Name="Description" Type="Resource.Description" Nullable="false"> 191 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 192 <Annotation Term="OData.Description" String="A description of the parameter."/> 193 <Annotation Term="OData.LongDescription" String="This property shall contain a description of the parameter."/> 194 </Property> 195 <Property Name="MaximumValue" Type="Edm.Decimal" Nullable="false"> 196 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 197 <Annotation Term="OData.Description" String="The maximum supported value for this parameter."/> 198 <Annotation Term="OData.LongDescription" String="This integer or number property shall contain the maximum value that this service supports. This property shall not be present for non-integer or number parameters."/> 199 </Property> 200 <Property Name="MinimumValue" Type="Edm.Decimal" Nullable="false"> 201 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 202 <Annotation Term="OData.Description" String="The minimum supported value for this parameter."/> 203 <Annotation Term="OData.LongDescription" String="This integer or number property shall contain the minimum value that this service supports. This property shall not be present for non-integer or number parameters."/> 204 </Property> 205 <Property Name="Required" Type="Edm.Boolean" Nullable="false"> 206 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 207 <Annotation Term="OData.Description" String="An indication of whether the parameter is required."/> 208 <Annotation Term="OData.LongDescription" String="This property shall indicate whether the parameter is required."/> 209 </Property> 210 <Property Name="Name" Type="Edm.String" Nullable="false"> 211 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 212 <Annotation Term="OData.Description" String="The name of the parameter."/> 213 <Annotation Term="OData.LongDescription" String="This property shall contain the name of the parameter."/> 214 <Annotation Term="Redfish.Required"/> 215 </Property> 216 <Property Name="ValueHint" Type="Edm.String" Nullable="false"> 217 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 218 <Annotation Term="OData.Description" String="A hint value for the parameter."/> 219 <Annotation Term="OData.LongDescription" String="This property shall contain a hint value for the parameter."/> 220 </Property> 221 </ComplexType> 222 223 <ComplexType Name="Parameter"> 224 <Annotation Term="OData.AdditionalProperties" Bool="false"/> 225 <Annotation Term="OData.Description" String="An object containing a set of parameters for submitting a new job based on a job document."/> 226 <Annotation Term="OData.LongDescription" String="This type shall contain a set of parameters for submitting a new job based on a job document."/> 227 <Annotation Term="Redfish.DynamicPropertyPatterns"> 228 <Collection> 229 <Record> 230 <PropertyValue Property="Pattern" String="^[A-Za-z][A-Za-z0-9_]+$"/> 231 <PropertyValue Property="Type" String="Edm.PrimitiveType"/> 232 </Record> 233 </Collection> 234 </Annotation> 235 </ComplexType> 236 237 <ComplexType Name="Links"> 238 <Annotation Term="OData.Description" String="The links to other resources that are related to this resource."/> 239 <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."/> 240 <Annotation Term="OData.AdditionalProperties" Bool="false"/> 241 <NavigationProperty Name="SupportedExecutors" Type="Collection(JobExecutor.JobExecutor)"> 242 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> 243 <Annotation Term="OData.Description" String="An array of links to the executors that are capable of running jobs instantiated from this job document."/> 244 <Annotation Term="OData.LongDescription" String="This property shall contain an array of links to resources of type `JobExecutor` that represent the executors that are capable of running jobs instantiated from this job document."/> 245 <Annotation Term="OData.AutoExpandReferences"/> 246 </NavigationProperty> 247 </ComplexType> 248 249 <ComplexType Name="Actions"> 250 <Annotation Term="OData.AdditionalProperties" Bool="false"/> 251 <Annotation Term="OData.Description" String="The available actions for this resource."/> 252 <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/> 253 <Property Name="Oem" Type="JobDocument.v1_0_0.OemActions" Nullable="false"> 254 <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/> 255 <Annotation Term="OData.LongDescription" String="This property shall contain the available OEM-specific actions for this resource."/> 256 </Property> 257 </ComplexType> 258 259 <ComplexType Name="OemActions"> 260 <Annotation Term="OData.AdditionalProperties" Bool="true"/> 261 <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/> 262 <Annotation Term="OData.LongDescription" String="This type shall contain the available OEM-specific actions for this resource."/> 263 </ComplexType> 264 </Schema> 265 266 </edmx:DataServices> 267</edmx:Edmx> 268