1{
2    "$id": "http://redfish.dmtf.org/schemas/v1/Schedule.v1_2_5.json",
3    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
4    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
5    "definitions": {
6        "DayOfWeek": {
7            "description": "Days of the week.",
8            "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": {
29                "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."
30            },
31            "longDescription": "Days of the week.",
32            "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": {
67                "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."
68            },
69            "longDescription": "Months of the year.",
70            "type": "string"
71        },
72        "Schedule": {
73            "additionalProperties": false,
74            "description": "Schedule a series of occurrences.",
75            "longDescription": "The properties of this type shall schedule a series of occurrences.",
76            "patternProperties": {
77                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
78                    "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": {
92                    "description": "Days of the month when scheduled occurrences are enabled.  `0` indicates that every day of the month is enabled.",
93                    "items": {
94                        "type": [
95                            "integer",
96                            "null"
97                        ]
98                    },
99                    "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.",
100                    "maximum": 31,
101                    "minimum": 0,
102                    "readonly": false,
103                    "type": "array"
104                },
105                "EnabledDaysOfWeek": {
106                    "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.",
107                    "items": {
108                        "anyOf": [
109                            {
110                                "$ref": "#/definitions/DayOfWeek"
111                            },
112                            {
113                                "type": "null"
114                            }
115                        ]
116                    },
117                    "longDescription": "Days of the week when scheduled occurrences are enabled.  If not present, all days of the week shall be enabled.",
118                    "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 occurrences are enabled.",
130                    "readonly": false,
131                    "type": "array",
132                    "versionAdded": "v1_1_0"
133                },
134                "EnabledMonthsOfYear": {
135                    "description": "The months of the year when scheduled occurrences are enabled.  If not present, all months of the year are enabled.",
136                    "items": {
137                        "anyOf": [
138                            {
139                                "$ref": "#/definitions/MonthOfYear"
140                            },
141                            {
142                                "type": "null"
143                            }
144                        ]
145                    },
146                    "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.",
147                    "readonly": false,
148                    "type": "array"
149                },
150                "InitialStartTime": {
151                    "description": "The date and time when the initial occurrence is scheduled to occur.",
152                    "format": "date-time",
153                    "longDescription": "This property shall contain the date and time when the initial occurrence is scheduled to occur.",
154                    "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.",
162                    "longDescription": "This property shall contain a Redfish Duration that describes the time after provisioning when the schedule expires.",
163                    "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": {
171                    "description": "The maximum number of scheduled occurrences.",
172                    "longDescription": "This property shall contain the maximum number of scheduled occurrences.",
173                    "readonly": false,
174                    "type": [
175                        "integer",
176                        "null"
177                    ]
178                },
179                "Name": {
180                    "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.",
182                    "readonly": false,
183                    "type": [
184                        "string",
185                        "null"
186                    ]
187                },
188                "RecurrenceInterval": {
189                    "description": "The duration between consecutive occurrences.",
190                    "longDescription": "This property shall contain the duration between consecutive occurrences.",
191                    "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    "language": "en",
203    "owningEntity": "DMTF",
204    "release": "2018.2",
205    "title": "#Schedule.v1_2_5"
206}