blob: 8503732a243d4c46683e1a2616a339a5cad38e0c [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"/>
Marri Devender Raod45d2d02019-01-21 10:11:34 -060066 <Annotation Term="Redfish.Release" String="1.0"/>
Jason M. Billsea4aa752018-06-05 13:29:11 -070067
68 <EntityType Name="Role" BaseType="Role.Role">
69 <Annotation Term="OData.Description" String="This resource defines a user role to be used in conjunction with a Manager Account."/>
70 <Annotation Term="OData.LongDescription" String="This resource shall be used to represent resources that represent the user role for the user account."/>
71 <Property Name="IsPredefined" Type="Edm.Boolean" Nullable="false" DefaultValue="false">
72 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
73 <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."/>
74 <Annotation Term="OData.LongDescription" String="The value of this property shall indicate if the role is a predefined role. ."/>
75 </Property>
76 <Property Name="AssignedPrivileges" Type="Collection(Privileges.PrivilegeType)" Nullable="false">
77 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
78 <Annotation Term="OData.Description" String="The redfish privileges that this role includes."/>
79 <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."/>
80 </Property>
81 <Property Name="OemPrivileges" Type="Collection(Edm.String)" Nullable="false">
82 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
83 <Annotation Term="OData.Description" String="The OEM privileges that this role includes."/>
84 <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."/>
85 </Property>
86 </EntityType>
87
88 </Schema>
89
90 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_2">
91 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
92 <Annotation Term="OData.Description" String="This version was created to show annotations in previous namespaces were updated."/>
93 <EntityType Name="Role" BaseType="Role.v1_0_0.Role"/>
94 </Schema>
95
96 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_3">
97 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
98 <Annotation Term="OData.Description" String="This version was created to change references to PrivilegeType to use the unversioned definition."/>
99 <EntityType Name="Role" BaseType="Role.v1_0_2.Role"/>
100 </Schema>
101
Ed Tanous530520e2019-01-02 13:41:37 -0800102 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_4">
103 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
104 <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."/>
105 <EntityType Name="Role" BaseType="Role.v1_0_3.Role"/>
106 </Schema>
107
Jason M. Billsea4aa752018-06-05 13:29:11 -0700108 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_1_0">
109 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600110 <Annotation Term="Redfish.Release" String="2017.1"/>
Jason M. Billsea4aa752018-06-05 13:29:11 -0700111 <EntityType Name="Role" BaseType="Role.v1_0_2.Role">
112 <Property Name="Actions" Type="Role.v1_1_0.Actions" Nullable="false">
113 <Annotation Term="OData.Description" String="The available actions for this resource."/>
114 <Annotation Term="OData.LongDescription" String="The Actions property shall contain the available actions for this resource."/>
115 </Property>
116 </EntityType>
117
118 <ComplexType Name="Actions">
119 <Annotation Term="OData.AdditionalProperties" Bool="false"/>
120 <Annotation Term="OData.Description" String="The available actions for this resource."/>
121 <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
Ed Tanous530520e2019-01-02 13:41:37 -0800122 <Property Name="Oem" Type="Role.v1_1_0.OemActions" Nullable="false">
123 <Annotation Term="OData.Description" String="This property contains the available OEM specific actions for this resource."/>
124 <Annotation Term="OData.LongDescription" String="This property shall contain any additional OEM actions for this resource."/>
125 </Property>
Jason M. Billsea4aa752018-06-05 13:29:11 -0700126 </ComplexType>
127
128 <ComplexType Name="OemActions">
129 <Annotation Term="OData.AdditionalProperties" Bool="true"/>
130 <Annotation Term="OData.Description" String="The available OEM specific actions for this resource."/>
131 <Annotation Term="OData.LongDescription" String="This type shall contain any additional OEM actions for this resource."/>
132 </ComplexType>
133 </Schema>
134
135 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_1_1">
136 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
137 <Annotation Term="OData.Description" String="This version was created to change references to PrivilegeType to use the unversioned definition."/>
138 <EntityType Name="Role" BaseType="Role.v1_1_0.Role"/>
139 </Schema>
140
Ed Tanous530520e2019-01-02 13:41:37 -0800141 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_1_2">
142 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
143 <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."/>
144 <EntityType Name="Role" BaseType="Role.v1_1_1.Role"/>
145 </Schema>
146
Jason M. Billsea4aa752018-06-05 13:29:11 -0700147 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_2_0">
148 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
Marri Devender Raod45d2d02019-01-21 10:11:34 -0600149 <Annotation Term="Redfish.Release" String="2017.2"/>
Jason M. Billsea4aa752018-06-05 13:29:11 -0700150 <EntityType Name="Role" BaseType="Role.v1_1_0.Role">
151 <Property Name="RoleId" Type="Edm.String" Nullable="false">
152 <Annotation Term="Redfish.RequiredOnCreate"/>
153 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
154 <Annotation Term="OData.Description" String="This property contains the name of the Role."/>
155 <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."/>
156 </Property>
157 </EntityType>
158 </Schema>
159
160 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_2_1">
161 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
162 <Annotation Term="OData.Description" String="This version was created to change references to PrivilegeType to use the unversioned definition."/>
163 <EntityType Name="Role" BaseType="Role.v1_2_0.Role"/>
164 </Schema>
165
Ed Tanous530520e2019-01-02 13:41:37 -0800166 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_2_2">
167 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
168 <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."/>
169 <EntityType Name="Role" BaseType="Role.v1_2_1.Role"/>
170 </Schema>
171
Jason M. Billsea4aa752018-06-05 13:29:11 -0700172 </edmx:DataServices>
173</edmx:Edmx>