@redhat-cloud-services/compliance-client 0.1.0
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 +13 -0
- package/LICENSE +201 -0
- package/README.md +67 -0
- package/dist/AssignRule/index.d.ts +38 -0
- package/dist/AssignRule/index.js +54 -0
- package/dist/AssignRule/index.js.map +1 -0
- package/dist/AssignRules/index.d.ts +40 -0
- package/dist/AssignRules/index.js +56 -0
- package/dist/AssignRules/index.js.map +1 -0
- package/dist/AssignSystem/index.d.ts +32 -0
- package/dist/AssignSystem/index.js +53 -0
- package/dist/AssignSystem/index.js.map +1 -0
- package/dist/AssignSystems/index.d.ts +34 -0
- package/dist/AssignSystems/index.js +55 -0
- package/dist/AssignSystems/index.js.map +1 -0
- package/dist/CreatePolicy/index.d.ts +27 -0
- package/dist/CreatePolicy/index.js +53 -0
- package/dist/CreatePolicy/index.js.map +1 -0
- package/dist/DeletePolicy/index.d.ts +26 -0
- package/dist/DeletePolicy/index.js +52 -0
- package/dist/DeletePolicy/index.js.map +1 -0
- package/dist/Policies/index.d.ts +44 -0
- package/dist/Policies/index.js +63 -0
- package/dist/Policies/index.js.map +1 -0
- package/dist/Policy/index.d.ts +26 -0
- package/dist/Policy/index.js +52 -0
- package/dist/Policy/index.js.map +1 -0
- package/dist/PolicySystems/index.d.ts +50 -0
- package/dist/PolicySystems/index.js +64 -0
- package/dist/PolicySystems/index.js.map +1 -0
- package/dist/Profile/index.d.ts +32 -0
- package/dist/Profile/index.js +53 -0
- package/dist/Profile/index.js.map +1 -0
- package/dist/ProfileRule/index.d.ts +38 -0
- package/dist/ProfileRule/index.js +54 -0
- package/dist/ProfileRule/index.js.map +1 -0
- package/dist/ProfileRules/index.d.ts +56 -0
- package/dist/ProfileRules/index.js +65 -0
- package/dist/ProfileRules/index.js.map +1 -0
- package/dist/Profiles/index.d.ts +50 -0
- package/dist/Profiles/index.js +64 -0
- package/dist/Profiles/index.js.map +1 -0
- package/dist/Rule/index.d.ts +32 -0
- package/dist/Rule/index.js +53 -0
- package/dist/Rule/index.js.map +1 -0
- package/dist/RuleGroup/index.d.ts +32 -0
- package/dist/RuleGroup/index.js +53 -0
- package/dist/RuleGroup/index.js.map +1 -0
- package/dist/RuleGroups/index.d.ts +50 -0
- package/dist/RuleGroups/index.js +64 -0
- package/dist/RuleGroups/index.js.map +1 -0
- package/dist/Rules/index.d.ts +50 -0
- package/dist/Rules/index.js +64 -0
- package/dist/Rules/index.js.map +1 -0
- package/dist/SecurityGuide/index.d.ts +26 -0
- package/dist/SecurityGuide/index.js +52 -0
- package/dist/SecurityGuide/index.js.map +1 -0
- package/dist/SecurityGuideRuleTree/index.d.ts +26 -0
- package/dist/SecurityGuideRuleTree/index.js +52 -0
- package/dist/SecurityGuideRuleTree/index.js.map +1 -0
- package/dist/SecurityGuides/index.d.ts +44 -0
- package/dist/SecurityGuides/index.js +63 -0
- package/dist/SecurityGuides/index.js.map +1 -0
- package/dist/SupportedProfiles/index.d.ts +44 -0
- package/dist/SupportedProfiles/index.js +63 -0
- package/dist/SupportedProfiles/index.js.map +1 -0
- package/dist/System/index.d.ts +26 -0
- package/dist/System/index.js +52 -0
- package/dist/System/index.js.map +1 -0
- package/dist/Systems/index.d.ts +44 -0
- package/dist/Systems/index.js +63 -0
- package/dist/Systems/index.js.map +1 -0
- package/dist/SystemsPolicies/index.d.ts +50 -0
- package/dist/SystemsPolicies/index.js +64 -0
- package/dist/SystemsPolicies/index.js.map +1 -0
- package/dist/Tailoring/index.d.ts +32 -0
- package/dist/Tailoring/index.js +53 -0
- package/dist/Tailoring/index.js.map +1 -0
- package/dist/TailoringFile/index.d.ts +32 -0
- package/dist/TailoringFile/index.js +53 -0
- package/dist/TailoringFile/index.js.map +1 -0
- package/dist/TailoringRules/index.d.ts +56 -0
- package/dist/TailoringRules/index.js +65 -0
- package/dist/TailoringRules/index.js.map +1 -0
- package/dist/Tailorings/index.d.ts +50 -0
- package/dist/Tailorings/index.js +64 -0
- package/dist/Tailorings/index.js.map +1 -0
- package/dist/UnassignRule/index.d.ts +38 -0
- package/dist/UnassignRule/index.js +54 -0
- package/dist/UnassignRule/index.js.map +1 -0
- package/dist/UnassignSystem/index.d.ts +32 -0
- package/dist/UnassignSystem/index.js +53 -0
- package/dist/UnassignSystem/index.js.map +1 -0
- package/dist/UpdatePolicy/index.d.ts +33 -0
- package/dist/UpdatePolicy/index.js +54 -0
- package/dist/UpdatePolicy/index.js.map +1 -0
- package/dist/ValueDefinition/index.d.ts +32 -0
- package/dist/ValueDefinition/index.js +53 -0
- package/dist/ValueDefinition/index.js.map +1 -0
- package/dist/ValueDefinitions/index.d.ts +50 -0
- package/dist/ValueDefinitions/index.js +64 -0
- package/dist/ValueDefinitions/index.js.map +1 -0
- package/dist/api.d.ts +4310 -0
- package/dist/api.js +4565 -0
- package/dist/api.js.map +1 -0
- package/dist/base.d.ts +54 -0
- package/dist/base.js +67 -0
- package/dist/base.js.map +1 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +207 -0
- package/dist/common.js.map +1 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +45 -0
- package/dist/configuration.js.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/types/index.d.ts +1103 -0
- package/dist/types/index.js +31 -0
- package/dist/types/index.js.map +1 -0
- package/doc/.nojekyll +1 -0
- package/doc/README.md +69 -0
- package/doc/interfaces/AssignRulesRequest.md +27 -0
- package/doc/interfaces/CreatePolicy201Response.md +27 -0
- package/doc/interfaces/CreatePolicy201ResponseData.md +27 -0
- package/doc/interfaces/Errors.md +27 -0
- package/doc/interfaces/Links.md +80 -0
- package/doc/interfaces/Metadata.md +97 -0
- package/doc/interfaces/Policies200Response.md +57 -0
- package/doc/interfaces/Policy.md +195 -0
- package/doc/interfaces/PolicyUpdate.md +63 -0
- package/doc/interfaces/Profile.md +110 -0
- package/doc/interfaces/Profile200Response.md +27 -0
- package/doc/interfaces/Profile200ResponseData.md +27 -0
- package/doc/interfaces/Profiles200Response.md +57 -0
- package/doc/interfaces/Rule.md +161 -0
- package/doc/interfaces/Rule200Response.md +27 -0
- package/doc/interfaces/Rule200ResponseData.md +27 -0
- package/doc/interfaces/RuleGroup.md +127 -0
- package/doc/interfaces/RuleGroup200Response.md +27 -0
- package/doc/interfaces/RuleGroup200ResponseData.md +27 -0
- package/doc/interfaces/RuleGroups200Response.md +57 -0
- package/doc/interfaces/Rules200Response.md +57 -0
- package/doc/interfaces/SecurityGuide.md +127 -0
- package/doc/interfaces/SecurityGuide200Response.md +27 -0
- package/doc/interfaces/SecurityGuide200ResponseData.md +27 -0
- package/doc/interfaces/SecurityGuides200Response.md +57 -0
- package/doc/interfaces/SupportedProfile.md +127 -0
- package/doc/interfaces/SupportedProfiles200Response.md +57 -0
- package/doc/interfaces/System.md +215 -0
- package/doc/interfaces/System200Response.md +27 -0
- package/doc/interfaces/System200ResponseData.md +27 -0
- package/doc/interfaces/Systems200Response.md +57 -0
- package/doc/interfaces/Tailoring.md +110 -0
- package/doc/interfaces/Tailoring200Response.md +27 -0
- package/doc/interfaces/Tailoring200ResponseData.md +27 -0
- package/doc/interfaces/TailoringFile.md +33 -0
- package/doc/interfaces/Tailorings200Response.md +57 -0
- package/doc/interfaces/ValueDefinition.md +127 -0
- package/doc/interfaces/ValueDefinition200Response.md +27 -0
- package/doc/interfaces/ValueDefinition200ResponseData.md +27 -0
- package/doc/interfaces/ValueDefinitions200Response.md +57 -0
- package/doc/modules.md +1306 -0
- package/package.json +30 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
|
|
3
|
+
export type SystemsParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { any }
|
|
7
|
+
* @memberof SystemsApi
|
|
8
|
+
*/
|
|
9
|
+
xRHIDENTITY?: any;
|
|
10
|
+
/**
|
|
11
|
+
* Number of items to return per page
|
|
12
|
+
* @type { any }
|
|
13
|
+
* @memberof SystemsApi
|
|
14
|
+
*/
|
|
15
|
+
limit?: any;
|
|
16
|
+
/**
|
|
17
|
+
* Offset of first item of paginated response
|
|
18
|
+
* @type { any }
|
|
19
|
+
* @memberof SystemsApi
|
|
20
|
+
*/
|
|
21
|
+
offset?: any;
|
|
22
|
+
/**
|
|
23
|
+
* 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
|
+
* @type { any }
|
|
25
|
+
* @memberof SystemsApi
|
|
26
|
+
*/
|
|
27
|
+
sortBy?: any;
|
|
28
|
+
/**
|
|
29
|
+
* 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_major_version`, and `os_minor_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
|
|
30
|
+
* @type { any }
|
|
31
|
+
* @memberof SystemsApi
|
|
32
|
+
*/
|
|
33
|
+
filter?: any;
|
|
34
|
+
options?: AxiosRequestConfig;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Lists Systems
|
|
38
|
+
* @summary Request Systems
|
|
39
|
+
* @param {SystemsParams} config with all available params.
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
export declare const systemsParamCreator: (...config: ([SystemsParams] | [any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
44
|
+
export default systemsParamCreator;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.systemsParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/common");
|
|
7
|
+
var isSystemsObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && true && true && true && true && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Lists Systems
|
|
12
|
+
* @summary Request Systems
|
|
13
|
+
* @param {SystemsParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var systemsParamCreator = 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, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isSystemsObjectParams(config) ? config[0] : ['xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', '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
|
+
xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/systems";
|
|
31
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
32
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
33
|
+
localVarHeaderParameter = {};
|
|
34
|
+
localVarQueryParameter = {};
|
|
35
|
+
if (limit !== undefined) {
|
|
36
|
+
localVarQueryParameter['limit'] = limit;
|
|
37
|
+
}
|
|
38
|
+
if (offset !== undefined) {
|
|
39
|
+
localVarQueryParameter['offset'] = offset;
|
|
40
|
+
}
|
|
41
|
+
if (sortBy !== undefined) {
|
|
42
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
43
|
+
}
|
|
44
|
+
if (filter !== undefined) {
|
|
45
|
+
localVarQueryParameter['filter'] = filter;
|
|
46
|
+
}
|
|
47
|
+
if (xRHIDENTITY != null) {
|
|
48
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
49
|
+
? xRHIDENTITY
|
|
50
|
+
: JSON.stringify(xRHIDENTITY);
|
|
51
|
+
}
|
|
52
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
53
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
54
|
+
return [2 /*return*/, {
|
|
55
|
+
urlObj: localVarUrlObj,
|
|
56
|
+
options: localVarRequestOptions,
|
|
57
|
+
}];
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
exports.systemsParamCreator = systemsParamCreator;
|
|
62
|
+
exports.default = exports.systemsParamCreator;
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Systems/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,kFAA4T;AA4C5T,IAAM,qBAAqB,GAAG,UAAC,MAAmC;IAChE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAA;AACpE,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,mBAAmB,GAAG;IAAO,gBAA4E;SAA5E,UAA4E,EAA5E,qBAA4E,EAA5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I,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;AAzCY,QAAA,mBAAmB,uBAyC/B;AAED,kBAAe,2BAAmB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
|
|
3
|
+
export type SystemsPoliciesParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { any }
|
|
7
|
+
* @memberof SystemsPoliciesApi
|
|
8
|
+
*/
|
|
9
|
+
systemId: any;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { any }
|
|
13
|
+
* @memberof SystemsPoliciesApi
|
|
14
|
+
*/
|
|
15
|
+
xRHIDENTITY?: any;
|
|
16
|
+
/**
|
|
17
|
+
* Number of items to return per page
|
|
18
|
+
* @type { any }
|
|
19
|
+
* @memberof SystemsPoliciesApi
|
|
20
|
+
*/
|
|
21
|
+
limit?: any;
|
|
22
|
+
/**
|
|
23
|
+
* Offset of first item of paginated response
|
|
24
|
+
* @type { any }
|
|
25
|
+
* @memberof SystemsPoliciesApi
|
|
26
|
+
*/
|
|
27
|
+
offset?: any;
|
|
28
|
+
/**
|
|
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.
|
|
30
|
+
* @type { any }
|
|
31
|
+
* @memberof SystemsPoliciesApi
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: any;
|
|
34
|
+
/**
|
|
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>Policies are searchable using attributes `title` and `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
|
|
36
|
+
* @type { any }
|
|
37
|
+
* @memberof SystemsPoliciesApi
|
|
38
|
+
*/
|
|
39
|
+
filter?: any;
|
|
40
|
+
options?: AxiosRequestConfig;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Lists Policies under a System
|
|
44
|
+
* @summary Request Policies assigned to a System
|
|
45
|
+
* @param {SystemsPoliciesParams} config with all available params.
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
export declare const systemsPoliciesParamCreator: (...config: ([SystemsPoliciesParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
50
|
+
export default systemsPoliciesParamCreator;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.systemsPoliciesParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/common");
|
|
7
|
+
var isSystemsPoliciesObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'systemId') && true && true && true && true && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Lists Policies under a System
|
|
12
|
+
* @summary Request Policies assigned to a System
|
|
13
|
+
* @param {SystemsPoliciesParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var systemsPoliciesParamCreator = 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, systemId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isSystemsPoliciesObjectParams(config) ? config[0] : ['systemId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', '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
|
+
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;
|
|
30
|
+
localVarPath = "/systems/{system_id}/policies"
|
|
31
|
+
.replace("{".concat("system_id", "}"), encodeURIComponent(String(systemId)));
|
|
32
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
34
|
+
localVarHeaderParameter = {};
|
|
35
|
+
localVarQueryParameter = {};
|
|
36
|
+
if (limit !== undefined) {
|
|
37
|
+
localVarQueryParameter['limit'] = limit;
|
|
38
|
+
}
|
|
39
|
+
if (offset !== undefined) {
|
|
40
|
+
localVarQueryParameter['offset'] = offset;
|
|
41
|
+
}
|
|
42
|
+
if (sortBy !== undefined) {
|
|
43
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
44
|
+
}
|
|
45
|
+
if (filter !== undefined) {
|
|
46
|
+
localVarQueryParameter['filter'] = filter;
|
|
47
|
+
}
|
|
48
|
+
if (xRHIDENTITY != null) {
|
|
49
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
50
|
+
? xRHIDENTITY
|
|
51
|
+
: JSON.stringify(xRHIDENTITY);
|
|
52
|
+
}
|
|
53
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
54
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
55
|
+
return [2 /*return*/, {
|
|
56
|
+
urlObj: localVarUrlObj,
|
|
57
|
+
options: localVarRequestOptions,
|
|
58
|
+
}];
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
exports.systemsPoliciesParamCreator = systemsPoliciesParamCreator;
|
|
63
|
+
exports.default = exports.systemsPoliciesParamCreator;
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../SystemsPolicies/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,kFAA4T;AAkD5T,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,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAA;AAChI,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,2BAA2B,GAAG;IAAO,gBAAyF;SAAzF,UAAyF,EAAzF,qBAAyF,EAAzF,IAAyF;QAAzF,2BAAyF;;;;;YACjI,MAAM,GAAG,6BAA6B,CAAC,MAAM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AAE;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;AA1CY,QAAA,2BAA2B,+BA0CvC;AAED,kBAAe,mCAA2B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
|
|
3
|
+
export type TailoringParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { any }
|
|
7
|
+
* @memberof TailoringApi
|
|
8
|
+
*/
|
|
9
|
+
policyId: any;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { any }
|
|
13
|
+
* @memberof TailoringApi
|
|
14
|
+
*/
|
|
15
|
+
id: any;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @type { any }
|
|
19
|
+
* @memberof TailoringApi
|
|
20
|
+
*/
|
|
21
|
+
xRHIDENTITY?: any;
|
|
22
|
+
options?: AxiosRequestConfig;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Returns a Tailoring
|
|
26
|
+
* @summary Request a Tailoring
|
|
27
|
+
* @param {TailoringParams} config with all available params.
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
export declare const tailoringParamCreator: (...config: ([TailoringParams] | [any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
32
|
+
export default tailoringParamCreator;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tailoringParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/common");
|
|
7
|
+
var isTailoringObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && Object.prototype.hasOwnProperty.call(params, 'id') && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Returns a Tailoring
|
|
12
|
+
* @summary Request a Tailoring
|
|
13
|
+
* @param {TailoringParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var tailoringParamCreator = 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, id, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isTailoringObjectParams(config) ? config[0] : ['policyId', 'id', '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
|
+
policyId = params.policyId, id = params.id, xRHIDENTITY = params.xRHIDENTITY, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/policies/{policy_id}/tailorings/{id}"
|
|
31
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
|
|
32
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
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.tailoringParamCreator = tailoringParamCreator;
|
|
52
|
+
exports.default = exports.tailoringParamCreator;
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Tailoring/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,kFAA4T;AAgC5T,IAAM,uBAAuB,GAAG,UAAC,MAAqC;IACpE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAA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BACb,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;AA3BY,QAAA,qBAAqB,yBA2BjC;AAED,kBAAe,6BAAqB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
|
|
3
|
+
export type TailoringFileParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { any }
|
|
7
|
+
* @memberof TailoringFileApi
|
|
8
|
+
*/
|
|
9
|
+
policyId: any;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { any }
|
|
13
|
+
* @memberof TailoringFileApi
|
|
14
|
+
*/
|
|
15
|
+
id: any;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @type { any }
|
|
19
|
+
* @memberof TailoringFileApi
|
|
20
|
+
*/
|
|
21
|
+
xRHIDENTITY?: any;
|
|
22
|
+
options?: AxiosRequestConfig;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Returns a Tailoring File
|
|
26
|
+
* @summary Request a Tailoring file
|
|
27
|
+
* @param {TailoringFileParams} config with all available params.
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
export declare const tailoringFileParamCreator: (...config: ([TailoringFileParams] | [any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
32
|
+
export default tailoringFileParamCreator;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tailoringFileParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/common");
|
|
7
|
+
var isTailoringFileObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && Object.prototype.hasOwnProperty.call(params, 'id') && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Returns a Tailoring File
|
|
12
|
+
* @summary Request a Tailoring file
|
|
13
|
+
* @param {TailoringFileParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var tailoringFileParamCreator = 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, id, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isTailoringFileObjectParams(config) ? config[0] : ['policyId', 'id', '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
|
+
policyId = params.policyId, id = params.id, xRHIDENTITY = params.xRHIDENTITY, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/policies/{policy_id}/tailorings/{id}/tailoring_file.json"
|
|
31
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
|
|
32
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
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.tailoringFileParamCreator = tailoringFileParamCreator;
|
|
52
|
+
exports.default = exports.tailoringFileParamCreator;
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../TailoringFile/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,kFAA4T;AAgC5T,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,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,IAAI,CAAA;AACtJ,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,yBAAyB,GAAG;IAAO,gBAAwE;SAA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BAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AA3BY,QAAA,yBAAyB,6BA2BrC;AAED,kBAAe,iCAAyB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
|
|
3
|
+
export type TailoringRulesParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { any }
|
|
7
|
+
* @memberof TailoringRulesApi
|
|
8
|
+
*/
|
|
9
|
+
policyId: any;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { any }
|
|
13
|
+
* @memberof TailoringRulesApi
|
|
14
|
+
*/
|
|
15
|
+
tailoringId: any;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @type { any }
|
|
19
|
+
* @memberof TailoringRulesApi
|
|
20
|
+
*/
|
|
21
|
+
xRHIDENTITY?: any;
|
|
22
|
+
/**
|
|
23
|
+
* Number of items to return per page
|
|
24
|
+
* @type { any }
|
|
25
|
+
* @memberof TailoringRulesApi
|
|
26
|
+
*/
|
|
27
|
+
limit?: any;
|
|
28
|
+
/**
|
|
29
|
+
* Offset of first item of paginated response
|
|
30
|
+
* @type { any }
|
|
31
|
+
* @memberof TailoringRulesApi
|
|
32
|
+
*/
|
|
33
|
+
offset?: any;
|
|
34
|
+
/**
|
|
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.
|
|
36
|
+
* @type { any }
|
|
37
|
+
* @memberof TailoringRulesApi
|
|
38
|
+
*/
|
|
39
|
+
sortBy?: any;
|
|
40
|
+
/**
|
|
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` and `severity`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
|
|
42
|
+
* @type { any }
|
|
43
|
+
* @memberof TailoringRulesApi
|
|
44
|
+
*/
|
|
45
|
+
filter?: any;
|
|
46
|
+
options?: AxiosRequestConfig;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Lists Rules assigned to a Tailoring
|
|
50
|
+
* @summary Request Rules assigned to a Tailoring
|
|
51
|
+
* @param {TailoringRulesParams} config with all available params.
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
export declare const tailoringRulesParamCreator: (...config: ([TailoringRulesParams] | [any, any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
56
|
+
export default tailoringRulesParamCreator;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tailoringRulesParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/common");
|
|
7
|
+
var isTailoringRulesObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && Object.prototype.hasOwnProperty.call(params, 'tailoringId') && true && true && true && true && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Lists Rules assigned to a Tailoring
|
|
12
|
+
* @summary Request Rules assigned to a Tailoring
|
|
13
|
+
* @param {TailoringRulesParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var tailoringRulesParamCreator = 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, tailoringId, xRHIDENTITY, limit, offset, sortBy, filter, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isTailoringRulesObjectParams(config) ? config[0] : ['policyId', 'tailoringId', 'xRHIDENTITY', 'limit', 'offset', 'sortBy', 'filter', '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, tailoringId = params.tailoringId, xRHIDENTITY = params.xRHIDENTITY, limit = params.limit, offset = params.offset, sortBy = params.sortBy, filter = params.filter, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules"
|
|
31
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
|
|
32
|
+
.replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)));
|
|
33
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
34
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
35
|
+
localVarHeaderParameter = {};
|
|
36
|
+
localVarQueryParameter = {};
|
|
37
|
+
if (limit !== undefined) {
|
|
38
|
+
localVarQueryParameter['limit'] = limit;
|
|
39
|
+
}
|
|
40
|
+
if (offset !== undefined) {
|
|
41
|
+
localVarQueryParameter['offset'] = offset;
|
|
42
|
+
}
|
|
43
|
+
if (sortBy !== undefined) {
|
|
44
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
45
|
+
}
|
|
46
|
+
if (filter !== undefined) {
|
|
47
|
+
localVarQueryParameter['filter'] = filter;
|
|
48
|
+
}
|
|
49
|
+
if (xRHIDENTITY != null) {
|
|
50
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
51
|
+
? xRHIDENTITY
|
|
52
|
+
: JSON.stringify(xRHIDENTITY);
|
|
53
|
+
}
|
|
54
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
55
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
56
|
+
return [2 /*return*/, {
|
|
57
|
+
urlObj: localVarUrlObj,
|
|
58
|
+
options: localVarRequestOptions,
|
|
59
|
+
}];
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
exports.tailoringRulesParamCreator = tailoringRulesParamCreator;
|
|
64
|
+
exports.default = exports.tailoringRulesParamCreator;
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../TailoringRules/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,kFAA4T;AAwD5T,IAAM,4BAA4B,GAAG,UAAC,MAA0C;IAC9E,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAA;AAC/L,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,0BAA0B,GAAG;IAAO,gBAA6F;SAA7F,UAA6F,EA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C3C;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACtB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;aAC7C;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;AA3CY,QAAA,0BAA0B,8BA2CtC;AAED,kBAAe,kCAA0B,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/common';
|
|
3
|
+
export type TailoringsParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { any }
|
|
7
|
+
* @memberof TailoringsApi
|
|
8
|
+
*/
|
|
9
|
+
policyId: any;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { any }
|
|
13
|
+
* @memberof TailoringsApi
|
|
14
|
+
*/
|
|
15
|
+
xRHIDENTITY?: any;
|
|
16
|
+
/**
|
|
17
|
+
* Number of items to return per page
|
|
18
|
+
* @type { any }
|
|
19
|
+
* @memberof TailoringsApi
|
|
20
|
+
*/
|
|
21
|
+
limit?: any;
|
|
22
|
+
/**
|
|
23
|
+
* Offset of first item of paginated response
|
|
24
|
+
* @type { any }
|
|
25
|
+
* @memberof TailoringsApi
|
|
26
|
+
*/
|
|
27
|
+
offset?: any;
|
|
28
|
+
/**
|
|
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.
|
|
30
|
+
* @type { any }
|
|
31
|
+
* @memberof TailoringsApi
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: any;
|
|
34
|
+
/**
|
|
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>Tailorings are searchable using attributes `os_minor_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
|
|
36
|
+
* @type { any }
|
|
37
|
+
* @memberof TailoringsApi
|
|
38
|
+
*/
|
|
39
|
+
filter?: any;
|
|
40
|
+
options?: AxiosRequestConfig;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Lists Tailorings
|
|
44
|
+
* @summary Request Tailorings
|
|
45
|
+
* @param {TailoringsParams} config with all available params.
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
export declare const tailoringsParamCreator: (...config: ([TailoringsParams] | [any, any, any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
50
|
+
export default tailoringsParamCreator;
|