@broadcom/ops-for-zowe-cli 4.1.1 → 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 +18 -14
- package/lib/api/OpsProfilesConfig.js.map +1 -1
- package/lib/api/Show.d.ts +6 -0
- package/lib/api/Show.js +67 -0
- package/lib/api/Show.js.map +1 -0
- package/lib/api/{methods/update/Update.d.ts → Update.d.ts} +2 -2
- package/lib/api/{methods/update/Update.js → Update.js} +46 -18
- package/lib/api/Update.js.map +1 -0
- 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/{methods/update/index.js → doc/IShowRulesetResponse.js} +2 -13
- package/lib/api/doc/IShowRulesetResponse.js.map +1 -0
- package/lib/api/index.d.ts +4 -1
- package/lib/api/index.js +11 -4
- package/lib/api/index.js.map +1 -1
- package/lib/api/utils/IOpsRestResponse.js +1 -1
- package/lib/api/utils/OpsRestClient.d.ts +15 -0
- package/lib/api/utils/OpsRestClient.js +66 -0
- package/lib/api/utils/OpsRestClient.js.map +1 -0
- 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 +32 -16
- package/lib/api/utils/RuleUtils.js.map +1 -1
- package/lib/api/utils/RulesetListUtils.d.ts +4 -0
- package/lib/api/{methods/index.js → utils/RulesetListUtils.js} +18 -14
- 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 +83 -23
- 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 +3 -3
- package/lib/cli/OpsBaseHandler.js.map +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/{api/methods/show/index.js → cli/RulesetParameterDefinitions.js} +14 -13
- package/lib/cli/RulesetParameterDefinitions.js.map +1 -0
- package/lib/cli/disable/Disable.definition.js +5 -5
- 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 +5 -6
- 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 +7 -6
- 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 +11 -5
- 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/{api/methods/show/Show.js → cli/show/ruleset/Ruleset.handler.js} +17 -19
- package/lib/cli/show/ruleset/Ruleset.handler.js.map +1 -0
- package/lib/cli/start/Start.definition.js +5 -5
- 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 +5 -4
- package/lib/cli/start/resource/Resource.handler.js.map +1 -1
- package/lib/cli/stop/Stop.definition.js +5 -5
- 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 +5 -4
- package/lib/cli/stop/resource/Resource.handler.js.map +1 -1
- package/lib/healthCheck.handler.js +1 -1
- package/lib/healthCheck.handler.js.map +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 +30 -40
- package/lib/api/methods/index.d.ts +0 -2
- package/lib/api/methods/index.js.map +0 -1
- package/lib/api/methods/show/Show.d.ts +0 -5
- package/lib/api/methods/show/Show.js.map +0 -1
- package/lib/api/methods/show/index.d.ts +0 -1
- package/lib/api/methods/show/index.js.map +0 -1
- package/lib/api/methods/update/Update.js.map +0 -1
- package/lib/api/methods/update/index.d.ts +0 -1
- package/lib/api/methods/update/index.js.map +0 -1
|
@@ -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
|
|
@@ -31,14 +31,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
const RuleListUtils_1 = require("../../../api/utils/RuleListUtils");
|
|
35
|
+
const Show_1 = require("../../../api/Show");
|
|
34
36
|
const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
35
|
-
const index_1 = require("../../../index");
|
|
36
37
|
class RuleHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
37
38
|
processOps(params) {
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
+
}
|
|
42
48
|
});
|
|
43
49
|
}
|
|
44
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/rule/Rule.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ruleset.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,mFAAgF;AAEhF;;;;;;;;;;;;;;GAcG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,mDAAmD;IAC5D,WAAW,EAAE,6EAA6E;QACtF,gFAAgF;IACpF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,+DAA+D;SAC/E;QACD;YACI,OAAO,EAAE,gBAAgB;YACzB,WAAW,EAAE,kEAAkE;SAClF;QACD;YACI,OAAO,EAAE,gCAAgC;YACzC,WAAW,EAAE,sDAAsD;SACtE;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE,EACZ;IACD,OAAO,EAAE;QACL,yDAA2B,CAAC,aAAa;KAC5C;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,22 +31,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return imperative_1.RestClient.getExpectJSON(session, resourceUrl, constants_1.OpsConstants.headers);
|
|
49
|
-
});
|
|
34
|
+
const RulesetListUtils_1 = require("../../../api/utils/RulesetListUtils");
|
|
35
|
+
const Show_1 = require("../../../api/Show");
|
|
36
|
+
const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
37
|
+
class RulesetHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
38
|
+
processOps(params) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const response = yield (0, Show_1.showRuleset)(this.session, params.arguments.ruleset, params.arguments.restApi, params.arguments.subsystem, params);
|
|
41
|
+
// No need to process response to 'show ruleset' as not supported with web services
|
|
42
|
+
if (params.arguments.restApi) {
|
|
43
|
+
params.response.data.setObj(response);
|
|
44
|
+
RulesetListUtils_1.RulesetListUtils.printShowRulesetResponse(response, params);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
50
48
|
}
|
|
51
|
-
exports.
|
|
52
|
-
//# sourceMappingURL=
|
|
49
|
+
exports.default = RulesetHandler;
|
|
50
|
+
//# sourceMappingURL=Ruleset.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ruleset.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0EAAuE;AACvE,4CAAgD;AAChD,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,kBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAC1E,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAClE,mFAAmF;YACnF,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,mCAAgB,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;aAC/D;QACL,CAAC;KAAA;CACJ;AAZD,iCAYC"}
|
|
@@ -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
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
24
|
const Resource_definition_1 = require("./resource/Resource.definition");
|
|
25
|
-
const
|
|
25
|
+
const OpsRestUtils_1 = require("../../api/utils/OpsRestUtils");
|
|
26
26
|
const StartDefinition = {
|
|
27
27
|
name: "start",
|
|
28
|
-
summary: "
|
|
29
|
-
description: "Start
|
|
28
|
+
summary: "Start an SSM resource.",
|
|
29
|
+
description: "Start a System State Manager resource.",
|
|
30
30
|
type: "group",
|
|
31
31
|
children: [Resource_definition_1.ResourceDefinition],
|
|
32
|
-
passOn:
|
|
32
|
+
passOn: OpsRestUtils_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
|
|
33
33
|
};
|
|
34
34
|
module.exports = StartDefinition;
|
|
35
35
|
//# sourceMappingURL=Start.definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Start.definition.js","sourceRoot":"","sources":["../../../src/cli/start/Start.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE
|
|
1
|
+
{"version":3,"file":"Start.definition.js","sourceRoot":"","sources":["../../../src/cli/start/Start.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,+DAA4D;AAE5D,MAAM,eAAe,GAAuB;IACxC,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,wBAAwB;IACjC,WAAW,EAAE,wCAAwC;IACrD,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,CAAC;IAC9B,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,eAAe,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,16 +28,16 @@ exports.ResourceDefinition = {
|
|
|
28
28
|
name: "resource",
|
|
29
29
|
aliases: [],
|
|
30
30
|
summary: "Start the specified resource.",
|
|
31
|
-
description: "Start the specified resource. The desired state of the resource
|
|
32
|
-
"
|
|
31
|
+
description: "Start the specified resource. The desired state of the resource is " +
|
|
32
|
+
"set to the appropriate UP state and SSM takes action to start the resource.",
|
|
33
33
|
examples: [
|
|
34
34
|
{
|
|
35
|
-
options: "RESOURCE1
|
|
36
|
-
description: "Start RESOURCE1
|
|
35
|
+
options: "RESOURCE1 MYTABLE --subsystem OPSS",
|
|
36
|
+
description: "Start the resource RESOURCE1 in the table MYTABLE for subsystem OPSS."
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
options: "RESOURCE1
|
|
40
|
-
description: "Start RESOURCE1
|
|
39
|
+
options: "RESOURCE1 MYTABLE --subsystem OPSS -w 120",
|
|
40
|
+
description: "Start the resource RESOURCE1 in the table MYTABLE for the OPSS subsystem, and wait for up to 2 minutes " +
|
|
41
41
|
"for RESOURCE1 to have a current state of UP."
|
|
42
42
|
}
|
|
43
43
|
],
|
|
@@ -45,10 +45,10 @@ exports.ResourceDefinition = {
|
|
|
45
45
|
handler: __dirname + "/Resource.handler",
|
|
46
46
|
profile: { optional: ["ops"] },
|
|
47
47
|
positionals: [
|
|
48
|
-
ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional
|
|
48
|
+
ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional,
|
|
49
|
+
ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameUpdatePositional
|
|
49
50
|
],
|
|
50
51
|
options: [
|
|
51
|
-
ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameOption,
|
|
52
52
|
ResourceParameterDefinitions_1.ResourceParameterDefinitions.waitOption
|
|
53
53
|
]
|
|
54
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/start/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,+BAA+B;IACxC,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/start/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,+BAA+B;IACxC,WAAW,EAAE,qEAAqE;QACjF,6EAA6E;IAC9E,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,uEAAuE;SACvF;QACD;YACI,OAAO,EAAE,2CAA2C;YACpD,WAAW,EAAE,yGAAyG;gBAClH,8CAA8C;SACrD;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;QACnD,2DAA4B,CAAC,yBAAyB;KACzD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,UAAU;KAC1C;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,14 +31,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
const
|
|
34
|
+
const SSMResourceListUtils_1 = require("../../../api/utils/SSMResourceListUtils");
|
|
35
|
+
const Update_1 = require("../../../api/Update");
|
|
35
36
|
const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
36
37
|
class ResourceHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
37
38
|
processOps(params) {
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const response = yield
|
|
40
|
+
const response = yield (0, Update_1.updateResource)(this.session, params.arguments.resourcename, params.arguments.restApi, "UP", params.arguments.subsystem, params.arguments.tablename, params.arguments.wait);
|
|
40
41
|
params.response.data.setObj(response);
|
|
41
|
-
|
|
42
|
+
SSMResourceListUtils_1.SSMResourceListUtils.printResourceList(response, params);
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/start/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,
|
|
1
|
+
{"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/start/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,kFAA+E;AAC/E,gDAAqD;AACrD,yDAAoD;AAEpD,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,uBAAc,EAAC,IAAI,CAAC,OAAO,EACnD,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAC7D,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACnF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,2CAAoB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAVD,kCAUC"}
|
|
@@ -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
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
24
|
const Resource_definition_1 = require("./resource/Resource.definition");
|
|
25
|
-
const
|
|
25
|
+
const OpsRestUtils_1 = require("../../api/utils/OpsRestUtils");
|
|
26
26
|
const StopDefinition = {
|
|
27
27
|
name: "stop",
|
|
28
|
-
summary: "Stop
|
|
29
|
-
description: "Stop
|
|
28
|
+
summary: "Stop an SSM resource.",
|
|
29
|
+
description: "Stop a System State Manager resource.",
|
|
30
30
|
type: "group",
|
|
31
31
|
children: [Resource_definition_1.ResourceDefinition],
|
|
32
|
-
passOn:
|
|
32
|
+
passOn: OpsRestUtils_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
|
|
33
33
|
};
|
|
34
34
|
module.exports = StopDefinition;
|
|
35
35
|
//# sourceMappingURL=Stop.definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stop.definition.js","sourceRoot":"","sources":["../../../src/cli/stop/Stop.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,
|
|
1
|
+
{"version":3,"file":"Stop.definition.js","sourceRoot":"","sources":["../../../src/cli/stop/Stop.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,+DAA4D;AAE5D,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,uBAAuB;IAChC,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,CAAC;IAC9B,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,16 +28,16 @@ exports.ResourceDefinition = {
|
|
|
28
28
|
name: "resource",
|
|
29
29
|
aliases: [],
|
|
30
30
|
summary: "Stop the specified resource.",
|
|
31
|
-
description: "Stop the specified resource. The desired state of the resource
|
|
32
|
-
"
|
|
31
|
+
description: "Stop the specified resource. The desired state of the resource is " +
|
|
32
|
+
"set to the appropriate DOWN state and SSM takes action to stop the resource.",
|
|
33
33
|
examples: [
|
|
34
34
|
{
|
|
35
|
-
options: "RESOURCE1
|
|
36
|
-
description: "Stop RESOURCE1
|
|
35
|
+
options: "RESOURCE1 MYTABLE --subsystem OPSS",
|
|
36
|
+
description: "Stop the resource RESOURCE1 in the table MYTABLE for the OPSS subsystem."
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
options: "RESOURCE1
|
|
40
|
-
description: "
|
|
39
|
+
options: "RESOURCE1 MYTABLE --subsystem OPSS -w 120",
|
|
40
|
+
description: "Stop the RESOURCE1 in the table MYTABLE for the OPSS subsystem, and wait for up to 2 minutes " +
|
|
41
41
|
"for RESOURCE1 to have a current state of DOWN."
|
|
42
42
|
}
|
|
43
43
|
],
|
|
@@ -45,10 +45,10 @@ exports.ResourceDefinition = {
|
|
|
45
45
|
handler: __dirname + "/Resource.handler",
|
|
46
46
|
profile: { optional: ["ops"] },
|
|
47
47
|
positionals: [
|
|
48
|
-
ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional
|
|
48
|
+
ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional,
|
|
49
|
+
ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameUpdatePositional
|
|
49
50
|
],
|
|
50
51
|
options: [
|
|
51
|
-
ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameOption,
|
|
52
52
|
ResourceParameterDefinitions_1.ResourceParameterDefinitions.waitOption
|
|
53
53
|
]
|
|
54
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/stop/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,8BAA8B;IACvC,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/stop/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,8BAA8B;IACvC,WAAW,EAAE,oEAAoE;QAChF,8EAA8E;IAC/E,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,0EAA0E;SAC1F;QACD;YACI,OAAO,EAAE,2CAA2C;YACpD,WAAW,EAAE,+FAA+F;gBACxG,gDAAgD;SACvD;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;QACnD,2DAA4B,CAAC,yBAAyB;KACzD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,UAAU;KAC1C;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,14 +31,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
const SSMResourceListUtils_1 = require("../../../api/utils/SSMResourceListUtils");
|
|
35
|
+
const Update_1 = require("../../../api/Update");
|
|
34
36
|
const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
35
|
-
const index_1 = require("../../../index");
|
|
36
37
|
class ResourceHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
37
38
|
processOps(params) {
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const response = yield
|
|
40
|
+
const response = yield (0, Update_1.updateResource)(this.session, params.arguments.resourcename, params.arguments.restApi, "DOWN", params.arguments.subsystem, params.arguments.tablename, params.arguments.wait);
|
|
40
41
|
params.response.data.setObj(response);
|
|
41
|
-
|
|
42
|
+
SSMResourceListUtils_1.SSMResourceListUtils.printResourceList(response, params);
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/stop/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,
|
|
1
|
+
{"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/stop/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,kFAA+E;AAC/E,gDAAqD;AACrD,yDAAsD;AAEtD,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAG,MAAM,IAAA,uBAAc,EAAC,IAAI,CAAC,OAAO,EAC9C,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,EAC/D,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACnF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,2CAAoB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAVD,kCAUC"}
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"healthCheck.handler.js","sourceRoot":"","sources":["../src/healthCheck.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAEH,
|
|
1
|
+
{"version":3,"file":"healthCheck.handler.js","sourceRoot":"","sources":["../src/healthCheck.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAEH,iDAA8D;AAC9D,yDAAsD;AAEtD,MAAqB,kBAAmB,SAAQ,+BAAc;IAC7C,UAAU,CAAC,MAA0B;;YAC9C,mBAAM,CAAC,mBAAmB,EAAE,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;YACnE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wDAAwD;gBAChF,2DAA2D;gBAC3D,4DAA4D,CAC/D,CAAC;QACN,CAAC;KAAA;CACJ;AARD,qCAQC"}
|
package/lib/imperative.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,14 +23,16 @@
|
|
|
23
23
|
*/
|
|
24
24
|
const PluginConstants_1 = require("./api/constants/PluginConstants");
|
|
25
25
|
const OpsProfilesConfig_1 = require("./api/OpsProfilesConfig");
|
|
26
|
+
// import HealthCheckHandler from "./healthCheck.handler";
|
|
26
27
|
const config = {
|
|
27
28
|
commandModuleGlobs: ["**/cli/*/*.definition!(.d).*s"],
|
|
28
29
|
rootCommandDescription: PluginConstants_1.PluginConstants.PLUGIN_DESCRIPTION,
|
|
29
30
|
productDisplayName: PluginConstants_1.PluginConstants.PLUGIN_NAME,
|
|
30
|
-
|
|
31
|
-
pluginSummary: "Zowe CLI Plug-in for OPS/MVS®",
|
|
31
|
+
pluginSummary: PluginConstants_1.PluginConstants.PLUGIN_NAME,
|
|
32
32
|
name: PluginConstants_1.PluginConstants.PLUGIN_GROUP_NAME,
|
|
33
33
|
// TODO - when the plugin moves to using the OPS/MVS REST API (APIML conformant) then enable
|
|
34
|
+
// TODO - based on the previous TODO, if the plugin is successfully tested with the 'apimlConnLookup' below
|
|
35
|
+
// then remove both TODOs and comment below
|
|
34
36
|
//Per Timothy Johnson: You are correct that those Zowe v2 conformance criteria are not currently applicable to the
|
|
35
37
|
// OPS plug-in for Zowe CLI, as long as it is intended to be used with the old OPS API.
|
|
36
38
|
//I would suggest removing the apimlConnLookup definition until you support base paths.
|
|
@@ -38,13 +40,18 @@ const config = {
|
|
|
38
40
|
// OPS profile with a basePath property auto-created in their zowe.config.json.
|
|
39
41
|
//Whenever you update the OPS plug-in to support the new APIML-conformant OPS API, you should address those
|
|
40
42
|
// conformance criteria and add the apimlConnLookup property.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
apimlConnLookup: [
|
|
44
|
+
{
|
|
45
|
+
apiId: "bcm.opsmvs",
|
|
46
|
+
gatewayUrl: "api/v1",
|
|
47
|
+
connProfType: "ops"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
apiId: "bcm.opsmvs",
|
|
51
|
+
gatewayUrl: "api/v2",
|
|
52
|
+
connProfType: "ops"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
48
55
|
profiles: OpsProfilesConfig_1.OpsProfilesConfig
|
|
49
56
|
};
|
|
50
57
|
module.exports = config;
|
package/lib/imperative.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,qEAAkE;AAClE,+DAA4D;
|
|
1
|
+
{"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,qEAAkE;AAClE,+DAA4D;AAC5D,0DAA0D;AAE1D,MAAM,MAAM,GAAsB;IAC9B,kBAAkB,EAAE,CAAC,+BAA+B,CAAC;IACrD,sBAAsB,EAAE,iCAAe,CAAC,kBAAkB;IAC1D,kBAAkB,EAAE,iCAAe,CAAC,WAAW;IAC/C,aAAa,EAAE,iCAAe,CAAC,WAAW;IAC1C,IAAI,EAAE,iCAAe,CAAC,iBAAiB;IACvC,4FAA4F;IAC5F,2GAA2G;IAC3G,2CAA2C;IAC3C,kHAAkH;IAClH,uFAAuF;IACvF,uFAAuF;IACvF,4GAA4G;IAC5G,+EAA+E;IAC/E,2GAA2G;IAC3G,6DAA6D;IAC7D,eAAe,EAAE;QACb;YACI,KAAK,EAAE,YAAY;YACnB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,KAAK;SACtB;QACD;YACI,KAAK,EAAE,YAAY;YACnB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,KAAK;SACtB;KACJ;IACD,QAAQ,EAAE,qCAAiB;CAC9B,CAAC;AAEF,iBAAS,MAAM,CAAC"}
|