Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 1 | { |
| 2 | "$ref": "#/definitions/Role", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 3 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", |
| 4 | "copyright": "Copyright 2014-2018 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 5 | "definitions": { |
| 6 | "Actions": { |
| 7 | "additionalProperties": false, |
| 8 | "description": "The available actions for this resource.", |
| 9 | "longDescription": "This type shall contain the available actions for this resource.", |
| 10 | "patternProperties": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 11 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 12 | "description": "This property shall specify a valid odata or Redfish property.", |
| 13 | "type": [ |
| 14 | "array", |
| 15 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 16 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 17 | "number", |
| 18 | "null", |
| 19 | "object", |
| 20 | "string" |
| 21 | ] |
| 22 | } |
| 23 | }, |
| 24 | "properties": { |
| 25 | "Oem": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 26 | "$ref": "#/definitions/OemActions", |
| 27 | "description": "This property contains the available OEM specific actions for this resource.", |
| 28 | "longDescription": "This property shall contain any additional OEM actions for this resource." |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 29 | } |
| 30 | }, |
| 31 | "type": "object" |
| 32 | }, |
| 33 | "OemActions": { |
| 34 | "additionalProperties": true, |
| 35 | "description": "The available OEM specific actions for this resource.", |
| 36 | "longDescription": "This type shall contain any additional OEM actions for this resource.", |
| 37 | "patternProperties": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 38 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 39 | "description": "This property shall specify a valid odata or Redfish property.", |
| 40 | "type": [ |
| 41 | "array", |
| 42 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 43 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 44 | "number", |
| 45 | "null", |
| 46 | "object", |
| 47 | "string" |
| 48 | ] |
| 49 | } |
| 50 | }, |
| 51 | "properties": {}, |
| 52 | "type": "object" |
| 53 | }, |
| 54 | "Role": { |
| 55 | "additionalProperties": false, |
| 56 | "description": "This resource defines a user role to be used in conjunction with a Manager Account.", |
| 57 | "longDescription": "This resource shall be used to represent resources that represent the user role for the user account.", |
| 58 | "patternProperties": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 59 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 60 | "description": "This property shall specify a valid odata or Redfish property.", |
| 61 | "type": [ |
| 62 | "array", |
| 63 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 64 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 65 | "number", |
| 66 | "null", |
| 67 | "object", |
| 68 | "string" |
| 69 | ] |
| 70 | } |
| 71 | }, |
| 72 | "properties": { |
| 73 | "@odata.context": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 74 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/context" |
| 75 | }, |
| 76 | "@odata.etag": { |
| 77 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/etag" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 78 | }, |
| 79 | "@odata.id": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 80 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/id" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 81 | }, |
| 82 | "@odata.type": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 83 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/type" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 84 | }, |
| 85 | "Actions": { |
| 86 | "$ref": "#/definitions/Actions", |
| 87 | "description": "The available actions for this resource.", |
| 88 | "longDescription": "The Actions property shall contain the available actions for this resource." |
| 89 | }, |
| 90 | "AssignedPrivileges": { |
| 91 | "description": "The redfish privileges that this role includes.", |
| 92 | "items": { |
| 93 | "$ref": "http://redfish.dmtf.org/schemas/v1/Privileges.json#/definitions/PrivilegeType" |
| 94 | }, |
| 95 | "longDescription": "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.", |
| 96 | "readonly": false, |
| 97 | "type": "array" |
| 98 | }, |
| 99 | "Description": { |
| 100 | "anyOf": [ |
| 101 | { |
| 102 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 103 | }, |
| 104 | { |
| 105 | "type": "null" |
| 106 | } |
| 107 | ], |
| 108 | "readonly": true |
| 109 | }, |
| 110 | "Id": { |
| 111 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 112 | "readonly": true |
| 113 | }, |
| 114 | "IsPredefined": { |
| 115 | "description": "This property is used to indicate if the Role is one of the Redfish Predefined Roles vs a Custom role.", |
| 116 | "longDescription": "The value of this property shall indicate if the role is a predefined role. .", |
| 117 | "readonly": true, |
| 118 | "type": "boolean" |
| 119 | }, |
| 120 | "Name": { |
| 121 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 122 | "readonly": true |
| 123 | }, |
| 124 | "Oem": { |
| 125 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 126 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 127 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 128 | }, |
| 129 | "OemPrivileges": { |
| 130 | "description": "The OEM privileges that this role includes.", |
| 131 | "items": { |
| 132 | "type": "string" |
| 133 | }, |
| 134 | "longDescription": "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.", |
| 135 | "readonly": false, |
| 136 | "type": "array" |
| 137 | }, |
| 138 | "RoleId": { |
| 139 | "description": "This property contains the name of the Role.", |
| 140 | "longDescription": "This property shall contain the string name of the Role. This property shall contain the same value as the Id property.", |
| 141 | "readonly": true, |
| 142 | "type": "string" |
| 143 | } |
| 144 | }, |
| 145 | "required": [ |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 146 | "@odata.id", |
| 147 | "@odata.type", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 148 | "Id", |
| 149 | "Name" |
| 150 | ], |
| 151 | "requiredOnCreate": [ |
| 152 | "RoleId" |
| 153 | ], |
| 154 | "type": "object" |
| 155 | } |
| 156 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 157 | "owningEntity": "DMTF", |
| 158 | "title": "#Role.v1_2_2.Role" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 159 | } |