@broadcom/ops-for-zowe-cli 5.0.0-next.202408061338 → 5.0.0-next.202409201250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/lib/api/Create.d.ts +2 -0
- package/lib/api/Create.js +59 -0
- package/lib/api/Create.js.map +1 -0
- package/lib/api/Execute.d.ts +3 -1
- package/lib/api/Execute.js +127 -11
- package/lib/api/Execute.js.map +1 -1
- package/lib/api/Show.d.ts +2 -6
- package/lib/api/Show.js +18 -3
- package/lib/api/Show.js.map +1 -1
- package/lib/api/constants/Ops.constants.d.ts +2 -2
- package/lib/api/constants/Ops.constants.js +6 -2
- package/lib/api/constants/Ops.constants.js.map +1 -1
- package/lib/api/doc/IExecuteCommandResponse.d.ts +9 -0
- package/lib/api/doc/IExecuteCommandResponse.js +25 -0
- package/lib/api/doc/IExecuteCommandResponse.js.map +1 -0
- package/lib/api/index.d.ts +2 -0
- package/lib/api/index.js +2 -0
- package/lib/api/index.js.map +1 -1
- package/lib/api/utils/CommandListUtils.d.ts +9 -0
- package/lib/api/utils/CommandListUtils.js +124 -0
- package/lib/api/utils/CommandListUtils.js.map +1 -0
- package/lib/api/utils/CommandUtils.d.ts +4 -0
- package/lib/api/utils/CommandUtils.js +41 -0
- package/lib/api/utils/CommandUtils.js.map +1 -0
- package/lib/api/utils/EventListUtils.d.ts +4 -0
- package/lib/api/utils/EventListUtils.js +33 -0
- package/lib/api/utils/EventListUtils.js.map +1 -0
- package/lib/api/utils/EventUtils.d.ts +4 -0
- package/lib/api/utils/EventUtils.js +41 -0
- package/lib/api/utils/EventUtils.js.map +1 -0
- package/lib/api/utils/OpsRestUtils.js +3 -3
- package/lib/api/utils/OpsRestUtils.js.map +1 -1
- package/lib/api/utils/RuleUtils.js +1 -0
- package/lib/api/utils/RuleUtils.js.map +1 -1
- package/lib/api/utils/TableListUtils.d.ts +10 -0
- package/lib/api/utils/TableListUtils.js +87 -0
- package/lib/api/utils/TableListUtils.js.map +1 -0
- package/lib/api/utils/TableUtils.d.ts +4 -0
- package/lib/api/utils/TableUtils.js +49 -0
- package/lib/api/utils/TableUtils.js.map +1 -0
- package/lib/api/utils/index.d.ts +7 -1
- package/lib/api/utils/index.js +7 -1
- package/lib/api/utils/index.js.map +1 -1
- package/lib/cli/CommandParameterDefinitions.d.ts +28 -0
- package/lib/cli/CommandParameterDefinitions.js +326 -0
- package/lib/cli/CommandParameterDefinitions.js.map +1 -0
- package/lib/cli/EventParameterDefinitions.d.ts +7 -0
- package/lib/cli/EventParameterDefinitions.js +45 -0
- package/lib/cli/EventParameterDefinitions.js.map +1 -0
- package/lib/cli/RexxParameterDefinitions.js +7 -8
- package/lib/cli/RexxParameterDefinitions.js.map +1 -1
- package/lib/cli/TableParameterDefinitions.d.ts +6 -0
- package/lib/cli/TableParameterDefinitions.js +52 -0
- package/lib/cli/TableParameterDefinitions.js.map +1 -0
- package/lib/cli/create/Create.definition.d.ts +3 -0
- package/lib/cli/create/Create.definition.js +35 -0
- package/lib/cli/create/Create.definition.js.map +1 -0
- package/lib/cli/create/event/Event.definition.d.ts +2 -0
- package/lib/cli/create/event/Event.definition.js +46 -0
- package/lib/cli/create/event/Event.definition.js.map +1 -0
- package/lib/cli/create/event/Event.handler.d.ts +5 -0
- package/lib/cli/create/event/Event.handler.js +45 -0
- package/lib/cli/create/event/Event.handler.js.map +1 -0
- package/lib/cli/disable/rule/Rule.definition.js +2 -2
- package/lib/cli/disable/rule/Rule.definition.js.map +1 -1
- package/lib/cli/enable/rule/Rule.definition.js +2 -2
- package/lib/cli/enable/rule/Rule.definition.js.map +1 -1
- package/lib/cli/execute/Execute.definition.js +4 -3
- package/lib/cli/execute/Execute.definition.js.map +1 -1
- package/lib/cli/execute/command/Command.definition.d.ts +2 -0
- package/lib/cli/execute/command/Command.definition.js +69 -0
- package/lib/cli/execute/command/Command.definition.js.map +1 -0
- package/lib/cli/execute/command/Command.handler.d.ts +5 -0
- package/lib/cli/execute/command/Command.handler.js +49 -0
- package/lib/cli/execute/command/Command.handler.js.map +1 -0
- package/lib/cli/execute/rexx/Rexx.definition.js +6 -2
- package/lib/cli/execute/rexx/Rexx.definition.js.map +1 -1
- package/lib/cli/show/Show.definition.js +4 -3
- package/lib/cli/show/Show.definition.js.map +1 -1
- package/lib/cli/show/logname/Logname.definition.js +2 -2
- package/lib/cli/show/logname/Logname.definition.js.map +1 -1
- package/lib/cli/show/resource/Resource.definition.js +6 -6
- package/lib/cli/show/resource/Resource.definition.js.map +1 -1
- package/lib/cli/show/rule/Rule.definition.js +6 -6
- package/lib/cli/show/rule/Rule.definition.js.map +1 -1
- package/lib/cli/show/ruleset/Ruleset.definition.js +6 -6
- package/lib/cli/show/ruleset/Ruleset.definition.js.map +1 -1
- package/lib/cli/show/status/Status.definition.js +2 -2
- package/lib/cli/show/status/Status.definition.js.map +1 -1
- package/lib/cli/show/subsystem/Subsystem.definition.js +3 -3
- package/lib/cli/show/subsystem/Subsystem.definition.js.map +1 -1
- package/lib/cli/show/table/Table.definition.d.ts +17 -0
- package/lib/cli/show/table/Table.definition.js +67 -0
- package/lib/cli/show/table/Table.definition.js.map +1 -0
- package/lib/cli/show/table/Table.handler.d.ts +5 -0
- package/lib/cli/show/table/Table.handler.js +49 -0
- package/lib/cli/show/table/Table.handler.js.map +1 -0
- package/lib/cli/start/resource/Resource.definition.js +5 -5
- package/lib/cli/start/resource/Resource.definition.js.map +1 -1
- package/lib/cli/stop/resource/Resource.definition.js +5 -5
- package/lib/cli/stop/resource/Resource.definition.js.map +1 -1
- package/lib/imperative.js +0 -9
- package/lib/imperative.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -1
- package/package.json +20 -14
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
|
+
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
*
|
|
6
|
+
* This software and all information contained therein is
|
|
7
|
+
* confidential and proprietary and shall not be duplicated,
|
|
8
|
+
* used, disclosed, or disseminated in any way except as
|
|
9
|
+
* authorized by the applicable license agreement, without the
|
|
10
|
+
* express written permission of Broadcom. All authorized
|
|
11
|
+
* reproductions must be marked with this language.
|
|
12
|
+
*
|
|
13
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
+
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
+
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
+
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
+
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
+
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
+
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
+
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
+
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.CommandParameterDefinitions = void 0;
|
|
26
|
+
class CommandParameterDefinitions {
|
|
27
|
+
}
|
|
28
|
+
exports.CommandParameterDefinitions = CommandParameterDefinitions;
|
|
29
|
+
CommandParameterDefinitions.ARGUMENT_MAX_LEN = 240;
|
|
30
|
+
CommandParameterDefinitions.WAIT_TIME = 3600; // one hour
|
|
31
|
+
CommandParameterDefinitions.commandProgramPositional = {
|
|
32
|
+
name: "command",
|
|
33
|
+
type: "string",
|
|
34
|
+
description: "The text of the operator command to be issued. The length of this string cannot exceed 240 characters.",
|
|
35
|
+
required: true
|
|
36
|
+
};
|
|
37
|
+
CommandParameterDefinitions.bmpCmdOutOption = {
|
|
38
|
+
name: "bmpCmdOut",
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "If the specified command is an IMS command, this parameter controls the echoing of the command" +
|
|
41
|
+
" output. This keyword only applies if you are using an IMS Operations Facility (IOF) Batch Message" +
|
|
42
|
+
" Processing (BMP) program for issuing IMS commands. Valid values are: OPSLOG, WTO, and NONE. A value" +
|
|
43
|
+
" of 'OPSLOG' echoes all output that is associated with the current IMS command back to OPSLOG as trace" +
|
|
44
|
+
" messages. This results in a small amount of additional overhead to the command, assuming that the number" +
|
|
45
|
+
" of lines of output is not large. No output is sent back to any z/OS console or to the subsystem interface." +
|
|
46
|
+
" A value of 'WTO' echoes all output that is associated with the current IMS command as Write To Operator" +
|
|
47
|
+
" messages to the z/OS console. Using this option can add a significant amount of overhead to IMS command" +
|
|
48
|
+
" processing and has the potential of flooding the consoles with command output messages. A value of 'NONE'" +
|
|
49
|
+
" sends IMS commands to the BMP and returns the responses to the issuing program (if so requested). This" +
|
|
50
|
+
" recommended approach results in the lowest amount of overhead. The use of this parameter does not affect" +
|
|
51
|
+
" how the IMS command output is returned to the command issuer. The default value for this parameter is 'NONE'.",
|
|
52
|
+
required: false,
|
|
53
|
+
aliases: ["bco"]
|
|
54
|
+
};
|
|
55
|
+
CommandParameterDefinitions.captureOption = {
|
|
56
|
+
name: "capture",
|
|
57
|
+
type: "string",
|
|
58
|
+
description: "This parameter captures command responses that are not internally routed back to the OPS/MVS" +
|
|
59
|
+
" console that issued the command. If this parameter is specified, command response messages are captured" +
|
|
60
|
+
" based on text segments matching the first characters (starting with column 1) of the messages. These" +
|
|
61
|
+
" captured response messages are in addition to the usual command response messages that are captured based" +
|
|
62
|
+
" on other specified parameters. You can specify up to 10 message text segments with this parameter, and" +
|
|
63
|
+
" each text segment can have up to 124 characters.",
|
|
64
|
+
required: false,
|
|
65
|
+
aliases: ["cp"]
|
|
66
|
+
};
|
|
67
|
+
CommandParameterDefinitions.cartOption = {
|
|
68
|
+
name: "cart",
|
|
69
|
+
type: "string",
|
|
70
|
+
description: "This parameter specifies a z/OS command and response token (CART). This token can be represented" +
|
|
71
|
+
" as either a one- to eight-character string such as MYCMDTOK, or as a one- to eight-byte hexadecimal value" +
|
|
72
|
+
" such as X'D6D7E2E205162738'. Messages issued in response to this command are issued using the same CART." +
|
|
73
|
+
" If this parameter is not specified, OPS/MVS will generate a unique CART token and use this generated token" +
|
|
74
|
+
" to determine which response messages should be returned to the caller.",
|
|
75
|
+
required: false,
|
|
76
|
+
aliases: ["ct"]
|
|
77
|
+
};
|
|
78
|
+
CommandParameterDefinitions.cmdEchoOption = {
|
|
79
|
+
name: "cmdEcho",
|
|
80
|
+
type: "string",
|
|
81
|
+
description: "This parameter determines whether the issued command is echoed as the first line of the command" +
|
|
82
|
+
" response. You can specify either YES, which is the default, or NO. This parameter is ignored when the" +
|
|
83
|
+
" cmdLog parameter is set to NO.",
|
|
84
|
+
required: false,
|
|
85
|
+
aliases: ["ce"]
|
|
86
|
+
};
|
|
87
|
+
CommandParameterDefinitions.cmdLogOption = {
|
|
88
|
+
name: "cmdLog",
|
|
89
|
+
type: "string",
|
|
90
|
+
description: "This parameter determines whether the issued command is echoed in both SYSLOG and the command" +
|
|
91
|
+
" response, or neither. You can specify either YES, which is the default, or NO. The NO setting overrides" +
|
|
92
|
+
" the setting of the cmdEcho parameter.",
|
|
93
|
+
required: false,
|
|
94
|
+
aliases: ["cl"]
|
|
95
|
+
};
|
|
96
|
+
CommandParameterDefinitions.cmdWaitOption = {
|
|
97
|
+
name: "cmdWait",
|
|
98
|
+
type: "string",
|
|
99
|
+
description: "This parameter specifies, in seconds, how long to wait for command output collection to complete." +
|
|
100
|
+
" The number of lines that are collected are analyzed every few hundredths of a second, based on the value" +
|
|
101
|
+
" specified with the interval parameter. If no new output lines are forthcoming after at least two output" +
|
|
102
|
+
" lines have been received, the wait for more response characters is terminated before this cmdWait period" +
|
|
103
|
+
" expires. You can specify a value for this parameter from 1 through 600 seconds. If you specify a value of" +
|
|
104
|
+
" YES for the stopEnd parameter, the end line of a multi-line WTO message also stops response collection." +
|
|
105
|
+
" The main difference between the cmdWait and wait parameters is that the wait parameter specifies an" +
|
|
106
|
+
" unconditional wait period, while the cmdWait parameter specifies a conditional wait based on a continuous," +
|
|
107
|
+
" timely collection of response lines. The default value for this parameter is the value of the OCWAIT" +
|
|
108
|
+
" global OPS/MVS parameter. When used in IMS Type 2 message syntax, the cmdWait and wait parameters are" +
|
|
109
|
+
" identical and specify the maximum wait time in seconds for message completion. IBM documentation on" +
|
|
110
|
+
" IMSPLEX usage implies that the delay in gathering results from multiple IMS systems can be considerable" +
|
|
111
|
+
" and should be considered normal. The default if omitted is 120, or 2 minutes. This cmdWait parameter" +
|
|
112
|
+
" is mutually exclusive with the wait parameter.",
|
|
113
|
+
required: false,
|
|
114
|
+
aliases: ["cw"]
|
|
115
|
+
};
|
|
116
|
+
CommandParameterDefinitions.conNameOption = {
|
|
117
|
+
name: "conName",
|
|
118
|
+
type: "string",
|
|
119
|
+
description: "This parameter defines the name of the console to receive the issued command. The console name" +
|
|
120
|
+
" that you provide can contain as many as eight characters. You can retrieve command output when the" +
|
|
121
|
+
" specified console is allocated to OPS/MVS. If the console is not allocated or does not exist, this request" +
|
|
122
|
+
" will return an error code of 190. This conName parameter is mutually exclusive with the conType parameter.",
|
|
123
|
+
required: false,
|
|
124
|
+
aliases: ["cn"]
|
|
125
|
+
};
|
|
126
|
+
CommandParameterDefinitions.conTypeOption = {
|
|
127
|
+
name: "conType",
|
|
128
|
+
type: "string",
|
|
129
|
+
description: "This parameter specifies the appropriate type of console that should be used for the command that" +
|
|
130
|
+
" you are issuing. The default value for this parameter is the current value of the OCCONTYPE global OPS/MVS" +
|
|
131
|
+
" parameter. Valid values are: ANY, EXTCONS, SSCONS, or XTRACONS. A value of 'ANY' tells OPS/MVS to select" +
|
|
132
|
+
" the first available console to issue the command. In this case, OPS/MVS selects consoles in the following" +
|
|
133
|
+
" order: Subsystem consoles, followed by XTRACONS consoles, and finally Extended consoles. A value of" +
|
|
134
|
+
" 'EXTCONS' tells OPS/MVS to select the first available extended console. Extended consoles are controlled" +
|
|
135
|
+
" by the EXTENDEDCONSOLES global OPS/MVS parameter. A value of 'SSCONS' tells OPS/MVS to select the first" +
|
|
136
|
+
" available subsystem console. Subsystem consoles are controlled by the SUBSYSDEFAULT global OPS/MVS" +
|
|
137
|
+
" parameter. A value of 'XTRACONS' tells OPS/MVS to select the first available extra extended console." +
|
|
138
|
+
" Extra extended consoles are controlled by the EXTRAEXTCONSOLES global OPS/MVS parameter. This conType" +
|
|
139
|
+
" parameter is mutually exclusive with the conName parameter.",
|
|
140
|
+
required: false,
|
|
141
|
+
aliases: ["cnt"]
|
|
142
|
+
};
|
|
143
|
+
CommandParameterDefinitions.imsIdOption = {
|
|
144
|
+
name: "imsId",
|
|
145
|
+
type: "string",
|
|
146
|
+
description: "If you use the IMS Operations Facility (IOF) at your site, you can use the /opscmd endpoint to" +
|
|
147
|
+
" issue IMS commands. If you are running only one copy of IMS on the system where the current instance of" +
|
|
148
|
+
" the OPS/MVS REST API is running, you can omit the imsId parameter. However, if several copies of IMS" +
|
|
149
|
+
" (such as a production version and a test version) reside on the system, use this parameter to specify" +
|
|
150
|
+
" the IMS control region that should receive the command. IMS IDs can contain from one to four characters." +
|
|
151
|
+
" IBM ships IMS with a default IMS ID of IMSA. If you do not know the IMS ID of the IMS you want OPS/MVS to" +
|
|
152
|
+
" control, ask your systems management department. When used in IMS Type 2 message syntax, the command is" +
|
|
153
|
+
" issued to the IMSPLEX manager, and distributed from there. The imsId parameter is used to establish the" +
|
|
154
|
+
" eligibility of participating IMS systems to receive the command. If the imsId parameter is omitted, the" +
|
|
155
|
+
" first IMS system capable of responding receives the command. If the value of the imsId parameter is" +
|
|
156
|
+
" specified as a wildcard *, all participating IMS systems receive the command. The value of the imsId" +
|
|
157
|
+
" parameter can also be specified as a list, separated by spaces or commas, of specific IMS system names" +
|
|
158
|
+
" to receive the command. The wildcard * should not be used with the imsId parameter unless the imsPlex" +
|
|
159
|
+
" parameter is specified with an explicit name.",
|
|
160
|
+
required: false,
|
|
161
|
+
aliases: ["id"]
|
|
162
|
+
};
|
|
163
|
+
CommandParameterDefinitions.imsPlexOption = {
|
|
164
|
+
name: "imsPlex",
|
|
165
|
+
type: "string",
|
|
166
|
+
description: "If you use the IMS Operations Facility (IOF) at your site, you can use the /opscmd endpoint to" +
|
|
167
|
+
" issue IMS commands. If you are running only one copy of IMS on the system where the current instance of" +
|
|
168
|
+
" the OPS/MVS REST API is running, you can omit the imsId parameter. However, if several copies of IMS" +
|
|
169
|
+
" (such as a production version and a test version) reside on the system, use this parameter to specify" +
|
|
170
|
+
" the IMS control region that should receive the command. IMS IDs can contain from one to four characters." +
|
|
171
|
+
" IBM ships IMS with a default IMS ID of IMSA. If you do not know the IMS ID of the IMS you want OPS/MVS to" +
|
|
172
|
+
" control, ask your systems management department. When used in IMS Type 2 message syntax, the command is" +
|
|
173
|
+
" issued to the IMSPLEX manager, and distributed from there. The imsId parameter is used to establish the" +
|
|
174
|
+
" eligibility of participating IMS systems to receive the command. If the imsId parameter is omitted, the" +
|
|
175
|
+
" first IMS system capable of responding receives the command. If the value of the imsId parameter is" +
|
|
176
|
+
" specified as a wildcard *, all participating IMS systems receive the command. The value of the imsId" +
|
|
177
|
+
" parameter can also be specified as a list, separated by spaces or commas, of specific IMS system names" +
|
|
178
|
+
" to receive the command. The wildcard * should not be used with the imsId parameter unless the imsPlex" +
|
|
179
|
+
" parameter is specified with an explicit name.",
|
|
180
|
+
required: false,
|
|
181
|
+
aliases: ["ip"]
|
|
182
|
+
};
|
|
183
|
+
CommandParameterDefinitions.imsReplyOption = {
|
|
184
|
+
name: "imsReply",
|
|
185
|
+
type: "string",
|
|
186
|
+
description: "The presence of this imsPlex parameter implies you are issuing an IMS command using the IMS Type" +
|
|
187
|
+
" 2 message syntax. This value can be specified as a specific IMSPLEX name, in which case the imsId" +
|
|
188
|
+
" parameter controls the selection of participating IMS systems. The imsPlex parameter can also be specified" +
|
|
189
|
+
" as a wildcard *, meaning the imsId determines the IMSPLEX name. In this case, the imsId parameter cannot" +
|
|
190
|
+
" be specified as a wildcard *, but must contain a valid IMS system name. The imsId parameter, or the first" +
|
|
191
|
+
" of a list, will be used to locate the name of its associated IMSPLEX.",
|
|
192
|
+
required: false,
|
|
193
|
+
aliases: ["ir"]
|
|
194
|
+
};
|
|
195
|
+
CommandParameterDefinitions.intervalOption = {
|
|
196
|
+
name: "interval",
|
|
197
|
+
type: "string",
|
|
198
|
+
description: "This parameter specifies, in centiseconds, how frequently to test for command response lines to" +
|
|
199
|
+
" see if the response has ended. This interval parameter temporarily overrides the value of the OCINTERVAL" +
|
|
200
|
+
" global OPS/MVS parameter. The default for this interval parameter is the value of the OCINTERVAL global" +
|
|
201
|
+
" OPS/MVS parameter, but you can specify any number from 10 through 300, or a value of 0 to bypass interval" +
|
|
202
|
+
" testing.",
|
|
203
|
+
required: false,
|
|
204
|
+
aliases: ["int"]
|
|
205
|
+
};
|
|
206
|
+
CommandParameterDefinitions.localOnlyOption = {
|
|
207
|
+
name: "localOnly",
|
|
208
|
+
type: "string",
|
|
209
|
+
description: "When 'YES' is specified for this parameter, only messages from the local system are considered" +
|
|
210
|
+
" as potential command response candidates. This parameter should be used in conjunction with the capture" +
|
|
211
|
+
" and stopMsg parameters to prevent output from other systems possibly being returned as command output." +
|
|
212
|
+
" You can specify either NO, which is the default, or YES.",
|
|
213
|
+
required: false,
|
|
214
|
+
aliases: ["loc"]
|
|
215
|
+
};
|
|
216
|
+
CommandParameterDefinitions.logOption = {
|
|
217
|
+
name: "log",
|
|
218
|
+
type: "string",
|
|
219
|
+
description: "This parameter determines whether response lines from the issued command go into the SYSLOG and/or" +
|
|
220
|
+
" OPSLOG data sets. Valid options are: YES, NO, OFF, and NOWHERE. A value of 'YES' means command responses" +
|
|
221
|
+
" and command echo will be logged in both SYSLOG and OPSLOG. A value of 'NO' means SYSLOG will only contain" +
|
|
222
|
+
" the command echo, not the command responses, and OPSLOG will contain both the command echo and the command" +
|
|
223
|
+
" responses. A value of 'OFF' means the command echo and command responses will not be logged to SYSLOG." +
|
|
224
|
+
" OPSLOG will contain the command responses, but not the command echo. A value of 'NOWHERE' means the" +
|
|
225
|
+
" command echo and command responses will not be logged to either the SYSLOG or the OPSLOG. Note that the" +
|
|
226
|
+
" logging of command response lines is also influenced by MIC and AOF rule processing. The default value for" +
|
|
227
|
+
" this parameter is 'YES'.",
|
|
228
|
+
required: false,
|
|
229
|
+
aliases: ["lg"]
|
|
230
|
+
};
|
|
231
|
+
CommandParameterDefinitions.maxCmdOutOption = {
|
|
232
|
+
name: "maxCmdOut",
|
|
233
|
+
type: "string",
|
|
234
|
+
description: "This parameter defines how many command output lines to collect before terminating the command" +
|
|
235
|
+
" response. If the command output contains more lines than this maxCmdOut value, no more command output" +
|
|
236
|
+
" lines are collected. You can specify any value from 1 through 32767 for this parameter. The default value" +
|
|
237
|
+
" for this parameter is the value of the OCMAXMSG global OPS/MVS parameter.",
|
|
238
|
+
required: false,
|
|
239
|
+
aliases: ["mco"]
|
|
240
|
+
};
|
|
241
|
+
CommandParameterDefinitions.outputOption = {
|
|
242
|
+
name: "output",
|
|
243
|
+
type: "string",
|
|
244
|
+
description: "This parameter determines whether you receive output from the issued command. You can specify" +
|
|
245
|
+
" either YES, which is the default, or NO. The NO setting is mutually exclusive with the wait parameter.",
|
|
246
|
+
required: false,
|
|
247
|
+
aliases: ["out"]
|
|
248
|
+
};
|
|
249
|
+
CommandParameterDefinitions.stopEndOption = {
|
|
250
|
+
name: "stopEnd",
|
|
251
|
+
type: "string",
|
|
252
|
+
description: "This parameter determines whether the end line of a multiline WTO message stops the collection of" +
|
|
253
|
+
" command output. Valid options are: YES, and NO. A value of 'YES' will cause the command response to" +
|
|
254
|
+
" terminate at the first end line of a multiline WTO message or at the time that is specified through the" +
|
|
255
|
+
" cmdWait parameter or the OCWAIT global OPS/MVS parameter. A value of 'NO' will cause the command output to" +
|
|
256
|
+
" continue collecting until either: the time interval that is specified by the cmdWait parameter or the" +
|
|
257
|
+
" OCWAIT global parameter expires; or no new command output lines are collected in the time interval that is" +
|
|
258
|
+
" specified by the interval parameter. The default value for this parameter is 'YES'.",
|
|
259
|
+
required: false,
|
|
260
|
+
aliases: ["se"]
|
|
261
|
+
};
|
|
262
|
+
CommandParameterDefinitions.stopMsgOption = {
|
|
263
|
+
name: "stopMsg",
|
|
264
|
+
type: "string",
|
|
265
|
+
description: "This parameter specifies a list of one to ten message text segments matching the first characters" +
|
|
266
|
+
" (starting with column 1) of the messages that terminate the collection of command response lines. When" +
|
|
267
|
+
" any of these text segments are detected, the collection of response lines stops. The message segment or" +
|
|
268
|
+
" segments you specify need not be directed to the console receiving the command response. Each item in the" +
|
|
269
|
+
" list of message text segments you specify can contain no more than 124 characters. All message text" +
|
|
270
|
+
" segments that are specified on this parameter will match both uppercase and lowercase text in potential" +
|
|
271
|
+
" matching messages (case-insensitive). This parameter does not work with IMS Type 2 commands. The stopMsg" +
|
|
272
|
+
" and stopResp parameters are mutually exclusive.",
|
|
273
|
+
required: false,
|
|
274
|
+
aliases: ["sm"]
|
|
275
|
+
};
|
|
276
|
+
CommandParameterDefinitions.stopRespOption = {
|
|
277
|
+
name: "stopResp",
|
|
278
|
+
type: "string",
|
|
279
|
+
description: "This parameter specifies a list of one to ten message text segments matching the first characters" +
|
|
280
|
+
" (starting with column 1) of the messages that terminate the collection of command response lines. The" +
|
|
281
|
+
" message segments that you specify must be directed to the console receiving the command response, and each" +
|
|
282
|
+
" item in the segment list can contain no more than 124 characters. You can use this stopResp parameter to" +
|
|
283
|
+
" terminate the collection of a long command response once the desired response line is found. All message" +
|
|
284
|
+
" text segments that are specified on this keyword will match both uppercase and lowercase text in potential" +
|
|
285
|
+
" matching messages (case-insensitive). The stopResp and stopMsg parameters are mutually exclusive.",
|
|
286
|
+
required: false,
|
|
287
|
+
aliases: ["sr"]
|
|
288
|
+
};
|
|
289
|
+
CommandParameterDefinitions.waitOption = {
|
|
290
|
+
name: "wait", aliases: ["w"],
|
|
291
|
+
type: "number",
|
|
292
|
+
description: "This parameter specifies a period of time (in seconds) to unconditionally wait to receive output" +
|
|
293
|
+
" from the issued command. Control is not returned to the caller until the full wait period elapses." +
|
|
294
|
+
" In most cases, a conditional wait using the cmdWait parameter in conjunction with" +
|
|
295
|
+
" the interval and various stopXxxx parameters can be used to effectively collect command responses, thus" +
|
|
296
|
+
" eliminating the need for an unconditional wait. When used in IMS Type 2 message syntax, the wait parameter" +
|
|
297
|
+
" is identical to the cmdWait parameter. This wait parameter is mutually exclusive with the cmdWait" +
|
|
298
|
+
" parameter. If the output parameter is set to NO, you can not use this parameter (mutually exclusive).",
|
|
299
|
+
required: false,
|
|
300
|
+
numericValueRange: [1, CommandParameterDefinitions.WAIT_TIME]
|
|
301
|
+
};
|
|
302
|
+
CommandParameterDefinitions.debugOption = {
|
|
303
|
+
name: "debug",
|
|
304
|
+
type: "string",
|
|
305
|
+
hidden: true,
|
|
306
|
+
description: "Optionally set the hidden REST API endpoint parameter, debug, to allow REXX program execution output to be returned.",
|
|
307
|
+
allowableValues: {
|
|
308
|
+
values: ["YES", "NO"],
|
|
309
|
+
caseSensitive: false,
|
|
310
|
+
},
|
|
311
|
+
required: false,
|
|
312
|
+
defaultValue: "NO",
|
|
313
|
+
aliases: ["d"]
|
|
314
|
+
};
|
|
315
|
+
CommandParameterDefinitions.formatOption = {
|
|
316
|
+
name: "format", aliases: ["f"],
|
|
317
|
+
type: "string",
|
|
318
|
+
description: "Format of the displayed output.",
|
|
319
|
+
defaultValue: "namevalue",
|
|
320
|
+
allowableValues: {
|
|
321
|
+
values: ["namevalue", "namevaluecolor", "csv", "json"],
|
|
322
|
+
caseSensitive: false,
|
|
323
|
+
},
|
|
324
|
+
required: false,
|
|
325
|
+
};
|
|
326
|
+
//# sourceMappingURL=CommandParameterDefinitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/CommandParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,2BAA2B;;AAAxC,kEAiUC;AA/T0B,4CAAgB,GAAG,GAAG,CAAC;AACvB,qCAAS,GAAG,IAAI,CAAC,CAAE,WAAW;AACvC,oDAAwB,GAAiC;IACnE,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,wGAAwG;IACrH,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEY,2CAAe,GAA6B;IACtD,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,gGAAgG;QACzG,oGAAoG;QACpG,sGAAsG;QACtG,wGAAwG;QACxG,2GAA2G;QAC3G,6GAA6G;QAC7G,0GAA0G;QAC1G,0GAA0G;QAC1G,4GAA4G;QAC5G,yGAAyG;QACzG,2GAA2G;QAC3G,gHAAgH;IACpH,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;CACnB,CAAC;AAEY,yCAAa,GAA6B;IACpD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,8FAA8F;QACvG,0GAA0G;QAC1G,uGAAuG;QACvG,4GAA4G;QAC5G,yGAAyG;QACzG,mDAAmD;IACvD,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,IAAI,CAAC;CAClB,CAAC;AAEY,sCAAU,GAA6B;IACjD,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,kGAAkG;QAC3G,4GAA4G;QAC5G,2GAA2G;QAC3G,6GAA6G;QAC7G,yEAAyE;IAC7E,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,IAAI,CAAC;CAClB,CAAC;AA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AiC;IAC9C,YAAY,EAAE,WAAW;IACzB,eAAe,EAAE;QACb,MAAM,EAAE,CAAC,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,CAAC;QACtD,aAAa,EAAE,KAAK;KACvB;IACD,QAAQ,EAAE,KAAK;CAClB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ICommandPositionalDefinition } from "@zowe/imperative";
|
|
2
|
+
export declare class EventParameterDefinitions {
|
|
3
|
+
static readonly ARGUMENT_MAX_LEN = 240;
|
|
4
|
+
static readonly WAIT_TIME = 3600;
|
|
5
|
+
static eventCodePositional: ICommandPositionalDefinition;
|
|
6
|
+
static eventTextPositional: ICommandPositionalDefinition;
|
|
7
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
|
+
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
*
|
|
6
|
+
* This software and all information contained therein is
|
|
7
|
+
* confidential and proprietary and shall not be duplicated,
|
|
8
|
+
* used, disclosed, or disseminated in any way except as
|
|
9
|
+
* authorized by the applicable license agreement, without the
|
|
10
|
+
* express written permission of Broadcom. All authorized
|
|
11
|
+
* reproductions must be marked with this language.
|
|
12
|
+
*
|
|
13
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
+
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
+
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
+
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
+
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
+
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
+
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
+
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
+
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.EventParameterDefinitions = void 0;
|
|
26
|
+
class EventParameterDefinitions {
|
|
27
|
+
}
|
|
28
|
+
exports.EventParameterDefinitions = EventParameterDefinitions;
|
|
29
|
+
EventParameterDefinitions.ARGUMENT_MAX_LEN = 240;
|
|
30
|
+
EventParameterDefinitions.WAIT_TIME = 3600; // one hour
|
|
31
|
+
EventParameterDefinitions.eventCodePositional = {
|
|
32
|
+
name: "eventCode",
|
|
33
|
+
type: "string",
|
|
34
|
+
description: "The event code that is passed, upper-cased, to API rules in the AOF variable API.ID." +
|
|
35
|
+
" This code can be up to 10 characters long.",
|
|
36
|
+
required: true
|
|
37
|
+
};
|
|
38
|
+
EventParameterDefinitions.eventTextPositional = {
|
|
39
|
+
name: "eventText",
|
|
40
|
+
type: "string",
|
|
41
|
+
description: "The event text that is passed, unaltered, to API rules in the AOF variable API.TEXT. This text can" +
|
|
42
|
+
" be up to 255 characters long.",
|
|
43
|
+
required: true
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=EventParameterDefinitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/EventParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,yBAAyB;;AAAtC,8DAmBC;AAjB0B,0CAAgB,GAAG,GAAG,CAAC;AACvB,mCAAS,GAAG,IAAI,CAAC,CAAE,WAAW;AACvC,6CAAmB,GAAiC;IAC9D,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACN,WAAW,EAAE,sFAAsF;QAC/F,6CAA6C;IACzD,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEY,6CAAmB,GAAiC;IAC9D,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,oGAAoG;QAC7G,gCAAgC;IACpC,QAAQ,EAAE,IAAI;CACjB,CAAC"}
|
|
@@ -32,14 +32,13 @@ RexxParameterDefinitions.WAIT_TIME = 3600; // one hour
|
|
|
32
32
|
RexxParameterDefinitions.rexxProgramPositional = {
|
|
33
33
|
name: "program",
|
|
34
34
|
type: "string",
|
|
35
|
-
description: "The name of the OPS/REXX source program. When
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
" is
|
|
40
|
-
"
|
|
41
|
-
" {USER_PREFIX}.
|
|
42
|
-
" is expanded to {USER_PREFIX}.REXX(MEMBER).",
|
|
35
|
+
description: "The name of the OPS/REXX source program. When enclosed in single quotes, the program name" +
|
|
36
|
+
" can be either a fully qualified data set name (sequential or PDS including member) or a member of a" +
|
|
37
|
+
" precompiled REXX data set. When not enclosed in quotes, the program name is expanded as follows:" +
|
|
38
|
+
" If it is in the format MYLIB, it is expanded to {USER_PREFIX}.MYLIB.REXX, where {USER_PREFIX}" +
|
|
39
|
+
" represents your default TSO prefix. If it is in the format MYLIB(MEMBER), it is expanded to" +
|
|
40
|
+
" {USER_PREFIX}.MYLIB.REXX(MEMBER). If it is in the format (MEMBER), it is expanded to" +
|
|
41
|
+
" {USER_PREFIX}.REXX(MEMBER).",
|
|
43
42
|
required: true
|
|
44
43
|
};
|
|
45
44
|
RexxParameterDefinitions.argumentOption = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RexxParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/RexxParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,wBAAwB;;AAArC,
|
|
1
|
+
{"version":3,"file":"RexxParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/RexxParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,wBAAwB;;AAArC,4DAyGC;AAvGG,+CAA+C;AACxB,yCAAgB,GAAG,GAAG,CAAC;AACvB,kCAAS,GAAG,IAAI,CAAC,CAAE,WAAW;AACvC,8CAAqB,GAAiC;IAChE,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,2FAA2F;QACpG,sGAAsG;QACtG,mGAAmG;QACnG,gGAAgG;QAChG,8FAA8F;QAC9F,uFAAuF;QACvF,8BAA8B;IAClC,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEY,uCAAc,GAA6B;IACrD,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,4FAA4F;QACrG,oGAAoG;QACpG,yEAAyE;IAC7E,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,iBAAiB,EAAE,CAAC,CAAC,EAAE,wBAAwB,CAAC,gBAAgB,CAAC;CACpE,CAAC;AAEY,uCAAc,GAA6B;IACrD,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,oGAAoG;IACjH,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,IAAI,CAAC;CAClB,CAAC;AAEY,wCAAe,GAA6B;IACtD,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,6FAA6F;QACtG,iGAAiG;QACjG,kGAAkG;QAClG,wCAAwC;IAC5C,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,IAAI,CAAC;CAClB,CAAC;AAEY,sCAAa,GAA6B;IACpD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,QAAQ;IACd,WAAW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ACjB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
|
+
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
*
|
|
6
|
+
* This software and all information contained therein is
|
|
7
|
+
* confidential and proprietary and shall not be duplicated,
|
|
8
|
+
* used, disclosed, or disseminated in any way except as
|
|
9
|
+
* authorized by the applicable license agreement, without the
|
|
10
|
+
* express written permission of Broadcom. All authorized
|
|
11
|
+
* reproductions must be marked with this language.
|
|
12
|
+
*
|
|
13
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
+
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
+
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
+
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
+
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
+
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
+
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
+
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
+
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.TableParameterDefinitions = void 0;
|
|
26
|
+
class TableParameterDefinitions {
|
|
27
|
+
}
|
|
28
|
+
exports.TableParameterDefinitions = TableParameterDefinitions;
|
|
29
|
+
TableParameterDefinitions.TABLE_NAME_MAX_LEN = 18;
|
|
30
|
+
TableParameterDefinitions.tableNameOption = {
|
|
31
|
+
name: "tablename",
|
|
32
|
+
type: "string",
|
|
33
|
+
description: "The optional filter used to describe which table names will be returned. You can specify either" +
|
|
34
|
+
" an absolute table name or a table name containing one or more wildcard characters (* or ?)." +
|
|
35
|
+
" The * wildcard will match zero or more characters, and the ? wildcard will match any single character." +
|
|
36
|
+
" If no value is specified, the value * will be used.",
|
|
37
|
+
required: false,
|
|
38
|
+
aliases: ["table"],
|
|
39
|
+
stringLengthRange: [1, TableParameterDefinitions.TABLE_NAME_MAX_LEN]
|
|
40
|
+
};
|
|
41
|
+
TableParameterDefinitions.formatOption = {
|
|
42
|
+
name: "format", aliases: ["f"],
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "Format of the displayed output.",
|
|
45
|
+
defaultValue: "namevalue",
|
|
46
|
+
allowableValues: {
|
|
47
|
+
values: ["namevalue", "namevaluecolor", "csv", "json"],
|
|
48
|
+
caseSensitive: false,
|
|
49
|
+
},
|
|
50
|
+
required: false,
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=TableParameterDefinitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/TableParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,yBAAyB;;AAAtC,8DA2BC;AAzB0B,4CAAkB,GAAG,EAAE,CAAC;AAEjC,yCAAe,GAA6B;IACtD,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,iGAAiG;QAC1G,8FAA8F;QAC9F,yGAAyG;QACzG,sDAAsD;IAC1D,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,iBAAiB,EAAE,CAAC,CAAC,EAAE,yBAAyB,CAAC,kBAAkB,CAAC;CACvE,CAAC;AAEY,sCAAY,GAA6B;IACnD,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;IAC9B,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,iCAAiC;IAC9C,YAAY,EAAE,WAAW;IACzB,eAAe,EAAE;QACb,MAAM,EAAE,CAAC,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,CAAC;QACtD,aAAa,EAAE,KAAK;KACvB;IACD,QAAQ,EAAE,KAAK;CAClB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
|
+
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
*
|
|
6
|
+
* This software and all information contained therein is
|
|
7
|
+
* confidential and proprietary and shall not be duplicated,
|
|
8
|
+
* used, disclosed, or disseminated in any way except as
|
|
9
|
+
* authorized by the applicable license agreement, without the
|
|
10
|
+
* express written permission of Broadcom. All authorized
|
|
11
|
+
* reproductions must be marked with this language.
|
|
12
|
+
*
|
|
13
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
+
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
+
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
+
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
+
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
+
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
+
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
+
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
+
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
|
+
*/
|
|
24
|
+
const Event_definition_1 = require("./event/Event.definition");
|
|
25
|
+
const api_1 = require("../../api");
|
|
26
|
+
const CreateDefinition = {
|
|
27
|
+
name: "create",
|
|
28
|
+
summary: "Create a generic AOF event for API rules processing.",
|
|
29
|
+
description: "Create a generic AOF event for API rules processing.",
|
|
30
|
+
type: "group",
|
|
31
|
+
children: [Event_definition_1.EventDefinition],
|
|
32
|
+
passOn: api_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
|
|
33
|
+
};
|
|
34
|
+
module.exports = CreateDefinition;
|
|
35
|
+
//# sourceMappingURL=Create.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Create.definition.js","sourceRoot":"","sources":["../../../src/cli/create/Create.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,+DAA2D;AAC3D,mCAAyC;AAEzC,MAAM,gBAAgB,GAAuB;IACzC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,sDAAsD;IAC/D,WAAW,EAAE,sDAAsD;IACnE,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,kCAAe,CAAC;IAC3B,MAAM,EAAE,kBAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
|
+
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
*
|
|
6
|
+
* This software and all information contained therein is
|
|
7
|
+
* confidential and proprietary and shall not be duplicated,
|
|
8
|
+
* used, disclosed, or disseminated in any way except as
|
|
9
|
+
* authorized by the applicable license agreement, without the
|
|
10
|
+
* express written permission of Broadcom. All authorized
|
|
11
|
+
* reproductions must be marked with this language.
|
|
12
|
+
*
|
|
13
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
+
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
+
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
+
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
+
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
+
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
+
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
+
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
+
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.EventDefinition = void 0;
|
|
26
|
+
const EventParameterDefinitions_1 = require("../../EventParameterDefinitions");
|
|
27
|
+
exports.EventDefinition = {
|
|
28
|
+
name: "event",
|
|
29
|
+
aliases: [],
|
|
30
|
+
summary: "Create a generic AOF event for API rules processing.",
|
|
31
|
+
description: "Create a generic AOF event for API rules processing",
|
|
32
|
+
examples: [
|
|
33
|
+
{
|
|
34
|
+
options: "\"EVENTCODE\" \"eventtext\" --subsystem \"OPSS\"",
|
|
35
|
+
description: "Create a generic AOF event, \"EVENTCODE\" for API rules processing on the \"OPSS\" subsystem."
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
type: "command",
|
|
39
|
+
handler: __dirname + "/Event.handler",
|
|
40
|
+
profile: { optional: ["ops"] },
|
|
41
|
+
positionals: [
|
|
42
|
+
EventParameterDefinitions_1.EventParameterDefinitions.eventCodePositional,
|
|
43
|
+
EventParameterDefinitions_1.EventParameterDefinitions.eventTextPositional,
|
|
44
|
+
]
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=Event.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Event.definition.js","sourceRoot":"","sources":["../../../../src/cli/create/event/Event.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,+EAA0E;AAE7D,QAAA,eAAe,GAAuB;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,sDAAsD;IAC/D,WAAW,EAAE,qDAAqD;IAClE,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kDAAkD;YAC3D,WAAW,EAAE,+FAA+F;SAC/G;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,gBAAgB;IACrC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,qDAAyB,CAAC,mBAAmB;QAC7C,qDAAyB,CAAC,mBAAmB;KAChD;CACJ,CAAC"}
|