@broadcom/ops-for-zowe-cli 4.1.2 → 5.0.0-next.202401221923
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/LICENSE +1 -1
- package/README.md +8 -12
- package/lib/api/OpsProfilesConfig.js +10 -6
- package/lib/api/OpsProfilesConfig.js.map +1 -1
- package/lib/api/Show.d.ts +4 -3
- package/lib/api/Show.js +20 -6
- package/lib/api/Show.js.map +1 -1
- package/lib/api/Update.d.ts +2 -2
- package/lib/api/Update.js +40 -14
- package/lib/api/Update.js.map +1 -1
- package/lib/api/constants/Ops.constants.js +7 -5
- package/lib/api/constants/Ops.constants.js.map +1 -1
- package/lib/api/constants/PluginConstants.js +1 -1
- package/lib/api/constants/index.js +7 -3
- package/lib/api/constants/index.js.map +1 -1
- package/lib/api/doc/IShowResourceResponse.js +1 -1
- package/lib/api/doc/IShowRuleResponse.js +1 -1
- package/lib/api/doc/IShowRulesetResponse.d.ts +12 -0
- package/lib/api/doc/IShowRulesetResponse.js +25 -0
- package/lib/api/doc/IShowRulesetResponse.js.map +1 -0
- package/lib/api/index.js +7 -3
- package/lib/api/index.js.map +1 -1
- package/lib/api/utils/IOpsRestResponse.js +1 -1
- package/lib/api/utils/OpsRestClient.js +1 -1
- package/lib/api/utils/OpsRestUtils.d.ts +3 -2
- package/lib/api/utils/OpsRestUtils.js +20 -9
- package/lib/api/utils/OpsRestUtils.js.map +1 -1
- package/lib/api/utils/OpsTextUtils.js +14 -5
- package/lib/api/utils/OpsTextUtils.js.map +1 -1
- package/lib/api/utils/RuleListUtils.d.ts +1 -0
- package/lib/api/utils/RuleListUtils.js +36 -9
- package/lib/api/utils/RuleListUtils.js.map +1 -1
- package/lib/api/utils/RuleUtils.d.ts +4 -4
- package/lib/api/utils/RuleUtils.js +29 -13
- package/lib/api/utils/RuleUtils.js.map +1 -1
- package/lib/api/utils/RulesetListUtils.d.ts +4 -0
- package/lib/api/utils/RulesetListUtils.js +41 -0
- package/lib/api/utils/RulesetListUtils.js.map +1 -0
- package/lib/api/utils/RulesetUtils.d.ts +5 -0
- package/lib/api/utils/RulesetUtils.js +51 -0
- package/lib/api/utils/RulesetUtils.js.map +1 -0
- package/lib/api/utils/SSMResourceListUtils.js +21 -5
- package/lib/api/utils/SSMResourceListUtils.js.map +1 -1
- package/lib/api/utils/SSMUtils.d.ts +5 -4
- package/lib/api/utils/SSMUtils.js +80 -20
- package/lib/api/utils/SSMUtils.js.map +1 -1
- package/lib/api/utils/index.d.ts +4 -2
- package/lib/api/utils/index.js +11 -5
- package/lib/api/utils/index.js.map +1 -1
- package/lib/cli/OpsBaseHandler.js +1 -1
- package/lib/cli/ResourceParameterDefinitions.d.ts +1 -1
- package/lib/cli/ResourceParameterDefinitions.js +12 -7
- package/lib/cli/ResourceParameterDefinitions.js.map +1 -1
- package/lib/cli/RuleParameterDefinitions.js +2 -2
- package/lib/cli/RuleParameterDefinitions.js.map +1 -1
- package/lib/cli/RulesetParameterDefinitions.d.ts +5 -0
- package/lib/cli/RulesetParameterDefinitions.js +37 -0
- package/lib/cli/RulesetParameterDefinitions.js.map +1 -0
- package/lib/cli/disable/Disable.definition.js +3 -3
- package/lib/cli/disable/Disable.definition.js.map +1 -1
- package/lib/cli/disable/rule/Rule.definition.js +2 -2
- package/lib/cli/disable/rule/Rule.definition.js.map +1 -1
- package/lib/cli/disable/rule/Rule.handler.js +3 -3
- package/lib/cli/disable/rule/Rule.handler.js.map +1 -1
- package/lib/cli/enable/Enable.definition.js +3 -4
- package/lib/cli/enable/Enable.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/enable/rule/Rule.handler.js +2 -2
- package/lib/cli/enable/rule/Rule.handler.js.map +1 -1
- package/lib/cli/show/Show.definition.js +5 -4
- package/lib/cli/show/Show.definition.js.map +1 -1
- package/lib/cli/show/resource/Resource.definition.js +15 -5
- package/lib/cli/show/resource/Resource.definition.js.map +1 -1
- package/lib/cli/show/resource/Resource.handler.js +2 -2
- package/lib/cli/show/resource/Resource.handler.js.map +1 -1
- package/lib/cli/show/rule/Rule.definition.js +12 -2
- package/lib/cli/show/rule/Rule.definition.js.map +1 -1
- package/lib/cli/show/rule/Rule.handler.js +9 -4
- package/lib/cli/show/rule/Rule.handler.js.map +1 -1
- package/lib/cli/show/ruleset/Ruleset.definition.d.ts +17 -0
- package/lib/cli/show/ruleset/Ruleset.definition.js +70 -0
- package/lib/cli/show/ruleset/Ruleset.definition.js.map +1 -0
- package/lib/cli/show/ruleset/Ruleset.handler.d.ts +5 -0
- package/lib/cli/show/ruleset/Ruleset.handler.js +50 -0
- package/lib/cli/show/ruleset/Ruleset.handler.js.map +1 -0
- package/lib/cli/start/Start.definition.js +3 -3
- package/lib/cli/start/Start.definition.js.map +1 -1
- package/lib/cli/start/resource/Resource.definition.js +9 -9
- package/lib/cli/start/resource/Resource.definition.js.map +1 -1
- package/lib/cli/start/resource/Resource.handler.js +2 -2
- package/lib/cli/start/resource/Resource.handler.js.map +1 -1
- package/lib/cli/stop/Stop.definition.js +3 -3
- package/lib/cli/stop/Stop.definition.js.map +1 -1
- package/lib/cli/stop/resource/Resource.definition.js +9 -9
- package/lib/cli/stop/resource/Resource.definition.js.map +1 -1
- package/lib/cli/stop/resource/Resource.handler.js +2 -2
- package/lib/cli/stop/resource/Resource.handler.js.map +1 -1
- package/lib/healthCheck.handler.js +1 -1
- package/lib/imperative.js +17 -10
- package/lib/imperative.js.map +1 -1
- package/lib/index.d.ts +6 -4
- package/lib/index.js +13 -7
- package/lib/index.js.map +1 -1
- package/package.json +36 -38
package/lib/api/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -23,19 +23,25 @@
|
|
|
23
23
|
*/
|
|
24
24
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
25
25
|
if (k2 === undefined) k2 = k;
|
|
26
|
-
Object.
|
|
26
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
27
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
28
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
29
|
+
}
|
|
30
|
+
Object.defineProperty(o, k2, desc);
|
|
27
31
|
}) : (function(o, m, k, k2) {
|
|
28
32
|
if (k2 === undefined) k2 = k;
|
|
29
33
|
o[k2] = m[k];
|
|
30
34
|
}));
|
|
31
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
-
for (var p in m) if (p !== "default" && !
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
33
37
|
};
|
|
34
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
39
|
__exportStar(require("./OpsRestUtils"), exports);
|
|
36
|
-
__exportStar(require("./SSMUtils"), exports);
|
|
37
40
|
__exportStar(require("./OpsTextUtils"), exports);
|
|
41
|
+
__exportStar(require("./RuleListUtils"), exports);
|
|
38
42
|
__exportStar(require("./RuleUtils"), exports);
|
|
43
|
+
__exportStar(require("./RulesetListUtils"), exports);
|
|
44
|
+
__exportStar(require("./RulesetUtils"), exports);
|
|
39
45
|
__exportStar(require("./SSMResourceListUtils"), exports);
|
|
40
|
-
__exportStar(require("./
|
|
46
|
+
__exportStar(require("./SSMUtils"), exports);
|
|
41
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/utils/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/utils/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;;;;;AAEH,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC;AAChC,8CAA4B;AAC5B,qDAAmC;AACnC,iDAA+B;AAC/B,yDAAuC;AACvC,6CAA2B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -2,10 +2,10 @@ import { ICommandOptionDefinition, ICommandPositionalDefinition } from "@zowe/im
|
|
|
2
2
|
export declare class ResourceParameterDefinitions {
|
|
3
3
|
static readonly RESOURCE_NAME_MAX_LEN = 18;
|
|
4
4
|
static readonly TABLE_NAME_MAX_LEN = 18;
|
|
5
|
-
static readonly MAX_TIMEOUT = 300;
|
|
6
5
|
static readonly ONE_DAY = 86400;
|
|
7
6
|
static resourceNamePositional: ICommandPositionalDefinition;
|
|
8
7
|
static tableNameOption: ICommandOptionDefinition;
|
|
8
|
+
static tableNameUpdatePositional: ICommandOptionDefinition;
|
|
9
9
|
static stateOption: ICommandOptionDefinition;
|
|
10
10
|
static waitOption: ICommandOptionDefinition;
|
|
11
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -28,7 +28,6 @@ class ResourceParameterDefinitions {
|
|
|
28
28
|
exports.ResourceParameterDefinitions = ResourceParameterDefinitions;
|
|
29
29
|
ResourceParameterDefinitions.RESOURCE_NAME_MAX_LEN = 18;
|
|
30
30
|
ResourceParameterDefinitions.TABLE_NAME_MAX_LEN = 18;
|
|
31
|
-
ResourceParameterDefinitions.MAX_TIMEOUT = 300;
|
|
32
31
|
ResourceParameterDefinitions.ONE_DAY = 86400;
|
|
33
32
|
ResourceParameterDefinitions.resourceNamePositional = {
|
|
34
33
|
name: "resourcename",
|
|
@@ -40,14 +39,20 @@ ResourceParameterDefinitions.resourceNamePositional = {
|
|
|
40
39
|
ResourceParameterDefinitions.tableNameOption = {
|
|
41
40
|
name: "tablename",
|
|
42
41
|
type: "string",
|
|
43
|
-
description: "The name of the table that contains the resource. " +
|
|
44
|
-
"
|
|
45
|
-
"If the resource exists in multiple tables, the desired state of the resource " +
|
|
46
|
-
"will be set to the appropriate DOWN state in all the tables where the resource exists. ",
|
|
42
|
+
description: "The name of the table that contains the resource. If not specified, the command searches " +
|
|
43
|
+
"all SSM tables and displays each instance of the resource that is found.",
|
|
47
44
|
required: false,
|
|
48
45
|
aliases: ["table"],
|
|
49
46
|
stringLengthRange: [1, ResourceParameterDefinitions.TABLE_NAME_MAX_LEN]
|
|
50
47
|
};
|
|
48
|
+
ResourceParameterDefinitions.tableNameUpdatePositional = {
|
|
49
|
+
name: "tablename",
|
|
50
|
+
type: "string",
|
|
51
|
+
description: "The name of the table that contains the resource.",
|
|
52
|
+
required: true,
|
|
53
|
+
aliases: ["table"],
|
|
54
|
+
stringLengthRange: [1, ResourceParameterDefinitions.TABLE_NAME_MAX_LEN]
|
|
55
|
+
};
|
|
51
56
|
ResourceParameterDefinitions.stateOption = {
|
|
52
57
|
name: "state",
|
|
53
58
|
type: "boolean",
|
|
@@ -59,7 +64,7 @@ ResourceParameterDefinitions.waitOption = {
|
|
|
59
64
|
type: "number",
|
|
60
65
|
description: "Wait for the specified number of seconds for the current state of the SSM resource to match " +
|
|
61
66
|
"the new desired state. If more than the specified number of seconds elapses and the current and " +
|
|
62
|
-
"desired
|
|
67
|
+
"desired states still do not match, the command fails with a timeout error.",
|
|
63
68
|
required: false,
|
|
64
69
|
numericValueRange: [1, ResourceParameterDefinitions.ONE_DAY]
|
|
65
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/ResourceParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,4BAA4B;;AAAzC,
|
|
1
|
+
{"version":3,"file":"ResourceParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/ResourceParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,4BAA4B;;AAAzC,oEAiDC;AA/C0B,kDAAqB,GAAG,EAAE,CAAC;AAC3B,+CAAkB,GAAG,EAAE,CAAC;AACxB,oCAAO,GAAG,KAAK,CAAC;AAEzB,mDAAsB,GAAiC;IACjE,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,IAAI;IACd,iBAAiB,EAAE,CAAC,CAAC,EAAE,4BAA4B,CAAC,qBAAqB,CAAC;CAC7E,CAAC;AAEY,4CAAe,GAA6B;IACtD,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,2FAA2F;QACpG,0EAA0E;IAC9E,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,iBAAiB,EAAE,CAAC,CAAC,EAAE,4BAA4B,CAAC,kBAAkB,CAAC;CAC1E,CAAC;AAEY,sDAAyB,GAA6B;IAChE,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,iBAAiB,EAAE,CAAC,CAAC,EAAE,4BAA4B,CAAC,kBAAkB,CAAC;CAC1E,CAAC;AAEY,wCAAW,GAA6B;IAClD,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,KAAK;CAClB,CAAC;AAEY,uCAAU,GAA6B;IACjD,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;IAC5B,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,8FAA8F;QACvG,kGAAkG;QAClG,4EAA4E;IAChF,QAAQ,EAAE,KAAK;IACf,iBAAiB,EAAE,CAAC,CAAC,EAAE,4BAA4B,CAAC,OAAO,CAAC;CAC/D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -31,7 +31,7 @@ RuleParameterDefinitions.RULENAME_MAX_LEN = 8;
|
|
|
31
31
|
RuleParameterDefinitions.rulesetPositional = {
|
|
32
32
|
name: "ruleset",
|
|
33
33
|
type: "string",
|
|
34
|
-
description: "The
|
|
34
|
+
description: "The ruleset containing the rule.",
|
|
35
35
|
required: true,
|
|
36
36
|
stringLengthRange: [1, RuleParameterDefinitions.RULESET_MAX_LEN]
|
|
37
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/RuleParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,wBAAwB;;AAArC,4DAoBC;AAlB0B,wCAAe,GAAG,CAAC,CAAC;AACpB,yCAAgB,GAAG,CAAC,CAAC;AAE9B,0CAAiB,GAAiC;IAC5D,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"RuleParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/RuleParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,wBAAwB;;AAArC,4DAoBC;AAlB0B,wCAAe,GAAG,CAAC,CAAC;AACpB,yCAAgB,GAAG,CAAC,CAAC;AAE9B,0CAAiB,GAAiC;IAC5D,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,kCAAkC;IAC/C,QAAQ,EAAE,IAAI;IACd,iBAAiB,EAAE,CAAC,CAAC,EAAE,wBAAwB,CAAC,eAAe,CAAC;CACnE,CAAC;AAEY,2CAAkB,GAAiC;IAC7D,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,uBAAuB;IACpC,QAAQ,EAAE,IAAI;IACd,iBAAiB,EAAE,CAAC,CAAC,EAAE,wBAAwB,CAAC,gBAAgB,CAAC;CACpE,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.RulesetParameterDefinitions = void 0;
|
|
26
|
+
class RulesetParameterDefinitions {
|
|
27
|
+
}
|
|
28
|
+
exports.RulesetParameterDefinitions = RulesetParameterDefinitions;
|
|
29
|
+
RulesetParameterDefinitions.RULESET_MAX_LEN = 8;
|
|
30
|
+
RulesetParameterDefinitions.rulesetOption = {
|
|
31
|
+
name: "ruleset",
|
|
32
|
+
type: "string",
|
|
33
|
+
description: "The ruleset to display.",
|
|
34
|
+
required: false,
|
|
35
|
+
stringLengthRange: [1, RulesetParameterDefinitions.RULESET_MAX_LEN]
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=RulesetParameterDefinitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RulesetParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/RulesetParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,2BAA2B;;AAAxC,kEAWC;AAT0B,2CAAe,GAAG,CAAC,CAAC;AAE7B,yCAAa,GAA6B;IACpD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,yBAAyB;IACtC,QAAQ,EAAE,KAAK;IACf,iBAAiB,EAAE,CAAC,CAAC,EAAE,2BAA2B,CAAC,eAAe,CAAC;CACtE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -25,8 +25,8 @@ const Rule_definition_1 = require("./rule/Rule.definition");
|
|
|
25
25
|
const OpsRestUtils_1 = require("../../api/utils/OpsRestUtils");
|
|
26
26
|
const DisableDefinition = {
|
|
27
27
|
name: "disable",
|
|
28
|
-
summary: "Disable
|
|
29
|
-
description: "Disable
|
|
28
|
+
summary: "Disable an AOF rule.",
|
|
29
|
+
description: "Disable an Automated Operations Facility rule.",
|
|
30
30
|
type: "group",
|
|
31
31
|
children: [Rule_definition_1.RuleDefinition],
|
|
32
32
|
passOn: OpsRestUtils_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Disable.definition.js","sourceRoot":"","sources":["../../../src/cli/disable/Disable.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,4DAAwD;AACxD,+DAA4D;AAE5D,MAAM,iBAAiB,GAAuB;IAC1C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Disable.definition.js","sourceRoot":"","sources":["../../../src/cli/disable/Disable.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,4DAAwD;AACxD,+DAA4D;AAE5D,MAAM,iBAAiB,GAAuB;IAC1C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,sBAAsB;IAC/B,WAAW,EAAE,gDAAgD;IAC7D,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,gCAAc,CAAC;IAC1B,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -32,7 +32,7 @@ exports.RuleDefinition = {
|
|
|
32
32
|
examples: [
|
|
33
33
|
{
|
|
34
34
|
options: "OPSRULES MYRULE --subsystem OPSS",
|
|
35
|
-
description: "Disable MYRULE
|
|
35
|
+
description: "Disable the rule MYRULE in the ruleset OPSRULES for the OPSS subsystem."
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
type: "command",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.definition.js","sourceRoot":"","sources":["../../../../src/cli/disable/rule/Rule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAE7D,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kCAAkC;YAC3C,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Rule.definition.js","sourceRoot":"","sources":["../../../../src/cli/disable/rule/Rule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAE7D,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kCAAkC;YAC3C,WAAW,EAAE,yEAAyE;SACzF;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,eAAe;IACpC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,mDAAwB,CAAC,iBAAiB;QAC1C,mDAAwB,CAAC,kBAAkB;KAC9C;IACD,OAAO,EAAE,EACR;CACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -31,12 +31,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
35
34
|
const index_1 = require("../../../index");
|
|
35
|
+
const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
36
36
|
class RuleHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
37
37
|
processOps(params) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const response = yield index_1.updateRule(this.session, params.arguments.ruleset, params.arguments.rule, "DISABLED", params.arguments.subsystem);
|
|
39
|
+
const response = yield (0, index_1.updateRule)(this.session, params.arguments.ruleset, params.arguments.rule, "DISABLED", params.arguments.restApi, params.arguments.subsystem);
|
|
40
40
|
params.response.data.setObj(response);
|
|
41
41
|
index_1.RuleListUtils.printRuleStatusResponse(response, params);
|
|
42
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.handler.js","sourceRoot":"","sources":["../../../../src/cli/disable/rule/Rule.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,
|
|
1
|
+
{"version":3,"file":"Rule.handler.js","sourceRoot":"","sources":["../../../../src/cli/disable/rule/Rule.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0CAAyD;AACzD,yDAAoD;AAEpD,MAAqB,WAAY,SAAQ,+BAAc;IAEtC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAG,MAAM,IAAA,kBAAU,EAAC,IAAI,CAAC,OAAO,EAC1C,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,EAC/C,UAAU,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YACtE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,qBAAa,CAAC,uBAAuB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC5D,CAAC;KAAA;CACJ;AAVD,8BAUC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -25,9 +25,8 @@ const Rule_definition_1 = require("./rule/Rule.definition");
|
|
|
25
25
|
const OpsRestUtils_1 = require("../../api/utils/OpsRestUtils");
|
|
26
26
|
const EnableDefinition = {
|
|
27
27
|
name: "enable",
|
|
28
|
-
summary: "
|
|
29
|
-
description: "
|
|
30
|
-
"This will cause SSM to take the necessary action to enable that rule.",
|
|
28
|
+
summary: "Enable an AOF rule.",
|
|
29
|
+
description: "Enable an Automated Operations Facility rule.",
|
|
31
30
|
type: "group",
|
|
32
31
|
children: [Rule_definition_1.RuleDefinition],
|
|
33
32
|
passOn: OpsRestUtils_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Enable.definition.js","sourceRoot":"","sources":["../../../src/cli/enable/Enable.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,4DAAwD;AACxD,+DAA4D;AAE5D,MAAM,gBAAgB,GAAuB;IACzC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Enable.definition.js","sourceRoot":"","sources":["../../../src/cli/enable/Enable.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,4DAAwD;AACxD,+DAA4D;AAE5D,MAAM,gBAAgB,GAAuB;IACzC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,qBAAqB;IAC9B,WAAW,EAAE,+CAA+C;IAC5D,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,gCAAc,CAAC;IAC1B,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -32,7 +32,7 @@ exports.RuleDefinition = {
|
|
|
32
32
|
examples: [
|
|
33
33
|
{
|
|
34
34
|
options: "OPSRULES MYRULE --subsystem OPSS",
|
|
35
|
-
description: "Enable MYRULE
|
|
35
|
+
description: "Enable the rule MYRULE in the ruleset OPSRULES for the OPSS subsystem."
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
type: "command",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.definition.js","sourceRoot":"","sources":["../../../../src/cli/enable/rule/Rule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAE7D,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,4BAA4B;IACrC,WAAW,EAAE,4BAA4B;IACzC,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kCAAkC;YAC3C,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Rule.definition.js","sourceRoot":"","sources":["../../../../src/cli/enable/rule/Rule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAE7D,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,4BAA4B;IACrC,WAAW,EAAE,4BAA4B;IACzC,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kCAAkC;YAC3C,WAAW,EAAE,wEAAwE;SACxF;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,eAAe;IACpC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,mDAAwB,CAAC,iBAAiB;QAC1C,mDAAwB,CAAC,kBAAkB;KAC9C;IACD,OAAO,EAAE,EACR;CACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -36,7 +36,7 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
|
36
36
|
class RuleHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
37
37
|
processOps(params) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const response = yield index_1.updateRule(this.session, params.arguments.ruleset, params.arguments.rule, "ENABLED", params.arguments.subsystem);
|
|
39
|
+
const response = yield (0, index_1.updateRule)(this.session, params.arguments.ruleset, params.arguments.rule, "ENABLED", params.arguments.restApi, params.arguments.subsystem);
|
|
40
40
|
params.response.data.setObj(response);
|
|
41
41
|
index_1.RuleListUtils.printRuleStatusResponse(response, params);
|
|
42
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.handler.js","sourceRoot":"","sources":["../../../../src/cli/enable/rule/Rule.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0CAAyD;AACzD,yDAAoD;AAEpD,MAAqB,WAAY,SAAQ,+BAAc;IAEtC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Rule.handler.js","sourceRoot":"","sources":["../../../../src/cli/enable/rule/Rule.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0CAAyD;AACzD,yDAAoD;AAEpD,MAAqB,WAAY,SAAQ,+BAAc;IAEtC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAG,MAAM,IAAA,kBAAU,EAAC,IAAI,CAAC,OAAO,EAC1C,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,EAC/C,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YACrE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,qBAAa,CAAC,uBAAuB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC5D,CAAC;KAAA;CACJ;AAVD,8BAUC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
*/
|
|
24
24
|
const Resource_definition_1 = require("./resource/Resource.definition");
|
|
25
25
|
const Rule_definition_1 = require("./rule/Rule.definition");
|
|
26
|
+
const Ruleset_definition_1 = require("./ruleset/Ruleset.definition");
|
|
26
27
|
const OpsRestUtils_1 = require("../../api/utils/OpsRestUtils");
|
|
27
28
|
const ShowDefinition = {
|
|
28
29
|
name: "show",
|
|
29
|
-
summary: "Display data associated with OPS/MVS automation elements
|
|
30
|
-
description: "Display data associated with OPS/MVS automation elements
|
|
30
|
+
summary: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets, and SSM resources.",
|
|
31
|
+
description: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets, and SSM resources.",
|
|
31
32
|
type: "group",
|
|
32
|
-
children: [Resource_definition_1.ResourceDefinition, Rule_definition_1.RuleDefinition],
|
|
33
|
+
children: [Resource_definition_1.ResourceDefinition, Rule_definition_1.RuleDefinition, Ruleset_definition_1.RulesetDefinition],
|
|
33
34
|
passOn: OpsRestUtils_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
|
|
34
35
|
};
|
|
35
36
|
module.exports = ShowDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Show.definition.js","sourceRoot":"","sources":["../../../src/cli/show/Show.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,4DAAwD;AACxD,+DAA4D;AAE5D,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Show.definition.js","sourceRoot":"","sources":["../../../src/cli/show/Show.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,4DAAwD;AACxD,qEAAiE;AACjE,+DAA4D;AAE5D,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,8GAA8G;IACvH,WAAW,EAAE,8GAA8G;IAC3H,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,EAAE,gCAAc,EAAE,sCAAiB,CAAC;IACjE,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,cAAc,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -28,18 +28,28 @@ exports.ResourceDefinition = {
|
|
|
28
28
|
name: "resource",
|
|
29
29
|
aliases: [],
|
|
30
30
|
summary: "Display data associated with the specified SSM resource.",
|
|
31
|
-
description: "Display data associated with the specified SSM resource. Currently, only resource
|
|
31
|
+
description: "Display data associated with the specified SSM resource. Currently, only the current and desired states of the resource are displayed.",
|
|
32
32
|
examples: [
|
|
33
33
|
{
|
|
34
|
-
options: "RESOURCE1 --
|
|
35
|
-
description: "Show current and desired state of RESOURCE1
|
|
34
|
+
options: "RESOURCE1 --table MYTABLE --subsystem OPSS",
|
|
35
|
+
description: "Show the current and desired state of the resource RESOURCE1 in the table MYTABLE for the OPSS subsystem"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
options: "* --table MYTABLE --subsystem OPSS",
|
|
39
|
+
description: "Show the current and desired state of all resources in the table MYTABLE for the OPSS subsystem. " +
|
|
40
|
+
"This command is only available when connected to the OPS/MVS REST API server"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
options: "* --subsystem OPSS",
|
|
44
|
+
description: "Show the current and desired state of all resources in all tables for the OPSS subsystem. " +
|
|
45
|
+
"This command is only available when connected to the OPS/MVS REST API server"
|
|
36
46
|
}
|
|
37
47
|
],
|
|
38
48
|
type: "command",
|
|
39
49
|
handler: __dirname + "/Resource.handler",
|
|
40
50
|
profile: { optional: ["ops"] },
|
|
41
51
|
positionals: [
|
|
42
|
-
ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional
|
|
52
|
+
ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional,
|
|
43
53
|
],
|
|
44
54
|
options: [
|
|
45
55
|
ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameOption,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,0DAA0D;IACnE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,0DAA0D;IACnE,WAAW,EAAE,wIAAwI;IACrJ,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,4CAA4C;YACrD,WAAW,EAAE,0GAA0G;SAC1H;QACD;YACI,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,mGAAmG;gBAC5G,8EAA8E;SACrF;QACD;YACI,OAAO,EAAE,oBAAoB;YAC7B,WAAW,EAAE,4FAA4F;gBACrG,8EAA8E;SACrF;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,2DAA4B,CAAC,sBAAsB;KACtD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,eAAe;KAC/C;CACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -36,7 +36,7 @@ const index_1 = require("../../../index");
|
|
|
36
36
|
class ResourceHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
37
37
|
processOps(params) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const response = yield index_1.showResource(this.session, params.arguments.resourcename, params.arguments.tablename, params.arguments.subsystem);
|
|
39
|
+
const response = yield (0, index_1.showResource)(this.session, params.arguments.resourcename, params.arguments.restApi, params.arguments.tablename, params.arguments.subsystem);
|
|
40
40
|
params.response.data.setObj(response);
|
|
41
41
|
index_1.SSMResourceListUtils.printResourceList(response, params);
|
|
42
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,yDAAoD;AACpD,0CAAkE;AAElE,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,oBAAY,
|
|
1
|
+
{"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,yDAAoD;AACpD,0CAAkE;AAElE,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,oBAAY,EAAC,IAAI,CAAC,OAAO,EACjD,MAAM,CAAC,SAAS,CAAC,YAAY,EAC7B,MAAM,CAAC,SAAS,CAAC,OAAO,EACxB,MAAM,CAAC,SAAS,CAAC,SAAS,EAC1B,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YAEhC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,4BAAoB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAbD,kCAaC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -47,7 +47,17 @@ exports.RuleDefinition = {
|
|
|
47
47
|
examples: [
|
|
48
48
|
{
|
|
49
49
|
options: "OPSRULES MYRULE --subsystem OPSS",
|
|
50
|
-
description: "Show the status of MYRULE
|
|
50
|
+
description: "Show the status of the rule MYRULE in the ruleset OPSRULES for the OPSS subsystem"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
options: "OPSRULES * --subsystem OPSS",
|
|
54
|
+
description: "Show the status of all rules in ruleset OPSRULES for the OPSS subsystem. " +
|
|
55
|
+
"This command is only available when connected to the OPS/MVS REST API server"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
options: "* * --subsystem OPSS",
|
|
59
|
+
description: "Show the status of all rules in all rulesets for the OPSS subsystem. " +
|
|
60
|
+
"This command is only available when connected to the OPS/MVS REST API server"
|
|
51
61
|
}
|
|
52
62
|
],
|
|
53
63
|
type: "command",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/rule/Rule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAE1E;;;;;;;;;;;;;;GAcG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,kDAAkD;IAC3D,WAAW,EAAE,4FAA4F;IACzG,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kCAAkC;YAC3C,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Rule.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/rule/Rule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAE1E;;;;;;;;;;;;;;GAcG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,kDAAkD;IAC3D,WAAW,EAAE,4FAA4F;IACzG,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kCAAkC;YAC3C,WAAW,EAAE,mFAAmF;SACnG;QACD;YACI,OAAO,EAAE,6BAA6B;YACtC,WAAW,EAAE,2EAA2E;gBACpF,8EAA8E;SACrF;QACD;YACI,OAAO,EAAE,sBAAsB;YAC/B,WAAW,EAAE,uEAAuE;gBAChF,8EAA8E;SACrF;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,eAAe;IACpC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,mDAAwB,CAAC,iBAAiB;QAC1C,mDAAwB,CAAC,kBAAkB;KAC9C;IACD,OAAO,EAAE,EACR;CACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -37,9 +37,14 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
|
37
37
|
class RuleHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
38
38
|
processOps(params) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
if ((params.arguments.ruleset === "*") && (params.arguments.rule !== "*")) {
|
|
41
|
+
RuleListUtils_1.RuleListUtils.printShowRuleError(params);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const response = yield (0, Show_1.showRule)(this.session, params.arguments.ruleset, params.arguments.rule, params.arguments.restApi, params.arguments.subsystem);
|
|
45
|
+
params.response.data.setObj(response);
|
|
46
|
+
RuleListUtils_1.RuleListUtils.printShowRuleResponse(response, params);
|
|
47
|
+
}
|
|
43
48
|
});
|
|
44
49
|
}
|
|
45
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/rule/Rule.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,oEAAiE;AACjE,4CAA6C;AAC7C,yDAAsD;AAEtD,MAAqB,WAAY,SAAQ,+BAAc;IAEtC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,eAAQ,
|
|
1
|
+
{"version":3,"file":"Rule.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/rule/Rule.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,oEAAiE;AACjE,4CAA6C;AAC7C,yDAAsD;AAEtD,MAAqB,WAAY,SAAQ,+BAAc;IAEtC,UAAU,CAAC,MAA0B;;YAE9C,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE;gBACvE,6BAAa,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;aAC5C;iBAAM;gBACH,MAAM,QAAQ,GAAQ,MAAM,IAAA,eAAQ,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EACvE,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;gBACjF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,6BAAa,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;aACzD;QACL,CAAC;KAAA;CACJ;AAbD,8BAaC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ICommandDefinition } from "@zowe/imperative";
|
|
2
|
+
/**
|
|
3
|
+
* Command one [object] defintion. This definition is of imperative type "command" and therefore must have a
|
|
4
|
+
* command handler (which performs the "work" for this command).
|
|
5
|
+
*
|
|
6
|
+
* In this case, "command-with-options" will echo options specified on the command.
|
|
7
|
+
*
|
|
8
|
+
* Property Summary:
|
|
9
|
+
* =================
|
|
10
|
+
* "name" of the [object]. Should be a noun (e.g. data-set)
|
|
11
|
+
* "aliases" normally contains a shortened form of the command
|
|
12
|
+
* "summary" will display when issuing the help on this [objects] [action]
|
|
13
|
+
* "type" is "command" which means a handler is required
|
|
14
|
+
* "handler" is the file path to the handler (does the work)
|
|
15
|
+
* "options" an array of options
|
|
16
|
+
*/
|
|
17
|
+
export declare const RulesetDefinition: ICommandDefinition;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.RulesetDefinition = void 0;
|
|
26
|
+
const RulesetParameterDefinitions_1 = require("../../RulesetParameterDefinitions");
|
|
27
|
+
/**
|
|
28
|
+
* Command one [object] defintion. This definition is of imperative type "command" and therefore must have a
|
|
29
|
+
* command handler (which performs the "work" for this command).
|
|
30
|
+
*
|
|
31
|
+
* In this case, "command-with-options" will echo options specified on the command.
|
|
32
|
+
*
|
|
33
|
+
* Property Summary:
|
|
34
|
+
* =================
|
|
35
|
+
* "name" of the [object]. Should be a noun (e.g. data-set)
|
|
36
|
+
* "aliases" normally contains a shortened form of the command
|
|
37
|
+
* "summary" will display when issuing the help on this [objects] [action]
|
|
38
|
+
* "type" is "command" which means a handler is required
|
|
39
|
+
* "handler" is the file path to the handler (does the work)
|
|
40
|
+
* "options" an array of options
|
|
41
|
+
*/
|
|
42
|
+
exports.RulesetDefinition = {
|
|
43
|
+
name: "ruleset",
|
|
44
|
+
aliases: [],
|
|
45
|
+
summary: "Display data associated with one or all rulesets.",
|
|
46
|
+
description: "Display data associated with one or all rulesets for a specified subsystem." +
|
|
47
|
+
" This command is only available when connected to the OPS/MVS REST API server.",
|
|
48
|
+
examples: [
|
|
49
|
+
{
|
|
50
|
+
options: "--subsystem OPSS",
|
|
51
|
+
description: "Show the data for the rulesets defined for the OPSS subsystem"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
options: "--ruleset CICS",
|
|
55
|
+
description: "Show the data for ruleset CICS for the default OPS/MVS subsystem"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
options: "--ruleset IMS --subsystem OPSS",
|
|
59
|
+
description: "Show the data for ruleset IMS for the OPSS subsystem"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
type: "command",
|
|
63
|
+
handler: __dirname + "/Ruleset.handler",
|
|
64
|
+
profile: { optional: ["ops"] },
|
|
65
|
+
positionals: [],
|
|
66
|
+
options: [
|
|
67
|
+
RulesetParameterDefinitions_1.RulesetParameterDefinitions.rulesetOption,
|
|
68
|
+
]
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=Ruleset.definition.js.map
|