blob: 0333c51a75718a32eaf865f0f1034b30c74ca29a [file] [log] [blame]
Ed Tanous530520e2019-01-02 13:41:37 -08001{
Ed Tanouscb103132019-10-08 11:34:22 -07002 "$id": "http://redfish.dmtf.org/schemas/v1/Schedule.v1_2_1.json",
Ed Tanous530520e2019-01-02 13:41:37 -08003 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
Ed Tanouscb103132019-10-08 11:34:22 -07004 "copyright": "Copyright 2014-2019 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
Ed Tanous530520e2019-01-02 13:41:37 -08005 "definitions": {
6 "DayOfWeek": {
Ed Tanouscb103132019-10-08 11:34:22 -07007 "description": "Days of the week.",
Ed Tanous530520e2019-01-02 13:41:37 -08008 "enum": [
9 "Monday",
10 "Tuesday",
11 "Wednesday",
12 "Thursday",
13 "Friday",
14 "Saturday",
15 "Sunday",
16 "Every"
17 ],
18 "enumDescriptions": {
19 "Every": "Every day of the week.",
20 "Friday": "Friday.",
21 "Monday": "Monday.",
22 "Saturday": "Saturday.",
23 "Sunday": "Sunday.",
24 "Thursday": "Thursday.",
25 "Tuesday": "Tuesday.",
26 "Wednesday": "Wednesday."
27 },
28 "enumLongDescriptions": {
Ed Tanouscb103132019-10-08 11:34:22 -070029 "Every": "This value indicates that every day of the week has been selected. When used in array properties, such as for enabling a function on certain days, it shall be the only member in the array."
Ed Tanous530520e2019-01-02 13:41:37 -080030 },
Ed Tanouscb103132019-10-08 11:34:22 -070031 "longDescription": "Days of the week.",
Ed Tanous530520e2019-01-02 13:41:37 -080032 "type": "string"
33 },
34 "MonthOfYear": {
35 "description": "Months of the year.",
36 "enum": [
37 "January",
38 "February",
39 "March",
40 "April",
41 "May",
42 "June",
43 "July",
44 "August",
45 "September",
46 "October",
47 "November",
48 "December",
49 "Every"
50 ],
51 "enumDescriptions": {
52 "April": "April.",
53 "August": "August.",
54 "December": "December.",
55 "Every": "Every month of the year.",
56 "February": "February.",
57 "January": "January.",
58 "July": "July.",
59 "June": "June.",
60 "March": "March.",
61 "May": "May.",
62 "November": "November.",
63 "October": "October.",
64 "September": "September."
65 },
66 "enumLongDescriptions": {
Ed Tanouscb103132019-10-08 11:34:22 -070067 "Every": "This value indicates that every month of the year has been selected. When used in array properties, such as for enabling a function for certain months, it shall be the only member in the array."
Ed Tanous530520e2019-01-02 13:41:37 -080068 },
69 "longDescription": "Months of the year.",
70 "type": "string"
71 },
72 "Schedule": {
73 "additionalProperties": false,
74 "description": "Schedule a series of occurrences.",
Ed Tanouscb103132019-10-08 11:34:22 -070075 "longDescription": "The properties of this type shall schedule a series of occurrences.",
Ed Tanous530520e2019-01-02 13:41:37 -080076 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070077 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous530520e2019-01-02 13:41:37 -080078 "description": "This property shall specify a valid odata or Redfish property.",
79 "type": [
80 "array",
81 "boolean",
82 "integer",
83 "number",
84 "null",
85 "object",
86 "string"
87 ]
88 }
89 },
90 "properties": {
91 "EnabledDaysOfMonth": {
Ed Tanouscb103132019-10-08 11:34:22 -070092 "description": "Days of the month when scheduled occurrences are enabled. `0` indicates that every day of the month is enabled.",
Ed Tanous530520e2019-01-02 13:41:37 -080093 "items": {
94 "type": [
95 "integer",
96 "null"
97 ]
98 },
Ed Tanouscb103132019-10-08 11:34:22 -070099 "longDescription": "This property shall contain the days of the month when scheduled occurrences are enabled, for enabled days of week and months of year. If the array contains a single value of `0`, or if the property is not present, all days of the month shall be enabled.",
Ed Tanous530520e2019-01-02 13:41:37 -0800100 "maximum": 31,
101 "minimum": 0,
102 "readonly": false,
103 "type": "array"
104 },
105 "EnabledDaysOfWeek": {
Ed Tanouscb103132019-10-08 11:34:22 -0700106 "description": "Days of the week when scheduled occurrences are enabled, for enabled days of the month and months of the year. If not present, all days of the week are enabled.",
Ed Tanous530520e2019-01-02 13:41:37 -0800107 "items": {
108 "anyOf": [
109 {
110 "$ref": "#/definitions/DayOfWeek"
111 },
112 {
113 "type": "null"
114 }
115 ]
116 },
Ed Tanouscb103132019-10-08 11:34:22 -0700117 "longDescription": "Days of the week when scheduled occurrences are enabled. If not present, all days of the week shall be enabled.",
Ed Tanous530520e2019-01-02 13:41:37 -0800118 "readonly": false,
119 "type": "array"
120 },
121 "EnabledIntervals": {
122 "description": "Intervals when scheduled occurrences are enabled.",
123 "items": {
124 "type": [
125 "string",
126 "null"
127 ]
128 },
129 "longDescription": "Each value shall be an ISO 8601 conformant interval specifying when occurences are enabled.",
130 "readonly": false,
Ed Tanouscb103132019-10-08 11:34:22 -0700131 "type": "array",
132 "versionAdded": "v1_1_0"
Ed Tanous530520e2019-01-02 13:41:37 -0800133 },
134 "EnabledMonthsOfYear": {
Ed Tanouscb103132019-10-08 11:34:22 -0700135 "description": "The months of the year when scheduled occurrences are enabled. If not present, all months of the year are enabled.",
Ed Tanous530520e2019-01-02 13:41:37 -0800136 "items": {
137 "anyOf": [
138 {
139 "$ref": "#/definitions/MonthOfYear"
140 },
141 {
142 "type": "null"
143 }
144 ]
145 },
Ed Tanouscb103132019-10-08 11:34:22 -0700146 "longDescription": "This property shall contain the months of the year when scheduled occurrences are enabled, for enabled days of week and days of month. If not present, all months of the year shall be enabled.",
Ed Tanous530520e2019-01-02 13:41:37 -0800147 "readonly": false,
148 "type": "array"
149 },
150 "InitialStartTime": {
Ed Tanouscb103132019-10-08 11:34:22 -0700151 "description": "The date and time when the initial occurrence is scheduled to occur.",
Ed Tanous530520e2019-01-02 13:41:37 -0800152 "format": "date-time",
Ed Tanouscb103132019-10-08 11:34:22 -0700153 "longDescription": "This property shall contain the date and time when the initial occurrence is scheduled to occur.",
Ed Tanous530520e2019-01-02 13:41:37 -0800154 "readonly": false,
155 "type": [
156 "string",
157 "null"
158 ]
159 },
160 "Lifetime": {
161 "description": "The time after provisioning when the schedule as a whole expires.",
Ed Tanouscb103132019-10-08 11:34:22 -0700162 "longDescription": "This property shall contain a Redfish Duration that describes the time after provisioning when the schedule expires.",
Ed Tanous530520e2019-01-02 13:41:37 -0800163 "pattern": "-?P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?",
164 "readonly": false,
165 "type": [
166 "string",
167 "null"
168 ]
169 },
170 "MaxOccurrences": {
Ed Tanouscb103132019-10-08 11:34:22 -0700171 "description": "The maximum number of scheduled occurrences.",
172 "longDescription": "This property shall contain the maximum number of scheduled occurrences.",
Ed Tanous530520e2019-01-02 13:41:37 -0800173 "readonly": false,
174 "type": [
175 "integer",
176 "null"
177 ]
178 },
179 "Name": {
Ed Tanouscb103132019-10-08 11:34:22 -0700180 "description": "The schedule name.",
181 "longDescription": "The name of the schedule, which is constructed as OrgID:ScheduleName. Examples include ACME:Daily, ACME:Weekly, and ACME:FirstTuesday.",
Ed Tanous530520e2019-01-02 13:41:37 -0800182 "readonly": false,
183 "type": [
184 "string",
185 "null"
186 ]
187 },
188 "RecurrenceInterval": {
Ed Tanouscb103132019-10-08 11:34:22 -0700189 "description": "The amount of time until the next occurrence occurs.",
190 "longDescription": "This property shall contain a Redfish Duration that describes the time until the next occurrence.",
Ed Tanous530520e2019-01-02 13:41:37 -0800191 "pattern": "-?P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?",
192 "readonly": false,
193 "type": [
194 "string",
195 "null"
196 ]
197 }
198 },
199 "type": "object"
200 }
201 },
202 "owningEntity": "DMTF",
Ed Tanouscb103132019-10-08 11:34:22 -0700203 "release": "2018.2",
204 "title": "#Schedule.v1_2_1"
Ed Tanous530520e2019-01-02 13:41:37 -0800205}