Jason M. Bills | ea4aa75 | 2018-06-05 13:29:11 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!----> |
| 3 | <!--################################################################################ --> |
| 4 | <!--# Redfish Schema: Role v1.2.1--> |
| 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-2017 Distributed Management Task Force, Inc. (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/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> |
| 54 | </EntityType> |
| 55 | |
| 56 | </Schema> |
| 57 | |
| 58 | <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_0"> |
| 59 | <Annotation Term="Redfish.OwningEntity" String="DMTF"/> |
| 60 | |
| 61 | <EntityType Name="Role" BaseType="Role.Role"> |
| 62 | <Annotation Term="OData.Description" String="This resource defines a user role to be used in conjunction with a Manager Account."/> |
| 63 | <Annotation Term="OData.LongDescription" String="This resource shall be used to represent resources that represent the user role for the user account."/> |
| 64 | <Property Name="IsPredefined" Type="Edm.Boolean" Nullable="false" DefaultValue="false"> |
| 65 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> |
| 66 | <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."/> |
| 67 | <Annotation Term="OData.LongDescription" String="The value of this property shall indicate if the role is a predefined role. ."/> |
| 68 | </Property> |
| 69 | <Property Name="AssignedPrivileges" Type="Collection(Privileges.PrivilegeType)" Nullable="false"> |
| 70 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/> |
| 71 | <Annotation Term="OData.Description" String="The redfish privileges that this role includes."/> |
| 72 | <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."/> |
| 73 | </Property> |
| 74 | <Property Name="OemPrivileges" Type="Collection(Edm.String)" Nullable="false"> |
| 75 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/> |
| 76 | <Annotation Term="OData.Description" String="The OEM privileges that this role includes."/> |
| 77 | <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."/> |
| 78 | </Property> |
| 79 | </EntityType> |
| 80 | |
| 81 | </Schema> |
| 82 | |
| 83 | <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_2"> |
| 84 | <Annotation Term="Redfish.OwningEntity" String="DMTF"/> |
| 85 | <Annotation Term="OData.Description" String="This version was created to show annotations in previous namespaces were updated."/> |
| 86 | <EntityType Name="Role" BaseType="Role.v1_0_0.Role"/> |
| 87 | </Schema> |
| 88 | |
| 89 | <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_3"> |
| 90 | <Annotation Term="Redfish.OwningEntity" String="DMTF"/> |
| 91 | <Annotation Term="OData.Description" String="This version was created to change references to PrivilegeType to use the unversioned definition."/> |
| 92 | <EntityType Name="Role" BaseType="Role.v1_0_2.Role"/> |
| 93 | </Schema> |
| 94 | |
| 95 | <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_1_0"> |
| 96 | <Annotation Term="Redfish.OwningEntity" String="DMTF"/> |
| 97 | <EntityType Name="Role" BaseType="Role.v1_0_2.Role"> |
| 98 | <Property Name="Actions" Type="Role.v1_1_0.Actions" Nullable="false"> |
| 99 | <Annotation Term="OData.Description" String="The available actions for this resource."/> |
| 100 | <Annotation Term="OData.LongDescription" String="The Actions property shall contain the available actions for this resource."/> |
| 101 | </Property> |
| 102 | </EntityType> |
| 103 | |
| 104 | <ComplexType Name="Actions"> |
| 105 | <Annotation Term="OData.AdditionalProperties" Bool="false"/> |
| 106 | <Annotation Term="OData.Description" String="The available actions for this resource."/> |
| 107 | <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/> |
| 108 | <Property Name="Oem" Type="Role.v1_1_0.OemActions" Nullable="false"/> |
| 109 | </ComplexType> |
| 110 | |
| 111 | <ComplexType Name="OemActions"> |
| 112 | <Annotation Term="OData.AdditionalProperties" Bool="true"/> |
| 113 | <Annotation Term="OData.Description" String="The available OEM specific actions for this resource."/> |
| 114 | <Annotation Term="OData.LongDescription" String="This type shall contain any additional OEM actions for this resource."/> |
| 115 | </ComplexType> |
| 116 | </Schema> |
| 117 | |
| 118 | <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_1_1"> |
| 119 | <Annotation Term="Redfish.OwningEntity" String="DMTF"/> |
| 120 | <Annotation Term="OData.Description" String="This version was created to change references to PrivilegeType to use the unversioned definition."/> |
| 121 | <EntityType Name="Role" BaseType="Role.v1_1_0.Role"/> |
| 122 | </Schema> |
| 123 | |
| 124 | <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_2_0"> |
| 125 | <Annotation Term="Redfish.OwningEntity" String="DMTF"/> |
| 126 | <EntityType Name="Role" BaseType="Role.v1_1_0.Role"> |
| 127 | <Property Name="RoleId" Type="Edm.String" Nullable="false"> |
| 128 | <Annotation Term="Redfish.RequiredOnCreate"/> |
| 129 | <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/> |
| 130 | <Annotation Term="OData.Description" String="This property contains the name of the Role."/> |
| 131 | <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."/> |
| 132 | </Property> |
| 133 | </EntityType> |
| 134 | </Schema> |
| 135 | |
| 136 | <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_2_1"> |
| 137 | <Annotation Term="Redfish.OwningEntity" String="DMTF"/> |
| 138 | <Annotation Term="OData.Description" String="This version was created to change references to PrivilegeType to use the unversioned definition."/> |
| 139 | <EntityType Name="Role" BaseType="Role.v1_2_0.Role"/> |
| 140 | </Schema> |
| 141 | |
| 142 | </edmx:DataServices> |
| 143 | </edmx:Edmx> |