blob: f12a12e8d810d358b81a2cc555b802b413117ec7 [file] [log] [blame]
Jason M. Billsea4aa752018-06-05 13:29:11 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!---->
3<!--################################################################################ -->
Ed Tanous530520e2019-01-02 13:41:37 -08004<!--# Redfish Schema: Role v1.2.2-->
Jason M. Billsea4aa752018-06-05 13:29:11 -07005<!--# -->
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://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/RedfishExtensions_v1.xml">
21 <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
22 </edmx:Reference>
23 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
24 <edmx:Include Namespace="Resource.v1_0_0"/>
25 </edmx:Reference>
26 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Privileges_v1.xml">
27 <edmx:Include Namespace="Privileges"/>
28 </edmx:Reference>
29
30 <edmx:DataServices>
31
32 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role">
33 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
34
35 <EntityType Name="Role" BaseType="Resource.v1_0_0.Resource" Abstract="true">
36 <Annotation Term="OData.Description" String="This schema defines a user role to be used in conjunction with a manager account."/>
37 <Annotation Term="OData.LongDescription" String="This resource shall be used to represent resources that represent the user role for the user account."/>
38 <Annotation Term="Capabilities.InsertRestrictions">
39 <Record>
40 <PropertyValue Property="Insertable" Bool="false"/>
41 </Record>
42 </Annotation>
43 <Annotation Term="Capabilities.UpdateRestrictions">
44 <Record>
45 <PropertyValue Property="Updatable" Bool="true"/>
46 <Annotation Term="OData.Description" String="Roles can be updated to change various priveleges."/>
47 </Record>
48 </Annotation>
49 <Annotation Term="Capabilities.DeleteRestrictions">
50 <Record>
51 <PropertyValue Property="Deletable" Bool="false"/>
52 </Record>
53 </Annotation>
Ed Tanous530520e2019-01-02 13:41:37 -080054 <Annotation Term="Redfish.Uris">
55 <Collection>
56 <String>/redfish/v1/AccountService/Roles/{RoleId}</String>
57 <String>/redfish/v1/Managers/{ManagerId}/RemoteAccountService/Roles/{RoleId}</String>
58 </Collection>
59 </Annotation>
Jason M. Billsea4aa752018-06-05 13:29:11 -070060 </EntityType>
61
62 </Schema>
63
64 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_0">
65 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
66
67 <EntityType Name="Role" BaseType="Role.Role">
68 <Annotation Term="OData.Description" String="This resource defines a user role to be used in conjunction with a Manager Account."/>
69 <Annotation Term="OData.LongDescription" String="This resource shall be used to represent resources that represent the user role for the user account."/>
70 <Property Name="IsPredefined" Type="Edm.Boolean" Nullable="false" DefaultValue="false">
71 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
72 <Annotation Term="OData.Description" String="This property is used to indicate if the Role is one of the Redfish Predefined Roles vs a Custom role."/>
73 <Annotation Term="OData.LongDescription" String="The value of this property shall indicate if the role is a predefined role. ."/>
74 </Property>
75 <Property Name="AssignedPrivileges" Type="Collection(Privileges.PrivilegeType)" Nullable="false">
76 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
77 <Annotation Term="OData.Description" String="The redfish privileges that this role includes."/>
78 <Annotation Term="OData.LongDescription" String="The value of this property shall be the redfish privileges that the role includes. For pre-defined roles, this property shall be readOnly. For custom roles some implementations may not allow writing this property."/>
79 </Property>
80 <Property Name="OemPrivileges" Type="Collection(Edm.String)" Nullable="false">
81 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
82 <Annotation Term="OData.Description" String="The OEM privileges that this role includes."/>
83 <Annotation Term="OData.LongDescription" String="The value of this property shall be the OEM privileges that this role includes. For pre-defined roles, this property shall be readOnly. For custom roles some implementations may not allow writing this property."/>
84 </Property>
85 </EntityType>
86
87 </Schema>
88
89 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_2">
90 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
91 <Annotation Term="OData.Description" String="This version was created to show annotations in previous namespaces were updated."/>
92 <EntityType Name="Role" BaseType="Role.v1_0_0.Role"/>
93 </Schema>
94
95 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_3">
96 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
97 <Annotation Term="OData.Description" String="This version was created to change references to PrivilegeType to use the unversioned definition."/>
98 <EntityType Name="Role" BaseType="Role.v1_0_2.Role"/>
99 </Schema>
100
Ed Tanous530520e2019-01-02 13:41:37 -0800101 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_4">
102 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
103 <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."/>
104 <EntityType Name="Role" BaseType="Role.v1_0_3.Role"/>
105 </Schema>
106
Jason M. Billsea4aa752018-06-05 13:29:11 -0700107 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_1_0">
108 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
109 <EntityType Name="Role" BaseType="Role.v1_0_2.Role">
110 <Property Name="Actions" Type="Role.v1_1_0.Actions" Nullable="false">
111 <Annotation Term="OData.Description" String="The available actions for this resource."/>
112 <Annotation Term="OData.LongDescription" String="The Actions property shall contain the available actions for this resource."/>
113 </Property>
114 </EntityType>
115
116 <ComplexType Name="Actions">
117 <Annotation Term="OData.AdditionalProperties" Bool="false"/>
118 <Annotation Term="OData.Description" String="The available actions for this resource."/>
119 <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
Ed Tanous530520e2019-01-02 13:41:37 -0800120 <Property Name="Oem" Type="Role.v1_1_0.OemActions" Nullable="false">
121 <Annotation Term="OData.Description" String="This property contains the available OEM specific actions for this resource."/>
122 <Annotation Term="OData.LongDescription" String="This property shall contain any additional OEM actions for this resource."/>
123 </Property>
Jason M. Billsea4aa752018-06-05 13:29:11 -0700124 </ComplexType>
125
126 <ComplexType Name="OemActions">
127 <Annotation Term="OData.AdditionalProperties" Bool="true"/>
128 <Annotation Term="OData.Description" String="The available OEM specific actions for this resource."/>
129 <Annotation Term="OData.LongDescription" String="This type shall contain any additional OEM actions for this resource."/>
130 </ComplexType>
131 </Schema>
132
133 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_1_1">
134 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
135 <Annotation Term="OData.Description" String="This version was created to change references to PrivilegeType to use the unversioned definition."/>
136 <EntityType Name="Role" BaseType="Role.v1_1_0.Role"/>
137 </Schema>
138
Ed Tanous530520e2019-01-02 13:41:37 -0800139 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_1_2">
140 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
141 <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."/>
142 <EntityType Name="Role" BaseType="Role.v1_1_1.Role"/>
143 </Schema>
144
Jason M. Billsea4aa752018-06-05 13:29:11 -0700145 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_2_0">
146 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
147 <EntityType Name="Role" BaseType="Role.v1_1_0.Role">
148 <Property Name="RoleId" Type="Edm.String" Nullable="false">
149 <Annotation Term="Redfish.RequiredOnCreate"/>
150 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
151 <Annotation Term="OData.Description" String="This property contains the name of the Role."/>
152 <Annotation Term="OData.LongDescription" String="This property shall contain the string name of the Role. This property shall contain the same value as the Id property."/>
153 </Property>
154 </EntityType>
155 </Schema>
156
157 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_2_1">
158 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
159 <Annotation Term="OData.Description" String="This version was created to change references to PrivilegeType to use the unversioned definition."/>
160 <EntityType Name="Role" BaseType="Role.v1_2_0.Role"/>
161 </Schema>
162
Ed Tanous530520e2019-01-02 13:41:37 -0800163 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_2_2">
164 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
165 <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."/>
166 <EntityType Name="Role" BaseType="Role.v1_2_1.Role"/>
167 </Schema>
168
Jason M. Billsea4aa752018-06-05 13:29:11 -0700169 </edmx:DataServices>
170</edmx:Edmx>