blob: 5f5bb135a6827cfc2258d12d1fa82fe5351a8b59 [file] [log] [blame]
Jason M. Billsea4aa752018-06-05 13:29:11 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!---->
3<!--################################################################################ -->
4<!--# Redfish Schema: RedfishExtensions 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 -->
Ed Tanous530520e2019-01-02 13:41:37 -08008<!--# Copyright 2014-2018 DMTF. -->
Jason M. Billsea4aa752018-06-05 13:29:11 -07009<!--# 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://redfish.dmtf.org/schemas/v1/Settings_v1.xml">
18 <edmx:Include Namespace="Settings"/>
19 </edmx:Reference>
20 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/CollectionCapabilities_v1.xml">
21 <edmx:Include Namespace="CollectionCapabilities"/>
22 </edmx:Reference>
23
24 <edmx:DataServices>
25
26 <!--These terms extend the schema language for Redfish-specific information-->
27 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="RedfishExtensions.v1_0_0">
28 <Annotation Term="RedfishExtensions.v1_0_0.OwningEntity" String="DMTF"/>
29
30 <Term Name="AllowableValues" Type="Collection(Edm.String)" Nullable="false">
31 <Annotation Term="OData.Description" String="The set of allowable values for a parameter."/>
32 </Term>
33 <Term Name="Required" Type="Edm.Boolean" DefaultValue="true">
34 <Annotation Term="OData.Description" String="The term specifies that a property is required to be supported by services. Properties not annotated as required are optional."/>
35 </Term>
36 <Term Name="RequiredOnCreate" Type="Edm.Boolean" DefaultValue="true">
37 <Annotation Term="OData.Description" String="The term specifies that a property is required to be specified in the body of a POST request to create the resource."/>
38 </Term>
39 <Term Name="Settings" Type="Settings.Settings">
40 <Annotation Term="OData.Description" String="Reference to the resource that represents the settings to be applied to this object."/>
41 </Term>
42 <Term Name="AutoExpandReferences" Type="Edm.Boolean" DefaultValue="true">
43 <Annotation Term="RedfishExtensions.v1_0_0.Deprecated" String="This term has been deprecated in favor of OData.AutoExpandReferences."/>
44 <Annotation Term="OData.Description" String="The term can be applied to a navigation property in order to specify that the default behavior for the service is to expand the references for the related resource or collection of resources in responses."/>
45 </Term>
46 <Term Name="AutoExpand" Type="Edm.Boolean" DefaultValue="true">
47 <Annotation Term="RedfishExtensions.v1_0_0.Deprecated" String="This term has been deprecated in favor of OData.AutoExpand."/>
48 <Annotation Term="OData.Description" String="The term can be applied to a navigation property in order to specify that the default behavior for the service is to expand the related resource or collection of resources in responses."/>
49 </Term>
50 <Term Name="IPv6Format" Type="Edm.Boolean" DefaultValue="true">
51 <Annotation Term="OData.Description" String="The term can be applied to a property or parameter in order to specify that IPv6 addressing rules apply to that property or parameter."/>
52 </Term>
53 <Term Name="Copyright" Type="Edm.String">
54 <Annotation Term="OData.Description" String="The term is applied to Redfish payload samples in order to specify copyright information. It would not generally be used in production payloads."/>
55 </Term>
56 <Term Name="Deprecated" Type="Edm.String">
57 <Annotation Term="OData.Description" String="The term shall be applied to a property or value in order to specify that the property or value is deprecated. The value of the string should explain the deprecation, including new property or properties or value to be used. The property or value can be supported in new and existing implementations, but usage in new implementations is discouraged. Deprecated properties and values are likely to be removed in a future major version of the schema."/>
58 </Term>
59 <Term Name="ActionInfo" Type="Edm.String">
60 <Annotation Term="OData.Description" String="The term can be applied to an Action to specify a URI to an ActionInfo resource which describes the parameters supported by this instance of the Action."/>
61 <Annotation Term="OData.IsURL"/>
62 </Term>
63 <Term Name="DynamicPropertyPatterns" Type="Collection(RedfishExtensions.v1_0_0.PropertyPattern)" Nullable="false"/>
64 <Term Name="SetOnlyOnCreate" Type="Edm.Boolean" DefaultValue="true">
65 <Annotation Term="OData.Description" String="The term specifies that a property can only be set when a client is creating a new instance of a resource via POST."/>
66 </Term>
67 <Term Name="OptionalOnCreate" Type="Edm.Boolean" DefaultValue="true">
68 <Annotation Term="OData.Description" String="The term specifies that a property may be set when a client is creating a new instance of a resource via POST."/>
69 </Term>
70 <Term Name="UpdatableAfterCreate" Type="Edm.Boolean" DefaultValue="true">
71 <Annotation Term="OData.Description" String="The term specifies that a property may be set by a client using PATCH after creating a new instance of a resource via POST."/>
72 </Term>
73 <Term Name="CollectionCapabilities" Type="CollectionCapabilities.CollectionCapabilities">
74 <Annotation Term="OData.Description" String="Reference to the resource that represents the POST capabilities of a given collection."/>
75 </Term>
76 <Term Name="Confidential" Type="Edm.String">
77 <Annotation Term="OData.Description" String="The term specifies that a schema or property is un-released and is therefore confidential material not for public disclosure."/>
78 </Term>
79 <Term Name="ReleaseStatus" Type="RedfishExtensions.v1_0_0.ReleaseStatusType">
80 <Annotation Term="OData.Description" String="The term specifies the public release status of a property or schema."/>
81 </Term>
82 <Term Name="SettingsApplyTime" Type="Settings.PreferredApplyTime">
83 <Annotation Term="OData.Description" String="Configuration settings for when the values in the settings object are applied to a given resource."/>
84 </Term>
85 <Term Name="OperationApplyTime" Type="Settings.OperationApplyTime">
86 <Annotation Term="OData.Description" String="The requested apply time from a client when performing a Create, Delete, or Action operation."/>
87 </Term>
88 <Term Name="OperationApplyTimeSupport" Type="Settings.OperationApplyTimeSupport">
89 <Annotation Term="OData.Description" String="Indicates if a client is allowed to request for a specific apply time of a Create, Delete, or Action operation of a given resource via the OperationApplyTime term."/>
90 </Term>
91 <Term Name="MaintenanceWindow" Type="Settings.MaintenanceWindow">
92 <Annotation Term="OData.Description" String="Maintenance window configuration of a resource for when to apply settings or operations."/>
93 </Term>
94 <Term Name="OwningEntity" Type="Edm.String">
95 <Annotation Term="OData.Description" String="Indicates the name of the entity responsible for development, publication and maintenance of a given schema. Possible values include DMTF, SNIA or an OEM label such as is used in a Redfish OEM extension section."/>
Ed Tanous530520e2019-01-02 13:41:37 -080096 </Term>
97 <Term Name="Uris" Type="Collection(Edm.String)">
98 <Annotation Term="OData.Description" String="The term specifies the URIs a service is allowed to use for the given resource."/>
99 </Term>
100 <Term Name="RequestedCount" Type="Edm.Boolean" DefaultValue="true">
101 <Annotation Term="OData.Description" String="The term is used by a client in order to specify a request for a quantity of items."/>
102 </Term>
103 <Term Name="RequestedCountRequired" Type="Edm.Boolean" DefaultValue="true">
104 <Annotation Term="OData.Description" String="The term specifies that a client is required to provide the @Redfish.RequestedCount term as part of the payload in order to specify a quantity of items."/>
105 </Term>
106 <Term Name="AllowOverprovisioning" Type="Edm.Boolean" DefaultValue="false">
107 <Annotation Term="OData.Description" String="The term specifies that a client is allowing the service to provide more resources than what was requested, which includes, but is not limited to, a larger quantity of items, larger capacity, and faster devices."/>
108 <Annotation Term="OData.LongDescription" String="The term shall specify that a client is allowing the service to provide more resources than what was requested, which includes, but is not limited to, a larger quantity of items, larger capacity, and faster devices. If not specified by the client, then the service shall treat this as false."/>
109 </Term>
110 <Term Name="ZoneAffinity" Type="Edm.String">
111 <Annotation Term="OData.Description" String="The term specifies that a client is requesting the service fulfills a request using resources available within a specific Zone resource. The value of the term is the Id property of the given Zone resource."/>
112 <Annotation Term="OData.LongDescription" String="The term shall specify that a client is requesting the service fulfills a request using resources available within a specific Zone resource. The value of the term shall be the Id property of the given Zone resource. This term shall only be at the root level of the request payload."/>
113 </Term>
114 <Term Name="Filter" Type="Edm.String">
115 <Annotation Term="OData.Description" String="Indicates a filter to apply to an array of objects when the values are copies of data elsewhere in the data model."/>
116 <Annotation Term="OData.LongDescription" String="The term shall specify a Filter to apply to a set of objects used as the data source for an array. The value of the term shall follow the Filter query parameter format as specified in the Redfish Specification. Items matching the filter shall be included in the resulting array, while items that do not match the filter shall be excluded from the results."/>
117 </Term>
118 <Term Name="Excerpt" Type="Edm.String">
119 <Annotation Term="OData.Description" String="The term specifies that the property is a Excerpt data element that shall appear in objects marked as a Excerpt Copy when the value of the term matches the type specified by the ExcerptCopy term. The value shall be a property name to use as a key, and the value of that key property, and only one key property can be defined per resource. If the value of the term is unspecified, the property shall appear in all ExcerptCopy instances."/>
120 </Term>
121 <Term Name="ExcerptCopy" Type="Edm.String">
122 <Annotation Term="OData.Description" String="The term specifies that the object or property definition is a copy of data from a source elsewhere in the data model, and that only properties marked as Excerpt in that referenced definition shall be included. The value of the term shall contain the name and value of a key property used to construct the Excerpt subset of properties from the referenced definition. If the value of the term is not defined, then all Excerpt properties shall be copied from the referenced definition."/>
123 </Term>
124 <Term Name="ExcerptCopyOnly" Type="Edm.Boolean" DefaultValue="true">
125 <Annotation Term="OData.Description" String="The term specifies that the property is a data element that shall appear only when the resource definition is used as a copy (using the ExcerptCopy term), and shall not appear in the original data resource."/>
126 </Term>
Jason M. Billsea4aa752018-06-05 13:29:11 -0700127
128 <EnumType Name="ReleaseStatusType">
129 <Member Name="Standard">
130 <Annotation Term="OData.Description" String="Released as normative standard or specification."/>
131 </Member>
132 <Member Name="Informational">
133 <Annotation Term="OData.Description" String="Released as an informational, non-normative document."/>
134 </Member>
135 <Member Name="WorkInProgress">
136 <Annotation Term="OData.Description" String="Released as Work In Progress, subject to change perhaps profoundly and without notice."/>
137 </Member>
138 <Member Name="InDevelopment">
139 <Annotation Term="OData.Description" String="Un-released work product currently under development or review."/>
140 </Member>
141 </EnumType>
142
143 <ComplexType Name="PropertyPattern">
144 <Annotation Term="OData.Description" String="The pattern by which property names must adhere."/>
145 <Annotation Term="OData.LongDescription" String="This type shall describe the pattern to which a dynamic property name must adhere."/>
146 <Property Name="Pattern" Type="Edm.String">
147 <Annotation Term="OData.Description" String="The pattern that the property name shall match."/>
Ed Tanous530520e2019-01-02 13:41:37 -0800148 <Annotation Term="OData.LongDescription" String="This shall be the pattern that the property name shall match."/>
Jason M. Billsea4aa752018-06-05 13:29:11 -0700149 </Property>
150 <Property Name="Type" Type="Edm.String">
151 <Annotation Term="OData.Description" String="The type that the name shall have."/>
Ed Tanous530520e2019-01-02 13:41:37 -0800152 <Annotation Term="OData.LongDescription" String="This shall be the type that the name shall have."/>
Jason M. Billsea4aa752018-06-05 13:29:11 -0700153 </Property>
154 </ComplexType>
155
156 <Term Name="Enumeration" Type="Collection(RedfishExtensions.v1_0_0.EnumerationMember)" Nullable="false">
157 <Annotation Term="OData.Description" String="The term enumerates the allowable set of legacy, non-standard string values where a standard enumeration cannot be used. This annotation should not be used for any new values."/>
158 </Term>
159
160 <ComplexType Name="EnumerationMember">
161 <Annotation Term="OData.Description" String="This type describes a member of an enumeration used for compatability purposes for enumerations which do not comply with OData rules."/>
162 <Annotation Term="OData.LongDescription" String="This type shall describe a member of an enumeration which contains spaces, starts with a number, or otherwise does not comply with OData EnumMember naming rules."/>
163 <Property Name="Member" Type="Edm.String">
164 <Annotation Term="OData.Description" String="An allowable string member."/>
Ed Tanous530520e2019-01-02 13:41:37 -0800165 <Annotation Term="OData.LongDescription" String="This shall be an allowable string member for the enumeration."/>
Jason M. Billsea4aa752018-06-05 13:29:11 -0700166 </Property>
167 </ComplexType>
168
169 </Schema>
170
171 <!--These terms are used for validating a property value-->
172 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Validation.v1_0_0">
173 <Annotation Term="RedfishExtensions.v1_0_0.OwningEntity" String="DMTF"/>
174
175 <Term Name="Pattern" Type="Edm.String">
176 <Annotation Term="OData.Description" String="The pattern that a string property or parameter must match."/>
177 </Term>
178 <Term Name="Minimum" Type="Edm.Int64">
179 <Annotation Term="OData.Description" String="Minimum value that an integer property or parameter can have."/>
180 </Term>
181 <Term Name="Maximum" Type="Edm.Int64">
182 <Annotation Term="OData.Description" String="Maximum value that an integer property or parameter can have."/>
183 </Term>
184
185 </Schema>
186
187 </edmx:DataServices>
188</edmx:Edmx>