@redhat-cloud-services/compliance-client 0.2.1 → 0.2.3
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/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/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/ReportsOS/index.d.ts +27 -0
- package/dist/ReportsOS/index.js +55 -0
- package/dist/ReportsOS/index.js.map +1 -0
- 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/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 +299 -105
- package/dist/api.js +440 -161
- package/dist/api.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +44 -1
- 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.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)
|
|
6
|
+
|
|
7
|
+
## [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)
|
|
8
|
+
|
|
5
9
|
## [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)
|
|
6
10
|
|
|
7
11
|
## [0.2.0](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/compliance-client-0.1.7...@redhat-cloud-services/compliance-client-0.2.0) (2024-08-05)
|
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,MAAM,OAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YAC/E,YAAY,GAAG,WAAW,CAAC;YAE3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
|
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,GAA4C,MAAM,OAAlD,EAAE,OAAO,GAAmC,MAAM,QAAzC,EAAE,MAAM,GAA2B,MAAM,OAAjC,EAAE,MAAM,GAAmB,MAAM,O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AAO,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":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ProfileRules/index.ts"],"names":[],"m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AAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA/CY,QAAA,wBAAwB,4BA+CpC;AAED,kBAAe,gCAAwB,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,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EA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AC,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,IAAI,IAAI,CAAA;AACxM,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,6BAA6B,G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AI,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;AA/CY,QAAA,6BAA6B,iCA+CzC;AAED,kBAAe,qCAA6B,CAAC"}
|
|
@@ -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;AA8D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yB,CAAC"}
|
|
@@ -26,6 +26,12 @@ export type ReportTestResultsParams = {
|
|
|
26
26
|
*/
|
|
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,OAA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AAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;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;
|