summaryrefslogtreecommitdiff
path: root/redfish-core/include/registries/job_event_message_registry.hpp
blob: a6d93780ce901ec6387209767e44c769110530ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#pragma once
/****************************************************************
 *                 READ THIS WARNING FIRST
 * This is an auto-generated header which contains definitions
 * for Redfish DMTF defined messages.
 * DO NOT modify this registry outside of running the
 * parse_registries.py script.  The definitions contained within
 * this file are owned by DMTF.  Any modifications to these files
 * should be first pushed to the relevant registry in the DMTF
 * github organization.
 ***************************************************************/
#include "registries.hpp"

#include <array>

// clang-format off

namespace redfish::registries::job_event
{
const Header header = {
    "Copyright 2014-2023 DMTF in cooperation with the Storage Networking Industry Association (SNIA). All rights reserved.",
    "#MessageRegistry.v1_6_2.MessageRegistry",
    "JobEvent.1.0.1",
    "Job Event Message Registry",
    "en",
    "This registry defines the messages for job related events.",
    "JobEvent",
    "1.0.1",
    "DMTF",
};
constexpr const char* url =
    "https://redfish.dmtf.org/registries/JobEvent.1.0.1.json";

constexpr std::array registry =
{
    MessageEntry{
        "JobCancelled",
        {
            "A job was cancelled.",
            "The job with Id '%1' was cancelled.",
            "Warning",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "JobCompletedException",
        {
            "A job has completed with warnings or errors.",
            "The job with Id '%1' has completed with warnings or errors.",
            "Warning",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "JobCompletedOK",
        {
            "A job has completed.",
            "The job with Id '%1' has completed.",
            "OK",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "JobProgressChanged",
        {
            "A job has changed progress.",
            "The job with Id '%1' has changed to progress %2 percent complete.",
            "OK",
            2,
            {
                "string",
                "number",
            },
            "None.",
        }},
    MessageEntry{
        "JobRemoved",
        {
            "A job was removed.",
            "The job with Id '%1' was removed.",
            "Warning",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "JobResumed",
        {
            "A job has resumed.",
            "The job with Id '%1' has resumed.",
            "OK",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "JobStarted",
        {
            "A job has started.",
            "The job with Id '%1' has started.",
            "OK",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "JobSuspended",
        {
            "A job was suspended.",
            "The job with Id '%1' was suspended.",
            "Warning",
            1,
            {
                "string",
            },
            "None.",
        }},

};

enum class Index
{
    jobCancelled = 0,
    jobCompletedException = 1,
    jobCompletedOK = 2,
    jobProgressChanged = 3,
    jobRemoved = 4,
    jobResumed = 5,
    jobStarted = 6,
    jobSuspended = 7,
};
} // namespace redfish::registries::job_event