@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
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.4](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.2.3...@redhat-cloud-services/compliance-client-0.2.4) (2024-10-21)
|
|
6
|
+
|
|
7
|
+
## [0.2.3](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.2.2...@redhat-cloud-services/compliance-client-0.2.3) (2024-10-15)
|
|
8
|
+
|
|
5
9
|
## [0.2.2](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.2.1...@redhat-cloud-services/compliance-client-0.2.2) (2024-09-04)
|
|
6
10
|
|
|
7
11
|
## [0.2.1](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.2.0...@redhat-cloud-services/compliance-client-0.2.1) (2024-08-31)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { TailoringCreate } from '../types';
|
|
4
|
+
export type CreateTailoringParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { any }
|
|
8
|
+
* @memberof CreateTailoringApi
|
|
9
|
+
*/
|
|
10
|
+
policyId: any;
|
|
11
|
+
/**
|
|
12
|
+
* For internal use only
|
|
13
|
+
* @type { any }
|
|
14
|
+
* @memberof CreateTailoringApi
|
|
15
|
+
*/
|
|
16
|
+
xRHIDENTITY?: any;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type { TailoringCreate }
|
|
20
|
+
* @memberof CreateTailoringApi
|
|
21
|
+
*/
|
|
22
|
+
tailoringCreate?: TailoringCreate;
|
|
23
|
+
options?: AxiosRequestConfig;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Create a Tailoring with the provided attributes (for ImageBuilder only)
|
|
27
|
+
* @summary Create a Tailoring
|
|
28
|
+
* @param {CreateTailoringParams} config with all available params.
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
export declare const createTailoringParamCreator: (...config: ([CreateTailoringParams] | [any, any, TailoringCreate, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
33
|
+
export default createTailoringParamCreator;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createTailoringParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
|
+
var isCreateTailoringObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && true && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Create a Tailoring with the provided attributes (for ImageBuilder only)
|
|
12
|
+
* @summary Create a Tailoring
|
|
13
|
+
* @param {CreateTailoringParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var createTailoringParamCreator = function () {
|
|
18
|
+
var config = [];
|
|
19
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
20
|
+
config[_i] = arguments[_i];
|
|
21
|
+
}
|
|
22
|
+
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
+
var params, policyId, xRHIDENTITY, tailoringCreate, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isCreateTailoringObjectParams(config) ? config[0] : ['policyId', 'xRHIDENTITY', 'tailoringCreate', 'options'].reduce(function (acc, curr, index) {
|
|
26
|
+
var _a;
|
|
27
|
+
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
|
+
}, {});
|
|
29
|
+
policyId = params.policyId, xRHIDENTITY = params.xRHIDENTITY, tailoringCreate = params.tailoringCreate, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/policies/{policy_id}/tailorings"
|
|
31
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
32
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'POST' }, options);
|
|
34
|
+
localVarHeaderParameter = {};
|
|
35
|
+
localVarQueryParameter = {};
|
|
36
|
+
if (xRHIDENTITY != null) {
|
|
37
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
38
|
+
? xRHIDENTITY
|
|
39
|
+
: JSON.stringify(xRHIDENTITY);
|
|
40
|
+
}
|
|
41
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
42
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
43
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
44
|
+
return [2 /*return*/, {
|
|
45
|
+
urlObj: localVarUrlObj,
|
|
46
|
+
options: localVarRequestOptions,
|
|
47
|
+
serializeData: tailoringCreate,
|
|
48
|
+
}];
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
exports.createTailoringParamCreator = createTailoringParamCreator;
|
|
53
|
+
exports.default = exports.createTailoringParamCreator;
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../CreateTailoring/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAgCjU,IAAM,6BAA6B,GAAG,UAAC,MAA2C;IAChF,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,IAAI,IAAI,IAAI,CAAA;AACxG,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,2BAA2B,GAAG;IAAO,gBAAsF;SAAtF,UAAsF,EAAtF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AAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;oBAC/B,aAAa,EAAE,eAAe;iBACjC,EAAC;;;CACL,CAAA;AA7BY,QAAA,2BAA2B,+BA6BvC;AAED,kBAAe,mCAA2B,CAAC"}
|
package/dist/Policies/index.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ export type PoliciesParams = {
|
|
|
20
20
|
*/
|
|
21
21
|
offset?: any;
|
|
22
22
|
/**
|
|
23
|
+
* Indicates whether to return only resource IDs.
|
|
24
|
+
* @type { any }
|
|
25
|
+
* @memberof PoliciesApi
|
|
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 PoliciesApi
|
|
@@ -40,5 +46,5 @@ export type PoliciesParams = {
|
|
|
40
46
|
* @param {*} [options] Override http request option.
|
|
41
47
|
* @throws {RequiredError}
|
|
42
48
|
*/
|
|
43
|
-
export declare const policiesParamCreator: (...config: ([PoliciesParams] | [any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
49
|
+
export declare const policiesParamCreator: (...config: ([PoliciesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
44
50
|
export default policiesParamCreator;
|
package/dist/Policies/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 isPoliciesObjectParams = 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 Policies
|
|
@@ -20,13 +20,13 @@ var policiesParamCreator = 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 = isPoliciesObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isPoliciesObjectParams(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 = "/policies";
|
|
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 policiesParamCreator = 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":["../../Policies/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Policies/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAkDjU,IAAM,sBAAsB,GAAG,UAAC,MAAoC;IAClE,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,oBAAoB,GAAG;IAAO,gBAAkF;SAAlF,UAAkF,EAAlF,qBAAkF,EAAlF,IAAkF;QAAlF,2BAAkF;;;;;YACnH,MAAM,GAAG,sBAAsB,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,CAAmB,CAAC;YACzN,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,MAA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Ae,4BAAoB,CAAC"}
|
|
@@ -14,6 +14,12 @@ export type PolicySystemsParams = {
|
|
|
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 PolicySystemsApi
|
|
20
|
+
*/
|
|
21
|
+
tags?: any;
|
|
22
|
+
/**
|
|
17
23
|
* Number of items to return per page
|
|
18
24
|
* @type { any }
|
|
19
25
|
* @memberof PolicySystemsApi
|
|
@@ -26,13 +32,19 @@ export type PolicySystemsParams = {
|
|
|
26
32
|
*/
|
|
27
33
|
offset?: any;
|
|
28
34
|
/**
|
|
35
|
+
* Indicates whether to return only resource IDs.
|
|
36
|
+
* @type { any }
|
|
37
|
+
* @memberof PolicySystemsApi
|
|
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 PolicySystemsApi
|
|
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`, 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 PolicySystemsApi
|
|
38
50
|
*/
|
|
@@ -46,5 +58,5 @@ export type PolicySystemsParams = {
|
|
|
46
58
|
* @param {*} [options] Override http request option.
|
|
47
59
|
* @throws {RequiredError}
|
|
48
60
|
*/
|
|
49
|
-
export declare const policySystemsParamCreator: (...config: ([PolicySystemsParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
61
|
+
export declare const policySystemsParamCreator: (...config: ([PolicySystemsParams] | [any, any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
50
62
|
export default policySystemsParamCreator;
|
|
@@ -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 isPolicySystemsObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && true && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Systems assigned to a Policy
|
|
@@ -20,25 +20,31 @@ var policySystemsParamCreator = 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, policyId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, policyId, 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 = isPolicySystemsObjectParams(config) ? config[0] : ['policyId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isPolicySystemsObjectParams(config) ? config[0] : ['policyId', '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
|
-
policyId = params.policyId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
29
|
+
policyId = params.policyId, 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 = "/policies/{policy_id}/systems"
|
|
31
31
|
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
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":["../../PolicySystems/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../PolicySystems/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA8DjU,IAAM,2BAA2B,GAAG,UAAC,MAAyC;IAC5E,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,IAAI,IAAI,CAAA;AAChJ,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,yBAAyB,GAAG;IAAO,gBAAiG;SAAjG,UAAiG,EAAjG,qBAAiG,EAAjG,IAAiG;QAAjG,2BAAiG;;;;;YACvI,MAAM,GAAG,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,aAAa,EAAE,MAAM,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,CAAwB,CAAC;YACvP,QAAQ,GAA8E,MAAM,SAApF,EAAE,WAAW,GAAiE,MAAM,YAAvE,EAAE,IAAI,GAA2D,MAAM,KAAjE,EAAE,KAAK,GAAoD,MAAM,MAA1D,EAAE,MAAM,GA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,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;AAlDY,QAAA,yBAAyB,6BAkDrC;AAED,kBAAe,iCAAyB,CAAC"}
|
|
@@ -32,13 +32,19 @@ export type ProfileRulesParams = {
|
|
|
32
32
|
*/
|
|
33
33
|
offset?: any;
|
|
34
34
|
/**
|
|
35
|
+
* Indicates whether to return only resource IDs.
|
|
36
|
+
* @type { any }
|
|
37
|
+
* @memberof ProfileRulesApi
|
|
38
|
+
*/
|
|
39
|
+
idsOnly?: any;
|
|
40
|
+
/**
|
|
35
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.
|
|
36
42
|
* @type { any }
|
|
37
43
|
* @memberof ProfileRulesApi
|
|
38
44
|
*/
|
|
39
45
|
sortBy?: any;
|
|
40
46
|
/**
|
|
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`, and `
|
|
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>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`)
|
|
42
48
|
* @type { any }
|
|
43
49
|
* @memberof ProfileRulesApi
|
|
44
50
|
*/
|
|
@@ -52,5 +58,5 @@ export type ProfileRulesParams = {
|
|
|
52
58
|
* @param {*} [options] Override http request option.
|
|
53
59
|
* @throws {RequiredError}
|
|
54
60
|
*/
|
|
55
|
-
export declare const profileRulesParamCreator: (...config: ([ProfileRulesParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
61
|
+
export declare const profileRulesParamCreator: (...config: ([ProfileRulesParams] | [any, any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
56
62
|
export default profileRulesParamCreator;
|
|
@@ -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 isProfileRulesObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'securityGuideId') && Object.prototype.hasOwnProperty.call(params, 'profileId') && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'securityGuideId') && Object.prototype.hasOwnProperty.call(params, 'profileId') && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Rules assigned to a Profile
|
|
@@ -20,13 +20,13 @@ var profileRulesParamCreator = 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, profileId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, securityGuideId, profileId, xRHIDENTITY, limit, offset, idsOnly, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
24
|
return tslib_1.__generator(this, function (_b) {
|
|
25
|
-
params = isProfileRulesObjectParams(config) ? config[0] : ['securityGuideId', 'profileId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isProfileRulesObjectParams(config) ? config[0] : ['securityGuideId', 'profileId', '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, profileId = params.profileId, 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, profileId = params.profileId, 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}/profiles/{profile_id}/rules"
|
|
31
31
|
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
|
|
32
32
|
.replace("{".concat("profile_id", "}"), encodeURIComponent(String(profileId)));
|
|
@@ -40,6 +40,9 @@ var profileRulesParamCreator = function () {
|
|
|
40
40
|
if (offset !== undefined) {
|
|
41
41
|
localVarQueryParameter['offset'] = offset;
|
|
42
42
|
}
|
|
43
|
+
if (idsOnly !== undefined) {
|
|
44
|
+
localVarQueryParameter['ids_only'] = idsOnly;
|
|
45
|
+
}
|
|
43
46
|
if (sortBy !== undefined) {
|
|
44
47
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
45
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ProfileRules/index.ts"],"names":[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AAC;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;AA/CY,QAAA,wBAAwB,4BA+CpC;AAED,kBAAe,gCAAwB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
export type ProfileTreeParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { any }
|
|
7
|
+
* @memberof ProfileTreeApi
|
|
8
|
+
*/
|
|
9
|
+
securityGuideId: any;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { any }
|
|
13
|
+
* @memberof ProfileTreeApi
|
|
14
|
+
*/
|
|
15
|
+
profileId: any;
|
|
16
|
+
/**
|
|
17
|
+
* For internal use only
|
|
18
|
+
* @type { any }
|
|
19
|
+
* @memberof ProfileTreeApi
|
|
20
|
+
*/
|
|
21
|
+
xRHIDENTITY?: any;
|
|
22
|
+
options?: AxiosRequestConfig;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Returns the Rule Tree of a Profile
|
|
26
|
+
* @summary Request the Rule Tree of a Profile
|
|
27
|
+
* @param {ProfileTreeParams} config with all available params.
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
export declare const profileTreeParamCreator: (...config: ([ProfileTreeParams] | [any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
32
|
+
export default profileTreeParamCreator;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.profileTreeParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
|
+
var isProfileTreeObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'securityGuideId') && Object.prototype.hasOwnProperty.call(params, 'profileId') && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Returns the Rule Tree of a Profile
|
|
12
|
+
* @summary Request the Rule Tree of a Profile
|
|
13
|
+
* @param {ProfileTreeParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var profileTreeParamCreator = function () {
|
|
18
|
+
var config = [];
|
|
19
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
20
|
+
config[_i] = arguments[_i];
|
|
21
|
+
}
|
|
22
|
+
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
+
var params, securityGuideId, profileId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isProfileTreeObjectParams(config) ? config[0] : ['securityGuideId', 'profileId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
26
|
+
var _a;
|
|
27
|
+
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
|
+
}, {});
|
|
29
|
+
securityGuideId = params.securityGuideId, profileId = params.profileId, xRHIDENTITY = params.xRHIDENTITY, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/security_guides/{security_guide_id}/profiles/{profile_id}/rule_tree"
|
|
31
|
+
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
|
|
32
|
+
.replace("{".concat("profile_id", "}"), encodeURIComponent(String(profileId)));
|
|
33
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
34
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
35
|
+
localVarHeaderParameter = {};
|
|
36
|
+
localVarQueryParameter = {};
|
|
37
|
+
if (xRHIDENTITY != null) {
|
|
38
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
39
|
+
? xRHIDENTITY
|
|
40
|
+
: JSON.stringify(xRHIDENTITY);
|
|
41
|
+
}
|
|
42
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
43
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
44
|
+
return [2 /*return*/, {
|
|
45
|
+
urlObj: localVarUrlObj,
|
|
46
|
+
options: localVarRequestOptions,
|
|
47
|
+
}];
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
exports.profileTreeParamCreator = profileTreeParamCreator;
|
|
52
|
+
exports.default = exports.profileTreeParamCreator;
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ProfileTree/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAgCjU,IAAM,yBAAyB,GAAG,UAAC,MAAuC;IACxE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,iBAAiB,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,IAAI,CAAA;AACpK,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,uBAAuB,GAAG;IAAO,gBAAsE;SAAtE,UAAsE,EAAtE,qBAAsE,E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O,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA3BY,QAAA,uBAAuB,2BA2BnC;AAED,kBAAe,+BAAuB,CAAC"}
|
package/dist/Profiles/index.d.ts
CHANGED
|
@@ -26,6 +26,12 @@ export type ProfilesParams = {
|
|
|
26
26
|
*/
|
|
27
27
|
offset?: any;
|
|
28
28
|
/**
|
|
29
|
+
* Indicates whether to return only resource IDs.
|
|
30
|
+
* @type { any }
|
|
31
|
+
* @memberof ProfilesApi
|
|
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 ProfilesApi
|
|
@@ -46,5 +52,5 @@ export type ProfilesParams = {
|
|
|
46
52
|
* @param {*} [options] Override http request option.
|
|
47
53
|
* @throws {RequiredError}
|
|
48
54
|
*/
|
|
49
|
-
export declare const profilesParamCreator: (...config: ([ProfilesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
55
|
+
export declare const profilesParamCreator: (...config: ([ProfilesParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
50
56
|
export default profilesParamCreator;
|
package/dist/Profiles/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 isProfilesObjectParams = 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 Profiles
|
|
@@ -20,13 +20,13 @@ var profilesParamCreator = 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 = isProfilesObjectParams(config) ? config[0] : ['securityGuideId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isProfilesObjectParams(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}/profiles"
|
|
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 profilesParamCreator = 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":["../../Profiles/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Profiles/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAwDjU,IAAM,sBAAsB,GAAG,UAAC,MAAoC;IAClE,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,oBAAoB,GAAG;IAAO,gBAAuF;SAAvF,UAAuF,EAAvF,qBAAuF,EAAvF,IAAuF;QAAvF,2BAAuF;;;;;YACxH,MAAM,GAAG,sBAAsB,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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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,oBAAoB,wBA8ChC;AAED,kBAAe,4BAAoB,CAAC"}
|
|
@@ -32,6 +32,12 @@ export type ReportRuleResultsParams = {
|
|
|
32
32
|
*/
|
|
33
33
|
offset?: any;
|
|
34
34
|
/**
|
|
35
|
+
* Indicates whether to return only resource IDs.
|
|
36
|
+
* @type { any }
|
|
37
|
+
* @memberof ReportRuleResultsApi
|
|
38
|
+
*/
|
|
39
|
+
idsOnly?: any;
|
|
40
|
+
/**
|
|
35
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.
|
|
36
42
|
* @type { any }
|
|
37
43
|
* @memberof ReportRuleResultsApi
|
|
@@ -52,5 +58,5 @@ export type ReportRuleResultsParams = {
|
|
|
52
58
|
* @param {*} [options] Override http request option.
|
|
53
59
|
* @throws {RequiredError}
|
|
54
60
|
*/
|
|
55
|
-
export declare const reportRuleResultsParamCreator: (...config: ([ReportRuleResultsParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
61
|
+
export declare const reportRuleResultsParamCreator: (...config: ([ReportRuleResultsParams] | [any, any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
56
62
|
export default reportRuleResultsParamCreator;
|
|
@@ -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 isReportRuleResultsObjectParams = function (params) {
|
|
8
|
-
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'testResultId') && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true && true && true && true;
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'testResultId') && Object.prototype.hasOwnProperty.call(params, 'reportId') && true && true && true && true && true && true;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Lists Rule Results under a Report
|
|
@@ -20,13 +20,13 @@ var reportRuleResultsParamCreator = 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, testResultId, reportId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
23
|
+
var params, testResultId, 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 = isReportRuleResultsObjectParams(config) ? config[0] : ['testResultId', 'reportId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', 'options'].reduce(function (acc, curr, index) {
|
|
25
|
+
params = isReportRuleResultsObjectParams(config) ? config[0] : ['testResultId', '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
|
-
testResultId = params.testResultId, 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
|
+
testResultId = params.testResultId, 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/{test_result_id}/rule_results"
|
|
31
31
|
.replace("{".concat("test_result_id", "}"), encodeURIComponent(String(testResultId)))
|
|
32
32
|
.replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
|
|
@@ -40,6 +40,9 @@ var reportRuleResultsParamCreator = function () {
|
|
|
40
40
|
if (offset !== undefined) {
|
|
41
41
|
localVarQueryParameter['offset'] = offset;
|
|
42
42
|
}
|
|
43
|
+
if (idsOnly !== undefined) {
|
|
44
|
+
localVarQueryParameter['ids_only'] = idsOnly;
|
|
45
|
+
}
|
|
43
46
|
if (sortBy !== undefined) {
|
|
44
47
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
45
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportRuleResults/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ReportRuleResults/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA8DjU,IAAM,+BAA+B,GAAG,UAAC,MAA6C;IACpF,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI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