@broadcom/ops-for-zowe-cli 4.0.5 → 4.1.1
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 +14 -14
- package/imgs/zowe-conformant-v1.png +0 -0
- package/imgs/zowe-conformant-zowev2-cli-color.png +0 -0
- package/lib/api/OpsProfilesConfig.js +1 -2
- package/lib/api/OpsProfilesConfig.js.map +1 -1
- package/lib/api/constants/Ops.constants.js +1 -0
- package/lib/api/constants/Ops.constants.js.map +1 -1
- package/lib/api/constants/PluginConstants.d.ts +14 -0
- package/lib/api/constants/PluginConstants.js +41 -0
- package/lib/api/constants/PluginConstants.js.map +1 -0
- package/lib/api/constants/index.js +11 -4
- package/lib/api/constants/index.js.map +1 -1
- package/lib/api/index.js +13 -6
- package/lib/api/index.js.map +1 -1
- package/lib/api/methods/index.js +12 -5
- package/lib/api/methods/index.js.map +1 -1
- package/lib/api/methods/show/Show.js +1 -0
- package/lib/api/methods/show/Show.js.map +1 -1
- package/lib/api/methods/show/index.js +11 -4
- package/lib/api/methods/show/index.js.map +1 -1
- package/lib/api/methods/update/Update.d.ts +4 -2
- package/lib/api/methods/update/Update.js +9 -5
- package/lib/api/methods/update/Update.js.map +1 -1
- package/lib/api/methods/update/index.js +11 -4
- package/lib/api/methods/update/index.js.map +1 -1
- package/lib/api/utils/OpsRestUtils.d.ts +1 -10
- package/lib/api/utils/OpsRestUtils.js +6 -62
- package/lib/api/utils/OpsRestUtils.js.map +1 -1
- package/lib/api/utils/OpsTextUtils.js +1 -0
- package/lib/api/utils/OpsTextUtils.js.map +1 -1
- package/lib/api/utils/RuleListUtils.js +1 -0
- package/lib/api/utils/RuleListUtils.js.map +1 -1
- package/lib/api/utils/RuleUtils.js +2 -2
- package/lib/api/utils/RuleUtils.js.map +1 -1
- package/lib/api/utils/SSMResourceListUtils.js +1 -0
- package/lib/api/utils/SSMResourceListUtils.js.map +1 -1
- package/lib/api/utils/SSMUtils.js +5 -5
- package/lib/api/utils/SSMUtils.js.map +1 -1
- package/lib/api/utils/index.js +16 -9
- package/lib/api/utils/index.js.map +1 -1
- package/lib/cli/OpsBaseHandler.d.ts +11 -2
- package/lib/cli/OpsBaseHandler.js +21 -6
- package/lib/cli/OpsBaseHandler.js.map +1 -1
- package/lib/cli/ResourceParameterDefinitions.d.ts +1 -1
- package/lib/cli/ResourceParameterDefinitions.js +1 -0
- package/lib/cli/ResourceParameterDefinitions.js.map +1 -1
- package/lib/cli/RuleParameterDefinitions.js +1 -0
- package/lib/cli/RuleParameterDefinitions.js.map +1 -1
- package/lib/cli/disable/Disable.definition.js +2 -2
- package/lib/cli/disable/Disable.definition.js.map +1 -1
- package/lib/cli/disable/rule/Rule.definition.js +1 -0
- package/lib/cli/disable/rule/Rule.definition.js.map +1 -1
- package/lib/cli/enable/rule/Rule.definition.js +1 -0
- package/lib/cli/enable/rule/Rule.definition.js.map +1 -1
- package/lib/cli/show/Show.definition.js +2 -2
- package/lib/cli/show/Show.definition.js.map +1 -1
- package/lib/cli/show/resource/Resource.definition.js +1 -0
- package/lib/cli/show/resource/Resource.definition.js.map +1 -1
- package/lib/cli/show/rule/Rule.definition.js +1 -0
- package/lib/cli/show/rule/Rule.definition.js.map +1 -1
- package/lib/cli/start/Start.definition.js +1 -1
- package/lib/cli/start/Start.definition.js.map +1 -1
- package/lib/cli/start/resource/Resource.definition.js +1 -0
- package/lib/cli/start/resource/Resource.definition.js.map +1 -1
- package/lib/cli/start/resource/Resource.handler.js.map +1 -1
- package/lib/cli/stop/Stop.definition.js +2 -2
- package/lib/cli/stop/Stop.definition.js.map +1 -1
- package/lib/cli/stop/resource/Resource.definition.js +1 -0
- package/lib/cli/stop/resource/Resource.definition.js.map +1 -1
- package/lib/imperative.js +20 -7
- package/lib/imperative.js.map +1 -1
- package/lib/index.js +17 -10
- package/lib/index.js.map +1 -1
- package/package.json +135 -116
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# OPS/MVS® Plug-in for Zowe CLI
|
|
2
2
|
|
|
3
|
-
<img src="imgs/
|
|
3
|
+
<img src="imgs/zowe-conformant-zowev2-cli-color.png" width=25% alt="Zowe v2 CLI Conformance Badge"/>
|
|
4
4
|
|
|
5
|
-
This repository contains the
|
|
5
|
+
This repository contains the OPS/MVS® Plug-in for Zowe CLI (OPS).
|
|
6
6
|
|
|
7
|
-
## Install the OPS Plug-in From Packages
|
|
8
|
-
|
|
9
|
-
1.
|
|
7
|
+
## Install the OPS/MVS® Plug-in From Packages
|
|
8
|
+
To install the OPS/MVS® plug-in to the Zowe CLI from packages, issue the following commands:
|
|
9
|
+
1. Install the plug-in:
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
12
|
$ zowe plugins install @broadcom/ops-for-zowe-cli
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
**Note**: The `latest` npm tag installs a version of the product that is intended for public consumption. You can use different npm tags to install other versions of the product. For more information about tag usage, see [NPM Tag Names](https://github.com/zowe/zowe-cli/blob/master/docs/MaintainerVersioning.md#npm-tag-names).
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
2. Validate the installed plug-in:
|
|
18
18
|
```sh
|
|
19
19
|
$ zowe plugins validate @broadcom/ops-for-zowe-cli
|
|
@@ -45,7 +45,7 @@ To install the OPS/MVS® plug-in to the Zowe CLI from source, issue the followin
|
|
|
45
45
|
**Note:** For more information about using the install command,
|
|
46
46
|
see [Manage Plug-ins.](**REMOVED**)
|
|
47
47
|
|
|
48
|
-
## Uninstall the Plug-in From Zowe CLI
|
|
48
|
+
## Uninstall the OPS/MVS® Plug-in From Zowe CLI
|
|
49
49
|
To uninstall the plug-in from Zowe CLI, issue the following command:
|
|
50
50
|
```sh
|
|
51
51
|
$ zowe plugins uninstall @broadcom/ops-for-zowe-cli
|
|
@@ -54,15 +54,15 @@ $ zowe plugins uninstall @broadcom/ops-for-zowe-cli
|
|
|
54
54
|
**Note:** For more information about using the uninstall command,
|
|
55
55
|
see [Manage Plug-ins.](**REMOVED**)
|
|
56
56
|
|
|
57
|
-
### Create an OPS Profile
|
|
57
|
+
### Create an OPS/MVS® Profile
|
|
58
58
|
|
|
59
|
-
To create an OPS plug-in profile gather the following data:
|
|
60
|
-
- The host name of the LPAR on which OPS Web Services is running
|
|
61
|
-
- The OPS Web Services port number
|
|
62
|
-
- A user name that has authority to access OPS Web Services
|
|
59
|
+
To create an OPS/MVS® plug-in profile gather the following data:
|
|
60
|
+
- The host name of the LPAR on which OPS/MVS® Web Services is running
|
|
61
|
+
- The OPS/MVS® Web Services port number
|
|
62
|
+
- A user name that has authority to access OPS/MVS® Web Services
|
|
63
63
|
- The password to the account tied to the user name
|
|
64
64
|
|
|
65
|
-
To create an
|
|
65
|
+
To create an OPS/MVS® profile, issue the following command:
|
|
66
66
|
```sh
|
|
67
67
|
$ zowe profiles create ops myLPAR --hostname mylpar.example.com --port 1234 --username myself --password fakepassword
|
|
68
68
|
```
|
|
Binary file
|
|
Binary file
|
|
@@ -22,9 +22,8 @@
|
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.OpsProfilesConfig = void 0;
|
|
25
26
|
const utils_1 = require("./utils");
|
|
26
|
-
const CCID_MAX_LEN = 12;
|
|
27
|
-
const COMMENT_MAX_LEN = 40;
|
|
28
27
|
exports.OpsProfilesConfig = [
|
|
29
28
|
{
|
|
30
29
|
type: "ops",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpsProfilesConfig.js","sourceRoot":"","sources":["../../src/api/OpsProfilesConfig.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"OpsProfilesConfig.js","sourceRoot":"","sources":["../../src/api/OpsProfilesConfig.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;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1
|
-
{"version":3,"file":"Ops.constants.js","sourceRoot":"","sources":["../../../src/api/constants/Ops.constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"Ops.constants.js","sourceRoot":"","sources":["../../../src/api/constants/Ops.constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAEH;;GAEG;AACU,QAAA,YAAY,GAA2B;IAChD,OAAO,EAAE,aAAa;IACtB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,gBAAgB;IAC1B,OAAO,EAAE,oBAAoB;IAC7B,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,oBAAoB;IAC7B,aAAa,EAAE,8BAA8B;IAC7C,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,CAAC,EAAC,cAAc,EAAE,kBAAkB,EAAC,EAAE,EAAC,MAAM,EAAG,kBAAkB,EAAC,CAAC;CACjF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class PluginConstants {
|
|
2
|
+
/**
|
|
3
|
+
* The name of this plug-in
|
|
4
|
+
*/
|
|
5
|
+
static readonly PLUGIN_NAME = "Zowe CLI Plug-in for OPS/MVS\u00AE";
|
|
6
|
+
/**
|
|
7
|
+
* The description of the group exposed by this plug-in
|
|
8
|
+
*/
|
|
9
|
+
static readonly PLUGIN_DESCRIPTION = "Interact with OPS/MVS\u00AE for automation administration and resource management.";
|
|
10
|
+
/**
|
|
11
|
+
* The name of the command group exposed by this plug-in
|
|
12
|
+
*/
|
|
13
|
+
static readonly PLUGIN_GROUP_NAME = "ops";
|
|
14
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2019 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.PluginConstants = void 0;
|
|
26
|
+
class PluginConstants {
|
|
27
|
+
}
|
|
28
|
+
exports.PluginConstants = PluginConstants;
|
|
29
|
+
/**
|
|
30
|
+
* The name of this plug-in
|
|
31
|
+
*/
|
|
32
|
+
PluginConstants.PLUGIN_NAME = "Zowe CLI Plug-in for OPS/MVS®";
|
|
33
|
+
/**
|
|
34
|
+
* The description of the group exposed by this plug-in
|
|
35
|
+
*/
|
|
36
|
+
PluginConstants.PLUGIN_DESCRIPTION = "Interact with OPS/MVS® for automation administration and resource management.";
|
|
37
|
+
/**
|
|
38
|
+
* The name of the command group exposed by this plug-in
|
|
39
|
+
*/
|
|
40
|
+
PluginConstants.PLUGIN_GROUP_NAME = "ops";
|
|
41
|
+
//# sourceMappingURL=PluginConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginConstants.js","sourceRoot":"","sources":["../../../src/api/constants/PluginConstants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAEH,MAAa,eAAe;;AAA5B,0CAgBC;AAdG;;GAEG;AACoB,2BAAW,GAAG,+BAA+B,CAAC;AAErE;;GAEG;AACoB,kCAAkB,GAAG,+EAA+E,CAAC;AAE5H;;GAEG;AACoB,iCAAiB,GAAG,KAAK,CAAC"}
|
|
@@ -21,9 +21,16 @@
|
|
|
21
21
|
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
}
|
|
24
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
33
|
+
};
|
|
27
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
|
|
35
|
+
__exportStar(require("./Ops.constants"), exports);
|
|
29
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/constants/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/constants/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH,kDAAgC"}
|
package/lib/api/index.js
CHANGED
|
@@ -21,11 +21,18 @@
|
|
|
21
21
|
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
}
|
|
24
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
33
|
+
};
|
|
27
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
__exportStar(require("./methods"), exports);
|
|
36
|
+
__exportStar(require("./constants"), exports);
|
|
37
|
+
__exportStar(require("./utils"), exports);
|
|
31
38
|
//# sourceMappingURL=index.js.map
|
package/lib/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH,4CAA0B;AAC1B,8CAA4B;AAC5B,0CAAwB"}
|
package/lib/api/methods/index.js
CHANGED
|
@@ -21,10 +21,17 @@
|
|
|
21
21
|
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
}
|
|
24
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
33
|
+
};
|
|
27
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
__exportStar(require("./show"), exports);
|
|
36
|
+
__exportStar(require("./update"), exports);
|
|
30
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/methods/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/methods/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH,yCAAuB;AACvB,2CAAyB"}
|
|
@@ -31,6 +31,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.showResource = exports.showRule = void 0;
|
|
34
35
|
const imperative_1 = require("@zowe/imperative");
|
|
35
36
|
const utils_1 = require("../../utils");
|
|
36
37
|
const constants_1 = require("../../constants");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Show.js","sourceRoot":"","sources":["../../../../src/api/methods/show/Show.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"Show.js","sourceRoot":"","sources":["../../../../src/api/methods/show/Show.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH,iDAAqD;AACrD,uCAAgD;AAChD,+CAA6C;AAI7C,SAAsB,QAAQ,CAAC,OAAgB,EAAE,WAAmB,EAAE,QAAgB,EAAE,SAAiB;;QACrG,MAAM,OAAO,GAAG,iBAAS,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;QAChF,OAAO,uBAAU,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,wBAAY,CAAC,OAAO,CAAC,CAAC;IAC5E,CAAC;CAAA;AAHD,4BAGC;AAED,SAAsB,YAAY,CAAC,OAAgB,EAAE,YAAoB,EAAE,KAAa,EAAE,SAAiB;;QACvG,MAAM,WAAW,GAAG,gBAAQ,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;QACrF,OAAO,uBAAU,CAAC,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,wBAAY,CAAC,OAAO,CAAC,CAAC;IAChF,CAAC;CAAA;AAHD,oCAGC"}
|
|
@@ -21,9 +21,16 @@
|
|
|
21
21
|
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
}
|
|
24
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
33
|
+
};
|
|
27
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
|
|
35
|
+
__exportStar(require("./Show"), exports);
|
|
29
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/methods/show/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/methods/show/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH,yCAAuB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Session } from "@zowe/imperative";
|
|
2
|
-
export declare function updateRule(session: Session, ruleSetName: string, ruleName: string, newStatus: string,
|
|
2
|
+
export declare function updateRule(session: Session, ruleSetName: string, ruleName: string, newStatus: string, // eslint-disable-line
|
|
3
|
+
subSystem?: string): Promise<{}>;
|
|
3
4
|
/**
|
|
4
5
|
* updateResource
|
|
5
6
|
*/
|
|
6
|
-
export declare function updateResource(session: Session, resource: string, desiredState: string, subsystem?: string,
|
|
7
|
+
export declare function updateResource(session: Session, resource: string, desiredState: string, subsystem?: string, // eslint-disable-line
|
|
8
|
+
table?: string, wait?: number): Promise<{}>;
|
|
@@ -31,12 +31,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.updateResource = exports.updateRule = void 0;
|
|
34
35
|
const imperative_1 = require("@zowe/imperative");
|
|
35
36
|
const constants_1 = require("../../constants");
|
|
36
37
|
const utils_1 = require("../../utils");
|
|
37
38
|
const ResourceParameterDefinitions_1 = require("../../../cli/ResourceParameterDefinitions");
|
|
38
39
|
const show_1 = require("../show");
|
|
39
|
-
function updateRule(session, ruleSetName, ruleName, newStatus,
|
|
40
|
+
function updateRule(session, ruleSetName, ruleName, newStatus, // eslint-disable-line
|
|
41
|
+
subSystem) {
|
|
40
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
43
|
const ruleUrl = utils_1.RuleUtils.getRuleURL(session, ruleSetName, ruleName, subSystem);
|
|
42
44
|
const postBody = {
|
|
@@ -49,7 +51,8 @@ exports.updateRule = updateRule;
|
|
|
49
51
|
/**
|
|
50
52
|
* updateResource
|
|
51
53
|
*/
|
|
52
|
-
function updateResource(session, resource, desiredState, subsystem,
|
|
54
|
+
function updateResource(session, resource, desiredState, subsystem, // eslint-disable-line
|
|
55
|
+
table, wait) {
|
|
53
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
57
|
if (wait != null) {
|
|
55
58
|
imperative_1.ImperativeExpect.toBeEqual(wait > 0 && wait <= ResourceParameterDefinitions_1.ResourceParameterDefinitions.ONE_DAY, true, "Wait value must be between 0 and " + ResourceParameterDefinitions_1.ResourceParameterDefinitions.ONE_DAY + "(inclusive) if specified. " +
|
|
@@ -71,12 +74,13 @@ function updateResource(session, resource, desiredState, subsystem, table, wait)
|
|
|
71
74
|
return response;
|
|
72
75
|
}
|
|
73
76
|
// otherwise we have to poll
|
|
74
|
-
let pollAttempts = 0;
|
|
75
77
|
let pollResponse;
|
|
76
78
|
let currentState = response.ssmresource[0].current;
|
|
77
79
|
const ONE_SECOND = 1000;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
const start = new Date().getTime();
|
|
81
|
+
// looping with 'wait' value as max was taking approximately twice the requested time
|
|
82
|
+
// so use the actual time to calculate when the 'wait' time is exceeded
|
|
83
|
+
while (((new Date().getTime() - start) / ONE_SECOND) < wait) {
|
|
80
84
|
pollResponse = yield show_1.showResource(session, resource, table, subsystem);
|
|
81
85
|
currentState = pollResponse.ssmresource[0].current;
|
|
82
86
|
if (currentState.toUpperCase() === desiredState.toUpperCase()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../src/api/methods/update/Update.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../src/api/methods/update/Update.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH,iDAA0F;AAC1F,+CAA+C;AAC/C,uCAAkD;AAClD,4FAAyF;AACzF,kCAAuC;AAEvC,SAAsB,UAAU,CAAC,OAAgB,EAAE,WAAmB,EACrC,QAAgB,EAAE,SAAiB,EAAG,sBAAsB;AAC5D,SAAkB;;QAE/C,MAAM,OAAO,GAAG,iBAAS,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;QAChF,MAAM,QAAQ,GAAG;YACb,MAAM,EAAE,SAAS;SACpB,CAAC;QAEF,OAAO,uBAAU,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,wBAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACvF,CAAC;CAAA;AAVD,gCAUC;AAED;;GA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AAC,GAAG,UAAU,CAAC,GAAG,IAAI,EAAE;gBACzD,YAAY,GAAG,MAAM,mBAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;gBACvE,YAAY,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;gBACnD,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,YAAY,CAAC,WAAW,EAAE,EAAE;oBAC3D,wEAAwE;oBACxE,OAAO,YAAY,CAAC;iBACvB;qBAAM;oBACH,mDAAmD;oBACnD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;wBAC1B,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;oBACpC,CAAC,CAAC,CAAC;iBACN;aACJ;YAED,4CAA4C;YAC5C,MAAM,IAAI,4BAAe,CAAC;gBACtB,GAAG,EAAE,8BAA8B,IAAI,UAAU,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,qCAAqC;oBACrG,iBAAiB,QAAQ,cAAc,YAAY,GAAG;aAC7D,CAAC,CAAC;SACN;IACL,CAAC;CAAA;AAnDD,wCAmDC"}
|
|
@@ -21,9 +21,16 @@
|
|
|
21
21
|
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
}
|
|
24
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
33
|
+
};
|
|
27
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
|
|
35
|
+
__exportStar(require("./Update"), exports);
|
|
29
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/methods/update/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/methods/update/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH,2CAAyB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ICommandDefinitionPassOn, ICommandOptionDefinition } from "@zowe/imperative";
|
|
2
2
|
/**
|
|
3
3
|
* Class to hold APIs related to OPS Web Services
|
|
4
4
|
* @export
|
|
@@ -23,13 +23,4 @@ export declare class OpsRestUtils {
|
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
static OPS_CONNECTION_PASS_ON: ICommandDefinitionPassOn[];
|
|
26
|
-
/**
|
|
27
|
-
* Setup Ops Web Services session
|
|
28
|
-
*
|
|
29
|
-
* @static
|
|
30
|
-
* @param {ICommandArguments} args - command line arguments passed to the command handler
|
|
31
|
-
* @returns {Session} - the completed session to be used with OPS typescript APIs
|
|
32
|
-
* @memberof OpsRestUtils
|
|
33
|
-
*/
|
|
34
|
-
static setupOpsSession(args: ICommandArguments): Session;
|
|
35
26
|
}
|
|
@@ -22,69 +22,13 @@
|
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
|
|
26
|
-
const util_1 = require("util");
|
|
25
|
+
exports.OpsRestUtils = void 0;
|
|
27
26
|
/**
|
|
28
27
|
* Class to hold APIs related to OPS Web Services
|
|
29
28
|
* @export
|
|
30
29
|
* @class OpsRestUtils
|
|
31
30
|
*/
|
|
32
31
|
class OpsRestUtils {
|
|
33
|
-
/**
|
|
34
|
-
* Setup Ops Web Services session
|
|
35
|
-
*
|
|
36
|
-
* @static
|
|
37
|
-
* @param {ICommandArguments} args - command line arguments passed to the command handler
|
|
38
|
-
* @returns {Session} - the completed session to be used with OPS typescript APIs
|
|
39
|
-
* @memberof OpsRestUtils
|
|
40
|
-
*/
|
|
41
|
-
static setupOpsSession(args) {
|
|
42
|
-
let sessionHost;
|
|
43
|
-
let sessionPort;
|
|
44
|
-
let sessionUser;
|
|
45
|
-
let sessionPassword;
|
|
46
|
-
let sessionProtocol;
|
|
47
|
-
let sessionRejectUnauthorized = true;
|
|
48
|
-
// Imperative framework takes care of the precedence of
|
|
49
|
-
// CLI args > environmental variables > profile fields
|
|
50
|
-
// so we can just check the args
|
|
51
|
-
sessionProtocol = args.protocol.toLowerCase();
|
|
52
|
-
sessionRejectUnauthorized = args.rejectUnauthorized;
|
|
53
|
-
sessionHost = args.host;
|
|
54
|
-
sessionPort = args.port;
|
|
55
|
-
sessionUser = args.user;
|
|
56
|
-
sessionPassword = args.password;
|
|
57
|
-
const errorStack = [];
|
|
58
|
-
if (util_1.isNullOrUndefined(sessionHost)) {
|
|
59
|
-
errorStack.push("host");
|
|
60
|
-
}
|
|
61
|
-
if (util_1.isNullOrUndefined(sessionPort)) {
|
|
62
|
-
errorStack.push("port");
|
|
63
|
-
}
|
|
64
|
-
if (util_1.isNullOrUndefined(sessionUser)) {
|
|
65
|
-
errorStack.push("user");
|
|
66
|
-
}
|
|
67
|
-
if (util_1.isNullOrUndefined(sessionPassword)) {
|
|
68
|
-
errorStack.push("password");
|
|
69
|
-
}
|
|
70
|
-
if (util_1.isNullOrUndefined(sessionRejectUnauthorized)) {
|
|
71
|
-
errorStack.push("reject-unauthorized");
|
|
72
|
-
}
|
|
73
|
-
if (errorStack.length > 0) {
|
|
74
|
-
throw new imperative_1.ImperativeError({
|
|
75
|
-
msg: "Missing arguments or ops profile specification for " + errorStack.join(", "),
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
return new imperative_1.Session({
|
|
79
|
-
hostname: sessionHost,
|
|
80
|
-
port: Number(sessionPort),
|
|
81
|
-
protocol: sessionProtocol,
|
|
82
|
-
type: "basic",
|
|
83
|
-
user: sessionUser,
|
|
84
|
-
password: sessionPassword,
|
|
85
|
-
rejectUnauthorized: sessionRejectUnauthorized
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
32
|
}
|
|
89
33
|
exports.OpsRestUtils = OpsRestUtils;
|
|
90
34
|
OpsRestUtils.APP_URL = "/opsmvs/api";
|
|
@@ -97,28 +41,28 @@ OpsRestUtils.HOST_OPTION = {
|
|
|
97
41
|
description: "The hostname of the server where OPS Web Services is running.",
|
|
98
42
|
type: "string",
|
|
99
43
|
name: "host",
|
|
100
|
-
required:
|
|
44
|
+
required: false,
|
|
101
45
|
group: OpsRestUtils.OPS_CONNECTION_GROUP
|
|
102
46
|
};
|
|
103
47
|
OpsRestUtils.PORT_OPTION = {
|
|
104
48
|
description: "The port number for OPS Web Services.",
|
|
105
49
|
type: "number",
|
|
106
50
|
name: "port", aliases: ["p"],
|
|
107
|
-
required:
|
|
51
|
+
required: false,
|
|
108
52
|
group: OpsRestUtils.OPS_CONNECTION_GROUP
|
|
109
53
|
};
|
|
110
54
|
OpsRestUtils.USER_OPTION = {
|
|
111
55
|
description: "Your z/OS user name used to authenticate to OPS Web Services",
|
|
112
56
|
type: "string",
|
|
113
57
|
name: "user",
|
|
114
|
-
required:
|
|
58
|
+
required: false,
|
|
115
59
|
group: OpsRestUtils.OPS_CONNECTION_GROUP
|
|
116
60
|
};
|
|
117
61
|
OpsRestUtils.PASSWORD_OPTION = {
|
|
118
62
|
description: "Your z/OS password used to authenticate to OPS Web Services",
|
|
119
63
|
type: "string",
|
|
120
64
|
name: "password", aliases: ["pass"],
|
|
121
|
-
required:
|
|
65
|
+
required: false,
|
|
122
66
|
group: OpsRestUtils.OPS_CONNECTION_GROUP
|
|
123
67
|
};
|
|
124
68
|
OpsRestUtils.PROTOCOL_OPTION = {
|
|
@@ -142,7 +86,7 @@ OpsRestUtils.REJECT_UNAUTHORIZED_OPTION = {
|
|
|
142
86
|
group: OpsRestUtils.OPS_CONNECTION_GROUP
|
|
143
87
|
};
|
|
144
88
|
OpsRestUtils.SUBSYSTEM_OPTION = {
|
|
145
|
-
description: "Specifies the subsystem id of the
|
|
89
|
+
description: "Specifies the subsystem id of the OPS/MVS instance to which commands will be directed.",
|
|
146
90
|
type: "string",
|
|
147
91
|
name: "subsystem", aliases: ["subs"],
|
|
148
92
|
group: OpsRestUtils.OPS_CONNECTION_GROUP
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpsRestUtils.js","sourceRoot":"","sources":["../../../src/api/utils/OpsRestUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"OpsRestUtils.js","sourceRoot":"","sources":["../../../src/api/utils/OpsRestUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH;;;;GAIG;AACH,MAAa,YAAY;;AAAzB,oCA6FC;AA3F0B,oBAAO,GAAW,aAAa,CAAC;AAChC,oBAAO,GAAW,IAAI,CAAC;AAC9C,iDAAiD;AAC1B,qBAAQ,GAAG,YAAY,CAAC,OAAO,GAAG,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC;AAC7D,oBAAO,GAAW,YAAY,CAAC,QAAQ,GAAG,MAAM,CAAC;AAEjD,iCAAoB,GAAG,qCAAqC,CAAC;AAEtE,wBAAW,GAA6B;IAClD,WAAW,EAAE,+DAA+D;IAC5E,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,MA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,GAA6B;IACvD,WAAW,EAAE,wFAAwF;IACrG,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,YAAY,CAAC,oBAAoB;CAC3C,CAAC;AAEY,mCAAsB,GAA+B;IAC/D,YAAY,CAAC,WAAW;IACxB,YAAY,CAAC,eAAe;IAC5B,YAAY,CAAC,WAAW;IACxB,YAAY,CAAC,WAAW;IACxB,YAAY,CAAC,0BAA0B;IACvC,YAAY,CAAC,eAAe;IAC5B,YAAY,CAAC,gBAAgB;CAChC,CAAC;AAEF;;;GAGG;AACW,mCAAsB,GAA+B,CAAC;QAChE,WAAW,EAAE,CAAC;gBACV,IAAI,EAAE,OAAO;aAChB,CAAC;QACF,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,YAAY,CAAC,sBAAsB;QAC1C,KAAK,EAAE,IAAI;KACd,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpsTextUtils.js","sourceRoot":"","sources":["../../../src/api/utils/OpsTextUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"OpsTextUtils.js","sourceRoot":"","sources":["../../../src/api/utils/OpsTextUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAEH,iDAAmF;AAEnF,MAAa,YAAY;IAEd,MAAM,CAAC,UAAU,CAAC,IAAY;QACjC,OAAO,sBAAS,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,IAAY;QACpC,OAAO,sBAAS,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAEM,MAAM,CAAC,iBAAiB,CAAC,IAAY;QACxC,OAAO,sBAAS,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,CAAmB,EAAE,MAA0B;QACxE,IAAI;YACA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;YACzC,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE;gBACrE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC;gBAC9E,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;aACtD;SACJ;QACD,OAAO,SAAS,EAAE;YACd,MAAM,CAAC,CAAC;SACX;IACL,CAAC;CACJ;AA1BD,oCA0BC"}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.RuleListUtils = void 0;
|
|
25
26
|
const RuleUtils_1 = require("./RuleUtils");
|
|
26
27
|
class RuleListUtils {
|
|
27
28
|
static printRuleStatusResponse(ruleList, params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleListUtils.js","sourceRoot":"","sources":["../../../src/api/utils/RuleListUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"RuleListUtils.js","sourceRoot":"","sources":["../../../src/api/utils/RuleListUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,2CAAwC;AAExC,MAAa,aAAa;IAEf,MAAM,CAAC,uBAAuB,CAAC,QAAa,EAAE,MAA0B;QAE3E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE;YACxC,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACjC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAChG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;SAC5F;IACL,CAAC;IACM,MAAM,CAAC,qBAAqB,CAAC,QAAa,EAAE,MAA0B;QAEzE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE;YACxC,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACjC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAChG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;SAC1E;IACL,CAAC;CACJ;AAlBD,sCAkBC"}
|
|
@@ -31,10 +31,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.RuleUtils = void 0;
|
|
34
35
|
const imperative_1 = require("@zowe/imperative");
|
|
35
36
|
const constants_1 = require("../constants");
|
|
36
37
|
const OpsTextUtils_1 = require("./OpsTextUtils");
|
|
37
|
-
const util_1 = require("util");
|
|
38
38
|
class RuleUtils {
|
|
39
39
|
// public static readonly RULESET_URL: string = OpsRestUtils.AOF_URL + "/rulesets";
|
|
40
40
|
// public static readonly RULE_URL: string = "/rules";
|
|
@@ -62,7 +62,7 @@ class RuleUtils {
|
|
|
62
62
|
ruleSetName = encodeURIComponent(ruleSetName);
|
|
63
63
|
ruleName = encodeURIComponent(ruleName);
|
|
64
64
|
let subsystemQueryString = "";
|
|
65
|
-
if (
|
|
65
|
+
if (subSystem != null) {
|
|
66
66
|
subsystemQueryString = "?sub=" + encodeURIComponent(subSystem);
|
|
67
67
|
}
|
|
68
68
|
return constants_1.OpsConstants.RULESET_URL + "/" + ruleSetName + constants_1.OpsConstants.RULE_URL + "/" +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleUtils.js","sourceRoot":"","sources":["../../../src/api/utils/RuleUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"RuleUtils.js","sourceRoot":"","sources":["../../../src/api/utils/RuleUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH,iDAAqD;AACrD,4CAA0C;AAC1C,iDAA4C;AAE5C,MAAa,SAAS;IAElB,mFAAmF;IACnF,sDAAsD;IACtD,yDAAyD;IACzD,0GAA0G;IAC1G;;OAEG;IACI,MAAM,CAAO,aAAa,CAAC,OAAgB,EAAE,WAAmB,EAAE,QAAgB,EAAE,QAAgB,EAAE,SAAkB;;YAE3H,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;YAC3E,MAAM,QAAQ,GAAG;gBACb,MAAM,EAAE,QAAQ;aACnB,CAAC;YAEF,OAAO,u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SAAS,GAAG,2BAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;SAClD;aAAM;YACH,SAAS,GAAG,2BAAY,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;SACrD;QAED,MAAM,YAAY,GAAG,2BAAY,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;QACpE,MAAM,YAAY,GAAG,2BAAY,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;QAEpE,OAAO,YAAY,GAAG,SAAS,GAAG,IAAI,GAAG,YAAY,GAAG,SAAS,CAAC;IACtE,CAAC;IAEM,MAAM,CAAC,kBAAkB,CAAC,MAAc;QAE3C,IAAI,MAAM,KAAK,SAAS,EAAE;YACtB,MAAM,GAAG,2BAAY,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;SAC5C;aAAM;YACH,MAAM,GAAG,2BAAY,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;SAC/C;QAED,MAAM,eAAe,GAAG,2BAAY,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QAEnE,OAAO,eAAe,GAAG,MAAM,CAAC;IACpC,CAAC;CACJ;AAtED,8BAsEC"}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.SSMResourceListUtils = void 0;
|
|
25
26
|
const SSMUtils_1 = require("./SSMUtils");
|
|
26
27
|
class SSMResourceListUtils {
|
|
27
28
|
static printResourceList(SSMResourceList, params) {
|