Ed Tanous | 683f727 | 2018-07-26 12:47:19 -0700 | [diff] [blame^] | 1 | { |
| 2 | "$ref": "#/definitions/MessageRegistry", |
| 3 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_3_0.json", |
| 4 | "copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
| 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": { |
| 11 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 12 | "description": "This property shall specify a valid odata or Redfish property.", |
| 13 | "type": [ |
| 14 | "array", |
| 15 | "boolean", |
| 16 | "number", |
| 17 | "null", |
| 18 | "object", |
| 19 | "string" |
| 20 | ] |
| 21 | } |
| 22 | }, |
| 23 | "properties": { |
| 24 | "Oem": { |
| 25 | "$ref": "#/definitions/OemActions" |
| 26 | } |
| 27 | }, |
| 28 | "type": "object" |
| 29 | }, |
| 30 | "Message": { |
| 31 | "additionalProperties": false, |
| 32 | "description": "This type shall reprensent how a message is defined within the registry.", |
| 33 | "longDescription": "The type shall represent how a message is defined within within a message registry.", |
| 34 | "patternProperties": { |
| 35 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 36 | "description": "This property shall specify a valid odata or Redfish property.", |
| 37 | "type": [ |
| 38 | "array", |
| 39 | "boolean", |
| 40 | "number", |
| 41 | "null", |
| 42 | "object", |
| 43 | "string" |
| 44 | ] |
| 45 | } |
| 46 | }, |
| 47 | "properties": { |
| 48 | "Description": { |
| 49 | "description": "This is a short description of how and when this message is to be used.", |
| 50 | "longDescription": "The value of this property shall indicate how and when this message is returned by the Redfish service.", |
| 51 | "readonly": true, |
| 52 | "type": "string" |
| 53 | }, |
| 54 | "Message": { |
| 55 | "description": "The actual message.", |
| 56 | "longDescription": "The value of this property shall be the message to be displayed. If a %integer is included in part of the string, it shall be used to represent a string substitution for any MessageArgs accompanying the message, in order.", |
| 57 | "readonly": true, |
| 58 | "type": "string" |
| 59 | }, |
| 60 | "NumberOfArgs": { |
| 61 | "description": "The number of arguments to be expected to be passed in as MessageArgs for this message.", |
| 62 | "longDescription": "The value of this property shall be the number of MessageArgs that are expected to be substituted in the Message in the locations within the Message marked by %<integer>.", |
| 63 | "minimum": 0, |
| 64 | "readonly": true, |
| 65 | "type": "number" |
| 66 | }, |
| 67 | "Oem": { |
| 68 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 69 | "description": "Oem extension object.", |
| 70 | "longDescription": "This object represents the Oem property. All values for resources described by this schema shall comply to the requirements as described in the Redfish specification." |
| 71 | }, |
| 72 | "ParamTypes": { |
| 73 | "description": "The MessageArg types, in order, for the message.", |
| 74 | "items": { |
| 75 | "$ref": "#/definitions/ParamType" |
| 76 | }, |
| 77 | "longDescription": "The value of this property shall be an ordered array of parameter types which match the types of the MessageArgs, in order.", |
| 78 | "readonly": true, |
| 79 | "type": "array" |
| 80 | }, |
| 81 | "Resolution": { |
| 82 | "description": "Used to provide suggestions on how to resolve the situation that caused the error.", |
| 83 | "longDescription": "This property shall contain an override of the Resolution of the message in message registry, if present.", |
| 84 | "readonly": true, |
| 85 | "type": "string" |
| 86 | }, |
| 87 | "Severity": { |
| 88 | "description": "This is the severity of the message.", |
| 89 | "longDescription": "The value of this property shall be the severity of the condition resulting in the message, as defined in the Status section of the Redfish specification.", |
| 90 | "readonly": true, |
| 91 | "type": "string" |
| 92 | } |
| 93 | }, |
| 94 | "required": [ |
| 95 | "Description", |
| 96 | "Message", |
| 97 | "Severity", |
| 98 | "NumberOfArgs", |
| 99 | "Resolution" |
| 100 | ], |
| 101 | "type": "object" |
| 102 | }, |
| 103 | "MessageProperty": { |
| 104 | "additionalProperties": false, |
| 105 | "description": "The pattern type indicates that a free-form string is the unique identifier for the message within the registry.", |
| 106 | "longDescription": "The pattern type shall represent the suffix to be used in the MessageId and shall be unique within this message registry.", |
| 107 | "patternProperties": { |
| 108 | "[A-Za-z0-9]+": { |
| 109 | "$ref": "#/definitions/Message" |
| 110 | }, |
| 111 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 112 | "description": "This property shall specify a valid odata or Redfish property.", |
| 113 | "type": [ |
| 114 | "array", |
| 115 | "boolean", |
| 116 | "number", |
| 117 | "null", |
| 118 | "object", |
| 119 | "string" |
| 120 | ] |
| 121 | } |
| 122 | }, |
| 123 | "properties": {}, |
| 124 | "type": "object" |
| 125 | }, |
| 126 | "MessageRegistry": { |
| 127 | "additionalProperties": false, |
| 128 | "description": "This is the schema definition for all Message Registries. It represents the properties for the registries themselves. The MessageId is formed per the Redfish specification. It consists of the RegistryPrefix concatenated with the version concatenated with the unique identifier for the message registry entry.", |
| 129 | "longDescription": "This resource shall be used to represent a message registry for a Redfish implementation.", |
| 130 | "patternProperties": { |
| 131 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 132 | "description": "This property shall specify a valid odata or Redfish property.", |
| 133 | "type": [ |
| 134 | "array", |
| 135 | "boolean", |
| 136 | "number", |
| 137 | "null", |
| 138 | "object", |
| 139 | "string" |
| 140 | ] |
| 141 | } |
| 142 | }, |
| 143 | "properties": { |
| 144 | "@odata.context": { |
| 145 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/context" |
| 146 | }, |
| 147 | "@odata.id": { |
| 148 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/id" |
| 149 | }, |
| 150 | "@odata.type": { |
| 151 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/type" |
| 152 | }, |
| 153 | "Actions": { |
| 154 | "$ref": "#/definitions/Actions", |
| 155 | "description": "The available actions for this resource.", |
| 156 | "longDescription": "The Actions property shall contain the available actions for this resource." |
| 157 | }, |
| 158 | "Description": { |
| 159 | "anyOf": [ |
| 160 | { |
| 161 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 162 | }, |
| 163 | { |
| 164 | "type": "null" |
| 165 | } |
| 166 | ], |
| 167 | "readonly": true |
| 168 | }, |
| 169 | "Id": { |
| 170 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 171 | "readonly": true |
| 172 | }, |
| 173 | "Language": { |
| 174 | "description": "This is the RFC 5646 compliant language code for the registry.", |
| 175 | "longDescription": "The value of this property shall be a string consisting of an RFC 5646 language code.", |
| 176 | "readonly": true, |
| 177 | "type": "string" |
| 178 | }, |
| 179 | "Messages": { |
| 180 | "$ref": "#/definitions/MessageProperty", |
| 181 | "description": "The pattern property indicates that a free-form string is the unique identifier for the message within the registry.", |
| 182 | "longDescription": "The pattern property shall represent the suffix to be used in the MessageId and shall be unique within this message registry." |
| 183 | }, |
| 184 | "Name": { |
| 185 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 186 | "readonly": true |
| 187 | }, |
| 188 | "Oem": { |
| 189 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 190 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 191 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 192 | }, |
| 193 | "OwningEntity": { |
| 194 | "description": "This is the organization or company that publishes this registry.", |
| 195 | "longDescription": "The value of this property shall be a string that represents the publisher of this registry.", |
| 196 | "readonly": true, |
| 197 | "type": "string" |
| 198 | }, |
| 199 | "RegistryPrefix": { |
| 200 | "description": "This is the single word prefix used to form a messageID structure.", |
| 201 | "longDescription": "The value of this property shall be the prefix used in messageIDs which uniquely identifies all of the messages in this registry as belonging to this registry.", |
| 202 | "readonly": true, |
| 203 | "type": "string" |
| 204 | }, |
| 205 | "RegistryVersion": { |
| 206 | "description": "This is the message registry version which is used in the middle portion of a messageID.", |
| 207 | "longDescription": "The value of this property shall be the version of this message registry. The format of this string shall be of the format majorversion.minorversion.errata in compliance with Protocol Version section of the Redfish specification.", |
| 208 | "readonly": true, |
| 209 | "type": "string" |
| 210 | } |
| 211 | }, |
| 212 | "required": [ |
| 213 | "Language", |
| 214 | "RegistryPrefix", |
| 215 | "RegistryVersion", |
| 216 | "OwningEntity", |
| 217 | "Messages", |
| 218 | "Id", |
| 219 | "Name" |
| 220 | ], |
| 221 | "type": "object" |
| 222 | }, |
| 223 | "OemActions": { |
| 224 | "additionalProperties": true, |
| 225 | "description": "The available OEM specific actions for this resource.", |
| 226 | "longDescription": "This type shall contain any additional OEM actions for this resource.", |
| 227 | "patternProperties": { |
| 228 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 229 | "description": "This property shall specify a valid odata or Redfish property.", |
| 230 | "type": [ |
| 231 | "array", |
| 232 | "boolean", |
| 233 | "number", |
| 234 | "null", |
| 235 | "object", |
| 236 | "string" |
| 237 | ] |
| 238 | } |
| 239 | }, |
| 240 | "properties": {}, |
| 241 | "type": "object" |
| 242 | }, |
| 243 | "ParamType": { |
| 244 | "enum": [ |
| 245 | "string", |
| 246 | "number" |
| 247 | ], |
| 248 | "enumDescriptions": { |
| 249 | "number": "The parameter is a number.", |
| 250 | "string": "The parameter is a string." |
| 251 | }, |
| 252 | "type": "string" |
| 253 | } |
| 254 | }, |
| 255 | "title": "#MessageRegistry.v1_1_1.MessageRegistry" |
| 256 | } |