@redhat-cloud-services/compliance-client 0.1.5 → 0.1.7
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 +10 -0
- package/dist/AssignRule/index.d.ts +2 -2
- package/dist/AssignRule/index.js +6 -6
- package/dist/AssignRule/index.js.map +1 -1
- package/dist/AssignSystem/index.d.ts +1 -1
- package/dist/AssignSystem/index.js +6 -6
- package/dist/AssignSystem/index.js.map +1 -1
- package/dist/DeletePolicy/index.d.ts +1 -1
- package/dist/DeletePolicy/index.js +6 -6
- package/dist/DeletePolicy/index.js.map +1 -1
- package/dist/DeleteReport/index.d.ts +26 -0
- package/dist/DeleteReport/index.js +52 -0
- package/dist/DeleteReport/index.js.map +1 -0
- package/dist/Policy/index.d.ts +1 -1
- package/dist/Policy/index.js +6 -6
- package/dist/Policy/index.js.map +1 -1
- package/dist/PolicySystems/index.d.ts +1 -1
- package/dist/Profile/index.d.ts +2 -2
- package/dist/Profile/index.js +6 -6
- package/dist/Profile/index.js.map +1 -1
- package/dist/ProfileRule/index.d.ts +2 -2
- package/dist/ProfileRule/index.js +6 -6
- package/dist/ProfileRule/index.js.map +1 -1
- package/dist/Report/index.d.ts +1 -1
- package/dist/Report/index.js +6 -6
- package/dist/Report/index.js.map +1 -1
- package/dist/ReportSystem/index.d.ts +32 -0
- package/dist/ReportSystem/index.js +53 -0
- package/dist/ReportSystem/index.js.map +1 -0
- package/dist/ReportSystems/index.d.ts +50 -0
- package/dist/ReportSystems/index.js +64 -0
- package/dist/ReportSystems/index.js.map +1 -0
- package/dist/ReportTestResult/index.d.ts +32 -0
- package/dist/ReportTestResult/index.js +53 -0
- package/dist/ReportTestResult/index.js.map +1 -0
- package/dist/ReportTestResults/index.d.ts +50 -0
- package/dist/ReportTestResults/index.js +64 -0
- package/dist/ReportTestResults/index.js.map +1 -0
- package/dist/Reports/index.d.ts +1 -1
- package/dist/Rule/index.d.ts +2 -2
- package/dist/Rule/index.js +6 -6
- package/dist/Rule/index.js.map +1 -1
- package/dist/RuleGroup/index.d.ts +1 -1
- package/dist/RuleGroup/index.js +6 -6
- package/dist/RuleGroup/index.js.map +1 -1
- package/dist/SecurityGuide/index.d.ts +1 -1
- package/dist/SecurityGuide/index.js +6 -6
- package/dist/SecurityGuide/index.js.map +1 -1
- package/dist/SecurityGuideRuleTree/index.d.ts +1 -1
- package/dist/SecurityGuideRuleTree/index.js +6 -6
- package/dist/SecurityGuideRuleTree/index.js.map +1 -1
- package/dist/System/index.d.ts +1 -1
- package/dist/System/index.js +6 -6
- package/dist/System/index.js.map +1 -1
- package/dist/Systems/index.d.ts +1 -1
- package/dist/Tailoring/index.d.ts +2 -2
- package/dist/Tailoring/index.js +6 -6
- package/dist/Tailoring/index.js.map +1 -1
- package/dist/TailoringFile/index.d.ts +2 -2
- package/dist/TailoringFile/index.js +6 -6
- package/dist/TailoringFile/index.js.map +1 -1
- package/dist/UnassignRule/index.d.ts +2 -2
- package/dist/UnassignRule/index.js +6 -6
- package/dist/UnassignRule/index.js.map +1 -1
- package/dist/UnassignSystem/index.d.ts +1 -1
- package/dist/UnassignSystem/index.js +6 -6
- package/dist/UnassignSystem/index.js.map +1 -1
- package/dist/UpdatePolicy/index.d.ts +1 -1
- package/dist/UpdatePolicy/index.js +6 -6
- package/dist/UpdatePolicy/index.js.map +1 -1
- package/dist/UpdateTailoring/index.d.ts +2 -2
- package/dist/UpdateTailoring/index.js +6 -6
- package/dist/UpdateTailoring/index.js.map +1 -1
- package/dist/ValueDefinition/index.d.ts +1 -1
- package/dist/ValueDefinition/index.js +6 -6
- package/dist/ValueDefinition/index.js.map +1 -1
- package/dist/api.d.ts +716 -116
- package/dist/api.js +902 -219
- package/dist/api.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +124 -4
- package/dist/types/index.js +4 -1
- package/dist/types/index.js.map +1 -1
- package/doc/interfaces/AssignRulesRequest.md +1 -1
- package/doc/interfaces/CreatePolicy201Response.md +1 -1
- package/doc/interfaces/CreatePolicy201ResponseData.md +1 -1
- package/doc/interfaces/Errors.md +1 -1
- package/doc/interfaces/Links.md +4 -4
- package/doc/interfaces/Metadata.md +5 -5
- package/doc/interfaces/Policies200Response.md +3 -3
- package/doc/interfaces/Policy.md +11 -11
- package/doc/interfaces/PolicyUpdate.md +3 -3
- package/doc/interfaces/Profile.md +6 -6
- package/doc/interfaces/Profile200Response.md +1 -1
- package/doc/interfaces/Profile200ResponseData.md +1 -1
- package/doc/interfaces/Profiles200Response.md +3 -3
- package/doc/interfaces/Report.md +229 -0
- package/doc/interfaces/Report200Response.md +27 -0
- package/doc/interfaces/Report200ResponseData.md +27 -0
- package/doc/interfaces/ReportTestResults200Response.md +57 -0
- package/doc/interfaces/Reports200Response.md +57 -0
- package/doc/interfaces/Rule.md +9 -9
- package/doc/interfaces/Rule200Response.md +1 -1
- package/doc/interfaces/Rule200ResponseData.md +1 -1
- package/doc/interfaces/RuleGroup.md +7 -7
- package/doc/interfaces/RuleGroup200Response.md +1 -1
- package/doc/interfaces/RuleGroup200ResponseData.md +1 -1
- package/doc/interfaces/RuleGroups200Response.md +3 -3
- package/doc/interfaces/Rules200Response.md +3 -3
- package/doc/interfaces/SecurityGuide.md +7 -7
- package/doc/interfaces/SecurityGuide200Response.md +1 -1
- package/doc/interfaces/SecurityGuide200ResponseData.md +1 -1
- package/doc/interfaces/SecurityGuides200Response.md +3 -3
- package/doc/interfaces/SupportedProfile.md +25 -8
- package/doc/interfaces/SupportedProfiles200Response.md +3 -3
- package/doc/interfaces/System.md +13 -13
- package/doc/interfaces/System200Response.md +1 -1
- package/doc/interfaces/System200ResponseData.md +1 -1
- package/doc/interfaces/Systems200Response.md +3 -3
- package/doc/interfaces/Tailoring.md +23 -6
- package/doc/interfaces/Tailoring200Response.md +1 -1
- package/doc/interfaces/Tailoring200ResponseData.md +1 -1
- package/doc/interfaces/TailoringFile.md +1 -1
- package/doc/interfaces/Tailorings200Response.md +3 -3
- package/doc/interfaces/TestResult.md +208 -0
- package/doc/interfaces/ValueDefinition.md +7 -7
- package/doc/interfaces/ValueDefinition200Response.md +1 -1
- package/doc/interfaces/ValueDefinition200ResponseData.md +1 -1
- package/doc/interfaces/ValueDefinitions200Response.md +3 -3
- package/doc/modules.md +371 -69
- package/package.json +2 -2
package/dist/api.js
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.ValueDefinitionsApi = exports.ValueDefinitionsApiFactory = exports.ValueDefinitionsApiFp = exports.ValueDefinitionsApiAxiosParamCreator = void 0;
|
|
16
|
+
exports.PolicySystemsApiFactory = exports.PolicySystemsApiFp = exports.PolicySystemsApiAxiosParamCreator = exports.PolicyApi = exports.PolicyApiFactory = exports.PolicyApiFp = exports.PolicyApiAxiosParamCreator = exports.PoliciesApi = exports.PoliciesApiFactory = exports.PoliciesApiFp = exports.PoliciesApiAxiosParamCreator = exports.DeleteReportApi = exports.DeleteReportApiFactory = exports.DeleteReportApiFp = exports.DeleteReportApiAxiosParamCreator = exports.DeletePolicyApi = exports.DeletePolicyApiFactory = exports.DeletePolicyApiFp = exports.DeletePolicyApiAxiosParamCreator = exports.CreatePolicyApi = exports.CreatePolicyApiFactory = exports.CreatePolicyApiFp = exports.CreatePolicyApiAxiosParamCreator = exports.AssignSystemsApi = exports.AssignSystemsApiFactory = exports.AssignSystemsApiFp = exports.AssignSystemsApiAxiosParamCreator = exports.AssignSystemApi = exports.AssignSystemApiFactory = exports.AssignSystemApiFp = exports.AssignSystemApiAxiosParamCreator = exports.AssignRulesApi = exports.AssignRulesApiFactory = exports.AssignRulesApiFp = exports.AssignRulesApiAxiosParamCreator = exports.AssignRuleApi = exports.AssignRuleApiFactory = exports.AssignRuleApiFp = exports.AssignRuleApiAxiosParamCreator = exports.ValueDefinitionTypeEnum = exports.TestResultTypeEnum = exports.TailoringTypeEnum = exports.SystemTypeEnum = exports.SupportedProfileTypeEnum = exports.SecurityGuideTypeEnum = exports.RuleGroupTypeEnum = exports.RuleTypeEnum = exports.ReportTypeEnum = exports.ProfileTypeEnum = exports.PolicyTypeEnum = void 0;
|
|
17
|
+
exports.RuleGroupsApiAxiosParamCreator = exports.RuleGroupApi = exports.RuleGroupApiFactory = exports.RuleGroupApiFp = exports.RuleGroupApiAxiosParamCreator = exports.RuleApi = exports.RuleApiFactory = exports.RuleApiFp = exports.RuleApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.ReportTestResultsApi = exports.ReportTestResultsApiFactory = exports.ReportTestResultsApiFp = exports.ReportTestResultsApiAxiosParamCreator = exports.ReportTestResultApi = exports.ReportTestResultApiFactory = exports.ReportTestResultApiFp = exports.ReportTestResultApiAxiosParamCreator = exports.ReportSystemsApi = exports.ReportSystemsApiFactory = exports.ReportSystemsApiFp = exports.ReportSystemsApiAxiosParamCreator = exports.ReportSystemApi = exports.ReportSystemApiFactory = exports.ReportSystemApiFp = exports.ReportSystemApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.ProfileRulesApi = exports.ProfileRulesApiFactory = exports.ProfileRulesApiFp = exports.ProfileRulesApiAxiosParamCreator = exports.ProfileRuleApi = exports.ProfileRuleApiFactory = exports.ProfileRuleApiFp = exports.ProfileRuleApiAxiosParamCreator = exports.ProfileApi = exports.ProfileApiFactory = exports.ProfileApiFp = exports.ProfileApiAxiosParamCreator = exports.PolicySystemsApi = void 0;
|
|
18
|
+
exports.TailoringsApiFactory = exports.TailoringsApiFp = exports.TailoringsApiAxiosParamCreator = exports.TailoringRulesApi = exports.TailoringRulesApiFactory = exports.TailoringRulesApiFp = exports.TailoringRulesApiAxiosParamCreator = exports.TailoringFileApi = exports.TailoringFileApiFactory = exports.TailoringFileApiFp = exports.TailoringFileApiAxiosParamCreator = exports.TailoringApi = exports.TailoringApiFactory = exports.TailoringApiFp = exports.TailoringApiAxiosParamCreator = exports.SystemsPoliciesApi = exports.SystemsPoliciesApiFactory = exports.SystemsPoliciesApiFp = exports.SystemsPoliciesApiAxiosParamCreator = exports.SystemsApi = exports.SystemsApiFactory = exports.SystemsApiFp = exports.SystemsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SupportedProfilesApi = exports.SupportedProfilesApiFactory = exports.SupportedProfilesApiFp = exports.SupportedProfilesApiAxiosParamCreator = exports.SecurityGuidesApi = exports.SecurityGuidesApiFactory = exports.SecurityGuidesApiFp = exports.SecurityGuidesApiAxiosParamCreator = exports.SecurityGuideRuleTreeApi = exports.SecurityGuideRuleTreeApiFactory = exports.SecurityGuideRuleTreeApiFp = exports.SecurityGuideRuleTreeApiAxiosParamCreator = exports.SecurityGuideApi = exports.SecurityGuideApiFactory = exports.SecurityGuideApiFp = exports.SecurityGuideApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.RuleGroupsApi = exports.RuleGroupsApiFactory = exports.RuleGroupsApiFp = void 0;
|
|
19
|
+
exports.ValueDefinitionsApi = exports.ValueDefinitionsApiFactory = exports.ValueDefinitionsApiFp = exports.ValueDefinitionsApiAxiosParamCreator = exports.ValueDefinitionApi = exports.ValueDefinitionApiFactory = exports.ValueDefinitionApiFp = exports.ValueDefinitionApiAxiosParamCreator = exports.UpdateTailoringApi = exports.UpdateTailoringApiFactory = exports.UpdateTailoringApiFp = exports.UpdateTailoringApiAxiosParamCreator = exports.UpdatePolicyApi = exports.UpdatePolicyApiFactory = exports.UpdatePolicyApiFp = exports.UpdatePolicyApiAxiosParamCreator = exports.UnassignSystemApi = exports.UnassignSystemApiFactory = exports.UnassignSystemApiFp = exports.UnassignSystemApiAxiosParamCreator = exports.UnassignRuleApi = exports.UnassignRuleApiFactory = exports.UnassignRuleApiFp = exports.UnassignRuleApiAxiosParamCreator = exports.TailoringsApi = void 0;
|
|
20
20
|
var tslib_1 = require("tslib");
|
|
21
21
|
var axios_1 = require("axios");
|
|
22
22
|
// Some imports not used depending on template conditions
|
|
@@ -51,6 +51,9 @@ exports.SystemTypeEnum = {
|
|
|
51
51
|
exports.TailoringTypeEnum = {
|
|
52
52
|
Tailoring: 'tailoring'
|
|
53
53
|
};
|
|
54
|
+
exports.TestResultTypeEnum = {
|
|
55
|
+
TestResult: 'test_result'
|
|
56
|
+
};
|
|
54
57
|
exports.ValueDefinitionTypeEnum = {
|
|
55
58
|
ValueDefinition: 'value_definition'
|
|
56
59
|
};
|
|
@@ -66,12 +69,12 @@ var AssignRuleApiAxiosParamCreator = function (configuration) {
|
|
|
66
69
|
* @summary Assign a Rule to a Tailoring
|
|
67
70
|
* @param {any} policyId
|
|
68
71
|
* @param {any} tailoringId
|
|
69
|
-
* @param {any}
|
|
72
|
+
* @param {any} ruleId UUID or ref_id
|
|
70
73
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
71
74
|
* @param {*} [options] Override http request option.
|
|
72
75
|
* @throws {RequiredError}
|
|
73
76
|
*/
|
|
74
|
-
assignRule: function (policyId, tailoringId,
|
|
77
|
+
assignRule: function (policyId, tailoringId, ruleId, xRHIDENTITY, options) {
|
|
75
78
|
if (options === void 0) { options = {}; }
|
|
76
79
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
77
80
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -80,12 +83,12 @@ var AssignRuleApiAxiosParamCreator = function (configuration) {
|
|
|
80
83
|
(0, common_1.assertParamExists)('assignRule', 'policyId', policyId);
|
|
81
84
|
// verify required parameter 'tailoringId' is not null or undefined
|
|
82
85
|
(0, common_1.assertParamExists)('assignRule', 'tailoringId', tailoringId);
|
|
83
|
-
// verify required parameter '
|
|
84
|
-
(0, common_1.assertParamExists)('assignRule', '
|
|
85
|
-
localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules/{
|
|
86
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
87
|
+
(0, common_1.assertParamExists)('assignRule', 'ruleId', ruleId);
|
|
88
|
+
localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules/{rule_id}"
|
|
86
89
|
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
|
|
87
90
|
.replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)))
|
|
88
|
-
.replace("{".concat("
|
|
91
|
+
.replace("{".concat("rule_id", "}"), encodeURIComponent(String(ruleId)));
|
|
89
92
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
90
93
|
if (configuration) {
|
|
91
94
|
baseOptions = configuration.baseOptions;
|
|
@@ -123,17 +126,17 @@ var AssignRuleApiFp = function (configuration) {
|
|
|
123
126
|
* @summary Assign a Rule to a Tailoring
|
|
124
127
|
* @param {any} policyId
|
|
125
128
|
* @param {any} tailoringId
|
|
126
|
-
* @param {any}
|
|
129
|
+
* @param {any} ruleId UUID or ref_id
|
|
127
130
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
128
131
|
* @param {*} [options] Override http request option.
|
|
129
132
|
* @throws {RequiredError}
|
|
130
133
|
*/
|
|
131
|
-
assignRule: function (policyId, tailoringId,
|
|
134
|
+
assignRule: function (policyId, tailoringId, ruleId, xRHIDENTITY, options) {
|
|
132
135
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
133
136
|
var localVarAxiosArgs;
|
|
134
137
|
return tslib_1.__generator(this, function (_a) {
|
|
135
138
|
switch (_a.label) {
|
|
136
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignRule(policyId, tailoringId,
|
|
139
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignRule(policyId, tailoringId, ruleId, xRHIDENTITY, options)];
|
|
137
140
|
case 1:
|
|
138
141
|
localVarAxiosArgs = _a.sent();
|
|
139
142
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -159,7 +162,7 @@ var AssignRuleApiFactory = function (configuration, basePath, axios) {
|
|
|
159
162
|
* @throws {RequiredError}
|
|
160
163
|
*/
|
|
161
164
|
assignRule: function (requestParameters, options) {
|
|
162
|
-
return localVarFp.assignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.
|
|
165
|
+
return localVarFp.assignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.ruleId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
163
166
|
},
|
|
164
167
|
};
|
|
165
168
|
};
|
|
@@ -185,7 +188,7 @@ var AssignRuleApi = /** @class */ (function (_super) {
|
|
|
185
188
|
*/
|
|
186
189
|
AssignRuleApi.prototype.assignRule = function (requestParameters, options) {
|
|
187
190
|
var _this = this;
|
|
188
|
-
return (0, exports.AssignRuleApiFp)(this.configuration).assignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.
|
|
191
|
+
return (0, exports.AssignRuleApiFp)(this.configuration).assignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.ruleId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
189
192
|
};
|
|
190
193
|
return AssignRuleApi;
|
|
191
194
|
}(base_1.BaseAPI));
|
|
@@ -339,23 +342,23 @@ var AssignSystemApiAxiosParamCreator = function (configuration) {
|
|
|
339
342
|
/**
|
|
340
343
|
* Assigns a System to a Policy
|
|
341
344
|
* @summary Assign a System to a Policy
|
|
342
|
-
* @param {any}
|
|
345
|
+
* @param {any} systemId
|
|
343
346
|
* @param {any} policyId
|
|
344
347
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
345
348
|
* @param {*} [options] Override http request option.
|
|
346
349
|
* @throws {RequiredError}
|
|
347
350
|
*/
|
|
348
|
-
assignSystem: function (
|
|
351
|
+
assignSystem: function (systemId, policyId, xRHIDENTITY, options) {
|
|
349
352
|
if (options === void 0) { options = {}; }
|
|
350
353
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
351
354
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
352
355
|
return tslib_1.__generator(this, function (_a) {
|
|
353
|
-
// verify required parameter '
|
|
354
|
-
(0, common_1.assertParamExists)('assignSystem', '
|
|
356
|
+
// verify required parameter 'systemId' is not null or undefined
|
|
357
|
+
(0, common_1.assertParamExists)('assignSystem', 'systemId', systemId);
|
|
355
358
|
// verify required parameter 'policyId' is not null or undefined
|
|
356
359
|
(0, common_1.assertParamExists)('assignSystem', 'policyId', policyId);
|
|
357
|
-
localVarPath = "/policies/{policy_id}/systems/{
|
|
358
|
-
.replace("{".concat("
|
|
360
|
+
localVarPath = "/policies/{policy_id}/systems/{system_id}"
|
|
361
|
+
.replace("{".concat("system_id", "}"), encodeURIComponent(String(systemId)))
|
|
359
362
|
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
360
363
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
361
364
|
if (configuration) {
|
|
@@ -392,18 +395,18 @@ var AssignSystemApiFp = function (configuration) {
|
|
|
392
395
|
/**
|
|
393
396
|
* Assigns a System to a Policy
|
|
394
397
|
* @summary Assign a System to a Policy
|
|
395
|
-
* @param {any}
|
|
398
|
+
* @param {any} systemId
|
|
396
399
|
* @param {any} policyId
|
|
397
400
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
398
401
|
* @param {*} [options] Override http request option.
|
|
399
402
|
* @throws {RequiredError}
|
|
400
403
|
*/
|
|
401
|
-
assignSystem: function (
|
|
404
|
+
assignSystem: function (systemId, policyId, xRHIDENTITY, options) {
|
|
402
405
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
403
406
|
var localVarAxiosArgs;
|
|
404
407
|
return tslib_1.__generator(this, function (_a) {
|
|
405
408
|
switch (_a.label) {
|
|
406
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignSystem(
|
|
409
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignSystem(systemId, policyId, xRHIDENTITY, options)];
|
|
407
410
|
case 1:
|
|
408
411
|
localVarAxiosArgs = _a.sent();
|
|
409
412
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -429,7 +432,7 @@ var AssignSystemApiFactory = function (configuration, basePath, axios) {
|
|
|
429
432
|
* @throws {RequiredError}
|
|
430
433
|
*/
|
|
431
434
|
assignSystem: function (requestParameters, options) {
|
|
432
|
-
return localVarFp.assignSystem(requestParameters.
|
|
435
|
+
return localVarFp.assignSystem(requestParameters.systemId, requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
433
436
|
},
|
|
434
437
|
};
|
|
435
438
|
};
|
|
@@ -455,7 +458,7 @@ var AssignSystemApi = /** @class */ (function (_super) {
|
|
|
455
458
|
*/
|
|
456
459
|
AssignSystemApi.prototype.assignSystem = function (requestParameters, options) {
|
|
457
460
|
var _this = this;
|
|
458
|
-
return (0, exports.AssignSystemApiFp)(this.configuration).assignSystem(requestParameters.
|
|
461
|
+
return (0, exports.AssignSystemApiFp)(this.configuration).assignSystem(requestParameters.systemId, requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
459
462
|
};
|
|
460
463
|
return AssignSystemApi;
|
|
461
464
|
}(base_1.BaseAPI));
|
|
@@ -731,20 +734,20 @@ var DeletePolicyApiAxiosParamCreator = function (configuration) {
|
|
|
731
734
|
/**
|
|
732
735
|
* Deletes a Policy
|
|
733
736
|
* @summary Delete a Policy
|
|
734
|
-
* @param {any}
|
|
737
|
+
* @param {any} policyId
|
|
735
738
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
736
739
|
* @param {*} [options] Override http request option.
|
|
737
740
|
* @throws {RequiredError}
|
|
738
741
|
*/
|
|
739
|
-
deletePolicy: function (
|
|
742
|
+
deletePolicy: function (policyId, xRHIDENTITY, options) {
|
|
740
743
|
if (options === void 0) { options = {}; }
|
|
741
744
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
742
745
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
743
746
|
return tslib_1.__generator(this, function (_a) {
|
|
744
|
-
// verify required parameter '
|
|
745
|
-
(0, common_1.assertParamExists)('deletePolicy', '
|
|
746
|
-
localVarPath = "/policies/{
|
|
747
|
-
.replace("{".concat("
|
|
747
|
+
// verify required parameter 'policyId' is not null or undefined
|
|
748
|
+
(0, common_1.assertParamExists)('deletePolicy', 'policyId', policyId);
|
|
749
|
+
localVarPath = "/policies/{policy_id}"
|
|
750
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
748
751
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
749
752
|
if (configuration) {
|
|
750
753
|
baseOptions = configuration.baseOptions;
|
|
@@ -780,17 +783,17 @@ var DeletePolicyApiFp = function (configuration) {
|
|
|
780
783
|
/**
|
|
781
784
|
* Deletes a Policy
|
|
782
785
|
* @summary Delete a Policy
|
|
783
|
-
* @param {any}
|
|
786
|
+
* @param {any} policyId
|
|
784
787
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
785
788
|
* @param {*} [options] Override http request option.
|
|
786
789
|
* @throws {RequiredError}
|
|
787
790
|
*/
|
|
788
|
-
deletePolicy: function (
|
|
791
|
+
deletePolicy: function (policyId, xRHIDENTITY, options) {
|
|
789
792
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
790
793
|
var localVarAxiosArgs;
|
|
791
794
|
return tslib_1.__generator(this, function (_a) {
|
|
792
795
|
switch (_a.label) {
|
|
793
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePolicy(
|
|
796
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePolicy(policyId, xRHIDENTITY, options)];
|
|
794
797
|
case 1:
|
|
795
798
|
localVarAxiosArgs = _a.sent();
|
|
796
799
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -816,7 +819,7 @@ var DeletePolicyApiFactory = function (configuration, basePath, axios) {
|
|
|
816
819
|
* @throws {RequiredError}
|
|
817
820
|
*/
|
|
818
821
|
deletePolicy: function (requestParameters, options) {
|
|
819
|
-
return localVarFp.deletePolicy(requestParameters.
|
|
822
|
+
return localVarFp.deletePolicy(requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
820
823
|
},
|
|
821
824
|
};
|
|
822
825
|
};
|
|
@@ -842,11 +845,137 @@ var DeletePolicyApi = /** @class */ (function (_super) {
|
|
|
842
845
|
*/
|
|
843
846
|
DeletePolicyApi.prototype.deletePolicy = function (requestParameters, options) {
|
|
844
847
|
var _this = this;
|
|
845
|
-
return (0, exports.DeletePolicyApiFp)(this.configuration).deletePolicy(requestParameters.
|
|
848
|
+
return (0, exports.DeletePolicyApiFp)(this.configuration).deletePolicy(requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
846
849
|
};
|
|
847
850
|
return DeletePolicyApi;
|
|
848
851
|
}(base_1.BaseAPI));
|
|
849
852
|
exports.DeletePolicyApi = DeletePolicyApi;
|
|
853
|
+
/**
|
|
854
|
+
* DeleteReportApi - axios parameter creator
|
|
855
|
+
* @export
|
|
856
|
+
*/
|
|
857
|
+
var DeleteReportApiAxiosParamCreator = function (configuration) {
|
|
858
|
+
var _this = this;
|
|
859
|
+
return {
|
|
860
|
+
/**
|
|
861
|
+
* Deletes a Report results
|
|
862
|
+
* @summary Delete a Report results
|
|
863
|
+
* @param {any} reportId
|
|
864
|
+
* @param {any} [xRHIDENTITY] For internal use only
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
*/
|
|
868
|
+
deleteReport: function (reportId, xRHIDENTITY, options) {
|
|
869
|
+
if (options === void 0) { options = {}; }
|
|
870
|
+
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
871
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
872
|
+
return tslib_1.__generator(this, function (_a) {
|
|
873
|
+
// verify required parameter 'reportId' is not null or undefined
|
|
874
|
+
(0, common_1.assertParamExists)('deleteReport', 'reportId', reportId);
|
|
875
|
+
localVarPath = "/reports/{report_id}"
|
|
876
|
+
.replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
|
|
877
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
878
|
+
if (configuration) {
|
|
879
|
+
baseOptions = configuration.baseOptions;
|
|
880
|
+
}
|
|
881
|
+
localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'DELETE' }, baseOptions), options);
|
|
882
|
+
localVarHeaderParameter = {};
|
|
883
|
+
localVarQueryParameter = {};
|
|
884
|
+
if (xRHIDENTITY != null) {
|
|
885
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
886
|
+
? xRHIDENTITY
|
|
887
|
+
: JSON.stringify(xRHIDENTITY);
|
|
888
|
+
}
|
|
889
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
890
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
891
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
892
|
+
return [2 /*return*/, {
|
|
893
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
894
|
+
options: localVarRequestOptions,
|
|
895
|
+
}];
|
|
896
|
+
});
|
|
897
|
+
});
|
|
898
|
+
},
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
exports.DeleteReportApiAxiosParamCreator = DeleteReportApiAxiosParamCreator;
|
|
902
|
+
/**
|
|
903
|
+
* DeleteReportApi - functional programming interface
|
|
904
|
+
* @export
|
|
905
|
+
*/
|
|
906
|
+
var DeleteReportApiFp = function (configuration) {
|
|
907
|
+
var localVarAxiosParamCreator = (0, exports.DeleteReportApiAxiosParamCreator)(configuration);
|
|
908
|
+
return {
|
|
909
|
+
/**
|
|
910
|
+
* Deletes a Report results
|
|
911
|
+
* @summary Delete a Report results
|
|
912
|
+
* @param {any} reportId
|
|
913
|
+
* @param {any} [xRHIDENTITY] For internal use only
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
deleteReport: function (reportId, xRHIDENTITY, options) {
|
|
918
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
919
|
+
var localVarAxiosArgs;
|
|
920
|
+
return tslib_1.__generator(this, function (_a) {
|
|
921
|
+
switch (_a.label) {
|
|
922
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteReport(reportId, xRHIDENTITY, options)];
|
|
923
|
+
case 1:
|
|
924
|
+
localVarAxiosArgs = _a.sent();
|
|
925
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
926
|
+
}
|
|
927
|
+
});
|
|
928
|
+
});
|
|
929
|
+
},
|
|
930
|
+
};
|
|
931
|
+
};
|
|
932
|
+
exports.DeleteReportApiFp = DeleteReportApiFp;
|
|
933
|
+
/**
|
|
934
|
+
* DeleteReportApi - factory interface
|
|
935
|
+
* @export
|
|
936
|
+
*/
|
|
937
|
+
var DeleteReportApiFactory = function (configuration, basePath, axios) {
|
|
938
|
+
var localVarFp = (0, exports.DeleteReportApiFp)(configuration);
|
|
939
|
+
return {
|
|
940
|
+
/**
|
|
941
|
+
* Deletes a Report results
|
|
942
|
+
* @summary Delete a Report results
|
|
943
|
+
* @param {DeleteReportApiDeleteReportRequest} requestParameters Request parameters.
|
|
944
|
+
* @param {*} [options] Override http request option.
|
|
945
|
+
* @throws {RequiredError}
|
|
946
|
+
*/
|
|
947
|
+
deleteReport: function (requestParameters, options) {
|
|
948
|
+
return localVarFp.deleteReport(requestParameters.reportId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
949
|
+
},
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
exports.DeleteReportApiFactory = DeleteReportApiFactory;
|
|
953
|
+
/**
|
|
954
|
+
* DeleteReportApi - object-oriented interface
|
|
955
|
+
* @export
|
|
956
|
+
* @class DeleteReportApi
|
|
957
|
+
* @extends {BaseAPI}
|
|
958
|
+
*/
|
|
959
|
+
var DeleteReportApi = /** @class */ (function (_super) {
|
|
960
|
+
tslib_1.__extends(DeleteReportApi, _super);
|
|
961
|
+
function DeleteReportApi() {
|
|
962
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Deletes a Report results
|
|
966
|
+
* @summary Delete a Report results
|
|
967
|
+
* @param {DeleteReportApiDeleteReportRequest} requestParameters Request parameters.
|
|
968
|
+
* @param {*} [options] Override http request option.
|
|
969
|
+
* @throws {RequiredError}
|
|
970
|
+
* @memberof DeleteReportApi
|
|
971
|
+
*/
|
|
972
|
+
DeleteReportApi.prototype.deleteReport = function (requestParameters, options) {
|
|
973
|
+
var _this = this;
|
|
974
|
+
return (0, exports.DeleteReportApiFp)(this.configuration).deleteReport(requestParameters.reportId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
975
|
+
};
|
|
976
|
+
return DeleteReportApi;
|
|
977
|
+
}(base_1.BaseAPI));
|
|
978
|
+
exports.DeleteReportApi = DeleteReportApi;
|
|
850
979
|
/**
|
|
851
980
|
* PoliciesApi - axios parameter creator
|
|
852
981
|
* @export
|
|
@@ -1000,20 +1129,20 @@ var PolicyApiAxiosParamCreator = function (configuration) {
|
|
|
1000
1129
|
/**
|
|
1001
1130
|
* Returns a Policy
|
|
1002
1131
|
* @summary Request a Policy
|
|
1003
|
-
* @param {any}
|
|
1132
|
+
* @param {any} policyId
|
|
1004
1133
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
1005
1134
|
* @param {*} [options] Override http request option.
|
|
1006
1135
|
* @throws {RequiredError}
|
|
1007
1136
|
*/
|
|
1008
|
-
policy: function (
|
|
1137
|
+
policy: function (policyId, xRHIDENTITY, options) {
|
|
1009
1138
|
if (options === void 0) { options = {}; }
|
|
1010
1139
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
1011
1140
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1012
1141
|
return tslib_1.__generator(this, function (_a) {
|
|
1013
|
-
// verify required parameter '
|
|
1014
|
-
(0, common_1.assertParamExists)('policy', '
|
|
1015
|
-
localVarPath = "/policies/{
|
|
1016
|
-
.replace("{".concat("
|
|
1142
|
+
// verify required parameter 'policyId' is not null or undefined
|
|
1143
|
+
(0, common_1.assertParamExists)('policy', 'policyId', policyId);
|
|
1144
|
+
localVarPath = "/policies/{policy_id}"
|
|
1145
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
1017
1146
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1018
1147
|
if (configuration) {
|
|
1019
1148
|
baseOptions = configuration.baseOptions;
|
|
@@ -1049,17 +1178,17 @@ var PolicyApiFp = function (configuration) {
|
|
|
1049
1178
|
/**
|
|
1050
1179
|
* Returns a Policy
|
|
1051
1180
|
* @summary Request a Policy
|
|
1052
|
-
* @param {any}
|
|
1181
|
+
* @param {any} policyId
|
|
1053
1182
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
1054
1183
|
* @param {*} [options] Override http request option.
|
|
1055
1184
|
* @throws {RequiredError}
|
|
1056
1185
|
*/
|
|
1057
|
-
policy: function (
|
|
1186
|
+
policy: function (policyId, xRHIDENTITY, options) {
|
|
1058
1187
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
1059
1188
|
var localVarAxiosArgs;
|
|
1060
1189
|
return tslib_1.__generator(this, function (_a) {
|
|
1061
1190
|
switch (_a.label) {
|
|
1062
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policy(
|
|
1191
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.policy(policyId, xRHIDENTITY, options)];
|
|
1063
1192
|
case 1:
|
|
1064
1193
|
localVarAxiosArgs = _a.sent();
|
|
1065
1194
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1085,7 +1214,7 @@ var PolicyApiFactory = function (configuration, basePath, axios) {
|
|
|
1085
1214
|
* @throws {RequiredError}
|
|
1086
1215
|
*/
|
|
1087
1216
|
policy: function (requestParameters, options) {
|
|
1088
|
-
return localVarFp.policy(requestParameters.
|
|
1217
|
+
return localVarFp.policy(requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
1089
1218
|
},
|
|
1090
1219
|
};
|
|
1091
1220
|
};
|
|
@@ -1111,7 +1240,7 @@ var PolicyApi = /** @class */ (function (_super) {
|
|
|
1111
1240
|
*/
|
|
1112
1241
|
PolicyApi.prototype.policy = function (requestParameters, options) {
|
|
1113
1242
|
var _this = this;
|
|
1114
|
-
return (0, exports.PolicyApiFp)(this.configuration).policy(requestParameters.
|
|
1243
|
+
return (0, exports.PolicyApiFp)(this.configuration).policy(requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1115
1244
|
};
|
|
1116
1245
|
return PolicyApi;
|
|
1117
1246
|
}(base_1.BaseAPI));
|
|
@@ -1131,7 +1260,7 @@ var PolicySystemsApiAxiosParamCreator = function (configuration) {
|
|
|
1131
1260
|
* @param {any} [limit] Number of items to return per page
|
|
1132
1261
|
* @param {any} [offset] Offset of first item of paginated response
|
|
1133
1262
|
* @param {any} [sortBy] 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.
|
|
1134
|
-
* @param {any} [filter] 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`, `os_minor_version`, and `
|
|
1263
|
+
* @param {any} [filter] 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`, `os_minor_version`, `assigned_or_scanned`, and `never_reported`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
1135
1264
|
* @param {*} [options] Override http request option.
|
|
1136
1265
|
* @throws {RequiredError}
|
|
1137
1266
|
*/
|
|
@@ -1196,7 +1325,7 @@ var PolicySystemsApiFp = function (configuration) {
|
|
|
1196
1325
|
* @param {any} [limit] Number of items to return per page
|
|
1197
1326
|
* @param {any} [offset] Offset of first item of paginated response
|
|
1198
1327
|
* @param {any} [sortBy] 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.
|
|
1199
|
-
* @param {any} [filter] 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`, `os_minor_version`, and `
|
|
1328
|
+
* @param {any} [filter] 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`, `os_minor_version`, `assigned_or_scanned`, and `never_reported`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
1200
1329
|
* @param {*} [options] Override http request option.
|
|
1201
1330
|
* @throws {RequiredError}
|
|
1202
1331
|
*/
|
|
@@ -1273,23 +1402,23 @@ var ProfileApiAxiosParamCreator = function (configuration) {
|
|
|
1273
1402
|
* Returns a Profile
|
|
1274
1403
|
* @summary Request a Profile
|
|
1275
1404
|
* @param {any} securityGuideId
|
|
1276
|
-
* @param {any}
|
|
1405
|
+
* @param {any} profileId UUID or ref_id
|
|
1277
1406
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
1278
1407
|
* @param {*} [options] Override http request option.
|
|
1279
1408
|
* @throws {RequiredError}
|
|
1280
1409
|
*/
|
|
1281
|
-
profile: function (securityGuideId,
|
|
1410
|
+
profile: function (securityGuideId, profileId, xRHIDENTITY, options) {
|
|
1282
1411
|
if (options === void 0) { options = {}; }
|
|
1283
1412
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
1284
1413
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1285
1414
|
return tslib_1.__generator(this, function (_a) {
|
|
1286
1415
|
// verify required parameter 'securityGuideId' is not null or undefined
|
|
1287
1416
|
(0, common_1.assertParamExists)('profile', 'securityGuideId', securityGuideId);
|
|
1288
|
-
// verify required parameter '
|
|
1289
|
-
(0, common_1.assertParamExists)('profile', '
|
|
1290
|
-
localVarPath = "/security_guides/{security_guide_id}/profiles/{
|
|
1417
|
+
// verify required parameter 'profileId' is not null or undefined
|
|
1418
|
+
(0, common_1.assertParamExists)('profile', 'profileId', profileId);
|
|
1419
|
+
localVarPath = "/security_guides/{security_guide_id}/profiles/{profile_id}"
|
|
1291
1420
|
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
|
|
1292
|
-
.replace("{".concat("
|
|
1421
|
+
.replace("{".concat("profile_id", "}"), encodeURIComponent(String(profileId)));
|
|
1293
1422
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1294
1423
|
if (configuration) {
|
|
1295
1424
|
baseOptions = configuration.baseOptions;
|
|
@@ -1326,17 +1455,17 @@ var ProfileApiFp = function (configuration) {
|
|
|
1326
1455
|
* Returns a Profile
|
|
1327
1456
|
* @summary Request a Profile
|
|
1328
1457
|
* @param {any} securityGuideId
|
|
1329
|
-
* @param {any}
|
|
1458
|
+
* @param {any} profileId UUID or ref_id
|
|
1330
1459
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
1331
1460
|
* @param {*} [options] Override http request option.
|
|
1332
1461
|
* @throws {RequiredError}
|
|
1333
1462
|
*/
|
|
1334
|
-
profile: function (securityGuideId,
|
|
1463
|
+
profile: function (securityGuideId, profileId, xRHIDENTITY, options) {
|
|
1335
1464
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
1336
1465
|
var localVarAxiosArgs;
|
|
1337
1466
|
return tslib_1.__generator(this, function (_a) {
|
|
1338
1467
|
switch (_a.label) {
|
|
1339
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.profile(securityGuideId,
|
|
1468
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.profile(securityGuideId, profileId, xRHIDENTITY, options)];
|
|
1340
1469
|
case 1:
|
|
1341
1470
|
localVarAxiosArgs = _a.sent();
|
|
1342
1471
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1362,7 +1491,7 @@ var ProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
1362
1491
|
* @throws {RequiredError}
|
|
1363
1492
|
*/
|
|
1364
1493
|
profile: function (requestParameters, options) {
|
|
1365
|
-
return localVarFp.profile(requestParameters.securityGuideId, requestParameters.
|
|
1494
|
+
return localVarFp.profile(requestParameters.securityGuideId, requestParameters.profileId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
1366
1495
|
},
|
|
1367
1496
|
};
|
|
1368
1497
|
};
|
|
@@ -1388,7 +1517,7 @@ var ProfileApi = /** @class */ (function (_super) {
|
|
|
1388
1517
|
*/
|
|
1389
1518
|
ProfileApi.prototype.profile = function (requestParameters, options) {
|
|
1390
1519
|
var _this = this;
|
|
1391
|
-
return (0, exports.ProfileApiFp)(this.configuration).profile(requestParameters.securityGuideId, requestParameters.
|
|
1520
|
+
return (0, exports.ProfileApiFp)(this.configuration).profile(requestParameters.securityGuideId, requestParameters.profileId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1392
1521
|
};
|
|
1393
1522
|
return ProfileApi;
|
|
1394
1523
|
}(base_1.BaseAPI));
|
|
@@ -1405,12 +1534,12 @@ var ProfileRuleApiAxiosParamCreator = function (configuration) {
|
|
|
1405
1534
|
* @summary Request a Rule assigned to a Profile
|
|
1406
1535
|
* @param {any} securityGuideId
|
|
1407
1536
|
* @param {any} profileId
|
|
1408
|
-
* @param {any}
|
|
1537
|
+
* @param {any} ruleId UUID or ref_id
|
|
1409
1538
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
1410
1539
|
* @param {*} [options] Override http request option.
|
|
1411
1540
|
* @throws {RequiredError}
|
|
1412
1541
|
*/
|
|
1413
|
-
profileRule: function (securityGuideId, profileId,
|
|
1542
|
+
profileRule: function (securityGuideId, profileId, ruleId, xRHIDENTITY, options) {
|
|
1414
1543
|
if (options === void 0) { options = {}; }
|
|
1415
1544
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
1416
1545
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -1419,12 +1548,12 @@ var ProfileRuleApiAxiosParamCreator = function (configuration) {
|
|
|
1419
1548
|
(0, common_1.assertParamExists)('profileRule', 'securityGuideId', securityGuideId);
|
|
1420
1549
|
// verify required parameter 'profileId' is not null or undefined
|
|
1421
1550
|
(0, common_1.assertParamExists)('profileRule', 'profileId', profileId);
|
|
1422
|
-
// verify required parameter '
|
|
1423
|
-
(0, common_1.assertParamExists)('profileRule', '
|
|
1424
|
-
localVarPath = "/security_guides/{security_guide_id}/profiles/{profile_id}/rules/{
|
|
1551
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
1552
|
+
(0, common_1.assertParamExists)('profileRule', 'ruleId', ruleId);
|
|
1553
|
+
localVarPath = "/security_guides/{security_guide_id}/profiles/{profile_id}/rules/{rule_id}"
|
|
1425
1554
|
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
|
|
1426
1555
|
.replace("{".concat("profile_id", "}"), encodeURIComponent(String(profileId)))
|
|
1427
|
-
.replace("{".concat("
|
|
1556
|
+
.replace("{".concat("rule_id", "}"), encodeURIComponent(String(ruleId)));
|
|
1428
1557
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1429
1558
|
if (configuration) {
|
|
1430
1559
|
baseOptions = configuration.baseOptions;
|
|
@@ -1462,17 +1591,17 @@ var ProfileRuleApiFp = function (configuration) {
|
|
|
1462
1591
|
* @summary Request a Rule assigned to a Profile
|
|
1463
1592
|
* @param {any} securityGuideId
|
|
1464
1593
|
* @param {any} profileId
|
|
1465
|
-
* @param {any}
|
|
1594
|
+
* @param {any} ruleId UUID or ref_id
|
|
1466
1595
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
1467
1596
|
* @param {*} [options] Override http request option.
|
|
1468
1597
|
* @throws {RequiredError}
|
|
1469
1598
|
*/
|
|
1470
|
-
profileRule: function (securityGuideId, profileId,
|
|
1599
|
+
profileRule: function (securityGuideId, profileId, ruleId, xRHIDENTITY, options) {
|
|
1471
1600
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
1472
1601
|
var localVarAxiosArgs;
|
|
1473
1602
|
return tslib_1.__generator(this, function (_a) {
|
|
1474
1603
|
switch (_a.label) {
|
|
1475
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.profileRule(securityGuideId, profileId,
|
|
1604
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.profileRule(securityGuideId, profileId, ruleId, xRHIDENTITY, options)];
|
|
1476
1605
|
case 1:
|
|
1477
1606
|
localVarAxiosArgs = _a.sent();
|
|
1478
1607
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1498,7 +1627,7 @@ var ProfileRuleApiFactory = function (configuration, basePath, axios) {
|
|
|
1498
1627
|
* @throws {RequiredError}
|
|
1499
1628
|
*/
|
|
1500
1629
|
profileRule: function (requestParameters, options) {
|
|
1501
|
-
return localVarFp.profileRule(requestParameters.securityGuideId, requestParameters.profileId, requestParameters.
|
|
1630
|
+
return localVarFp.profileRule(requestParameters.securityGuideId, requestParameters.profileId, requestParameters.ruleId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
1502
1631
|
},
|
|
1503
1632
|
};
|
|
1504
1633
|
};
|
|
@@ -1524,7 +1653,7 @@ var ProfileRuleApi = /** @class */ (function (_super) {
|
|
|
1524
1653
|
*/
|
|
1525
1654
|
ProfileRuleApi.prototype.profileRule = function (requestParameters, options) {
|
|
1526
1655
|
var _this = this;
|
|
1527
|
-
return (0, exports.ProfileRuleApiFp)(this.configuration).profileRule(requestParameters.securityGuideId, requestParameters.profileId, requestParameters.
|
|
1656
|
+
return (0, exports.ProfileRuleApiFp)(this.configuration).profileRule(requestParameters.securityGuideId, requestParameters.profileId, requestParameters.ruleId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1528
1657
|
};
|
|
1529
1658
|
return ProfileRuleApi;
|
|
1530
1659
|
}(base_1.BaseAPI));
|
|
@@ -1836,20 +1965,20 @@ var ReportApiAxiosParamCreator = function (configuration) {
|
|
|
1836
1965
|
/**
|
|
1837
1966
|
* Returns a Report
|
|
1838
1967
|
* @summary Request a Report
|
|
1839
|
-
* @param {any}
|
|
1968
|
+
* @param {any} reportId
|
|
1840
1969
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
1841
1970
|
* @param {*} [options] Override http request option.
|
|
1842
1971
|
* @throws {RequiredError}
|
|
1843
1972
|
*/
|
|
1844
|
-
report: function (
|
|
1973
|
+
report: function (reportId, xRHIDENTITY, options) {
|
|
1845
1974
|
if (options === void 0) { options = {}; }
|
|
1846
1975
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
1847
1976
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1848
1977
|
return tslib_1.__generator(this, function (_a) {
|
|
1849
|
-
// verify required parameter '
|
|
1850
|
-
(0, common_1.assertParamExists)('report', '
|
|
1851
|
-
localVarPath = "/reports/{
|
|
1852
|
-
.replace("{".concat("
|
|
1978
|
+
// verify required parameter 'reportId' is not null or undefined
|
|
1979
|
+
(0, common_1.assertParamExists)('report', 'reportId', reportId);
|
|
1980
|
+
localVarPath = "/reports/{report_id}"
|
|
1981
|
+
.replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
|
|
1853
1982
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1854
1983
|
if (configuration) {
|
|
1855
1984
|
baseOptions = configuration.baseOptions;
|
|
@@ -1885,17 +2014,17 @@ var ReportApiFp = function (configuration) {
|
|
|
1885
2014
|
/**
|
|
1886
2015
|
* Returns a Report
|
|
1887
2016
|
* @summary Request a Report
|
|
1888
|
-
* @param {any}
|
|
2017
|
+
* @param {any} reportId
|
|
1889
2018
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
1890
2019
|
* @param {*} [options] Override http request option.
|
|
1891
2020
|
* @throws {RequiredError}
|
|
1892
2021
|
*/
|
|
1893
|
-
report: function (
|
|
2022
|
+
report: function (reportId, xRHIDENTITY, options) {
|
|
1894
2023
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
1895
2024
|
var localVarAxiosArgs;
|
|
1896
2025
|
return tslib_1.__generator(this, function (_a) {
|
|
1897
2026
|
switch (_a.label) {
|
|
1898
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.report(
|
|
2027
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.report(reportId, xRHIDENTITY, options)];
|
|
1899
2028
|
case 1:
|
|
1900
2029
|
localVarAxiosArgs = _a.sent();
|
|
1901
2030
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1921,7 +2050,7 @@ var ReportApiFactory = function (configuration, basePath, axios) {
|
|
|
1921
2050
|
* @throws {RequiredError}
|
|
1922
2051
|
*/
|
|
1923
2052
|
report: function (requestParameters, options) {
|
|
1924
|
-
return localVarFp.report(requestParameters.
|
|
2053
|
+
return localVarFp.report(requestParameters.reportId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
1925
2054
|
},
|
|
1926
2055
|
};
|
|
1927
2056
|
};
|
|
@@ -1947,11 +2076,565 @@ var ReportApi = /** @class */ (function (_super) {
|
|
|
1947
2076
|
*/
|
|
1948
2077
|
ReportApi.prototype.report = function (requestParameters, options) {
|
|
1949
2078
|
var _this = this;
|
|
1950
|
-
return (0, exports.ReportApiFp)(this.configuration).report(requestParameters.
|
|
2079
|
+
return (0, exports.ReportApiFp)(this.configuration).report(requestParameters.reportId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1951
2080
|
};
|
|
1952
2081
|
return ReportApi;
|
|
1953
2082
|
}(base_1.BaseAPI));
|
|
1954
2083
|
exports.ReportApi = ReportApi;
|
|
2084
|
+
/**
|
|
2085
|
+
* ReportSystemApi - axios parameter creator
|
|
2086
|
+
* @export
|
|
2087
|
+
*/
|
|
2088
|
+
var ReportSystemApiAxiosParamCreator = function (configuration) {
|
|
2089
|
+
var _this = this;
|
|
2090
|
+
return {
|
|
2091
|
+
/**
|
|
2092
|
+
* Returns a System under a Report
|
|
2093
|
+
* @summary Request a System
|
|
2094
|
+
* @param {any} systemId
|
|
2095
|
+
* @param {any} reportId
|
|
2096
|
+
* @param {any} [xRHIDENTITY] For internal use only
|
|
2097
|
+
* @param {*} [options] Override http request option.
|
|
2098
|
+
* @throws {RequiredError}
|
|
2099
|
+
*/
|
|
2100
|
+
reportSystem: function (systemId, reportId, xRHIDENTITY, options) {
|
|
2101
|
+
if (options === void 0) { options = {}; }
|
|
2102
|
+
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
2103
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2104
|
+
return tslib_1.__generator(this, function (_a) {
|
|
2105
|
+
// verify required parameter 'systemId' is not null or undefined
|
|
2106
|
+
(0, common_1.assertParamExists)('reportSystem', 'systemId', systemId);
|
|
2107
|
+
// verify required parameter 'reportId' is not null or undefined
|
|
2108
|
+
(0, common_1.assertParamExists)('reportSystem', 'reportId', reportId);
|
|
2109
|
+
localVarPath = "/reports/{report_id}/systems/{system_id}"
|
|
2110
|
+
.replace("{".concat("system_id", "}"), encodeURIComponent(String(systemId)))
|
|
2111
|
+
.replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
|
|
2112
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2113
|
+
if (configuration) {
|
|
2114
|
+
baseOptions = configuration.baseOptions;
|
|
2115
|
+
}
|
|
2116
|
+
localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
|
|
2117
|
+
localVarHeaderParameter = {};
|
|
2118
|
+
localVarQueryParameter = {};
|
|
2119
|
+
if (xRHIDENTITY != null) {
|
|
2120
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
2121
|
+
? xRHIDENTITY
|
|
2122
|
+
: JSON.stringify(xRHIDENTITY);
|
|
2123
|
+
}
|
|
2124
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2125
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2126
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2127
|
+
return [2 /*return*/, {
|
|
2128
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2129
|
+
options: localVarRequestOptions,
|
|
2130
|
+
}];
|
|
2131
|
+
});
|
|
2132
|
+
});
|
|
2133
|
+
},
|
|
2134
|
+
};
|
|
2135
|
+
};
|
|
2136
|
+
exports.ReportSystemApiAxiosParamCreator = ReportSystemApiAxiosParamCreator;
|
|
2137
|
+
/**
|
|
2138
|
+
* ReportSystemApi - functional programming interface
|
|
2139
|
+
* @export
|
|
2140
|
+
*/
|
|
2141
|
+
var ReportSystemApiFp = function (configuration) {
|
|
2142
|
+
var localVarAxiosParamCreator = (0, exports.ReportSystemApiAxiosParamCreator)(configuration);
|
|
2143
|
+
return {
|
|
2144
|
+
/**
|
|
2145
|
+
* Returns a System under a Report
|
|
2146
|
+
* @summary Request a System
|
|
2147
|
+
* @param {any} systemId
|
|
2148
|
+
* @param {any} reportId
|
|
2149
|
+
* @param {any} [xRHIDENTITY] For internal use only
|
|
2150
|
+
* @param {*} [options] Override http request option.
|
|
2151
|
+
* @throws {RequiredError}
|
|
2152
|
+
*/
|
|
2153
|
+
reportSystem: function (systemId, reportId, xRHIDENTITY, options) {
|
|
2154
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
2155
|
+
var localVarAxiosArgs;
|
|
2156
|
+
return tslib_1.__generator(this, function (_a) {
|
|
2157
|
+
switch (_a.label) {
|
|
2158
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportSystem(systemId, reportId, xRHIDENTITY, options)];
|
|
2159
|
+
case 1:
|
|
2160
|
+
localVarAxiosArgs = _a.sent();
|
|
2161
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2162
|
+
}
|
|
2163
|
+
});
|
|
2164
|
+
});
|
|
2165
|
+
},
|
|
2166
|
+
};
|
|
2167
|
+
};
|
|
2168
|
+
exports.ReportSystemApiFp = ReportSystemApiFp;
|
|
2169
|
+
/**
|
|
2170
|
+
* ReportSystemApi - factory interface
|
|
2171
|
+
* @export
|
|
2172
|
+
*/
|
|
2173
|
+
var ReportSystemApiFactory = function (configuration, basePath, axios) {
|
|
2174
|
+
var localVarFp = (0, exports.ReportSystemApiFp)(configuration);
|
|
2175
|
+
return {
|
|
2176
|
+
/**
|
|
2177
|
+
* Returns a System under a Report
|
|
2178
|
+
* @summary Request a System
|
|
2179
|
+
* @param {ReportSystemApiReportSystemRequest} requestParameters Request parameters.
|
|
2180
|
+
* @param {*} [options] Override http request option.
|
|
2181
|
+
* @throws {RequiredError}
|
|
2182
|
+
*/
|
|
2183
|
+
reportSystem: function (requestParameters, options) {
|
|
2184
|
+
return localVarFp.reportSystem(requestParameters.systemId, requestParameters.reportId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
2185
|
+
},
|
|
2186
|
+
};
|
|
2187
|
+
};
|
|
2188
|
+
exports.ReportSystemApiFactory = ReportSystemApiFactory;
|
|
2189
|
+
/**
|
|
2190
|
+
* ReportSystemApi - object-oriented interface
|
|
2191
|
+
* @export
|
|
2192
|
+
* @class ReportSystemApi
|
|
2193
|
+
* @extends {BaseAPI}
|
|
2194
|
+
*/
|
|
2195
|
+
var ReportSystemApi = /** @class */ (function (_super) {
|
|
2196
|
+
tslib_1.__extends(ReportSystemApi, _super);
|
|
2197
|
+
function ReportSystemApi() {
|
|
2198
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2199
|
+
}
|
|
2200
|
+
/**
|
|
2201
|
+
* Returns a System under a Report
|
|
2202
|
+
* @summary Request a System
|
|
2203
|
+
* @param {ReportSystemApiReportSystemRequest} requestParameters Request parameters.
|
|
2204
|
+
* @param {*} [options] Override http request option.
|
|
2205
|
+
* @throws {RequiredError}
|
|
2206
|
+
* @memberof ReportSystemApi
|
|
2207
|
+
*/
|
|
2208
|
+
ReportSystemApi.prototype.reportSystem = function (requestParameters, options) {
|
|
2209
|
+
var _this = this;
|
|
2210
|
+
return (0, exports.ReportSystemApiFp)(this.configuration).reportSystem(requestParameters.systemId, requestParameters.reportId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2211
|
+
};
|
|
2212
|
+
return ReportSystemApi;
|
|
2213
|
+
}(base_1.BaseAPI));
|
|
2214
|
+
exports.ReportSystemApi = ReportSystemApi;
|
|
2215
|
+
/**
|
|
2216
|
+
* ReportSystemsApi - axios parameter creator
|
|
2217
|
+
* @export
|
|
2218
|
+
*/
|
|
2219
|
+
var ReportSystemsApiAxiosParamCreator = function (configuration) {
|
|
2220
|
+
var _this = this;
|
|
2221
|
+
return {
|
|
2222
|
+
/**
|
|
2223
|
+
* Lists Systems assigned to a Report
|
|
2224
|
+
* @summary Request Systems assigned to a Report
|
|
2225
|
+
* @param {any} reportId
|
|
2226
|
+
* @param {any} [xRHIDENTITY] For internal use only
|
|
2227
|
+
* @param {any} [limit] Number of items to return per page
|
|
2228
|
+
* @param {any} [offset] Offset of first item of paginated response
|
|
2229
|
+
* @param {any} [sortBy] 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.
|
|
2230
|
+
* @param {any} [filter] 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`, `os_minor_version`, `assigned_or_scanned`, and `never_reported`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
2231
|
+
* @param {*} [options] Override http request option.
|
|
2232
|
+
* @throws {RequiredError}
|
|
2233
|
+
*/
|
|
2234
|
+
reportSystems: function (reportId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
|
|
2235
|
+
if (options === void 0) { options = {}; }
|
|
2236
|
+
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
2237
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2238
|
+
return tslib_1.__generator(this, function (_a) {
|
|
2239
|
+
// verify required parameter 'reportId' is not null or undefined
|
|
2240
|
+
(0, common_1.assertParamExists)('reportSystems', 'reportId', reportId);
|
|
2241
|
+
localVarPath = "/reports/{report_id}/systems"
|
|
2242
|
+
.replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
|
|
2243
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2244
|
+
if (configuration) {
|
|
2245
|
+
baseOptions = configuration.baseOptions;
|
|
2246
|
+
}
|
|
2247
|
+
localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
|
|
2248
|
+
localVarHeaderParameter = {};
|
|
2249
|
+
localVarQueryParameter = {};
|
|
2250
|
+
if (limit !== undefined) {
|
|
2251
|
+
localVarQueryParameter['limit'] = limit;
|
|
2252
|
+
}
|
|
2253
|
+
if (offset !== undefined) {
|
|
2254
|
+
localVarQueryParameter['offset'] = offset;
|
|
2255
|
+
}
|
|
2256
|
+
if (sortBy !== undefined) {
|
|
2257
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
2258
|
+
}
|
|
2259
|
+
if (filter !== undefined) {
|
|
2260
|
+
localVarQueryParameter['filter'] = filter;
|
|
2261
|
+
}
|
|
2262
|
+
if (xRHIDENTITY != null) {
|
|
2263
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
2264
|
+
? xRHIDENTITY
|
|
2265
|
+
: JSON.stringify(xRHIDENTITY);
|
|
2266
|
+
}
|
|
2267
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2268
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2269
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2270
|
+
return [2 /*return*/, {
|
|
2271
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2272
|
+
options: localVarRequestOptions,
|
|
2273
|
+
}];
|
|
2274
|
+
});
|
|
2275
|
+
});
|
|
2276
|
+
},
|
|
2277
|
+
};
|
|
2278
|
+
};
|
|
2279
|
+
exports.ReportSystemsApiAxiosParamCreator = ReportSystemsApiAxiosParamCreator;
|
|
2280
|
+
/**
|
|
2281
|
+
* ReportSystemsApi - functional programming interface
|
|
2282
|
+
* @export
|
|
2283
|
+
*/
|
|
2284
|
+
var ReportSystemsApiFp = function (configuration) {
|
|
2285
|
+
var localVarAxiosParamCreator = (0, exports.ReportSystemsApiAxiosParamCreator)(configuration);
|
|
2286
|
+
return {
|
|
2287
|
+
/**
|
|
2288
|
+
* Lists Systems assigned to a Report
|
|
2289
|
+
* @summary Request Systems assigned to a Report
|
|
2290
|
+
* @param {any} reportId
|
|
2291
|
+
* @param {any} [xRHIDENTITY] For internal use only
|
|
2292
|
+
* @param {any} [limit] Number of items to return per page
|
|
2293
|
+
* @param {any} [offset] Offset of first item of paginated response
|
|
2294
|
+
* @param {any} [sortBy] 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.
|
|
2295
|
+
* @param {any} [filter] 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`, `os_minor_version`, `assigned_or_scanned`, and `never_reported`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
2296
|
+
* @param {*} [options] Override http request option.
|
|
2297
|
+
* @throws {RequiredError}
|
|
2298
|
+
*/
|
|
2299
|
+
reportSystems: function (reportId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
|
|
2300
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
2301
|
+
var localVarAxiosArgs;
|
|
2302
|
+
return tslib_1.__generator(this, function (_a) {
|
|
2303
|
+
switch (_a.label) {
|
|
2304
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportSystems(reportId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
|
|
2305
|
+
case 1:
|
|
2306
|
+
localVarAxiosArgs = _a.sent();
|
|
2307
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2308
|
+
}
|
|
2309
|
+
});
|
|
2310
|
+
});
|
|
2311
|
+
},
|
|
2312
|
+
};
|
|
2313
|
+
};
|
|
2314
|
+
exports.ReportSystemsApiFp = ReportSystemsApiFp;
|
|
2315
|
+
/**
|
|
2316
|
+
* ReportSystemsApi - factory interface
|
|
2317
|
+
* @export
|
|
2318
|
+
*/
|
|
2319
|
+
var ReportSystemsApiFactory = function (configuration, basePath, axios) {
|
|
2320
|
+
var localVarFp = (0, exports.ReportSystemsApiFp)(configuration);
|
|
2321
|
+
return {
|
|
2322
|
+
/**
|
|
2323
|
+
* Lists Systems assigned to a Report
|
|
2324
|
+
* @summary Request Systems assigned to a Report
|
|
2325
|
+
* @param {ReportSystemsApiReportSystemsRequest} requestParameters Request parameters.
|
|
2326
|
+
* @param {*} [options] Override http request option.
|
|
2327
|
+
* @throws {RequiredError}
|
|
2328
|
+
*/
|
|
2329
|
+
reportSystems: function (requestParameters, options) {
|
|
2330
|
+
return localVarFp.reportSystems(requestParameters.reportId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
|
|
2331
|
+
},
|
|
2332
|
+
};
|
|
2333
|
+
};
|
|
2334
|
+
exports.ReportSystemsApiFactory = ReportSystemsApiFactory;
|
|
2335
|
+
/**
|
|
2336
|
+
* ReportSystemsApi - object-oriented interface
|
|
2337
|
+
* @export
|
|
2338
|
+
* @class ReportSystemsApi
|
|
2339
|
+
* @extends {BaseAPI}
|
|
2340
|
+
*/
|
|
2341
|
+
var ReportSystemsApi = /** @class */ (function (_super) {
|
|
2342
|
+
tslib_1.__extends(ReportSystemsApi, _super);
|
|
2343
|
+
function ReportSystemsApi() {
|
|
2344
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2345
|
+
}
|
|
2346
|
+
/**
|
|
2347
|
+
* Lists Systems assigned to a Report
|
|
2348
|
+
* @summary Request Systems assigned to a Report
|
|
2349
|
+
* @param {ReportSystemsApiReportSystemsRequest} requestParameters Request parameters.
|
|
2350
|
+
* @param {*} [options] Override http request option.
|
|
2351
|
+
* @throws {RequiredError}
|
|
2352
|
+
* @memberof ReportSystemsApi
|
|
2353
|
+
*/
|
|
2354
|
+
ReportSystemsApi.prototype.reportSystems = function (requestParameters, options) {
|
|
2355
|
+
var _this = this;
|
|
2356
|
+
return (0, exports.ReportSystemsApiFp)(this.configuration).reportSystems(requestParameters.reportId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2357
|
+
};
|
|
2358
|
+
return ReportSystemsApi;
|
|
2359
|
+
}(base_1.BaseAPI));
|
|
2360
|
+
exports.ReportSystemsApi = ReportSystemsApi;
|
|
2361
|
+
/**
|
|
2362
|
+
* ReportTestResultApi - axios parameter creator
|
|
2363
|
+
* @export
|
|
2364
|
+
*/
|
|
2365
|
+
var ReportTestResultApiAxiosParamCreator = function (configuration) {
|
|
2366
|
+
var _this = this;
|
|
2367
|
+
return {
|
|
2368
|
+
/**
|
|
2369
|
+
* Returns a Test Result under a Report
|
|
2370
|
+
* @summary Request a Test Result
|
|
2371
|
+
* @param {any} testResultId
|
|
2372
|
+
* @param {any} reportId
|
|
2373
|
+
* @param {any} [xRHIDENTITY] For internal use only
|
|
2374
|
+
* @param {*} [options] Override http request option.
|
|
2375
|
+
* @throws {RequiredError}
|
|
2376
|
+
*/
|
|
2377
|
+
reportTestResult: function (testResultId, reportId, xRHIDENTITY, options) {
|
|
2378
|
+
if (options === void 0) { options = {}; }
|
|
2379
|
+
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
2380
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2381
|
+
return tslib_1.__generator(this, function (_a) {
|
|
2382
|
+
// verify required parameter 'testResultId' is not null or undefined
|
|
2383
|
+
(0, common_1.assertParamExists)('reportTestResult', 'testResultId', testResultId);
|
|
2384
|
+
// verify required parameter 'reportId' is not null or undefined
|
|
2385
|
+
(0, common_1.assertParamExists)('reportTestResult', 'reportId', reportId);
|
|
2386
|
+
localVarPath = "/reports/{report_id}/test_results/{test_result_id}"
|
|
2387
|
+
.replace("{".concat("test_result_id", "}"), encodeURIComponent(String(testResultId)))
|
|
2388
|
+
.replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
|
|
2389
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2390
|
+
if (configuration) {
|
|
2391
|
+
baseOptions = configuration.baseOptions;
|
|
2392
|
+
}
|
|
2393
|
+
localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
|
|
2394
|
+
localVarHeaderParameter = {};
|
|
2395
|
+
localVarQueryParameter = {};
|
|
2396
|
+
if (xRHIDENTITY != null) {
|
|
2397
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
2398
|
+
? xRHIDENTITY
|
|
2399
|
+
: JSON.stringify(xRHIDENTITY);
|
|
2400
|
+
}
|
|
2401
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2402
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2403
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2404
|
+
return [2 /*return*/, {
|
|
2405
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2406
|
+
options: localVarRequestOptions,
|
|
2407
|
+
}];
|
|
2408
|
+
});
|
|
2409
|
+
});
|
|
2410
|
+
},
|
|
2411
|
+
};
|
|
2412
|
+
};
|
|
2413
|
+
exports.ReportTestResultApiAxiosParamCreator = ReportTestResultApiAxiosParamCreator;
|
|
2414
|
+
/**
|
|
2415
|
+
* ReportTestResultApi - functional programming interface
|
|
2416
|
+
* @export
|
|
2417
|
+
*/
|
|
2418
|
+
var ReportTestResultApiFp = function (configuration) {
|
|
2419
|
+
var localVarAxiosParamCreator = (0, exports.ReportTestResultApiAxiosParamCreator)(configuration);
|
|
2420
|
+
return {
|
|
2421
|
+
/**
|
|
2422
|
+
* Returns a Test Result under a Report
|
|
2423
|
+
* @summary Request a Test Result
|
|
2424
|
+
* @param {any} testResultId
|
|
2425
|
+
* @param {any} reportId
|
|
2426
|
+
* @param {any} [xRHIDENTITY] For internal use only
|
|
2427
|
+
* @param {*} [options] Override http request option.
|
|
2428
|
+
* @throws {RequiredError}
|
|
2429
|
+
*/
|
|
2430
|
+
reportTestResult: function (testResultId, reportId, xRHIDENTITY, options) {
|
|
2431
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
2432
|
+
var localVarAxiosArgs;
|
|
2433
|
+
return tslib_1.__generator(this, function (_a) {
|
|
2434
|
+
switch (_a.label) {
|
|
2435
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportTestResult(testResultId, reportId, xRHIDENTITY, options)];
|
|
2436
|
+
case 1:
|
|
2437
|
+
localVarAxiosArgs = _a.sent();
|
|
2438
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2439
|
+
}
|
|
2440
|
+
});
|
|
2441
|
+
});
|
|
2442
|
+
},
|
|
2443
|
+
};
|
|
2444
|
+
};
|
|
2445
|
+
exports.ReportTestResultApiFp = ReportTestResultApiFp;
|
|
2446
|
+
/**
|
|
2447
|
+
* ReportTestResultApi - factory interface
|
|
2448
|
+
* @export
|
|
2449
|
+
*/
|
|
2450
|
+
var ReportTestResultApiFactory = function (configuration, basePath, axios) {
|
|
2451
|
+
var localVarFp = (0, exports.ReportTestResultApiFp)(configuration);
|
|
2452
|
+
return {
|
|
2453
|
+
/**
|
|
2454
|
+
* Returns a Test Result under a Report
|
|
2455
|
+
* @summary Request a Test Result
|
|
2456
|
+
* @param {ReportTestResultApiReportTestResultRequest} requestParameters Request parameters.
|
|
2457
|
+
* @param {*} [options] Override http request option.
|
|
2458
|
+
* @throws {RequiredError}
|
|
2459
|
+
*/
|
|
2460
|
+
reportTestResult: function (requestParameters, options) {
|
|
2461
|
+
return localVarFp.reportTestResult(requestParameters.testResultId, requestParameters.reportId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
2462
|
+
},
|
|
2463
|
+
};
|
|
2464
|
+
};
|
|
2465
|
+
exports.ReportTestResultApiFactory = ReportTestResultApiFactory;
|
|
2466
|
+
/**
|
|
2467
|
+
* ReportTestResultApi - object-oriented interface
|
|
2468
|
+
* @export
|
|
2469
|
+
* @class ReportTestResultApi
|
|
2470
|
+
* @extends {BaseAPI}
|
|
2471
|
+
*/
|
|
2472
|
+
var ReportTestResultApi = /** @class */ (function (_super) {
|
|
2473
|
+
tslib_1.__extends(ReportTestResultApi, _super);
|
|
2474
|
+
function ReportTestResultApi() {
|
|
2475
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2476
|
+
}
|
|
2477
|
+
/**
|
|
2478
|
+
* Returns a Test Result under a Report
|
|
2479
|
+
* @summary Request a Test Result
|
|
2480
|
+
* @param {ReportTestResultApiReportTestResultRequest} requestParameters Request parameters.
|
|
2481
|
+
* @param {*} [options] Override http request option.
|
|
2482
|
+
* @throws {RequiredError}
|
|
2483
|
+
* @memberof ReportTestResultApi
|
|
2484
|
+
*/
|
|
2485
|
+
ReportTestResultApi.prototype.reportTestResult = function (requestParameters, options) {
|
|
2486
|
+
var _this = this;
|
|
2487
|
+
return (0, exports.ReportTestResultApiFp)(this.configuration).reportTestResult(requestParameters.testResultId, requestParameters.reportId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2488
|
+
};
|
|
2489
|
+
return ReportTestResultApi;
|
|
2490
|
+
}(base_1.BaseAPI));
|
|
2491
|
+
exports.ReportTestResultApi = ReportTestResultApi;
|
|
2492
|
+
/**
|
|
2493
|
+
* ReportTestResultsApi - axios parameter creator
|
|
2494
|
+
* @export
|
|
2495
|
+
*/
|
|
2496
|
+
var ReportTestResultsApiAxiosParamCreator = function (configuration) {
|
|
2497
|
+
var _this = this;
|
|
2498
|
+
return {
|
|
2499
|
+
/**
|
|
2500
|
+
* Lists Test Results under a Report
|
|
2501
|
+
* @summary Request Test Results under a Report
|
|
2502
|
+
* @param {any} reportId
|
|
2503
|
+
* @param {any} [xRHIDENTITY] For internal use only
|
|
2504
|
+
* @param {any} [limit] Number of items to return per page
|
|
2505
|
+
* @param {any} [offset] Offset of first item of paginated response
|
|
2506
|
+
* @param {any} [sortBy] 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.
|
|
2507
|
+
* @param {any} [filter] 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>Test Results are searchable using attributes `score`, `supported`, `display_name`, `os_minor_version`, `security_guide_version`, and `compliant`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
2508
|
+
* @param {*} [options] Override http request option.
|
|
2509
|
+
* @throws {RequiredError}
|
|
2510
|
+
*/
|
|
2511
|
+
reportTestResults: function (reportId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
|
|
2512
|
+
if (options === void 0) { options = {}; }
|
|
2513
|
+
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
2514
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2515
|
+
return tslib_1.__generator(this, function (_a) {
|
|
2516
|
+
// verify required parameter 'reportId' is not null or undefined
|
|
2517
|
+
(0, common_1.assertParamExists)('reportTestResults', 'reportId', reportId);
|
|
2518
|
+
localVarPath = "/reports/{report_id}/test_results"
|
|
2519
|
+
.replace("{".concat("report_id", "}"), encodeURIComponent(String(reportId)));
|
|
2520
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2521
|
+
if (configuration) {
|
|
2522
|
+
baseOptions = configuration.baseOptions;
|
|
2523
|
+
}
|
|
2524
|
+
localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
|
|
2525
|
+
localVarHeaderParameter = {};
|
|
2526
|
+
localVarQueryParameter = {};
|
|
2527
|
+
if (limit !== undefined) {
|
|
2528
|
+
localVarQueryParameter['limit'] = limit;
|
|
2529
|
+
}
|
|
2530
|
+
if (offset !== undefined) {
|
|
2531
|
+
localVarQueryParameter['offset'] = offset;
|
|
2532
|
+
}
|
|
2533
|
+
if (sortBy !== undefined) {
|
|
2534
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
2535
|
+
}
|
|
2536
|
+
if (filter !== undefined) {
|
|
2537
|
+
localVarQueryParameter['filter'] = filter;
|
|
2538
|
+
}
|
|
2539
|
+
if (xRHIDENTITY != null) {
|
|
2540
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
2541
|
+
? xRHIDENTITY
|
|
2542
|
+
: JSON.stringify(xRHIDENTITY);
|
|
2543
|
+
}
|
|
2544
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2545
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2546
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2547
|
+
return [2 /*return*/, {
|
|
2548
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2549
|
+
options: localVarRequestOptions,
|
|
2550
|
+
}];
|
|
2551
|
+
});
|
|
2552
|
+
});
|
|
2553
|
+
},
|
|
2554
|
+
};
|
|
2555
|
+
};
|
|
2556
|
+
exports.ReportTestResultsApiAxiosParamCreator = ReportTestResultsApiAxiosParamCreator;
|
|
2557
|
+
/**
|
|
2558
|
+
* ReportTestResultsApi - functional programming interface
|
|
2559
|
+
* @export
|
|
2560
|
+
*/
|
|
2561
|
+
var ReportTestResultsApiFp = function (configuration) {
|
|
2562
|
+
var localVarAxiosParamCreator = (0, exports.ReportTestResultsApiAxiosParamCreator)(configuration);
|
|
2563
|
+
return {
|
|
2564
|
+
/**
|
|
2565
|
+
* Lists Test Results under a Report
|
|
2566
|
+
* @summary Request Test Results under a Report
|
|
2567
|
+
* @param {any} reportId
|
|
2568
|
+
* @param {any} [xRHIDENTITY] For internal use only
|
|
2569
|
+
* @param {any} [limit] Number of items to return per page
|
|
2570
|
+
* @param {any} [offset] Offset of first item of paginated response
|
|
2571
|
+
* @param {any} [sortBy] 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.
|
|
2572
|
+
* @param {any} [filter] 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>Test Results are searchable using attributes `score`, `supported`, `display_name`, `os_minor_version`, `security_guide_version`, and `compliant`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
2573
|
+
* @param {*} [options] Override http request option.
|
|
2574
|
+
* @throws {RequiredError}
|
|
2575
|
+
*/
|
|
2576
|
+
reportTestResults: function (reportId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
|
|
2577
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
2578
|
+
var localVarAxiosArgs;
|
|
2579
|
+
return tslib_1.__generator(this, function (_a) {
|
|
2580
|
+
switch (_a.label) {
|
|
2581
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportTestResults(reportId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
|
|
2582
|
+
case 1:
|
|
2583
|
+
localVarAxiosArgs = _a.sent();
|
|
2584
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2585
|
+
}
|
|
2586
|
+
});
|
|
2587
|
+
});
|
|
2588
|
+
},
|
|
2589
|
+
};
|
|
2590
|
+
};
|
|
2591
|
+
exports.ReportTestResultsApiFp = ReportTestResultsApiFp;
|
|
2592
|
+
/**
|
|
2593
|
+
* ReportTestResultsApi - factory interface
|
|
2594
|
+
* @export
|
|
2595
|
+
*/
|
|
2596
|
+
var ReportTestResultsApiFactory = function (configuration, basePath, axios) {
|
|
2597
|
+
var localVarFp = (0, exports.ReportTestResultsApiFp)(configuration);
|
|
2598
|
+
return {
|
|
2599
|
+
/**
|
|
2600
|
+
* Lists Test Results under a Report
|
|
2601
|
+
* @summary Request Test Results under a Report
|
|
2602
|
+
* @param {ReportTestResultsApiReportTestResultsRequest} requestParameters Request parameters.
|
|
2603
|
+
* @param {*} [options] Override http request option.
|
|
2604
|
+
* @throws {RequiredError}
|
|
2605
|
+
*/
|
|
2606
|
+
reportTestResults: function (requestParameters, options) {
|
|
2607
|
+
return localVarFp.reportTestResults(requestParameters.reportId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
|
|
2608
|
+
},
|
|
2609
|
+
};
|
|
2610
|
+
};
|
|
2611
|
+
exports.ReportTestResultsApiFactory = ReportTestResultsApiFactory;
|
|
2612
|
+
/**
|
|
2613
|
+
* ReportTestResultsApi - object-oriented interface
|
|
2614
|
+
* @export
|
|
2615
|
+
* @class ReportTestResultsApi
|
|
2616
|
+
* @extends {BaseAPI}
|
|
2617
|
+
*/
|
|
2618
|
+
var ReportTestResultsApi = /** @class */ (function (_super) {
|
|
2619
|
+
tslib_1.__extends(ReportTestResultsApi, _super);
|
|
2620
|
+
function ReportTestResultsApi() {
|
|
2621
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2622
|
+
}
|
|
2623
|
+
/**
|
|
2624
|
+
* Lists Test Results under a Report
|
|
2625
|
+
* @summary Request Test Results under a Report
|
|
2626
|
+
* @param {ReportTestResultsApiReportTestResultsRequest} requestParameters Request parameters.
|
|
2627
|
+
* @param {*} [options] Override http request option.
|
|
2628
|
+
* @throws {RequiredError}
|
|
2629
|
+
* @memberof ReportTestResultsApi
|
|
2630
|
+
*/
|
|
2631
|
+
ReportTestResultsApi.prototype.reportTestResults = function (requestParameters, options) {
|
|
2632
|
+
var _this = this;
|
|
2633
|
+
return (0, exports.ReportTestResultsApiFp)(this.configuration).reportTestResults(requestParameters.reportId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2634
|
+
};
|
|
2635
|
+
return ReportTestResultsApi;
|
|
2636
|
+
}(base_1.BaseAPI));
|
|
2637
|
+
exports.ReportTestResultsApi = ReportTestResultsApi;
|
|
1955
2638
|
/**
|
|
1956
2639
|
* ReportsApi - axios parameter creator
|
|
1957
2640
|
* @export
|
|
@@ -1966,7 +2649,7 @@ var ReportsApiAxiosParamCreator = function (configuration) {
|
|
|
1966
2649
|
* @param {any} [limit] Number of items to return per page
|
|
1967
2650
|
* @param {any} [offset] Offset of first item of paginated response
|
|
1968
2651
|
* @param {any} [sortBy] 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.
|
|
1969
|
-
* @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Reports are searchable using attributes `title` and `
|
|
2652
|
+
* @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Reports are searchable using attributes `title`, `os_major_version`, and `with_reported_systems`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
1970
2653
|
* @param {*} [options] Override http request option.
|
|
1971
2654
|
* @throws {RequiredError}
|
|
1972
2655
|
*/
|
|
@@ -2027,7 +2710,7 @@ var ReportsApiFp = function (configuration) {
|
|
|
2027
2710
|
* @param {any} [limit] Number of items to return per page
|
|
2028
2711
|
* @param {any} [offset] Offset of first item of paginated response
|
|
2029
2712
|
* @param {any} [sortBy] 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.
|
|
2030
|
-
* @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Reports are searchable using attributes `title` and `
|
|
2713
|
+
* @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Reports are searchable using attributes `title`, `os_major_version`, and `with_reported_systems`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
2031
2714
|
* @param {*} [options] Override http request option.
|
|
2032
2715
|
* @throws {RequiredError}
|
|
2033
2716
|
*/
|
|
@@ -2106,23 +2789,23 @@ var RuleApiAxiosParamCreator = function (configuration) {
|
|
|
2106
2789
|
* Returns a Rule
|
|
2107
2790
|
* @summary Request a Rule
|
|
2108
2791
|
* @param {any} securityGuideId
|
|
2109
|
-
* @param {any}
|
|
2792
|
+
* @param {any} ruleId UUID or ref_id
|
|
2110
2793
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
2111
2794
|
* @param {*} [options] Override http request option.
|
|
2112
2795
|
* @throws {RequiredError}
|
|
2113
2796
|
*/
|
|
2114
|
-
rule: function (securityGuideId,
|
|
2797
|
+
rule: function (securityGuideId, ruleId, xRHIDENTITY, options) {
|
|
2115
2798
|
if (options === void 0) { options = {}; }
|
|
2116
2799
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
2117
2800
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2118
2801
|
return tslib_1.__generator(this, function (_a) {
|
|
2119
2802
|
// verify required parameter 'securityGuideId' is not null or undefined
|
|
2120
2803
|
(0, common_1.assertParamExists)('rule', 'securityGuideId', securityGuideId);
|
|
2121
|
-
// verify required parameter '
|
|
2122
|
-
(0, common_1.assertParamExists)('rule', '
|
|
2123
|
-
localVarPath = "/security_guides/{security_guide_id}/rules/{
|
|
2804
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
2805
|
+
(0, common_1.assertParamExists)('rule', 'ruleId', ruleId);
|
|
2806
|
+
localVarPath = "/security_guides/{security_guide_id}/rules/{rule_id}"
|
|
2124
2807
|
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
|
|
2125
|
-
.replace("{".concat("
|
|
2808
|
+
.replace("{".concat("rule_id", "}"), encodeURIComponent(String(ruleId)));
|
|
2126
2809
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2127
2810
|
if (configuration) {
|
|
2128
2811
|
baseOptions = configuration.baseOptions;
|
|
@@ -2159,17 +2842,17 @@ var RuleApiFp = function (configuration) {
|
|
|
2159
2842
|
* Returns a Rule
|
|
2160
2843
|
* @summary Request a Rule
|
|
2161
2844
|
* @param {any} securityGuideId
|
|
2162
|
-
* @param {any}
|
|
2845
|
+
* @param {any} ruleId UUID or ref_id
|
|
2163
2846
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
2164
2847
|
* @param {*} [options] Override http request option.
|
|
2165
2848
|
* @throws {RequiredError}
|
|
2166
2849
|
*/
|
|
2167
|
-
rule: function (securityGuideId,
|
|
2850
|
+
rule: function (securityGuideId, ruleId, xRHIDENTITY, options) {
|
|
2168
2851
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
2169
2852
|
var localVarAxiosArgs;
|
|
2170
2853
|
return tslib_1.__generator(this, function (_a) {
|
|
2171
2854
|
switch (_a.label) {
|
|
2172
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.rule(securityGuideId,
|
|
2855
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.rule(securityGuideId, ruleId, xRHIDENTITY, options)];
|
|
2173
2856
|
case 1:
|
|
2174
2857
|
localVarAxiosArgs = _a.sent();
|
|
2175
2858
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2195,7 +2878,7 @@ var RuleApiFactory = function (configuration, basePath, axios) {
|
|
|
2195
2878
|
* @throws {RequiredError}
|
|
2196
2879
|
*/
|
|
2197
2880
|
rule: function (requestParameters, options) {
|
|
2198
|
-
return localVarFp.rule(requestParameters.securityGuideId, requestParameters.
|
|
2881
|
+
return localVarFp.rule(requestParameters.securityGuideId, requestParameters.ruleId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
2199
2882
|
},
|
|
2200
2883
|
};
|
|
2201
2884
|
};
|
|
@@ -2221,7 +2904,7 @@ var RuleApi = /** @class */ (function (_super) {
|
|
|
2221
2904
|
*/
|
|
2222
2905
|
RuleApi.prototype.rule = function (requestParameters, options) {
|
|
2223
2906
|
var _this = this;
|
|
2224
|
-
return (0, exports.RuleApiFp)(this.configuration).rule(requestParameters.securityGuideId, requestParameters.
|
|
2907
|
+
return (0, exports.RuleApiFp)(this.configuration).rule(requestParameters.securityGuideId, requestParameters.ruleId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2225
2908
|
};
|
|
2226
2909
|
return RuleApi;
|
|
2227
2910
|
}(base_1.BaseAPI));
|
|
@@ -2237,23 +2920,23 @@ var RuleGroupApiAxiosParamCreator = function (configuration) {
|
|
|
2237
2920
|
* Returns a Rule Group
|
|
2238
2921
|
* @summary Request a Rule Group
|
|
2239
2922
|
* @param {any} securityGuideId
|
|
2240
|
-
* @param {any}
|
|
2923
|
+
* @param {any} ruleGroupId
|
|
2241
2924
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
2242
2925
|
* @param {*} [options] Override http request option.
|
|
2243
2926
|
* @throws {RequiredError}
|
|
2244
2927
|
*/
|
|
2245
|
-
ruleGroup: function (securityGuideId,
|
|
2928
|
+
ruleGroup: function (securityGuideId, ruleGroupId, xRHIDENTITY, options) {
|
|
2246
2929
|
if (options === void 0) { options = {}; }
|
|
2247
2930
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
2248
2931
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2249
2932
|
return tslib_1.__generator(this, function (_a) {
|
|
2250
2933
|
// verify required parameter 'securityGuideId' is not null or undefined
|
|
2251
2934
|
(0, common_1.assertParamExists)('ruleGroup', 'securityGuideId', securityGuideId);
|
|
2252
|
-
// verify required parameter '
|
|
2253
|
-
(0, common_1.assertParamExists)('ruleGroup', '
|
|
2254
|
-
localVarPath = "/security_guides/{security_guide_id}/rule_groups/{
|
|
2935
|
+
// verify required parameter 'ruleGroupId' is not null or undefined
|
|
2936
|
+
(0, common_1.assertParamExists)('ruleGroup', 'ruleGroupId', ruleGroupId);
|
|
2937
|
+
localVarPath = "/security_guides/{security_guide_id}/rule_groups/{rule_group_id}"
|
|
2255
2938
|
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
|
|
2256
|
-
.replace("{".concat("
|
|
2939
|
+
.replace("{".concat("rule_group_id", "}"), encodeURIComponent(String(ruleGroupId)));
|
|
2257
2940
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2258
2941
|
if (configuration) {
|
|
2259
2942
|
baseOptions = configuration.baseOptions;
|
|
@@ -2290,17 +2973,17 @@ var RuleGroupApiFp = function (configuration) {
|
|
|
2290
2973
|
* Returns a Rule Group
|
|
2291
2974
|
* @summary Request a Rule Group
|
|
2292
2975
|
* @param {any} securityGuideId
|
|
2293
|
-
* @param {any}
|
|
2976
|
+
* @param {any} ruleGroupId
|
|
2294
2977
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
2295
2978
|
* @param {*} [options] Override http request option.
|
|
2296
2979
|
* @throws {RequiredError}
|
|
2297
2980
|
*/
|
|
2298
|
-
ruleGroup: function (securityGuideId,
|
|
2981
|
+
ruleGroup: function (securityGuideId, ruleGroupId, xRHIDENTITY, options) {
|
|
2299
2982
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
2300
2983
|
var localVarAxiosArgs;
|
|
2301
2984
|
return tslib_1.__generator(this, function (_a) {
|
|
2302
2985
|
switch (_a.label) {
|
|
2303
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.ruleGroup(securityGuideId,
|
|
2986
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.ruleGroup(securityGuideId, ruleGroupId, xRHIDENTITY, options)];
|
|
2304
2987
|
case 1:
|
|
2305
2988
|
localVarAxiosArgs = _a.sent();
|
|
2306
2989
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2326,7 +3009,7 @@ var RuleGroupApiFactory = function (configuration, basePath, axios) {
|
|
|
2326
3009
|
* @throws {RequiredError}
|
|
2327
3010
|
*/
|
|
2328
3011
|
ruleGroup: function (requestParameters, options) {
|
|
2329
|
-
return localVarFp.ruleGroup(requestParameters.securityGuideId, requestParameters.
|
|
3012
|
+
return localVarFp.ruleGroup(requestParameters.securityGuideId, requestParameters.ruleGroupId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
2330
3013
|
},
|
|
2331
3014
|
};
|
|
2332
3015
|
};
|
|
@@ -2352,7 +3035,7 @@ var RuleGroupApi = /** @class */ (function (_super) {
|
|
|
2352
3035
|
*/
|
|
2353
3036
|
RuleGroupApi.prototype.ruleGroup = function (requestParameters, options) {
|
|
2354
3037
|
var _this = this;
|
|
2355
|
-
return (0, exports.RuleGroupApiFp)(this.configuration).ruleGroup(requestParameters.securityGuideId, requestParameters.
|
|
3038
|
+
return (0, exports.RuleGroupApiFp)(this.configuration).ruleGroup(requestParameters.securityGuideId, requestParameters.ruleGroupId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2356
3039
|
};
|
|
2357
3040
|
return RuleGroupApi;
|
|
2358
3041
|
}(base_1.BaseAPI));
|
|
@@ -2659,20 +3342,20 @@ var SecurityGuideApiAxiosParamCreator = function (configuration) {
|
|
|
2659
3342
|
/**
|
|
2660
3343
|
* Returns a Security Guide
|
|
2661
3344
|
* @summary Request a Security Guide
|
|
2662
|
-
* @param {any}
|
|
3345
|
+
* @param {any} securityGuideId
|
|
2663
3346
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
2664
3347
|
* @param {*} [options] Override http request option.
|
|
2665
3348
|
* @throws {RequiredError}
|
|
2666
3349
|
*/
|
|
2667
|
-
securityGuide: function (
|
|
3350
|
+
securityGuide: function (securityGuideId, xRHIDENTITY, options) {
|
|
2668
3351
|
if (options === void 0) { options = {}; }
|
|
2669
3352
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
2670
3353
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2671
3354
|
return tslib_1.__generator(this, function (_a) {
|
|
2672
|
-
// verify required parameter '
|
|
2673
|
-
(0, common_1.assertParamExists)('securityGuide', '
|
|
2674
|
-
localVarPath = "/security_guides/{
|
|
2675
|
-
.replace("{".concat("
|
|
3355
|
+
// verify required parameter 'securityGuideId' is not null or undefined
|
|
3356
|
+
(0, common_1.assertParamExists)('securityGuide', 'securityGuideId', securityGuideId);
|
|
3357
|
+
localVarPath = "/security_guides/{security_guide_id}"
|
|
3358
|
+
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)));
|
|
2676
3359
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2677
3360
|
if (configuration) {
|
|
2678
3361
|
baseOptions = configuration.baseOptions;
|
|
@@ -2708,17 +3391,17 @@ var SecurityGuideApiFp = function (configuration) {
|
|
|
2708
3391
|
/**
|
|
2709
3392
|
* Returns a Security Guide
|
|
2710
3393
|
* @summary Request a Security Guide
|
|
2711
|
-
* @param {any}
|
|
3394
|
+
* @param {any} securityGuideId
|
|
2712
3395
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
2713
3396
|
* @param {*} [options] Override http request option.
|
|
2714
3397
|
* @throws {RequiredError}
|
|
2715
3398
|
*/
|
|
2716
|
-
securityGuide: function (
|
|
3399
|
+
securityGuide: function (securityGuideId, xRHIDENTITY, options) {
|
|
2717
3400
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
2718
3401
|
var localVarAxiosArgs;
|
|
2719
3402
|
return tslib_1.__generator(this, function (_a) {
|
|
2720
3403
|
switch (_a.label) {
|
|
2721
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.securityGuide(
|
|
3404
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.securityGuide(securityGuideId, xRHIDENTITY, options)];
|
|
2722
3405
|
case 1:
|
|
2723
3406
|
localVarAxiosArgs = _a.sent();
|
|
2724
3407
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2744,7 +3427,7 @@ var SecurityGuideApiFactory = function (configuration, basePath, axios) {
|
|
|
2744
3427
|
* @throws {RequiredError}
|
|
2745
3428
|
*/
|
|
2746
3429
|
securityGuide: function (requestParameters, options) {
|
|
2747
|
-
return localVarFp.securityGuide(requestParameters.
|
|
3430
|
+
return localVarFp.securityGuide(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
2748
3431
|
},
|
|
2749
3432
|
};
|
|
2750
3433
|
};
|
|
@@ -2770,7 +3453,7 @@ var SecurityGuideApi = /** @class */ (function (_super) {
|
|
|
2770
3453
|
*/
|
|
2771
3454
|
SecurityGuideApi.prototype.securityGuide = function (requestParameters, options) {
|
|
2772
3455
|
var _this = this;
|
|
2773
|
-
return (0, exports.SecurityGuideApiFp)(this.configuration).securityGuide(requestParameters.
|
|
3456
|
+
return (0, exports.SecurityGuideApiFp)(this.configuration).securityGuide(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2774
3457
|
};
|
|
2775
3458
|
return SecurityGuideApi;
|
|
2776
3459
|
}(base_1.BaseAPI));
|
|
@@ -2785,20 +3468,20 @@ var SecurityGuideRuleTreeApiAxiosParamCreator = function (configuration) {
|
|
|
2785
3468
|
/**
|
|
2786
3469
|
* Returns the Rule Tree of a Security Guide
|
|
2787
3470
|
* @summary Request the Rule Tree of a Security Guide
|
|
2788
|
-
* @param {any}
|
|
3471
|
+
* @param {any} securityGuideId
|
|
2789
3472
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
2790
3473
|
* @param {*} [options] Override http request option.
|
|
2791
3474
|
* @throws {RequiredError}
|
|
2792
3475
|
*/
|
|
2793
|
-
securityGuideRuleTree: function (
|
|
3476
|
+
securityGuideRuleTree: function (securityGuideId, xRHIDENTITY, options) {
|
|
2794
3477
|
if (options === void 0) { options = {}; }
|
|
2795
3478
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
2796
3479
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2797
3480
|
return tslib_1.__generator(this, function (_a) {
|
|
2798
|
-
// verify required parameter '
|
|
2799
|
-
(0, common_1.assertParamExists)('securityGuideRuleTree', '
|
|
2800
|
-
localVarPath = "/security_guides/{
|
|
2801
|
-
.replace("{".concat("
|
|
3481
|
+
// verify required parameter 'securityGuideId' is not null or undefined
|
|
3482
|
+
(0, common_1.assertParamExists)('securityGuideRuleTree', 'securityGuideId', securityGuideId);
|
|
3483
|
+
localVarPath = "/security_guides/{security_guide_id}/rule_tree"
|
|
3484
|
+
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)));
|
|
2802
3485
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2803
3486
|
if (configuration) {
|
|
2804
3487
|
baseOptions = configuration.baseOptions;
|
|
@@ -2834,17 +3517,17 @@ var SecurityGuideRuleTreeApiFp = function (configuration) {
|
|
|
2834
3517
|
/**
|
|
2835
3518
|
* Returns the Rule Tree of a Security Guide
|
|
2836
3519
|
* @summary Request the Rule Tree of a Security Guide
|
|
2837
|
-
* @param {any}
|
|
3520
|
+
* @param {any} securityGuideId
|
|
2838
3521
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
2839
3522
|
* @param {*} [options] Override http request option.
|
|
2840
3523
|
* @throws {RequiredError}
|
|
2841
3524
|
*/
|
|
2842
|
-
securityGuideRuleTree: function (
|
|
3525
|
+
securityGuideRuleTree: function (securityGuideId, xRHIDENTITY, options) {
|
|
2843
3526
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
2844
3527
|
var localVarAxiosArgs;
|
|
2845
3528
|
return tslib_1.__generator(this, function (_a) {
|
|
2846
3529
|
switch (_a.label) {
|
|
2847
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.securityGuideRuleTree(
|
|
3530
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.securityGuideRuleTree(securityGuideId, xRHIDENTITY, options)];
|
|
2848
3531
|
case 1:
|
|
2849
3532
|
localVarAxiosArgs = _a.sent();
|
|
2850
3533
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2870,7 +3553,7 @@ var SecurityGuideRuleTreeApiFactory = function (configuration, basePath, axios)
|
|
|
2870
3553
|
* @throws {RequiredError}
|
|
2871
3554
|
*/
|
|
2872
3555
|
securityGuideRuleTree: function (requestParameters, options) {
|
|
2873
|
-
return localVarFp.securityGuideRuleTree(requestParameters.
|
|
3556
|
+
return localVarFp.securityGuideRuleTree(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
2874
3557
|
},
|
|
2875
3558
|
};
|
|
2876
3559
|
};
|
|
@@ -2896,7 +3579,7 @@ var SecurityGuideRuleTreeApi = /** @class */ (function (_super) {
|
|
|
2896
3579
|
*/
|
|
2897
3580
|
SecurityGuideRuleTreeApi.prototype.securityGuideRuleTree = function (requestParameters, options) {
|
|
2898
3581
|
var _this = this;
|
|
2899
|
-
return (0, exports.SecurityGuideRuleTreeApiFp)(this.configuration).securityGuideRuleTree(requestParameters.
|
|
3582
|
+
return (0, exports.SecurityGuideRuleTreeApiFp)(this.configuration).securityGuideRuleTree(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2900
3583
|
};
|
|
2901
3584
|
return SecurityGuideRuleTreeApi;
|
|
2902
3585
|
}(base_1.BaseAPI));
|
|
@@ -3197,20 +3880,20 @@ var SystemApiAxiosParamCreator = function (configuration) {
|
|
|
3197
3880
|
/**
|
|
3198
3881
|
* Returns a System
|
|
3199
3882
|
* @summary Request a System
|
|
3200
|
-
* @param {any}
|
|
3883
|
+
* @param {any} systemId
|
|
3201
3884
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
3202
3885
|
* @param {*} [options] Override http request option.
|
|
3203
3886
|
* @throws {RequiredError}
|
|
3204
3887
|
*/
|
|
3205
|
-
system: function (
|
|
3888
|
+
system: function (systemId, xRHIDENTITY, options) {
|
|
3206
3889
|
if (options === void 0) { options = {}; }
|
|
3207
3890
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
3208
3891
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3209
3892
|
return tslib_1.__generator(this, function (_a) {
|
|
3210
|
-
// verify required parameter '
|
|
3211
|
-
(0, common_1.assertParamExists)('system', '
|
|
3212
|
-
localVarPath = "/systems/{
|
|
3213
|
-
.replace("{".concat("
|
|
3893
|
+
// verify required parameter 'systemId' is not null or undefined
|
|
3894
|
+
(0, common_1.assertParamExists)('system', 'systemId', systemId);
|
|
3895
|
+
localVarPath = "/systems/{system_id}"
|
|
3896
|
+
.replace("{".concat("system_id", "}"), encodeURIComponent(String(systemId)));
|
|
3214
3897
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3215
3898
|
if (configuration) {
|
|
3216
3899
|
baseOptions = configuration.baseOptions;
|
|
@@ -3246,17 +3929,17 @@ var SystemApiFp = function (configuration) {
|
|
|
3246
3929
|
/**
|
|
3247
3930
|
* Returns a System
|
|
3248
3931
|
* @summary Request a System
|
|
3249
|
-
* @param {any}
|
|
3932
|
+
* @param {any} systemId
|
|
3250
3933
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
3251
3934
|
* @param {*} [options] Override http request option.
|
|
3252
3935
|
* @throws {RequiredError}
|
|
3253
3936
|
*/
|
|
3254
|
-
system: function (
|
|
3937
|
+
system: function (systemId, xRHIDENTITY, options) {
|
|
3255
3938
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
3256
3939
|
var localVarAxiosArgs;
|
|
3257
3940
|
return tslib_1.__generator(this, function (_a) {
|
|
3258
3941
|
switch (_a.label) {
|
|
3259
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.system(
|
|
3942
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.system(systemId, xRHIDENTITY, options)];
|
|
3260
3943
|
case 1:
|
|
3261
3944
|
localVarAxiosArgs = _a.sent();
|
|
3262
3945
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -3282,7 +3965,7 @@ var SystemApiFactory = function (configuration, basePath, axios) {
|
|
|
3282
3965
|
* @throws {RequiredError}
|
|
3283
3966
|
*/
|
|
3284
3967
|
system: function (requestParameters, options) {
|
|
3285
|
-
return localVarFp.system(requestParameters.
|
|
3968
|
+
return localVarFp.system(requestParameters.systemId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
3286
3969
|
},
|
|
3287
3970
|
};
|
|
3288
3971
|
};
|
|
@@ -3308,7 +3991,7 @@ var SystemApi = /** @class */ (function (_super) {
|
|
|
3308
3991
|
*/
|
|
3309
3992
|
SystemApi.prototype.system = function (requestParameters, options) {
|
|
3310
3993
|
var _this = this;
|
|
3311
|
-
return (0, exports.SystemApiFp)(this.configuration).system(requestParameters.
|
|
3994
|
+
return (0, exports.SystemApiFp)(this.configuration).system(requestParameters.systemId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3312
3995
|
};
|
|
3313
3996
|
return SystemApi;
|
|
3314
3997
|
}(base_1.BaseAPI));
|
|
@@ -3327,7 +4010,7 @@ var SystemsApiAxiosParamCreator = function (configuration) {
|
|
|
3327
4010
|
* @param {any} [limit] Number of items to return per page
|
|
3328
4011
|
* @param {any} [offset] Offset of first item of paginated response
|
|
3329
4012
|
* @param {any} [sortBy] 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.
|
|
3330
|
-
* @param {any} [filter] 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`, `os_minor_version`, and `
|
|
4013
|
+
* @param {any} [filter] 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`, `os_minor_version`, `assigned_or_scanned`, and `never_reported`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
3331
4014
|
* @param {*} [options] Override http request option.
|
|
3332
4015
|
* @throws {RequiredError}
|
|
3333
4016
|
*/
|
|
@@ -3388,7 +4071,7 @@ var SystemsApiFp = function (configuration) {
|
|
|
3388
4071
|
* @param {any} [limit] Number of items to return per page
|
|
3389
4072
|
* @param {any} [offset] Offset of first item of paginated response
|
|
3390
4073
|
* @param {any} [sortBy] 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.
|
|
3391
|
-
* @param {any} [filter] 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`, `os_minor_version`, and `
|
|
4074
|
+
* @param {any} [filter] 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`, `os_minor_version`, `assigned_or_scanned`, and `never_reported`<br><br>(e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
|
|
3392
4075
|
* @param {*} [options] Override http request option.
|
|
3393
4076
|
* @throws {RequiredError}
|
|
3394
4077
|
*/
|
|
@@ -3613,23 +4296,23 @@ var TailoringApiAxiosParamCreator = function (configuration) {
|
|
|
3613
4296
|
* Returns a Tailoring
|
|
3614
4297
|
* @summary Request a Tailoring
|
|
3615
4298
|
* @param {any} policyId
|
|
3616
|
-
* @param {any}
|
|
4299
|
+
* @param {any} tailoringId UUID or OS minor version number
|
|
3617
4300
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
3618
4301
|
* @param {*} [options] Override http request option.
|
|
3619
4302
|
* @throws {RequiredError}
|
|
3620
4303
|
*/
|
|
3621
|
-
tailoring: function (policyId,
|
|
4304
|
+
tailoring: function (policyId, tailoringId, xRHIDENTITY, options) {
|
|
3622
4305
|
if (options === void 0) { options = {}; }
|
|
3623
4306
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
3624
4307
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3625
4308
|
return tslib_1.__generator(this, function (_a) {
|
|
3626
4309
|
// verify required parameter 'policyId' is not null or undefined
|
|
3627
4310
|
(0, common_1.assertParamExists)('tailoring', 'policyId', policyId);
|
|
3628
|
-
// verify required parameter '
|
|
3629
|
-
(0, common_1.assertParamExists)('tailoring', '
|
|
3630
|
-
localVarPath = "/policies/{policy_id}/tailorings/{
|
|
4311
|
+
// verify required parameter 'tailoringId' is not null or undefined
|
|
4312
|
+
(0, common_1.assertParamExists)('tailoring', 'tailoringId', tailoringId);
|
|
4313
|
+
localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}"
|
|
3631
4314
|
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
|
|
3632
|
-
.replace("{".concat("
|
|
4315
|
+
.replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)));
|
|
3633
4316
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3634
4317
|
if (configuration) {
|
|
3635
4318
|
baseOptions = configuration.baseOptions;
|
|
@@ -3666,17 +4349,17 @@ var TailoringApiFp = function (configuration) {
|
|
|
3666
4349
|
* Returns a Tailoring
|
|
3667
4350
|
* @summary Request a Tailoring
|
|
3668
4351
|
* @param {any} policyId
|
|
3669
|
-
* @param {any}
|
|
4352
|
+
* @param {any} tailoringId UUID or OS minor version number
|
|
3670
4353
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
3671
4354
|
* @param {*} [options] Override http request option.
|
|
3672
4355
|
* @throws {RequiredError}
|
|
3673
4356
|
*/
|
|
3674
|
-
tailoring: function (policyId,
|
|
4357
|
+
tailoring: function (policyId, tailoringId, xRHIDENTITY, options) {
|
|
3675
4358
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
3676
4359
|
var localVarAxiosArgs;
|
|
3677
4360
|
return tslib_1.__generator(this, function (_a) {
|
|
3678
4361
|
switch (_a.label) {
|
|
3679
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.tailoring(policyId,
|
|
4362
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.tailoring(policyId, tailoringId, xRHIDENTITY, options)];
|
|
3680
4363
|
case 1:
|
|
3681
4364
|
localVarAxiosArgs = _a.sent();
|
|
3682
4365
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -3702,7 +4385,7 @@ var TailoringApiFactory = function (configuration, basePath, axios) {
|
|
|
3702
4385
|
* @throws {RequiredError}
|
|
3703
4386
|
*/
|
|
3704
4387
|
tailoring: function (requestParameters, options) {
|
|
3705
|
-
return localVarFp.tailoring(requestParameters.policyId, requestParameters.
|
|
4388
|
+
return localVarFp.tailoring(requestParameters.policyId, requestParameters.tailoringId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
3706
4389
|
},
|
|
3707
4390
|
};
|
|
3708
4391
|
};
|
|
@@ -3728,7 +4411,7 @@ var TailoringApi = /** @class */ (function (_super) {
|
|
|
3728
4411
|
*/
|
|
3729
4412
|
TailoringApi.prototype.tailoring = function (requestParameters, options) {
|
|
3730
4413
|
var _this = this;
|
|
3731
|
-
return (0, exports.TailoringApiFp)(this.configuration).tailoring(requestParameters.policyId, requestParameters.
|
|
4414
|
+
return (0, exports.TailoringApiFp)(this.configuration).tailoring(requestParameters.policyId, requestParameters.tailoringId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3732
4415
|
};
|
|
3733
4416
|
return TailoringApi;
|
|
3734
4417
|
}(base_1.BaseAPI));
|
|
@@ -3744,23 +4427,23 @@ var TailoringFileApiAxiosParamCreator = function (configuration) {
|
|
|
3744
4427
|
* Returns a Tailoring File
|
|
3745
4428
|
* @summary Request a Tailoring file
|
|
3746
4429
|
* @param {any} policyId
|
|
3747
|
-
* @param {any}
|
|
4430
|
+
* @param {any} tailoringId UUID or OS minor version number
|
|
3748
4431
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
3749
4432
|
* @param {*} [options] Override http request option.
|
|
3750
4433
|
* @throws {RequiredError}
|
|
3751
4434
|
*/
|
|
3752
|
-
tailoringFile: function (policyId,
|
|
4435
|
+
tailoringFile: function (policyId, tailoringId, xRHIDENTITY, options) {
|
|
3753
4436
|
if (options === void 0) { options = {}; }
|
|
3754
4437
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
3755
4438
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3756
4439
|
return tslib_1.__generator(this, function (_a) {
|
|
3757
4440
|
// verify required parameter 'policyId' is not null or undefined
|
|
3758
4441
|
(0, common_1.assertParamExists)('tailoringFile', 'policyId', policyId);
|
|
3759
|
-
// verify required parameter '
|
|
3760
|
-
(0, common_1.assertParamExists)('tailoringFile', '
|
|
3761
|
-
localVarPath = "/policies/{policy_id}/tailorings/{
|
|
4442
|
+
// verify required parameter 'tailoringId' is not null or undefined
|
|
4443
|
+
(0, common_1.assertParamExists)('tailoringFile', 'tailoringId', tailoringId);
|
|
4444
|
+
localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/tailoring_file.json"
|
|
3762
4445
|
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
|
|
3763
|
-
.replace("{".concat("
|
|
4446
|
+
.replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)));
|
|
3764
4447
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3765
4448
|
if (configuration) {
|
|
3766
4449
|
baseOptions = configuration.baseOptions;
|
|
@@ -3797,17 +4480,17 @@ var TailoringFileApiFp = function (configuration) {
|
|
|
3797
4480
|
* Returns a Tailoring File
|
|
3798
4481
|
* @summary Request a Tailoring file
|
|
3799
4482
|
* @param {any} policyId
|
|
3800
|
-
* @param {any}
|
|
4483
|
+
* @param {any} tailoringId UUID or OS minor version number
|
|
3801
4484
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
3802
4485
|
* @param {*} [options] Override http request option.
|
|
3803
4486
|
* @throws {RequiredError}
|
|
3804
4487
|
*/
|
|
3805
|
-
tailoringFile: function (policyId,
|
|
4488
|
+
tailoringFile: function (policyId, tailoringId, xRHIDENTITY, options) {
|
|
3806
4489
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
3807
4490
|
var localVarAxiosArgs;
|
|
3808
4491
|
return tslib_1.__generator(this, function (_a) {
|
|
3809
4492
|
switch (_a.label) {
|
|
3810
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.tailoringFile(policyId,
|
|
4493
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.tailoringFile(policyId, tailoringId, xRHIDENTITY, options)];
|
|
3811
4494
|
case 1:
|
|
3812
4495
|
localVarAxiosArgs = _a.sent();
|
|
3813
4496
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -3833,7 +4516,7 @@ var TailoringFileApiFactory = function (configuration, basePath, axios) {
|
|
|
3833
4516
|
* @throws {RequiredError}
|
|
3834
4517
|
*/
|
|
3835
4518
|
tailoringFile: function (requestParameters, options) {
|
|
3836
|
-
return localVarFp.tailoringFile(requestParameters.policyId, requestParameters.
|
|
4519
|
+
return localVarFp.tailoringFile(requestParameters.policyId, requestParameters.tailoringId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
3837
4520
|
},
|
|
3838
4521
|
};
|
|
3839
4522
|
};
|
|
@@ -3859,7 +4542,7 @@ var TailoringFileApi = /** @class */ (function (_super) {
|
|
|
3859
4542
|
*/
|
|
3860
4543
|
TailoringFileApi.prototype.tailoringFile = function (requestParameters, options) {
|
|
3861
4544
|
var _this = this;
|
|
3862
|
-
return (0, exports.TailoringFileApiFp)(this.configuration).tailoringFile(requestParameters.policyId, requestParameters.
|
|
4545
|
+
return (0, exports.TailoringFileApiFp)(this.configuration).tailoringFile(requestParameters.policyId, requestParameters.tailoringId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3863
4546
|
};
|
|
3864
4547
|
return TailoringFileApi;
|
|
3865
4548
|
}(base_1.BaseAPI));
|
|
@@ -4173,12 +4856,12 @@ var UnassignRuleApiAxiosParamCreator = function (configuration) {
|
|
|
4173
4856
|
* @summary Unassign a Rule from a Tailoring
|
|
4174
4857
|
* @param {any} policyId
|
|
4175
4858
|
* @param {any} tailoringId
|
|
4176
|
-
* @param {any}
|
|
4859
|
+
* @param {any} ruleId UUID or ref_id
|
|
4177
4860
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
4178
4861
|
* @param {*} [options] Override http request option.
|
|
4179
4862
|
* @throws {RequiredError}
|
|
4180
4863
|
*/
|
|
4181
|
-
unassignRule: function (policyId, tailoringId,
|
|
4864
|
+
unassignRule: function (policyId, tailoringId, ruleId, xRHIDENTITY, options) {
|
|
4182
4865
|
if (options === void 0) { options = {}; }
|
|
4183
4866
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
4184
4867
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -4187,12 +4870,12 @@ var UnassignRuleApiAxiosParamCreator = function (configuration) {
|
|
|
4187
4870
|
(0, common_1.assertParamExists)('unassignRule', 'policyId', policyId);
|
|
4188
4871
|
// verify required parameter 'tailoringId' is not null or undefined
|
|
4189
4872
|
(0, common_1.assertParamExists)('unassignRule', 'tailoringId', tailoringId);
|
|
4190
|
-
// verify required parameter '
|
|
4191
|
-
(0, common_1.assertParamExists)('unassignRule', '
|
|
4192
|
-
localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules/{
|
|
4873
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
4874
|
+
(0, common_1.assertParamExists)('unassignRule', 'ruleId', ruleId);
|
|
4875
|
+
localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules/{rule_id}"
|
|
4193
4876
|
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
|
|
4194
4877
|
.replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)))
|
|
4195
|
-
.replace("{".concat("
|
|
4878
|
+
.replace("{".concat("rule_id", "}"), encodeURIComponent(String(ruleId)));
|
|
4196
4879
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4197
4880
|
if (configuration) {
|
|
4198
4881
|
baseOptions = configuration.baseOptions;
|
|
@@ -4230,17 +4913,17 @@ var UnassignRuleApiFp = function (configuration) {
|
|
|
4230
4913
|
* @summary Unassign a Rule from a Tailoring
|
|
4231
4914
|
* @param {any} policyId
|
|
4232
4915
|
* @param {any} tailoringId
|
|
4233
|
-
* @param {any}
|
|
4916
|
+
* @param {any} ruleId UUID or ref_id
|
|
4234
4917
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
4235
4918
|
* @param {*} [options] Override http request option.
|
|
4236
4919
|
* @throws {RequiredError}
|
|
4237
4920
|
*/
|
|
4238
|
-
unassignRule: function (policyId, tailoringId,
|
|
4921
|
+
unassignRule: function (policyId, tailoringId, ruleId, xRHIDENTITY, options) {
|
|
4239
4922
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
4240
4923
|
var localVarAxiosArgs;
|
|
4241
4924
|
return tslib_1.__generator(this, function (_a) {
|
|
4242
4925
|
switch (_a.label) {
|
|
4243
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unassignRule(policyId, tailoringId,
|
|
4926
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unassignRule(policyId, tailoringId, ruleId, xRHIDENTITY, options)];
|
|
4244
4927
|
case 1:
|
|
4245
4928
|
localVarAxiosArgs = _a.sent();
|
|
4246
4929
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4266,7 +4949,7 @@ var UnassignRuleApiFactory = function (configuration, basePath, axios) {
|
|
|
4266
4949
|
* @throws {RequiredError}
|
|
4267
4950
|
*/
|
|
4268
4951
|
unassignRule: function (requestParameters, options) {
|
|
4269
|
-
return localVarFp.unassignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.
|
|
4952
|
+
return localVarFp.unassignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.ruleId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
4270
4953
|
},
|
|
4271
4954
|
};
|
|
4272
4955
|
};
|
|
@@ -4292,7 +4975,7 @@ var UnassignRuleApi = /** @class */ (function (_super) {
|
|
|
4292
4975
|
*/
|
|
4293
4976
|
UnassignRuleApi.prototype.unassignRule = function (requestParameters, options) {
|
|
4294
4977
|
var _this = this;
|
|
4295
|
-
return (0, exports.UnassignRuleApiFp)(this.configuration).unassignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.
|
|
4978
|
+
return (0, exports.UnassignRuleApiFp)(this.configuration).unassignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.ruleId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4296
4979
|
};
|
|
4297
4980
|
return UnassignRuleApi;
|
|
4298
4981
|
}(base_1.BaseAPI));
|
|
@@ -4307,23 +4990,23 @@ var UnassignSystemApiAxiosParamCreator = function (configuration) {
|
|
|
4307
4990
|
/**
|
|
4308
4991
|
* Unassigns a System from a Policy
|
|
4309
4992
|
* @summary Unassign a System from a Policy
|
|
4310
|
-
* @param {any}
|
|
4993
|
+
* @param {any} systemId
|
|
4311
4994
|
* @param {any} policyId
|
|
4312
4995
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
4313
4996
|
* @param {*} [options] Override http request option.
|
|
4314
4997
|
* @throws {RequiredError}
|
|
4315
4998
|
*/
|
|
4316
|
-
unassignSystem: function (
|
|
4999
|
+
unassignSystem: function (systemId, policyId, xRHIDENTITY, options) {
|
|
4317
5000
|
if (options === void 0) { options = {}; }
|
|
4318
5001
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
4319
5002
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4320
5003
|
return tslib_1.__generator(this, function (_a) {
|
|
4321
|
-
// verify required parameter '
|
|
4322
|
-
(0, common_1.assertParamExists)('unassignSystem', '
|
|
5004
|
+
// verify required parameter 'systemId' is not null or undefined
|
|
5005
|
+
(0, common_1.assertParamExists)('unassignSystem', 'systemId', systemId);
|
|
4323
5006
|
// verify required parameter 'policyId' is not null or undefined
|
|
4324
5007
|
(0, common_1.assertParamExists)('unassignSystem', 'policyId', policyId);
|
|
4325
|
-
localVarPath = "/policies/{policy_id}/systems/{
|
|
4326
|
-
.replace("{".concat("
|
|
5008
|
+
localVarPath = "/policies/{policy_id}/systems/{system_id}"
|
|
5009
|
+
.replace("{".concat("system_id", "}"), encodeURIComponent(String(systemId)))
|
|
4327
5010
|
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
4328
5011
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4329
5012
|
if (configuration) {
|
|
@@ -4360,18 +5043,18 @@ var UnassignSystemApiFp = function (configuration) {
|
|
|
4360
5043
|
/**
|
|
4361
5044
|
* Unassigns a System from a Policy
|
|
4362
5045
|
* @summary Unassign a System from a Policy
|
|
4363
|
-
* @param {any}
|
|
5046
|
+
* @param {any} systemId
|
|
4364
5047
|
* @param {any} policyId
|
|
4365
5048
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
4366
5049
|
* @param {*} [options] Override http request option.
|
|
4367
5050
|
* @throws {RequiredError}
|
|
4368
5051
|
*/
|
|
4369
|
-
unassignSystem: function (
|
|
5052
|
+
unassignSystem: function (systemId, policyId, xRHIDENTITY, options) {
|
|
4370
5053
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
4371
5054
|
var localVarAxiosArgs;
|
|
4372
5055
|
return tslib_1.__generator(this, function (_a) {
|
|
4373
5056
|
switch (_a.label) {
|
|
4374
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unassignSystem(
|
|
5057
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unassignSystem(systemId, policyId, xRHIDENTITY, options)];
|
|
4375
5058
|
case 1:
|
|
4376
5059
|
localVarAxiosArgs = _a.sent();
|
|
4377
5060
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4397,7 +5080,7 @@ var UnassignSystemApiFactory = function (configuration, basePath, axios) {
|
|
|
4397
5080
|
* @throws {RequiredError}
|
|
4398
5081
|
*/
|
|
4399
5082
|
unassignSystem: function (requestParameters, options) {
|
|
4400
|
-
return localVarFp.unassignSystem(requestParameters.
|
|
5083
|
+
return localVarFp.unassignSystem(requestParameters.systemId, requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
4401
5084
|
},
|
|
4402
5085
|
};
|
|
4403
5086
|
};
|
|
@@ -4423,7 +5106,7 @@ var UnassignSystemApi = /** @class */ (function (_super) {
|
|
|
4423
5106
|
*/
|
|
4424
5107
|
UnassignSystemApi.prototype.unassignSystem = function (requestParameters, options) {
|
|
4425
5108
|
var _this = this;
|
|
4426
|
-
return (0, exports.UnassignSystemApiFp)(this.configuration).unassignSystem(requestParameters.
|
|
5109
|
+
return (0, exports.UnassignSystemApiFp)(this.configuration).unassignSystem(requestParameters.systemId, requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4427
5110
|
};
|
|
4428
5111
|
return UnassignSystemApi;
|
|
4429
5112
|
}(base_1.BaseAPI));
|
|
@@ -4438,21 +5121,21 @@ var UpdatePolicyApiAxiosParamCreator = function (configuration) {
|
|
|
4438
5121
|
/**
|
|
4439
5122
|
* Updates a Policy with the provided attributes
|
|
4440
5123
|
* @summary Update a Policy
|
|
4441
|
-
* @param {any}
|
|
5124
|
+
* @param {any} policyId
|
|
4442
5125
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
4443
5126
|
* @param {PolicyUpdate} [policyUpdate]
|
|
4444
5127
|
* @param {*} [options] Override http request option.
|
|
4445
5128
|
* @throws {RequiredError}
|
|
4446
5129
|
*/
|
|
4447
|
-
updatePolicy: function (
|
|
5130
|
+
updatePolicy: function (policyId, xRHIDENTITY, policyUpdate, options) {
|
|
4448
5131
|
if (options === void 0) { options = {}; }
|
|
4449
5132
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
4450
5133
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4451
5134
|
return tslib_1.__generator(this, function (_a) {
|
|
4452
|
-
// verify required parameter '
|
|
4453
|
-
(0, common_1.assertParamExists)('updatePolicy', '
|
|
4454
|
-
localVarPath = "/policies/{
|
|
4455
|
-
.replace("{".concat("
|
|
5135
|
+
// verify required parameter 'policyId' is not null or undefined
|
|
5136
|
+
(0, common_1.assertParamExists)('updatePolicy', 'policyId', policyId);
|
|
5137
|
+
localVarPath = "/policies/{policy_id}"
|
|
5138
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
4456
5139
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4457
5140
|
if (configuration) {
|
|
4458
5141
|
baseOptions = configuration.baseOptions;
|
|
@@ -4490,18 +5173,18 @@ var UpdatePolicyApiFp = function (configuration) {
|
|
|
4490
5173
|
/**
|
|
4491
5174
|
* Updates a Policy with the provided attributes
|
|
4492
5175
|
* @summary Update a Policy
|
|
4493
|
-
* @param {any}
|
|
5176
|
+
* @param {any} policyId
|
|
4494
5177
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
4495
5178
|
* @param {PolicyUpdate} [policyUpdate]
|
|
4496
5179
|
* @param {*} [options] Override http request option.
|
|
4497
5180
|
* @throws {RequiredError}
|
|
4498
5181
|
*/
|
|
4499
|
-
updatePolicy: function (
|
|
5182
|
+
updatePolicy: function (policyId, xRHIDENTITY, policyUpdate, options) {
|
|
4500
5183
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
4501
5184
|
var localVarAxiosArgs;
|
|
4502
5185
|
return tslib_1.__generator(this, function (_a) {
|
|
4503
5186
|
switch (_a.label) {
|
|
4504
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePolicy(
|
|
5187
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePolicy(policyId, xRHIDENTITY, policyUpdate, options)];
|
|
4505
5188
|
case 1:
|
|
4506
5189
|
localVarAxiosArgs = _a.sent();
|
|
4507
5190
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4527,7 +5210,7 @@ var UpdatePolicyApiFactory = function (configuration, basePath, axios) {
|
|
|
4527
5210
|
* @throws {RequiredError}
|
|
4528
5211
|
*/
|
|
4529
5212
|
updatePolicy: function (requestParameters, options) {
|
|
4530
|
-
return localVarFp.updatePolicy(requestParameters.
|
|
5213
|
+
return localVarFp.updatePolicy(requestParameters.policyId, requestParameters.xRHIDENTITY, requestParameters.policyUpdate, options).then(function (request) { return request(axios, basePath); });
|
|
4531
5214
|
},
|
|
4532
5215
|
};
|
|
4533
5216
|
};
|
|
@@ -4553,7 +5236,7 @@ var UpdatePolicyApi = /** @class */ (function (_super) {
|
|
|
4553
5236
|
*/
|
|
4554
5237
|
UpdatePolicyApi.prototype.updatePolicy = function (requestParameters, options) {
|
|
4555
5238
|
var _this = this;
|
|
4556
|
-
return (0, exports.UpdatePolicyApiFp)(this.configuration).updatePolicy(requestParameters.
|
|
5239
|
+
return (0, exports.UpdatePolicyApiFp)(this.configuration).updatePolicy(requestParameters.policyId, requestParameters.xRHIDENTITY, requestParameters.policyUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4557
5240
|
};
|
|
4558
5241
|
return UpdatePolicyApi;
|
|
4559
5242
|
}(base_1.BaseAPI));
|
|
@@ -4569,24 +5252,24 @@ var UpdateTailoringApiAxiosParamCreator = function (configuration) {
|
|
|
4569
5252
|
* Updates a Tailoring with the provided value_overrides
|
|
4570
5253
|
* @summary Update a Tailoring
|
|
4571
5254
|
* @param {any} policyId
|
|
4572
|
-
* @param {any}
|
|
5255
|
+
* @param {any} tailoringId UUID or OS minor version number
|
|
4573
5256
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
4574
5257
|
* @param {Tailoring} [tailoring]
|
|
4575
5258
|
* @param {*} [options] Override http request option.
|
|
4576
5259
|
* @throws {RequiredError}
|
|
4577
5260
|
*/
|
|
4578
|
-
updateTailoring: function (policyId,
|
|
5261
|
+
updateTailoring: function (policyId, tailoringId, xRHIDENTITY, tailoring, options) {
|
|
4579
5262
|
if (options === void 0) { options = {}; }
|
|
4580
5263
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
4581
5264
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4582
5265
|
return tslib_1.__generator(this, function (_a) {
|
|
4583
5266
|
// verify required parameter 'policyId' is not null or undefined
|
|
4584
5267
|
(0, common_1.assertParamExists)('updateTailoring', 'policyId', policyId);
|
|
4585
|
-
// verify required parameter '
|
|
4586
|
-
(0, common_1.assertParamExists)('updateTailoring', '
|
|
4587
|
-
localVarPath = "/policies/{policy_id}/tailorings/{
|
|
5268
|
+
// verify required parameter 'tailoringId' is not null or undefined
|
|
5269
|
+
(0, common_1.assertParamExists)('updateTailoring', 'tailoringId', tailoringId);
|
|
5270
|
+
localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}"
|
|
4588
5271
|
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
|
|
4589
|
-
.replace("{".concat("
|
|
5272
|
+
.replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)));
|
|
4590
5273
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4591
5274
|
if (configuration) {
|
|
4592
5275
|
baseOptions = configuration.baseOptions;
|
|
@@ -4625,18 +5308,18 @@ var UpdateTailoringApiFp = function (configuration) {
|
|
|
4625
5308
|
* Updates a Tailoring with the provided value_overrides
|
|
4626
5309
|
* @summary Update a Tailoring
|
|
4627
5310
|
* @param {any} policyId
|
|
4628
|
-
* @param {any}
|
|
5311
|
+
* @param {any} tailoringId UUID or OS minor version number
|
|
4629
5312
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
4630
5313
|
* @param {Tailoring} [tailoring]
|
|
4631
5314
|
* @param {*} [options] Override http request option.
|
|
4632
5315
|
* @throws {RequiredError}
|
|
4633
5316
|
*/
|
|
4634
|
-
updateTailoring: function (policyId,
|
|
5317
|
+
updateTailoring: function (policyId, tailoringId, xRHIDENTITY, tailoring, options) {
|
|
4635
5318
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
4636
5319
|
var localVarAxiosArgs;
|
|
4637
5320
|
return tslib_1.__generator(this, function (_a) {
|
|
4638
5321
|
switch (_a.label) {
|
|
4639
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTailoring(policyId,
|
|
5322
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTailoring(policyId, tailoringId, xRHIDENTITY, tailoring, options)];
|
|
4640
5323
|
case 1:
|
|
4641
5324
|
localVarAxiosArgs = _a.sent();
|
|
4642
5325
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4662,7 +5345,7 @@ var UpdateTailoringApiFactory = function (configuration, basePath, axios) {
|
|
|
4662
5345
|
* @throws {RequiredError}
|
|
4663
5346
|
*/
|
|
4664
5347
|
updateTailoring: function (requestParameters, options) {
|
|
4665
|
-
return localVarFp.updateTailoring(requestParameters.policyId, requestParameters.
|
|
5348
|
+
return localVarFp.updateTailoring(requestParameters.policyId, requestParameters.tailoringId, requestParameters.xRHIDENTITY, requestParameters.tailoring, options).then(function (request) { return request(axios, basePath); });
|
|
4666
5349
|
},
|
|
4667
5350
|
};
|
|
4668
5351
|
};
|
|
@@ -4688,7 +5371,7 @@ var UpdateTailoringApi = /** @class */ (function (_super) {
|
|
|
4688
5371
|
*/
|
|
4689
5372
|
UpdateTailoringApi.prototype.updateTailoring = function (requestParameters, options) {
|
|
4690
5373
|
var _this = this;
|
|
4691
|
-
return (0, exports.UpdateTailoringApiFp)(this.configuration).updateTailoring(requestParameters.policyId, requestParameters.
|
|
5374
|
+
return (0, exports.UpdateTailoringApiFp)(this.configuration).updateTailoring(requestParameters.policyId, requestParameters.tailoringId, requestParameters.xRHIDENTITY, requestParameters.tailoring, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4692
5375
|
};
|
|
4693
5376
|
return UpdateTailoringApi;
|
|
4694
5377
|
}(base_1.BaseAPI));
|
|
@@ -4704,23 +5387,23 @@ var ValueDefinitionApiAxiosParamCreator = function (configuration) {
|
|
|
4704
5387
|
* Returns a Value Definition
|
|
4705
5388
|
* @summary Request a Value Definition
|
|
4706
5389
|
* @param {any} securityGuideId
|
|
4707
|
-
* @param {any}
|
|
5390
|
+
* @param {any} valueDefinitionId
|
|
4708
5391
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
4709
5392
|
* @param {*} [options] Override http request option.
|
|
4710
5393
|
* @throws {RequiredError}
|
|
4711
5394
|
*/
|
|
4712
|
-
valueDefinition: function (securityGuideId,
|
|
5395
|
+
valueDefinition: function (securityGuideId, valueDefinitionId, xRHIDENTITY, options) {
|
|
4713
5396
|
if (options === void 0) { options = {}; }
|
|
4714
5397
|
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
4715
5398
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4716
5399
|
return tslib_1.__generator(this, function (_a) {
|
|
4717
5400
|
// verify required parameter 'securityGuideId' is not null or undefined
|
|
4718
5401
|
(0, common_1.assertParamExists)('valueDefinition', 'securityGuideId', securityGuideId);
|
|
4719
|
-
// verify required parameter '
|
|
4720
|
-
(0, common_1.assertParamExists)('valueDefinition', '
|
|
4721
|
-
localVarPath = "/security_guides/{security_guide_id}/value_definitions/{
|
|
5402
|
+
// verify required parameter 'valueDefinitionId' is not null or undefined
|
|
5403
|
+
(0, common_1.assertParamExists)('valueDefinition', 'valueDefinitionId', valueDefinitionId);
|
|
5404
|
+
localVarPath = "/security_guides/{security_guide_id}/value_definitions/{value_definition_id}"
|
|
4722
5405
|
.replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
|
|
4723
|
-
.replace("{".concat("
|
|
5406
|
+
.replace("{".concat("value_definition_id", "}"), encodeURIComponent(String(valueDefinitionId)));
|
|
4724
5407
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4725
5408
|
if (configuration) {
|
|
4726
5409
|
baseOptions = configuration.baseOptions;
|
|
@@ -4757,17 +5440,17 @@ var ValueDefinitionApiFp = function (configuration) {
|
|
|
4757
5440
|
* Returns a Value Definition
|
|
4758
5441
|
* @summary Request a Value Definition
|
|
4759
5442
|
* @param {any} securityGuideId
|
|
4760
|
-
* @param {any}
|
|
5443
|
+
* @param {any} valueDefinitionId
|
|
4761
5444
|
* @param {any} [xRHIDENTITY] For internal use only
|
|
4762
5445
|
* @param {*} [options] Override http request option.
|
|
4763
5446
|
* @throws {RequiredError}
|
|
4764
5447
|
*/
|
|
4765
|
-
valueDefinition: function (securityGuideId,
|
|
5448
|
+
valueDefinition: function (securityGuideId, valueDefinitionId, xRHIDENTITY, options) {
|
|
4766
5449
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
4767
5450
|
var localVarAxiosArgs;
|
|
4768
5451
|
return tslib_1.__generator(this, function (_a) {
|
|
4769
5452
|
switch (_a.label) {
|
|
4770
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.valueDefinition(securityGuideId,
|
|
5453
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.valueDefinition(securityGuideId, valueDefinitionId, xRHIDENTITY, options)];
|
|
4771
5454
|
case 1:
|
|
4772
5455
|
localVarAxiosArgs = _a.sent();
|
|
4773
5456
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4793,7 +5476,7 @@ var ValueDefinitionApiFactory = function (configuration, basePath, axios) {
|
|
|
4793
5476
|
* @throws {RequiredError}
|
|
4794
5477
|
*/
|
|
4795
5478
|
valueDefinition: function (requestParameters, options) {
|
|
4796
|
-
return localVarFp.valueDefinition(requestParameters.securityGuideId, requestParameters.
|
|
5479
|
+
return localVarFp.valueDefinition(requestParameters.securityGuideId, requestParameters.valueDefinitionId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
|
|
4797
5480
|
},
|
|
4798
5481
|
};
|
|
4799
5482
|
};
|
|
@@ -4819,7 +5502,7 @@ var ValueDefinitionApi = /** @class */ (function (_super) {
|
|
|
4819
5502
|
*/
|
|
4820
5503
|
ValueDefinitionApi.prototype.valueDefinition = function (requestParameters, options) {
|
|
4821
5504
|
var _this = this;
|
|
4822
|
-
return (0, exports.ValueDefinitionApiFp)(this.configuration).valueDefinition(requestParameters.securityGuideId, requestParameters.
|
|
5505
|
+
return (0, exports.ValueDefinitionApiFp)(this.configuration).valueDefinition(requestParameters.securityGuideId, requestParameters.valueDefinitionId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4823
5506
|
};
|
|
4824
5507
|
return ValueDefinitionApi;
|
|
4825
5508
|
}(base_1.BaseAPI));
|