@redhat-cloud-services/compliance-client 0.2.2 → 0.2.4
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/CHANGELOG.md +4 -0
- package/dist/CreateTailoring/index.d.ts +33 -0
- package/dist/CreateTailoring/index.js +54 -0
- package/dist/CreateTailoring/index.js.map +1 -0
- package/dist/Policies/index.d.ts +7 -1
- package/dist/Policies/index.js +7 -4
- package/dist/Policies/index.js.map +1 -1
- package/dist/PolicySystems/index.d.ts +14 -2
- package/dist/PolicySystems/index.js +10 -4
- package/dist/PolicySystems/index.js.map +1 -1
- package/dist/ProfileRules/index.d.ts +8 -2
- package/dist/ProfileRules/index.js +7 -4
- package/dist/ProfileRules/index.js.map +1 -1
- package/dist/ProfileTree/index.d.ts +32 -0
- package/dist/ProfileTree/index.js +53 -0
- package/dist/ProfileTree/index.js.map +1 -0
- package/dist/Profiles/index.d.ts +7 -1
- package/dist/Profiles/index.js +7 -4
- package/dist/Profiles/index.js.map +1 -1
- package/dist/ReportRuleResults/index.d.ts +7 -1
- package/dist/ReportRuleResults/index.js +7 -4
- package/dist/ReportRuleResults/index.js.map +1 -1
- package/dist/ReportSystems/index.d.ts +14 -2
- package/dist/ReportSystems/index.js +10 -4
- package/dist/ReportSystems/index.js.map +1 -1
- package/dist/ReportTestResults/index.d.ts +7 -1
- package/dist/ReportTestResults/index.js +7 -4
- package/dist/ReportTestResults/index.js.map +1 -1
- package/dist/Reports/index.d.ts +7 -1
- package/dist/Reports/index.js +7 -4
- package/dist/Reports/index.js.map +1 -1
- package/dist/RuleGroups/index.d.ts +7 -1
- package/dist/RuleGroups/index.js +7 -4
- package/dist/RuleGroups/index.js.map +1 -1
- package/dist/Rules/index.d.ts +8 -2
- package/dist/Rules/index.js +7 -4
- package/dist/Rules/index.js.map +1 -1
- package/dist/SecurityGuides/index.d.ts +7 -1
- package/dist/SecurityGuides/index.js +7 -4
- package/dist/SecurityGuides/index.js.map +1 -1
- package/dist/SupportedProfiles/index.d.ts +7 -1
- package/dist/SupportedProfiles/index.js +7 -4
- package/dist/SupportedProfiles/index.js.map +1 -1
- package/dist/SystemReports/index.d.ts +8 -2
- package/dist/SystemReports/index.js +7 -4
- package/dist/SystemReports/index.js.map +1 -1
- package/dist/Systems/index.d.ts +14 -2
- package/dist/Systems/index.js +10 -4
- package/dist/Systems/index.js.map +1 -1
- package/dist/SystemsPolicies/index.d.ts +8 -2
- package/dist/SystemsPolicies/index.js +7 -4
- package/dist/SystemsPolicies/index.js.map +1 -1
- package/dist/TailoringRuleTree/index.d.ts +32 -0
- package/dist/TailoringRuleTree/index.js +53 -0
- package/dist/TailoringRuleTree/index.js.map +1 -0
- package/dist/TailoringRules/index.d.ts +8 -2
- package/dist/TailoringRules/index.js +7 -4
- package/dist/TailoringRules/index.js.map +1 -1
- package/dist/Tailorings/index.d.ts +7 -1
- package/dist/Tailorings/index.js +7 -4
- package/dist/Tailorings/index.js.map +1 -1
- package/dist/ValueDefinitions/index.d.ts +7 -1
- package/dist/ValueDefinitions/index.js +7 -4
- package/dist/ValueDefinitions/index.js.map +1 -1
- package/dist/api.d.ts +434 -130
- package/dist/api.js +714 -163
- package/dist/api.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +39 -20
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,12 @@ export type ReportSystemsParams = {
|
|
|
14
14
|
*/
|
|
15
15
|
xRHIDENTITY?: any;
|
|
16
16
|
/**
|
|
17
|
+
* An array of tags to narrow down the search results. In case the value contains symbols used for separators (`/` or `=`), they need to be encoded.<br>e.g.: `namespace/key=value`, `insights-client/selinux-config=SELINUX%3Denforcing`
|
|
18
|
+
* @type { any }
|
|
19
|
+
* @memberof ReportSystemsApi
|
|
20
|
+
*/
|
|
21
|
+
tags?: any;
|
|
22
|
+
/**
|
|
17
23
|
* Number of items to return per page
|
|
18
24
|
* @type { any }
|
|
19
25
|
* @memberof ReportSystemsApi
|
|
@@ -26,13 +32,19 @@ export type ReportSystemsParams = {
|
|
|
26
32
|
*/
|
|
27
33
|
offset?: any;
|
|
28
34
|
/**
|
|
35
|
+
* Indicates whether to return only resource IDs.
|
|
36
|
+
* @type { any }
|
|
37
|
+
* @memberof ReportSystemsApi
|
|
38
|
+
*/
|
|
39
|
+
idsOnly?: any;
|
|
40
|
+
/**
|
|
29
41
|
* Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
|
|
30
42
|
* @type { any }
|
|
31
43
|
* @memberof ReportSystemsApi
|
|
32
44
|
*/
|
|
33
45
|
sortBy?: any;
|
|
34
46
|
/**
|
|
35
|
-
* Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Systems are searchable using attributes `display_name`, `
|
|
47
|
+
* Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Systems are searchable using attributes `display_name`, `os_minor_version`, `never_reported`, and `group_name`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
36
48
|
* @type { any }
|
|
37
49
|
* @memberof ReportSystemsApi
|
|
38
50
|
*/
|
|
@@ -46,5 +58,5 @@ export type ReportSystemsParams = {
|
|
|
46
58
|
* @param {*} [options] Override http request option.
|
|
47
59
|
* @throws {RequiredError}
|
|
48
60
|
*/
|
|
49
|
-
export declare const reportSystemsParamCreator: (...config: ([ReportSystemsParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
61
|
+
export declare const reportSystemsParamCreator: (...config: ([ReportSystemsParams] | [any, any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
50
62
|
export default reportSystemsParamCreator;
|
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isReportSystemsObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Systems assigned to a Report
|
|
@@ -20,25 +20,31 @@ var reportSystemsParamCreator = function () {
|
|
|
20
20
|
config[_i] = arguments[_i];
|
|
21
21
|
}
|
|
22
22
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, reportId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, reportId, xRHIDENTITY, tags, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
24
|
return tslib_1.__generator(this, function (_b) {
|
|
25
|
-
params = isReportSystemsObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isReportSystemsObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'tags', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
26
|
var _a;
|
|
27
27
|
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
28
|
}, {});
|
|
29
|
-
reportId = params.reportId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
29
|
+
reportId = params.reportId, xRHIDENTITY = params.xRHIDENTITY, tags = params.tags, limit = params.limit, offset = params.offset, idsOnly = params.idsOnly, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
30
|
localVarPath = "/reports/{report_id}/systems"
|
|
31
31
|
.replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
|
|
32
32
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
33
|
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
34
34
|
localVarHeaderParameter = {};
|
|
35
35
|
localVarQueryParameter = {};
|
|
36
|
+
if (tags !== undefined) {
|
|
37
|
+
localVarQueryParameter['tags'] = tags;
|
|
38
|
+
}
|
|
36
39
|
if (limit !== undefined) {
|
|
37
40
|
localVarQueryParameter['limit'] = limit;
|
|
38
41
|
}
|
|
39
42
|
if (offset !== undefined) {
|
|
40
43
|
localVarQueryParameter['offset'] = offset;
|
|
41
44
|
}
|
|
45
|
+
if (idsOnly !== undefined) {
|
|
46
|
+
localVarQueryParameter['ids_only'] = idsOnly;
|
|
47
|
+
}
|
|
42
48
|
if (sortBy !== undefined) {
|
|
43
49
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
44
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportSystems/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportSystems/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA8DjU,IAAM,2BAA2B,GAAG,UAAC,MAAyC;IAC5E,OAAO,MAAM,CAAC,MA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
|
*/
|
|
27
27
|
offset?: any;
|
|
28
28
|
/**
|
|
29
|
+
* Indicates whether to return only resource IDs.
|
|
30
|
+
* @type { any }
|
|
31
|
+
* @memberof ReportTestResultsApi
|
|
32
|
+
*/
|
|
33
|
+
idsOnly?: any;
|
|
34
|
+
/**
|
|
29
35
|
* Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
|
|
30
36
|
* @type { any }
|
|
31
37
|
* @memberof ReportTestResultsApi
|
|
@@ -46,5 +52,5 @@ export type ReportTestResultsParams = {
|
|
|
46
52
|
* @param {*} [options] Override http request option.
|
|
47
53
|
* @throws {RequiredError}
|
|
48
54
|
*/
|
|
49
|
-
export declare const reportTestResultsParamCreator: (...config: ([ReportTestResultsParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
55
|
+
export declare const reportTestResultsParamCreator: (...config: ([ReportTestResultsParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
50
56
|
export default reportTestResultsParamCreator;
|
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isReportTestResultsObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Test Results under a Report
|
|
@@ -20,13 +20,13 @@ var reportTestResultsParamCreator = function () {
|
|
|
20
20
|
config[_i] = arguments[_i];
|
|
21
21
|
}
|
|
22
22
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, reportId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, reportId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
24
|
return tslib_1.__generator(this, function (_b) {
|
|
25
|
-
params = isReportTestResultsObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isReportTestResultsObjectParams(config) ? config[0] : ['reportId', 'xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
26
|
var _a;
|
|
27
27
|
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
28
|
}, {});
|
|
29
|
-
reportId = params.reportId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
29
|
+
reportId = params.reportId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, idsOnly = params.idsOnly, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
30
|
localVarPath = "/reports/{report_id}/test_results"
|
|
31
31
|
.replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
|
|
32
32
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -39,6 +39,9 @@ var reportTestResultsParamCreator = function () {
|
|
|
39
39
|
if (offset !== undefined) {
|
|
40
40
|
localVarQueryParameter['offset'] = offset;
|
|
41
41
|
}
|
|
42
|
+
if (idsOnly !== undefined) {
|
|
43
|
+
localVarQueryParameter['ids_only'] = idsOnly;
|
|
44
|
+
}
|
|
42
45
|
if (sortBy !== undefined) {
|
|
43
46
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
44
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportTestResults/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportTestResults/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAwDjU,IAAM,+BAA+B,GAAG,UAAC,MAA6C;IACpF,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAA;AACxI,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,6BAA6B,GAAG;IAAO,gBAAgG;SAAhG,UAAgG,EAAhG,qBAAgG,EAAhG,IAAgG;QAAhG,2BAAgG;;;;;YAC1I,MAAM,GAAG,+BAA+B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAA4B,CAAC;YACvP,QAAQ,GAAwE,MAAM,SAA9E,EAAE,WAAW,GAA2D,MAAM,YAAjE,EAAE,KAAK,GAAoD,MAAM,MAA1D,EAAE,MAAM,GAA4C,MAAM,OAAlD,EAAE,OAAO,GAAmC,MAAM,QAAzC,EAAE,MAAM,GAA2B,MAAM,OAA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AAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA9CY,QAAA,6BAA6B,iCA8CzC;AAED,kBAAe,qCAA6B,CAAC"}
|
package/dist/Reports/index.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ export type ReportsParams = {
|
|
|
20
20
|
*/
|
|
21
21
|
offset?: any;
|
|
22
22
|
/**
|
|
23
|
+
* Indicates whether to return only resource IDs.
|
|
24
|
+
* @type { any }
|
|
25
|
+
* @memberof ReportsApi
|
|
26
|
+
*/
|
|
27
|
+
idsOnly?: any;
|
|
28
|
+
/**
|
|
23
29
|
* Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
|
|
24
30
|
* @type { any }
|
|
25
31
|
* @memberof ReportsApi
|
|
@@ -40,5 +46,5 @@ export type ReportsParams = {
|
|
|
40
46
|
* @param {*} [options] Override http request option.
|
|
41
47
|
* @throws {RequiredError}
|
|
42
48
|
*/
|
|
43
|
-
export declare const reportsParamCreator: (...config: ([ReportsParams] | [any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
49
|
+
export declare const reportsParamCreator: (...config: ([ReportsParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
44
50
|
export default reportsParamCreator;
|
package/dist/Reports/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isReportsObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Reports
|
|
@@ -20,13 +20,13 @@ var reportsParamCreator = function () {
|
|
|
20
20
|
config[_i] = arguments[_i];
|
|
21
21
|
}
|
|
22
22
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
24
|
return tslib_1.__generator(this, function (_b) {
|
|
25
|
-
params = isReportsObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isReportsObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
26
|
var _a;
|
|
27
27
|
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
28
|
}, {});
|
|
29
|
-
xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
29
|
+
xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, idsOnly = params.idsOnly, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
30
|
localVarPath = "/reports";
|
|
31
31
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
32
32
|
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
@@ -38,6 +38,9 @@ var reportsParamCreator = function () {
|
|
|
38
38
|
if (offset !== undefined) {
|
|
39
39
|
localVarQueryParameter['offset'] = offset;
|
|
40
40
|
}
|
|
41
|
+
if (idsOnly !== undefined) {
|
|
42
|
+
localVarQueryParameter['ids_only'] = idsOnly;
|
|
43
|
+
}
|
|
41
44
|
if (sortBy !== undefined) {
|
|
42
45
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
43
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Reports/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Reports/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAkDjU,IAAM,qBAAqB,GAAG,UAAC,MAAmC;IAChE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAA;AAC5E,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,mBAAmB,GAAG;IAAO,gBAAiF;SAAjF,UAAiF,EAAjF,qBAAiF,EAAjF,IAAiF;QAAjF,2BAAiF;;;;;YACjH,MAAM,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAAkB,CAAC;YACvN,WAAW,GAA2D,MAAM,YAAjE,EAAE,KAAK,GAAoD,MAAM,MAA1D,EAAE,MAAM,GAA4C,MAAM,OAAlD,EAAE,OAAO,GAAmC,MAAM,QAAzC,EAAE,MAAM,GAA2B,MAAM,OAAjC,EAAE,MAAM,GAAmB,MAAM,OAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA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|
26
26
|
*/
|
|
27
27
|
offset?: any;
|
|
28
28
|
/**
|
|
29
|
+
* Indicates whether to return only resource IDs.
|
|
30
|
+
* @type { any }
|
|
31
|
+
* @memberof RuleGroupsApi
|
|
32
|
+
*/
|
|
33
|
+
idsOnly?: any;
|
|
34
|
+
/**
|
|
29
35
|
* Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
|
|
30
36
|
* @type { any }
|
|
31
37
|
* @memberof RuleGroupsApi
|
|
@@ -46,5 +52,5 @@ export type RuleGroupsParams = {
|
|
|
46
52
|
* @param {*} [options] Override http request option.
|
|
47
53
|
* @throws {RequiredError}
|
|
48
54
|
*/
|
|
49
|
-
export declare const ruleGroupsParamCreator: (...config: ([RuleGroupsParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
55
|
+
export declare const ruleGroupsParamCreator: (...config: ([RuleGroupsParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
50
56
|
export default ruleGroupsParamCreator;
|
package/dist/RuleGroups/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isRuleGroupsObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'securityGuideId') && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'securityGuideId') && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Rule Groups
|
|
@@ -20,13 +20,13 @@ var ruleGroupsParamCreator = function () {
|
|
|
20
20
|
config[_i] = arguments[_i];
|
|
21
21
|
}
|
|
22
22
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, securityGuideId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
24
|
return tslib_1.__generator(this, function (_b) {
|
|
25
|
-
params = isRuleGroupsObjectParams(config) ? config[0] : ['securityGuideId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isRuleGroupsObjectParams(config) ? config[0] : ['securityGuideId', 'xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
26
|
var _a;
|
|
27
27
|
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
28
|
}, {});
|
|
29
|
-
securityGuideId = params.securityGuideId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
29
|
+
securityGuideId = params.securityGuideId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, idsOnly = params.idsOnly, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
30
|
localVarPath = "/security_guides/{security_guide_id}/rule_groups"
|
|
31
31
|
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)));
|
|
32
32
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -39,6 +39,9 @@ var ruleGroupsParamCreator = function () {
|
|
|
39
39
|
if (offset !== undefined) {
|
|
40
40
|
localVarQueryParameter['offset'] = offset;
|
|
41
41
|
}
|
|
42
|
+
if (idsOnly !== undefined) {
|
|
43
|
+
localVarQueryParameter['ids_only'] = idsOnly;
|
|
44
|
+
}
|
|
42
45
|
if (sortBy !== undefined) {
|
|
43
46
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
44
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../RuleGroups/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../RuleGroups/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAwDjU,IAAM,wBAAwB,GAAG,UAAC,MAAsC;IACtE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,iBAAiB,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAA;AAC/I,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,sBAAsB,GAAG;IAAO,gBAAyF;SAAzF,UAAyF,EAAzF,qBAAyF,EAAzF,IAAyF;QAAzF,2BAAyF;;;;;YAC5H,MAAM,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAAqB,CAAC;YAChP,eAAe,GAAwE,MAAM,gBAA9E,EAAE,WAAW,GAA2D,MAAM,YAAjE,EAAE,KAAK,GAAoD,MAAM,MAA1D,EAAE,MAAM,GA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sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA9CY,QAAA,sBAAsB,0BA8ClC;AAED,kBAAe,8BAAsB,CAAC"}
|
package/dist/Rules/index.d.ts
CHANGED
|
@@ -26,13 +26,19 @@ export type RulesParams = {
|
|
|
26
26
|
*/
|
|
27
27
|
offset?: any;
|
|
28
28
|
/**
|
|
29
|
+
* Indicates whether to return only resource IDs.
|
|
30
|
+
* @type { any }
|
|
31
|
+
* @memberof RulesApi
|
|
32
|
+
*/
|
|
33
|
+
idsOnly?: any;
|
|
34
|
+
/**
|
|
29
35
|
* Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
|
|
30
36
|
* @type { any }
|
|
31
37
|
* @memberof RulesApi
|
|
32
38
|
*/
|
|
33
39
|
sortBy?: any;
|
|
34
40
|
/**
|
|
35
|
-
* Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rules are searchable using attributes `title`, `severity`, and `
|
|
41
|
+
* Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rules are searchable using attributes `title`, `severity`, `remediation_available`, and `rule_group_id`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
36
42
|
* @type { any }
|
|
37
43
|
* @memberof RulesApi
|
|
38
44
|
*/
|
|
@@ -46,5 +52,5 @@ export type RulesParams = {
|
|
|
46
52
|
* @param {*} [options] Override http request option.
|
|
47
53
|
* @throws {RequiredError}
|
|
48
54
|
*/
|
|
49
|
-
export declare const rulesParamCreator: (...config: ([RulesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
55
|
+
export declare const rulesParamCreator: (...config: ([RulesParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
50
56
|
export default rulesParamCreator;
|
package/dist/Rules/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isRulesObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'securityGuideId') && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'securityGuideId') && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Rules assigned
|
|
@@ -20,13 +20,13 @@ var rulesParamCreator = function () {
|
|
|
20
20
|
config[_i] = arguments[_i];
|
|
21
21
|
}
|
|
22
22
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, securityGuideId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
24
|
return tslib_1.__generator(this, function (_b) {
|
|
25
|
-
params = isRulesObjectParams(config) ? config[0] : ['securityGuideId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isRulesObjectParams(config) ? config[0] : ['securityGuideId', 'xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
26
|
var _a;
|
|
27
27
|
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
28
|
}, {});
|
|
29
|
-
securityGuideId = params.securityGuideId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
29
|
+
securityGuideId = params.securityGuideId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, idsOnly = params.idsOnly, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
30
|
localVarPath = "/security_guides/{security_guide_id}/rules"
|
|
31
31
|
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)));
|
|
32
32
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -39,6 +39,9 @@ var rulesParamCreator = function () {
|
|
|
39
39
|
if (offset !== undefined) {
|
|
40
40
|
localVarQueryParameter['offset'] = offset;
|
|
41
41
|
}
|
|
42
|
+
if (idsOnly !== undefined) {
|
|
43
|
+
localVarQueryParameter['ids_only'] = idsOnly;
|
|
44
|
+
}
|
|
42
45
|
if (sortBy !== undefined) {
|
|
43
46
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
44
47
|
}
|
package/dist/Rules/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Rules/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Rules/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAwDjU,IAAM,mBAAmB,GAAG,UAAC,MAAiC;IAC5D,OAAO,MAAM,CAAC,MAAM,K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AAC,CAAC;YAChE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAEzC,IAAI,KAAK,KAAK,SAAS,EAAE;gBACrB,sBAAsB,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;aAC3C;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;aAC7C;YAED,IAAI,OAAO,KAAK,SAAS,EAAE;gBACvB,sBAAsB,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;aAChD;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;aAC9C;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;aAC7C;YAED,IAAI,WAAW,IAAI,IAAI,EAAE;gBACrB,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,WAAW,KAAK,QAAQ;oBACtE,CAAC,CAAC,WAAW;oBACb,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;aACrC;YAID,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA9CY,QAAA,iBAAiB,qBA8C7B;AAED,kBAAe,yBAAiB,CAAC"}
|
|
@@ -20,6 +20,12 @@ export type SecurityGuidesParams = {
|
|
|
20
20
|
*/
|
|
21
21
|
offset?: any;
|
|
22
22
|
/**
|
|
23
|
+
* Indicates whether to return only resource IDs.
|
|
24
|
+
* @type { any }
|
|
25
|
+
* @memberof SecurityGuidesApi
|
|
26
|
+
*/
|
|
27
|
+
idsOnly?: any;
|
|
28
|
+
/**
|
|
23
29
|
* Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
|
|
24
30
|
* @type { any }
|
|
25
31
|
* @memberof SecurityGuidesApi
|
|
@@ -40,5 +46,5 @@ export type SecurityGuidesParams = {
|
|
|
40
46
|
* @param {*} [options] Override http request option.
|
|
41
47
|
* @throws {RequiredError}
|
|
42
48
|
*/
|
|
43
|
-
export declare const securityGuidesParamCreator: (...config: ([SecurityGuidesParams] | [any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
49
|
+
export declare const securityGuidesParamCreator: (...config: ([SecurityGuidesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
44
50
|
export default securityGuidesParamCreator;
|
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isSecurityGuidesObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Security Guides
|
|
@@ -20,13 +20,13 @@ var securityGuidesParamCreator = function () {
|
|
|
20
20
|
config[_i] = arguments[_i];
|
|
21
21
|
}
|
|
22
22
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
24
|
return tslib_1.__generator(this, function (_b) {
|
|
25
|
-
params = isSecurityGuidesObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isSecurityGuidesObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
26
|
var _a;
|
|
27
27
|
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
28
|
}, {});
|
|
29
|
-
xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
29
|
+
xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, idsOnly = params.idsOnly, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
30
|
localVarPath = "/security_guides";
|
|
31
31
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
32
32
|
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
@@ -38,6 +38,9 @@ var securityGuidesParamCreator = function () {
|
|
|
38
38
|
if (offset !== undefined) {
|
|
39
39
|
localVarQueryParameter['offset'] = offset;
|
|
40
40
|
}
|
|
41
|
+
if (idsOnly !== undefined) {
|
|
42
|
+
localVarQueryParameter['ids_only'] = idsOnly;
|
|
43
|
+
}
|
|
41
44
|
if (sortBy !== undefined) {
|
|
42
45
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
43
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../SecurityGuides/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../SecurityGuides/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAkDjU,I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AK,CAAC;aAC3C;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;aAC7C;YAED,IAAI,OAAO,KAAK,SAAS,EAAE;gBACvB,sBAAsB,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;aAChD;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;aAC9C;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;aAC7C;YAED,IAAI,WAAW,IAAI,IAAI,EAAE;gBACrB,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,WAAW,KAAK,QAAQ;oBACtE,CAAC,CAAC,WAAW;oBACb,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;aACrC;YAID,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA7CY,QAAA,0BAA0B,8BA6CtC;AAED,kBAAe,kCAA0B,CAAC"}
|
|
@@ -20,6 +20,12 @@ export type SupportedProfilesParams = {
|
|
|
20
20
|
*/
|
|
21
21
|
offset?: any;
|
|
22
22
|
/**
|
|
23
|
+
* Indicates whether to return only resource IDs.
|
|
24
|
+
* @type { any }
|
|
25
|
+
* @memberof SupportedProfilesApi
|
|
26
|
+
*/
|
|
27
|
+
idsOnly?: any;
|
|
28
|
+
/**
|
|
23
29
|
* Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
|
|
24
30
|
* @type { any }
|
|
25
31
|
* @memberof SupportedProfilesApi
|
|
@@ -40,5 +46,5 @@ export type SupportedProfilesParams = {
|
|
|
40
46
|
* @param {*} [options] Override http request option.
|
|
41
47
|
* @throws {RequiredError}
|
|
42
48
|
*/
|
|
43
|
-
export declare const supportedProfilesParamCreator: (...config: ([SupportedProfilesParams] | [any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
49
|
+
export declare const supportedProfilesParamCreator: (...config: ([SupportedProfilesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
44
50
|
export default supportedProfilesParamCreator;
|
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isSupportedProfilesObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Supported Profiles
|
|
@@ -20,13 +20,13 @@ var supportedProfilesParamCreator = function () {
|
|
|
20
20
|
config[_i] = arguments[_i];
|
|
21
21
|
}
|
|
22
22
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
24
|
return tslib_1.__generator(this, function (_b) {
|
|
25
|
-
params = isSupportedProfilesObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isSupportedProfilesObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
26
|
var _a;
|
|
27
27
|
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
28
|
}, {});
|
|
29
|
-
xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
29
|
+
xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, idsOnly = params.idsOnly, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
30
|
localVarPath = "/security_guides/supported_profiles";
|
|
31
31
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
32
32
|
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
@@ -38,6 +38,9 @@ var supportedProfilesParamCreator = function () {
|
|
|
38
38
|
if (offset !== undefined) {
|
|
39
39
|
localVarQueryParameter['offset'] = offset;
|
|
40
40
|
}
|
|
41
|
+
if (idsOnly !== undefined) {
|
|
42
|
+
localVarQueryParameter['ids_only'] = idsOnly;
|
|
43
|
+
}
|
|
41
44
|
if (sortBy !== undefined) {
|
|
42
45
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
43
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../SupportedProfiles/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../SupportedProfiles/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAkDjU,IAAM,+BAA+B,GAAG,UAAC,MAA6C;IACpF,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,I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AS,EAAE;gBACvB,sBAAsB,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;aAChD;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;aAC9C;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;aAC7C;YAED,IAAI,WAAW,IAAI,IAAI,EAAE;gBACrB,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,WAAW,KAAK,QAAQ;oBACtE,CAAC,CAAC,WAAW;oBACb,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;aACrC;YAID,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA7CY,QAAA,6BAA6B,iCA6CzC;AAED,kBAAe,qCAA6B,CAAC"}
|
|
@@ -26,13 +26,19 @@ export type SystemReportsParams = {
|
|
|
26
26
|
*/
|
|
27
27
|
offset?: any;
|
|
28
28
|
/**
|
|
29
|
+
* Indicates whether to return only resource IDs.
|
|
30
|
+
* @type { any }
|
|
31
|
+
* @memberof SystemReportsApi
|
|
32
|
+
*/
|
|
33
|
+
idsOnly?: any;
|
|
34
|
+
/**
|
|
29
35
|
* Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
|
|
30
36
|
* @type { any }
|
|
31
37
|
* @memberof SystemReportsApi
|
|
32
38
|
*/
|
|
33
39
|
sortBy?: any;
|
|
34
40
|
/**
|
|
35
|
-
* Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Reports are searchable using attributes `title
|
|
41
|
+
* Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Reports are searchable using attributes `title`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
36
42
|
* @type { any }
|
|
37
43
|
* @memberof SystemReportsApi
|
|
38
44
|
*/
|
|
@@ -46,5 +52,5 @@ export type SystemReportsParams = {
|
|
|
46
52
|
* @param {*} [options] Override http request option.
|
|
47
53
|
* @throws {RequiredError}
|
|
48
54
|
*/
|
|
49
|
-
export declare const systemReportsParamCreator: (...config: ([SystemReportsParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
55
|
+
export declare const systemReportsParamCreator: (...config: ([SystemReportsParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
50
56
|
export default systemReportsParamCreator;
|
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
7
|
var isSystemReportsObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'systemId') && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'systemId') && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Reports
|
|
@@ -20,13 +20,13 @@ var systemReportsParamCreator = function () {
|
|
|
20
20
|
config[_i] = arguments[_i];
|
|
21
21
|
}
|
|
22
22
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
-
var params, systemId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, systemId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
24
|
return tslib_1.__generator(this, function (_b) {
|
|
25
|
-
params = isSystemReportsObjectParams(config) ? config[0] : ['systemId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isSystemReportsObjectParams(config) ? config[0] : ['systemId', 'xRHIDENTITY', 'limit', 'offset', 'idsOnly', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
26
26
|
var _a;
|
|
27
27
|
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
28
|
}, {});
|
|
29
|
-
systemId = params.systemId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
29
|
+
systemId = params.systemId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, idsOnly = params.idsOnly, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
30
|
localVarPath = "/systems/{system_id}/reports"
|
|
31
31
|
.replace("{".concat("system_id", "}"), encodeURIComponent(String(systemId)));
|
|
32
32
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -39,6 +39,9 @@ var systemReportsParamCreator = function () {
|
|
|
39
39
|
if (offset !== undefined) {
|
|
40
40
|
localVarQueryParameter['offset'] = offset;
|
|
41
41
|
}
|
|
42
|
+
if (idsOnly !== undefined) {
|
|
43
|
+
localVarQueryParameter['ids_only'] = idsOnly;
|
|
44
|
+
}
|
|
42
45
|
if (sortBy !== undefined) {
|
|
43
46
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
44
47
|
}
|