xref: /openbmc/bmcweb/features/redfish/schema/dmtf/json-schema/MessageRegistryFile.v1_1_5.json (revision f2a8e57ede74a8252100b2281e3f4d170aa69391)
1*f2a8e57eSGunnar Mills{
2*f2a8e57eSGunnar Mills    "$id": "http://redfish.dmtf.org/schemas/v1/MessageRegistryFile.v1_1_5.json",
3*f2a8e57eSGunnar Mills    "$ref": "#/definitions/MessageRegistryFile",
4*f2a8e57eSGunnar Mills    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5*f2a8e57eSGunnar Mills    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6*f2a8e57eSGunnar Mills    "definitions": {
7*f2a8e57eSGunnar Mills        "Actions": {
8*f2a8e57eSGunnar Mills            "additionalProperties": false,
9*f2a8e57eSGunnar Mills            "description": "The available actions for this resource.",
10*f2a8e57eSGunnar Mills            "longDescription": "This type shall contain the available actions for this resource.",
11*f2a8e57eSGunnar Mills            "patternProperties": {
12*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
14*f2a8e57eSGunnar Mills                    "type": [
15*f2a8e57eSGunnar Mills                        "array",
16*f2a8e57eSGunnar Mills                        "boolean",
17*f2a8e57eSGunnar Mills                        "integer",
18*f2a8e57eSGunnar Mills                        "number",
19*f2a8e57eSGunnar Mills                        "null",
20*f2a8e57eSGunnar Mills                        "object",
21*f2a8e57eSGunnar Mills                        "string"
22*f2a8e57eSGunnar Mills                    ]
23*f2a8e57eSGunnar Mills                }
24*f2a8e57eSGunnar Mills            },
25*f2a8e57eSGunnar Mills            "properties": {
26*f2a8e57eSGunnar Mills                "Oem": {
27*f2a8e57eSGunnar Mills                    "$ref": "#/definitions/OemActions",
28*f2a8e57eSGunnar Mills                    "description": "The available OEM-specific actions for this resource.",
29*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the available OEM-specific actions for this resource.",
30*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
31*f2a8e57eSGunnar Mills                }
32*f2a8e57eSGunnar Mills            },
33*f2a8e57eSGunnar Mills            "type": "object"
34*f2a8e57eSGunnar Mills        },
35*f2a8e57eSGunnar Mills        "Location": {
36*f2a8e57eSGunnar Mills            "additionalProperties": false,
37*f2a8e57eSGunnar Mills            "description": "The location information for a registry file.",
38*f2a8e57eSGunnar Mills            "longDescription": "This type shall contain the location information for a registry file.",
39*f2a8e57eSGunnar Mills            "patternProperties": {
40*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
41*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
42*f2a8e57eSGunnar Mills                    "type": [
43*f2a8e57eSGunnar Mills                        "array",
44*f2a8e57eSGunnar Mills                        "boolean",
45*f2a8e57eSGunnar Mills                        "integer",
46*f2a8e57eSGunnar Mills                        "number",
47*f2a8e57eSGunnar Mills                        "null",
48*f2a8e57eSGunnar Mills                        "object",
49*f2a8e57eSGunnar Mills                        "string"
50*f2a8e57eSGunnar Mills                    ]
51*f2a8e57eSGunnar Mills                }
52*f2a8e57eSGunnar Mills            },
53*f2a8e57eSGunnar Mills            "properties": {
54*f2a8e57eSGunnar Mills                "ArchiveFile": {
55*f2a8e57eSGunnar Mills                    "description": "If the service hosts the registry in an archive file, the name of the file within the archive.",
56*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the file name of the individual registry file within the archive file specified by the `ArchiveUri` property.  The file name shall conform to the Redfish Specification-specified syntax.",
57*f2a8e57eSGunnar Mills                    "readonly": true,
58*f2a8e57eSGunnar Mills                    "type": "string"
59*f2a8e57eSGunnar Mills                },
60*f2a8e57eSGunnar Mills                "ArchiveUri": {
61*f2a8e57eSGunnar Mills                    "description": "If the registry is hosted on the service in an archive file, the link to the archive file.",
62*f2a8e57eSGunnar Mills                    "format": "uri-reference",
63*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain a URI that is colocated with the Redfish service that specifies the location of the registry file, which can be retrieved using the Redfish protocol and authentication methods.  This property shall be used for only ZIP or other archive files.  The `ArchiveFile` property shall contain the file name of the individual registry file within the archive file.",
64*f2a8e57eSGunnar Mills                    "readonly": true,
65*f2a8e57eSGunnar Mills                    "type": "string"
66*f2a8e57eSGunnar Mills                },
67*f2a8e57eSGunnar Mills                "Language": {
68*f2a8e57eSGunnar Mills                    "description": "The language code for the registry file.",
69*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain an RFC5646-conformant language code or `default`.",
70*f2a8e57eSGunnar Mills                    "readonly": true,
71*f2a8e57eSGunnar Mills                    "type": "string"
72*f2a8e57eSGunnar Mills                },
73*f2a8e57eSGunnar Mills                "PublicationUri": {
74*f2a8e57eSGunnar Mills                    "description": "The link to publicly available (canonical) URI for the registry.",
75*f2a8e57eSGunnar Mills                    "format": "uri-reference",
76*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain a URI not colocated with the Redfish service that specifies the canonical location of the registry file.  This property shall be used for only individual registry files.",
77*f2a8e57eSGunnar Mills                    "readonly": true,
78*f2a8e57eSGunnar Mills                    "type": "string"
79*f2a8e57eSGunnar Mills                },
80*f2a8e57eSGunnar Mills                "Uri": {
81*f2a8e57eSGunnar Mills                    "description": "The link to locally available URI for the registry.",
82*f2a8e57eSGunnar Mills                    "format": "uri-reference",
83*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain a URI colocated with the Redfish service that specifies the location of the registry file, which can be retrieved using the Redfish protocol and authentication methods.  This property shall be used for only individual registry files.  The file name portion of the URI shall conform to Redfish Specification-specified syntax.",
84*f2a8e57eSGunnar Mills                    "readonly": true,
85*f2a8e57eSGunnar Mills                    "type": "string"
86*f2a8e57eSGunnar Mills                }
87*f2a8e57eSGunnar Mills            },
88*f2a8e57eSGunnar Mills            "type": "object"
89*f2a8e57eSGunnar Mills        },
90*f2a8e57eSGunnar Mills        "MessageRegistryFile": {
91*f2a8e57eSGunnar Mills            "additionalProperties": false,
92*f2a8e57eSGunnar Mills            "description": "The `MessageRegistryFile` schema describes the registry file locator resource.  This referenced registry file can be any type of registry, such as a message registry, privilege registry, or attribute registry.",
93*f2a8e57eSGunnar Mills            "longDescription": "This resource shall represent the registry file locator for a Redfish implementation.",
94*f2a8e57eSGunnar Mills            "patternProperties": {
95*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
96*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
97*f2a8e57eSGunnar Mills                    "type": [
98*f2a8e57eSGunnar Mills                        "array",
99*f2a8e57eSGunnar Mills                        "boolean",
100*f2a8e57eSGunnar Mills                        "integer",
101*f2a8e57eSGunnar Mills                        "number",
102*f2a8e57eSGunnar Mills                        "null",
103*f2a8e57eSGunnar Mills                        "object",
104*f2a8e57eSGunnar Mills                        "string"
105*f2a8e57eSGunnar Mills                    ]
106*f2a8e57eSGunnar Mills                }
107*f2a8e57eSGunnar Mills            },
108*f2a8e57eSGunnar Mills            "properties": {
109*f2a8e57eSGunnar Mills                "@odata.context": {
110*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
111*f2a8e57eSGunnar Mills                },
112*f2a8e57eSGunnar Mills                "@odata.etag": {
113*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
114*f2a8e57eSGunnar Mills                },
115*f2a8e57eSGunnar Mills                "@odata.id": {
116*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
117*f2a8e57eSGunnar Mills                },
118*f2a8e57eSGunnar Mills                "@odata.type": {
119*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
120*f2a8e57eSGunnar Mills                },
121*f2a8e57eSGunnar Mills                "Actions": {
122*f2a8e57eSGunnar Mills                    "$ref": "#/definitions/Actions",
123*f2a8e57eSGunnar Mills                    "description": "The available actions for this resource.",
124*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the available actions for this resource.",
125*f2a8e57eSGunnar Mills                    "versionAdded": "v1_1_0"
126*f2a8e57eSGunnar Mills                },
127*f2a8e57eSGunnar Mills                "Description": {
128*f2a8e57eSGunnar Mills                    "anyOf": [
129*f2a8e57eSGunnar Mills                        {
130*f2a8e57eSGunnar Mills                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
131*f2a8e57eSGunnar Mills                        },
132*f2a8e57eSGunnar Mills                        {
133*f2a8e57eSGunnar Mills                            "type": "null"
134*f2a8e57eSGunnar Mills                        }
135*f2a8e57eSGunnar Mills                    ],
136*f2a8e57eSGunnar Mills                    "readonly": true
137*f2a8e57eSGunnar Mills                },
138*f2a8e57eSGunnar Mills                "Id": {
139*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
140*f2a8e57eSGunnar Mills                    "readonly": true
141*f2a8e57eSGunnar Mills                },
142*f2a8e57eSGunnar Mills                "Languages": {
143*f2a8e57eSGunnar Mills                    "description": "The RFC5646-conformant language codes for the available registries.",
144*f2a8e57eSGunnar Mills                    "items": {
145*f2a8e57eSGunnar Mills                        "type": "string"
146*f2a8e57eSGunnar Mills                    },
147*f2a8e57eSGunnar Mills                    "longDescription": "This property contains a set of RFC5646-conformant language codes.",
148*f2a8e57eSGunnar Mills                    "readonly": true,
149*f2a8e57eSGunnar Mills                    "type": "array"
150*f2a8e57eSGunnar Mills                },
151*f2a8e57eSGunnar Mills                "Location": {
152*f2a8e57eSGunnar Mills                    "description": "The location information for this registry file.",
153*f2a8e57eSGunnar Mills                    "items": {
154*f2a8e57eSGunnar Mills                        "$ref": "#/definitions/Location"
155*f2a8e57eSGunnar Mills                    },
156*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the location information for this registry file.",
157*f2a8e57eSGunnar Mills                    "type": "array"
158*f2a8e57eSGunnar Mills                },
159*f2a8e57eSGunnar Mills                "Name": {
160*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
161*f2a8e57eSGunnar Mills                    "readonly": true
162*f2a8e57eSGunnar Mills                },
163*f2a8e57eSGunnar Mills                "Oem": {
164*f2a8e57eSGunnar Mills                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
165*f2a8e57eSGunnar Mills                    "description": "The OEM extension property.",
166*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
167*f2a8e57eSGunnar Mills                },
168*f2a8e57eSGunnar Mills                "Registry": {
169*f2a8e57eSGunnar Mills                    "description": "The registry name and its major and minor versions.  This registry can be any type of registry, such as a message registry, privilege registry, or attribute registry.",
170*f2a8e57eSGunnar Mills                    "longDescription": "This property shall contain the registry name and it major and minor versions, as defined by the Redfish Specification.  This registry can be any type of registry, such as message registry, privilege registry, or attribute registry.",
171*f2a8e57eSGunnar Mills                    "readonly": true,
172*f2a8e57eSGunnar Mills                    "type": "string"
173*f2a8e57eSGunnar Mills                }
174*f2a8e57eSGunnar Mills            },
175*f2a8e57eSGunnar Mills            "required": [
176*f2a8e57eSGunnar Mills                "Languages",
177*f2a8e57eSGunnar Mills                "Registry",
178*f2a8e57eSGunnar Mills                "Location",
179*f2a8e57eSGunnar Mills                "@odata.id",
180*f2a8e57eSGunnar Mills                "@odata.type",
181*f2a8e57eSGunnar Mills                "Id",
182*f2a8e57eSGunnar Mills                "Name"
183*f2a8e57eSGunnar Mills            ],
184*f2a8e57eSGunnar Mills            "type": "object"
185*f2a8e57eSGunnar Mills        },
186*f2a8e57eSGunnar Mills        "OemActions": {
187*f2a8e57eSGunnar Mills            "additionalProperties": true,
188*f2a8e57eSGunnar Mills            "description": "The available OEM-specific actions for this resource.",
189*f2a8e57eSGunnar Mills            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
190*f2a8e57eSGunnar Mills            "patternProperties": {
191*f2a8e57eSGunnar Mills                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
192*f2a8e57eSGunnar Mills                    "description": "This property shall specify a valid odata or Redfish property.",
193*f2a8e57eSGunnar Mills                    "type": [
194*f2a8e57eSGunnar Mills                        "array",
195*f2a8e57eSGunnar Mills                        "boolean",
196*f2a8e57eSGunnar Mills                        "integer",
197*f2a8e57eSGunnar Mills                        "number",
198*f2a8e57eSGunnar Mills                        "null",
199*f2a8e57eSGunnar Mills                        "object",
200*f2a8e57eSGunnar Mills                        "string"
201*f2a8e57eSGunnar Mills                    ]
202*f2a8e57eSGunnar Mills                }
203*f2a8e57eSGunnar Mills            },
204*f2a8e57eSGunnar Mills            "properties": {},
205*f2a8e57eSGunnar Mills            "type": "object"
206*f2a8e57eSGunnar Mills        }
207*f2a8e57eSGunnar Mills    },
208*f2a8e57eSGunnar Mills    "language": "en",
209*f2a8e57eSGunnar Mills    "owningEntity": "DMTF",
210*f2a8e57eSGunnar Mills    "release": "2017.1",
211*f2a8e57eSGunnar Mills    "title": "#MessageRegistryFile.v1_1_5.MessageRegistryFile"
212*f2a8e57eSGunnar Mills}